@steamsets/client-ts 0.34.8 → 0.35.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 (362) hide show
  1. package/README.md +30 -0
  2. package/funcs/accountQueueInventoryRefresh.d.ts +16 -0
  3. package/funcs/accountQueueInventoryRefresh.d.ts.map +1 -0
  4. package/funcs/accountQueueInventoryRefresh.js +132 -0
  5. package/funcs/accountQueueInventoryRefresh.js.map +1 -0
  6. package/funcs/accountSearch.d.ts +15 -0
  7. package/funcs/accountSearch.d.ts.map +1 -0
  8. package/funcs/accountSearch.js +144 -0
  9. package/funcs/accountSearch.js.map +1 -0
  10. package/funcs/appQueueUpdate.d.ts +16 -0
  11. package/funcs/appQueueUpdate.d.ts.map +1 -0
  12. package/funcs/appQueueUpdate.js +132 -0
  13. package/funcs/appQueueUpdate.js.map +1 -0
  14. package/funcs/appSearch.d.ts +15 -0
  15. package/funcs/appSearch.d.ts.map +1 -0
  16. package/funcs/appSearch.js +144 -0
  17. package/funcs/appSearch.js.map +1 -0
  18. package/funcs/badgePricingSearch.d.ts +15 -0
  19. package/funcs/badgePricingSearch.d.ts.map +1 -0
  20. package/funcs/badgePricingSearch.js +144 -0
  21. package/funcs/badgePricingSearch.js.map +1 -0
  22. package/funcs/badgeSearch.js +3 -1
  23. package/funcs/badgeSearch.js.map +1 -1
  24. package/funcs/groupQueueUpdate.d.ts +16 -0
  25. package/funcs/groupQueueUpdate.d.ts.map +1 -0
  26. package/funcs/groupQueueUpdate.js +132 -0
  27. package/funcs/groupQueueUpdate.js.map +1 -0
  28. package/funcs/groupSearch.d.ts +15 -0
  29. package/funcs/groupSearch.d.ts.map +1 -0
  30. package/funcs/groupSearch.js +144 -0
  31. package/funcs/groupSearch.js.map +1 -0
  32. package/funcs/leaderboardGetBucketLeaders.d.ts +1 -1
  33. package/funcs/leaderboardGetBucketLeaders.d.ts.map +1 -1
  34. package/funcs/leaderboardGetBucketLeaders.js +2 -2
  35. package/funcs/leaderboardGetBucketLeaders.js.map +1 -1
  36. package/funcs/locationSearch.d.ts +15 -0
  37. package/funcs/locationSearch.d.ts.map +1 -0
  38. package/funcs/locationSearch.js +136 -0
  39. package/funcs/locationSearch.js.map +1 -0
  40. package/funcs/tradingItemSearch.d.ts +15 -0
  41. package/funcs/tradingItemSearch.d.ts.map +1 -0
  42. package/funcs/tradingItemSearch.js +144 -0
  43. package/funcs/tradingItemSearch.js.map +1 -0
  44. package/jsr.json +1 -1
  45. package/lib/config.d.ts +3 -3
  46. package/lib/config.js +3 -3
  47. package/models/components/account.d.ts +41 -0
  48. package/models/components/account.d.ts.map +1 -0
  49. package/models/components/account.js +81 -0
  50. package/models/components/account.js.map +1 -0
  51. package/models/components/accountboolfilter.d.ts +12 -0
  52. package/models/components/accountboolfilter.d.ts.map +1 -0
  53. package/models/components/{v1searchrequest.js → accountboolfilter.js} +7 -14
  54. package/models/components/accountboolfilter.js.map +1 -0
  55. package/models/components/accountfilter.d.ts +80 -0
  56. package/models/components/accountfilter.d.ts.map +1 -0
  57. package/models/components/accountfilter.js +88 -0
  58. package/models/components/accountfilter.js.map +1 -0
  59. package/models/components/accountrangefilter.d.ts +24 -0
  60. package/models/components/accountrangefilter.d.ts.map +1 -0
  61. package/models/components/accountrangefilter.js +55 -0
  62. package/models/components/accountrangefilter.js.map +1 -0
  63. package/models/components/accountsearchaccountsrequestbody.d.ts +49 -0
  64. package/models/components/accountsearchaccountsrequestbody.d.ts.map +1 -0
  65. package/models/components/accountsearchaccountsrequestbody.js +65 -0
  66. package/models/components/accountsearchaccountsrequestbody.js.map +1 -0
  67. package/models/components/accountsearchaccountsresponsebody.d.ts +19 -0
  68. package/models/components/accountsearchaccountsresponsebody.d.ts.map +1 -0
  69. package/models/components/accountsearchaccountsresponsebody.js +58 -0
  70. package/models/components/accountsearchaccountsresponsebody.js.map +1 -0
  71. package/models/components/accountstringarrayfilter.d.ts +20 -0
  72. package/models/components/accountstringarrayfilter.d.ts.map +1 -0
  73. package/models/components/accountstringarrayfilter.js +50 -0
  74. package/models/components/accountstringarrayfilter.js.map +1 -0
  75. package/models/components/accountstringfilter.d.ts +16 -0
  76. package/models/components/accountstringfilter.d.ts.map +1 -0
  77. package/models/components/accountstringfilter.js +51 -0
  78. package/models/components/accountstringfilter.js.map +1 -0
  79. package/models/components/app.d.ts +16 -0
  80. package/models/components/app.d.ts.map +1 -0
  81. package/models/components/{vectors.js → app.js} +14 -7
  82. package/models/components/app.js.map +1 -0
  83. package/models/components/appfilter.d.ts +23 -0
  84. package/models/components/appfilter.d.ts.map +1 -0
  85. package/models/components/appfilter.js +56 -0
  86. package/models/components/appfilter.js.map +1 -0
  87. package/models/components/appsearchrequestbody.d.ts +46 -0
  88. package/models/components/appsearchrequestbody.d.ts.map +1 -0
  89. package/models/components/appsearchrequestbody.js +64 -0
  90. package/models/components/appsearchrequestbody.js.map +1 -0
  91. package/models/components/appsearchresponsebody.d.ts +16 -0
  92. package/models/components/appsearchresponsebody.d.ts.map +1 -0
  93. package/models/components/appsearchresponsebody.js +58 -0
  94. package/models/components/appsearchresponsebody.js.map +1 -0
  95. package/models/components/badge.d.ts +1 -2
  96. package/models/components/badge.d.ts.map +1 -1
  97. package/models/components/badge.js +1 -7
  98. package/models/components/badge.js.map +1 -1
  99. package/models/components/badgefilter.d.ts +38 -0
  100. package/models/components/badgefilter.d.ts.map +1 -0
  101. package/models/components/badgefilter.js +64 -0
  102. package/models/components/badgefilter.js.map +1 -0
  103. package/models/components/badgepricingsearchcard.d.ts +12 -0
  104. package/models/components/badgepricingsearchcard.d.ts.map +1 -0
  105. package/models/components/badgepricingsearchcard.js +52 -0
  106. package/models/components/badgepricingsearchcard.js.map +1 -0
  107. package/models/components/badgepricingsearchfilter.d.ts +70 -0
  108. package/models/components/badgepricingsearchfilter.d.ts.map +1 -0
  109. package/models/components/badgepricingsearchfilter.js +78 -0
  110. package/models/components/badgepricingsearchfilter.js.map +1 -0
  111. package/models/components/badgepricingsearchitem.d.ts +31 -0
  112. package/models/components/badgepricingsearchitem.d.ts.map +1 -0
  113. package/models/components/badgepricingsearchitem.js +71 -0
  114. package/models/components/badgepricingsearchitem.js.map +1 -0
  115. package/models/components/badgepricingsearchlevel.d.ts +15 -0
  116. package/models/components/badgepricingsearchlevel.d.ts.map +1 -0
  117. package/models/components/badgepricingsearchlevel.js +55 -0
  118. package/models/components/badgepricingsearchlevel.js.map +1 -0
  119. package/models/components/badgepricingsearchrequestbody.d.ts +69 -0
  120. package/models/components/badgepricingsearchrequestbody.d.ts.map +1 -0
  121. package/models/components/badgepricingsearchrequestbody.js +81 -0
  122. package/models/components/badgepricingsearchrequestbody.js.map +1 -0
  123. package/models/components/badgepricingsearchresponsebody.d.ts +19 -0
  124. package/models/components/badgepricingsearchresponsebody.d.ts.map +1 -0
  125. package/models/components/badgepricingsearchresponsebody.js +58 -0
  126. package/models/components/badgepricingsearchresponsebody.js.map +1 -0
  127. package/models/components/bucketleader.d.ts +5 -2
  128. package/models/components/bucketleader.d.ts.map +1 -1
  129. package/models/components/bucketleader.js +1 -1
  130. package/models/components/bucketleader.js.map +1 -1
  131. package/models/components/group.d.ts +18 -0
  132. package/models/components/group.d.ts.map +1 -0
  133. package/models/components/group.js +59 -0
  134. package/models/components/group.js.map +1 -0
  135. package/models/components/groupfilter.d.ts +26 -0
  136. package/models/components/groupfilter.d.ts.map +1 -0
  137. package/models/components/groupfilter.js +57 -0
  138. package/models/components/groupfilter.js.map +1 -0
  139. package/models/components/groupsearchrequestbody.d.ts +46 -0
  140. package/models/components/groupsearchrequestbody.d.ts.map +1 -0
  141. package/models/components/groupsearchrequestbody.js +64 -0
  142. package/models/components/groupsearchrequestbody.js.map +1 -0
  143. package/models/components/groupsearchresponsebody.d.ts +16 -0
  144. package/models/components/groupsearchresponsebody.d.ts.map +1 -0
  145. package/models/components/groupsearchresponsebody.js +58 -0
  146. package/models/components/groupsearchresponsebody.js.map +1 -0
  147. package/models/components/index.d.ts +34 -2
  148. package/models/components/index.d.ts.map +1 -1
  149. package/models/components/index.js +34 -2
  150. package/models/components/index.js.map +1 -1
  151. package/models/components/locationhit.d.ts +17 -0
  152. package/models/components/locationhit.d.ts.map +1 -0
  153. package/models/components/locationhit.js +57 -0
  154. package/models/components/locationhit.js.map +1 -0
  155. package/models/components/locationsearchlocationsrequestbody.d.ts +41 -0
  156. package/models/components/locationsearchlocationsrequestbody.d.ts.map +1 -0
  157. package/models/components/locationsearchlocationsrequestbody.js +62 -0
  158. package/models/components/locationsearchlocationsrequestbody.js.map +1 -0
  159. package/models/components/locationsearchlocationsresponsebody.d.ts +16 -0
  160. package/models/components/locationsearchlocationsresponsebody.d.ts.map +1 -0
  161. package/models/components/locationsearchlocationsresponsebody.js +58 -0
  162. package/models/components/locationsearchlocationsresponsebody.js.map +1 -0
  163. package/models/components/tradingitem.d.ts +25 -0
  164. package/models/components/tradingitem.d.ts.map +1 -0
  165. package/models/components/tradingitem.js +65 -0
  166. package/models/components/tradingitem.js.map +1 -0
  167. package/models/components/tradingitemfilter.d.ts +37 -0
  168. package/models/components/tradingitemfilter.d.ts.map +1 -0
  169. package/models/components/tradingitemfilter.js +63 -0
  170. package/models/components/tradingitemfilter.js.map +1 -0
  171. package/models/components/tradingitemsearchitemsrequestbody.d.ts +46 -0
  172. package/models/components/tradingitemsearchitemsrequestbody.d.ts.map +1 -0
  173. package/models/components/tradingitemsearchitemsrequestbody.js +65 -0
  174. package/models/components/tradingitemsearchitemsrequestbody.js.map +1 -0
  175. package/models/components/tradingitemsearchitemsresponsebody.d.ts +16 -0
  176. package/models/components/tradingitemsearchitemsresponsebody.d.ts.map +1 -0
  177. package/models/components/tradingitemsearchitemsresponsebody.js +58 -0
  178. package/models/components/tradingitemsearchitemsresponsebody.js.map +1 -0
  179. package/models/components/v1accountqueueinventoryrefreshrequestbody.d.ts +15 -0
  180. package/models/components/v1accountqueueinventoryrefreshrequestbody.d.ts.map +1 -0
  181. package/models/components/v1accountqueueinventoryrefreshrequestbody.js +49 -0
  182. package/models/components/v1accountqueueinventoryrefreshrequestbody.js.map +1 -0
  183. package/models/components/v1appqueueupdaterequestbody.d.ts +15 -0
  184. package/models/components/v1appqueueupdaterequestbody.d.ts.map +1 -0
  185. package/models/components/v1appqueueupdaterequestbody.js +49 -0
  186. package/models/components/v1appqueueupdaterequestbody.js.map +1 -0
  187. package/models/components/v1badgesearchbadgesrequestbody.d.ts +48 -0
  188. package/models/components/v1badgesearchbadgesrequestbody.d.ts.map +1 -0
  189. package/models/components/v1badgesearchbadgesrequestbody.js +65 -0
  190. package/models/components/v1badgesearchbadgesrequestbody.js.map +1 -0
  191. package/models/components/v1badgesearchbadgesresponsebody.d.ts +7 -4
  192. package/models/components/v1badgesearchbadgesresponsebody.d.ts.map +1 -1
  193. package/models/components/v1badgesearchbadgesresponsebody.js +1 -2
  194. package/models/components/v1badgesearchbadgesresponsebody.js.map +1 -1
  195. package/models/components/v1groupqueueupdaterequestbody.d.ts +15 -0
  196. package/models/components/v1groupqueueupdaterequestbody.d.ts.map +1 -0
  197. package/models/components/v1groupqueueupdaterequestbody.js +49 -0
  198. package/models/components/v1groupqueueupdaterequestbody.js.map +1 -0
  199. package/models/operations/accountqueueinventoryrefresh.d.ts +11 -0
  200. package/models/operations/accountqueueinventoryrefresh.d.ts.map +1 -0
  201. package/models/operations/accountqueueinventoryrefresh.js +56 -0
  202. package/models/operations/accountqueueinventoryrefresh.js.map +1 -0
  203. package/models/operations/accountsearchaccounts.d.ts +31 -0
  204. package/models/operations/accountsearchaccounts.d.ts.map +1 -0
  205. package/models/operations/accountsearchaccounts.js +77 -0
  206. package/models/operations/accountsearchaccounts.js.map +1 -0
  207. package/models/operations/appqueueupdate.d.ts +11 -0
  208. package/models/operations/appqueueupdate.d.ts.map +1 -0
  209. package/models/operations/appqueueupdate.js +56 -0
  210. package/models/operations/appqueueupdate.js.map +1 -0
  211. package/models/operations/appsearch.d.ts +31 -0
  212. package/models/operations/appsearch.d.ts.map +1 -0
  213. package/models/operations/appsearch.js +77 -0
  214. package/models/operations/appsearch.js.map +1 -0
  215. package/models/operations/badgepricingsearch.d.ts +31 -0
  216. package/models/operations/badgepricingsearch.d.ts.map +1 -0
  217. package/models/operations/badgepricingsearch.js +77 -0
  218. package/models/operations/badgepricingsearch.js.map +1 -0
  219. package/models/operations/badgesearchbadges.d.ts +2 -2
  220. package/models/operations/badgesearchbadges.d.ts.map +1 -1
  221. package/models/operations/badgesearchbadges.js +2 -2
  222. package/models/operations/badgesearchbadges.js.map +1 -1
  223. package/models/operations/groupqueueupdate.d.ts +11 -0
  224. package/models/operations/groupqueueupdate.d.ts.map +1 -0
  225. package/models/operations/groupqueueupdate.js +56 -0
  226. package/models/operations/groupqueueupdate.js.map +1 -0
  227. package/models/operations/groupsearch.d.ts +31 -0
  228. package/models/operations/groupsearch.d.ts.map +1 -0
  229. package/models/operations/groupsearch.js +77 -0
  230. package/models/operations/groupsearch.js.map +1 -0
  231. package/models/operations/index.d.ts +10 -1
  232. package/models/operations/index.d.ts.map +1 -1
  233. package/models/operations/index.js +10 -1
  234. package/models/operations/index.js.map +1 -1
  235. package/models/operations/leaderboardgetbucketleaders.d.ts +15 -0
  236. package/models/operations/leaderboardgetbucketleaders.d.ts.map +1 -0
  237. package/models/operations/{getbucketleaders.js → leaderboardgetbucketleaders.js} +6 -6
  238. package/models/operations/leaderboardgetbucketleaders.js.map +1 -0
  239. package/models/operations/locationsearch.d.ts +27 -0
  240. package/models/operations/locationsearch.d.ts.map +1 -0
  241. package/models/operations/locationsearch.js +73 -0
  242. package/models/operations/locationsearch.js.map +1 -0
  243. package/models/operations/tradingitemsearchitems.d.ts +31 -0
  244. package/models/operations/tradingitemsearchitems.d.ts.map +1 -0
  245. package/models/operations/tradingitemsearchitems.js +77 -0
  246. package/models/operations/tradingitemsearchitems.js.map +1 -0
  247. package/package.json +1 -1
  248. package/sdk/account.d.ts +8 -0
  249. package/sdk/account.d.ts.map +1 -1
  250. package/sdk/account.js +14 -0
  251. package/sdk/account.js.map +1 -1
  252. package/sdk/app.d.ts +14 -0
  253. package/sdk/app.d.ts.map +1 -0
  254. package/sdk/app.js +26 -0
  255. package/sdk/app.js.map +1 -0
  256. package/sdk/badgepricing.d.ts +9 -0
  257. package/sdk/badgepricing.d.ts.map +1 -0
  258. package/sdk/badgepricing.js +19 -0
  259. package/sdk/badgepricing.js.map +1 -0
  260. package/sdk/group.d.ts +14 -0
  261. package/sdk/group.d.ts.map +1 -0
  262. package/sdk/group.js +26 -0
  263. package/sdk/group.js.map +1 -0
  264. package/sdk/leaderboard.d.ts +1 -1
  265. package/sdk/leaderboard.d.ts.map +1 -1
  266. package/sdk/location.d.ts +4 -0
  267. package/sdk/location.d.ts.map +1 -1
  268. package/sdk/location.js +7 -0
  269. package/sdk/location.js.map +1 -1
  270. package/sdk/sdk.d.ts +12 -0
  271. package/sdk/sdk.d.ts.map +1 -1
  272. package/sdk/sdk.js +16 -0
  273. package/sdk/sdk.js.map +1 -1
  274. package/sdk/tradingitem.d.ts +9 -0
  275. package/sdk/tradingitem.d.ts.map +1 -0
  276. package/sdk/tradingitem.js +19 -0
  277. package/sdk/tradingitem.js.map +1 -0
  278. package/src/funcs/accountQueueInventoryRefresh.ts +188 -0
  279. package/src/funcs/accountSearch.ts +202 -0
  280. package/src/funcs/appQueueUpdate.ts +186 -0
  281. package/src/funcs/appSearch.ts +201 -0
  282. package/src/funcs/badgePricingSearch.ts +201 -0
  283. package/src/funcs/badgeSearch.ts +3 -1
  284. package/src/funcs/groupQueueUpdate.ts +186 -0
  285. package/src/funcs/groupSearch.ts +201 -0
  286. package/src/funcs/leaderboardGetBucketLeaders.ts +5 -5
  287. package/src/funcs/locationSearch.ts +193 -0
  288. package/src/funcs/tradingItemSearch.ts +202 -0
  289. package/src/lib/config.ts +3 -3
  290. package/src/models/components/account.ts +90 -0
  291. package/src/models/components/accountboolfilter.ts +31 -0
  292. package/src/models/components/accountfilter.ts +142 -0
  293. package/src/models/components/accountrangefilter.ts +49 -0
  294. package/src/models/components/accountsearchaccountsrequestbody.ts +82 -0
  295. package/src/models/components/accountsearchaccountsresponsebody.ts +47 -0
  296. package/src/models/components/accountstringarrayfilter.ts +40 -0
  297. package/src/models/components/accountstringfilter.ts +37 -0
  298. package/src/models/components/app.ts +40 -0
  299. package/src/models/components/appfilter.ts +54 -0
  300. package/src/models/components/appsearchrequestbody.ts +80 -0
  301. package/src/models/components/appsearchresponsebody.ts +44 -0
  302. package/src/models/components/badge.ts +2 -8
  303. package/src/models/components/badgefilter.ts +80 -0
  304. package/src/models/components/badgepricingsearchcard.ts +35 -0
  305. package/src/models/components/badgepricingsearchfilter.ts +105 -0
  306. package/src/models/components/badgepricingsearchitem.ts +77 -0
  307. package/src/models/components/badgepricingsearchlevel.ts +41 -0
  308. package/src/models/components/badgepricingsearchrequestbody.ts +109 -0
  309. package/src/models/components/badgepricingsearchresponsebody.ts +50 -0
  310. package/src/models/components/bucketleader.ts +6 -3
  311. package/src/models/components/group.ts +44 -0
  312. package/src/models/components/groupfilter.ts +55 -0
  313. package/src/models/components/groupsearchrequestbody.ts +80 -0
  314. package/src/models/components/groupsearchresponsebody.ts +44 -0
  315. package/src/models/components/index.ts +34 -2
  316. package/src/models/components/locationhit.ts +45 -0
  317. package/src/models/components/locationsearchlocationsrequestbody.ts +71 -0
  318. package/src/models/components/locationsearchlocationsresponsebody.ts +45 -0
  319. package/src/models/components/tradingitem.ts +61 -0
  320. package/src/models/components/tradingitemfilter.ts +79 -0
  321. package/src/models/components/tradingitemsearchitemsrequestbody.ts +82 -0
  322. package/src/models/components/tradingitemsearchitemsresponsebody.ts +45 -0
  323. package/src/models/components/v1accountqueueinventoryrefreshrequestbody.ts +38 -0
  324. package/src/models/components/v1appqueueupdaterequestbody.ts +36 -0
  325. package/src/models/components/v1badgesearchbadgesrequestbody.ts +86 -0
  326. package/src/models/components/v1badgesearchbadgesresponsebody.ts +4 -6
  327. package/src/models/components/v1groupqueueupdaterequestbody.ts +36 -0
  328. package/src/models/operations/accountqueueinventoryrefresh.ts +38 -0
  329. package/src/models/operations/accountsearchaccounts.ts +92 -0
  330. package/src/models/operations/appqueueupdate.ts +37 -0
  331. package/src/models/operations/appsearch.ts +86 -0
  332. package/src/models/operations/badgepricingsearch.ts +90 -0
  333. package/src/models/operations/badgesearchbadges.ts +6 -4
  334. package/src/models/operations/groupqueueupdate.ts +37 -0
  335. package/src/models/operations/groupsearch.ts +86 -0
  336. package/src/models/operations/index.ts +10 -1
  337. package/src/models/operations/{getbucketleaders.ts → leaderboardgetbucketleaders.ts} +8 -7
  338. package/src/models/operations/locationsearch.ts +84 -0
  339. package/src/models/operations/tradingitemsearchitems.ts +93 -0
  340. package/src/sdk/account.ts +30 -0
  341. package/src/sdk/app.ts +40 -0
  342. package/src/sdk/badgepricing.ts +24 -0
  343. package/src/sdk/group.ts +40 -0
  344. package/src/sdk/leaderboard.ts +1 -1
  345. package/src/sdk/location.ts +15 -0
  346. package/src/sdk/sdk.ts +24 -0
  347. package/src/sdk/tradingitem.ts +24 -0
  348. package/src/types/async.ts +8 -7
  349. package/types/async.d.ts.map +1 -1
  350. package/types/async.js +8 -7
  351. package/types/async.js.map +1 -1
  352. package/models/components/v1searchrequest.d.ts +0 -38
  353. package/models/components/v1searchrequest.d.ts.map +0 -1
  354. package/models/components/v1searchrequest.js.map +0 -1
  355. package/models/components/vectors.d.ts +0 -10
  356. package/models/components/vectors.d.ts.map +0 -1
  357. package/models/components/vectors.js.map +0 -1
  358. package/models/operations/getbucketleaders.d.ts +0 -15
  359. package/models/operations/getbucketleaders.d.ts.map +0 -1
  360. package/models/operations/getbucketleaders.js.map +0 -1
  361. package/src/models/components/v1searchrequest.ts +0 -62
  362. package/src/models/components/vectors.ts +0 -28
@@ -0,0 +1,86 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import * as components from "../components/index.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ export type GroupSearchRequest = {
13
+ xForwardedFor?: string | undefined;
14
+ userAgent?: string | undefined;
15
+ xVisitorId?: string | undefined;
16
+ groupSearchRequestBody: components.GroupSearchRequestBody;
17
+ };
18
+
19
+ export type GroupSearchResponse = {
20
+ httpMeta: components.HTTPMetadata;
21
+ /**
22
+ * OK
23
+ */
24
+ groupSearchResponseBody?: components.GroupSearchResponseBody | undefined;
25
+ };
26
+
27
+ /** @internal */
28
+ export type GroupSearchRequest$Outbound = {
29
+ "X-Forwarded-For"?: string | undefined;
30
+ "User-Agent"?: string | undefined;
31
+ "X-Visitor-Id"?: string | undefined;
32
+ GroupSearchRequestBody: components.GroupSearchRequestBody$Outbound;
33
+ };
34
+
35
+ /** @internal */
36
+ export const GroupSearchRequest$outboundSchema: z.ZodType<
37
+ GroupSearchRequest$Outbound,
38
+ z.ZodTypeDef,
39
+ GroupSearchRequest
40
+ > = z.object({
41
+ xForwardedFor: z.string().optional(),
42
+ userAgent: z.string().optional(),
43
+ xVisitorId: z.string().optional(),
44
+ groupSearchRequestBody: components.GroupSearchRequestBody$outboundSchema,
45
+ }).transform((v) => {
46
+ return remap$(v, {
47
+ xForwardedFor: "X-Forwarded-For",
48
+ userAgent: "User-Agent",
49
+ xVisitorId: "X-Visitor-Id",
50
+ groupSearchRequestBody: "GroupSearchRequestBody",
51
+ });
52
+ });
53
+
54
+ export function groupSearchRequestToJSON(
55
+ groupSearchRequest: GroupSearchRequest,
56
+ ): string {
57
+ return JSON.stringify(
58
+ GroupSearchRequest$outboundSchema.parse(groupSearchRequest),
59
+ );
60
+ }
61
+
62
+ /** @internal */
63
+ export const GroupSearchResponse$inboundSchema: z.ZodType<
64
+ GroupSearchResponse,
65
+ z.ZodTypeDef,
66
+ unknown
67
+ > = z.object({
68
+ HttpMeta: components.HTTPMetadata$inboundSchema,
69
+ GroupSearchResponseBody: components.GroupSearchResponseBody$inboundSchema
70
+ .optional(),
71
+ }).transform((v) => {
72
+ return remap$(v, {
73
+ "HttpMeta": "httpMeta",
74
+ "GroupSearchResponseBody": "groupSearchResponseBody",
75
+ });
76
+ });
77
+
78
+ export function groupSearchResponseFromJSON(
79
+ jsonString: string,
80
+ ): SafeParseResult<GroupSearchResponse, SDKValidationError> {
81
+ return safeParse(
82
+ jsonString,
83
+ (x) => GroupSearchResponse$inboundSchema.parse(JSON.parse(x)),
84
+ `Failed to parse 'GroupSearchResponse' from JSON`,
85
+ );
86
+ }
@@ -29,10 +29,12 @@ export * from "./accountlistownedbadges.js";
29
29
  export * from "./accountlistownedgroups.js";
30
30
  export * from "./accountlogin.js";
31
31
  export * from "./accountlogout.js";
32
+ export * from "./accountqueueinventoryrefresh.js";
32
33
  export * from "./accountqueueupdate.js";
33
34
  export * from "./accountreconnectconnection.js";
34
35
  export * from "./accountrefreshinventory.js";
35
36
  export * from "./accountrefreshsession.js";
37
+ export * from "./accountsearchaccounts.js";
36
38
  export * from "./accountsendemailverification.js";
37
39
  export * from "./accountsubscribe.js";
38
40
  export * from "./accountsubscribeemail.js";
@@ -66,7 +68,10 @@ export * from "./analyticsgetmypercentiles.js";
66
68
  export * from "./analyticsgettrend.js";
67
69
  export * from "./analyticslistmetrics.js";
68
70
  export * from "./applistbadges.js";
71
+ export * from "./appqueueupdate.js";
72
+ export * from "./appsearch.js";
69
73
  export * from "./badgelisttags.js";
74
+ export * from "./badgepricingsearch.js";
70
75
  export * from "./badgepricingsubscribe.js";
71
76
  export * from "./badgesearchbadges.js";
72
77
  export * from "./badgesuggesttags.js";
@@ -86,12 +91,14 @@ export * from "./comparebadges.js";
86
91
  export * from "./donationsclaim.js";
87
92
  export * from "./donationsgetaddresses.js";
88
93
  export * from "./donationslistsupportedcurrencies.js";
89
- export * from "./getbucketleaders.js";
90
94
  export * from "./getchanges.js";
91
95
  export * from "./getviewstats.js";
96
+ export * from "./groupqueueupdate.js";
97
+ export * from "./groupsearch.js";
92
98
  export * from "./itemfindowners.js";
93
99
  export * from "./leaderboardgetaccountleaderboard.js";
94
100
  export * from "./leaderboardgetaccountsmeta.js";
101
+ export * from "./leaderboardgetbucketleaders.js";
95
102
  export * from "./leaderboardgetgroupleaderboard.js";
96
103
  export * from "./leaderboardgetgroupsmeta.js";
97
104
  export * from "./leaderboardgetlowestranks.js";
@@ -101,6 +108,7 @@ export * from "./list.js";
101
108
  export * from "./listaccountfeed.js";
102
109
  export * from "./listglobalfeed.js";
103
110
  export * from "./locationgetlocations.js";
111
+ export * from "./locationsearch.js";
104
112
  export * from "./maintenancelist.js";
105
113
  export * from "./searchgettrending.js";
106
114
  export * from "./sitesubscribe.js";
@@ -109,3 +117,4 @@ export * from "./statsgetstats.js";
109
117
  export * from "./statssubscribe.js";
110
118
  export * from "./streamglobalfeed.js";
111
119
  export * from "./trackevent.js";
120
+ export * from "./tradingitemsearchitems.js";
@@ -9,7 +9,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import * as components from "../components/index.js";
10
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
11
 
12
- export type GetBucketLeadersResponse = {
12
+ export type LeaderboardGetBucketLeadersResponse = {
13
13
  httpMeta: components.HTTPMetadata;
14
14
  /**
15
15
  * OK
@@ -18,8 +18,8 @@ export type GetBucketLeadersResponse = {
18
18
  };
19
19
 
20
20
  /** @internal */
21
- export const GetBucketLeadersResponse$inboundSchema: z.ZodType<
22
- GetBucketLeadersResponse,
21
+ export const LeaderboardGetBucketLeadersResponse$inboundSchema: z.ZodType<
22
+ LeaderboardGetBucketLeadersResponse,
23
23
  z.ZodTypeDef,
24
24
  unknown
25
25
  > = z.object({
@@ -33,12 +33,13 @@ export const GetBucketLeadersResponse$inboundSchema: z.ZodType<
33
33
  });
34
34
  });
35
35
 
36
- export function getBucketLeadersResponseFromJSON(
36
+ export function leaderboardGetBucketLeadersResponseFromJSON(
37
37
  jsonString: string,
38
- ): SafeParseResult<GetBucketLeadersResponse, SDKValidationError> {
38
+ ): SafeParseResult<LeaderboardGetBucketLeadersResponse, SDKValidationError> {
39
39
  return safeParse(
40
40
  jsonString,
41
- (x) => GetBucketLeadersResponse$inboundSchema.parse(JSON.parse(x)),
42
- `Failed to parse 'GetBucketLeadersResponse' from JSON`,
41
+ (x) =>
42
+ LeaderboardGetBucketLeadersResponse$inboundSchema.parse(JSON.parse(x)),
43
+ `Failed to parse 'LeaderboardGetBucketLeadersResponse' from JSON`,
43
44
  );
44
45
  }
@@ -0,0 +1,84 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import * as components from "../components/index.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ export type LocationSearchRequest = {
13
+ xForwardedFor?: string | undefined;
14
+ locationSearchLocationsRequestBody:
15
+ components.LocationSearchLocationsRequestBody;
16
+ };
17
+
18
+ export type LocationSearchResponse = {
19
+ httpMeta: components.HTTPMetadata;
20
+ /**
21
+ * OK
22
+ */
23
+ locationSearchLocationsResponseBody?:
24
+ | components.LocationSearchLocationsResponseBody
25
+ | undefined;
26
+ };
27
+
28
+ /** @internal */
29
+ export type LocationSearchRequest$Outbound = {
30
+ "X-Forwarded-For"?: string | undefined;
31
+ LocationSearchLocationsRequestBody:
32
+ components.LocationSearchLocationsRequestBody$Outbound;
33
+ };
34
+
35
+ /** @internal */
36
+ export const LocationSearchRequest$outboundSchema: z.ZodType<
37
+ LocationSearchRequest$Outbound,
38
+ z.ZodTypeDef,
39
+ LocationSearchRequest
40
+ > = z.object({
41
+ xForwardedFor: z.string().optional(),
42
+ locationSearchLocationsRequestBody:
43
+ components.LocationSearchLocationsRequestBody$outboundSchema,
44
+ }).transform((v) => {
45
+ return remap$(v, {
46
+ xForwardedFor: "X-Forwarded-For",
47
+ locationSearchLocationsRequestBody: "LocationSearchLocationsRequestBody",
48
+ });
49
+ });
50
+
51
+ export function locationSearchRequestToJSON(
52
+ locationSearchRequest: LocationSearchRequest,
53
+ ): string {
54
+ return JSON.stringify(
55
+ LocationSearchRequest$outboundSchema.parse(locationSearchRequest),
56
+ );
57
+ }
58
+
59
+ /** @internal */
60
+ export const LocationSearchResponse$inboundSchema: z.ZodType<
61
+ LocationSearchResponse,
62
+ z.ZodTypeDef,
63
+ unknown
64
+ > = z.object({
65
+ HttpMeta: components.HTTPMetadata$inboundSchema,
66
+ LocationSearchLocationsResponseBody: components
67
+ .LocationSearchLocationsResponseBody$inboundSchema.optional(),
68
+ }).transform((v) => {
69
+ return remap$(v, {
70
+ "HttpMeta": "httpMeta",
71
+ "LocationSearchLocationsResponseBody":
72
+ "locationSearchLocationsResponseBody",
73
+ });
74
+ });
75
+
76
+ export function locationSearchResponseFromJSON(
77
+ jsonString: string,
78
+ ): SafeParseResult<LocationSearchResponse, SDKValidationError> {
79
+ return safeParse(
80
+ jsonString,
81
+ (x) => LocationSearchResponse$inboundSchema.parse(JSON.parse(x)),
82
+ `Failed to parse 'LocationSearchResponse' from JSON`,
83
+ );
84
+ }
@@ -0,0 +1,93 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import * as components from "../components/index.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ export type TradingItemSearchItemsRequest = {
13
+ xForwardedFor?: string | undefined;
14
+ userAgent?: string | undefined;
15
+ xVisitorId?: string | undefined;
16
+ tradingItemSearchItemsRequestBody:
17
+ components.TradingItemSearchItemsRequestBody;
18
+ };
19
+
20
+ export type TradingItemSearchItemsResponse = {
21
+ httpMeta: components.HTTPMetadata;
22
+ /**
23
+ * OK
24
+ */
25
+ tradingItemSearchItemsResponseBody?:
26
+ | components.TradingItemSearchItemsResponseBody
27
+ | undefined;
28
+ };
29
+
30
+ /** @internal */
31
+ export type TradingItemSearchItemsRequest$Outbound = {
32
+ "X-Forwarded-For"?: string | undefined;
33
+ "User-Agent"?: string | undefined;
34
+ "X-Visitor-Id"?: string | undefined;
35
+ TradingItemSearchItemsRequestBody:
36
+ components.TradingItemSearchItemsRequestBody$Outbound;
37
+ };
38
+
39
+ /** @internal */
40
+ export const TradingItemSearchItemsRequest$outboundSchema: z.ZodType<
41
+ TradingItemSearchItemsRequest$Outbound,
42
+ z.ZodTypeDef,
43
+ TradingItemSearchItemsRequest
44
+ > = z.object({
45
+ xForwardedFor: z.string().optional(),
46
+ userAgent: z.string().optional(),
47
+ xVisitorId: z.string().optional(),
48
+ tradingItemSearchItemsRequestBody:
49
+ components.TradingItemSearchItemsRequestBody$outboundSchema,
50
+ }).transform((v) => {
51
+ return remap$(v, {
52
+ xForwardedFor: "X-Forwarded-For",
53
+ userAgent: "User-Agent",
54
+ xVisitorId: "X-Visitor-Id",
55
+ tradingItemSearchItemsRequestBody: "TradingItemSearchItemsRequestBody",
56
+ });
57
+ });
58
+
59
+ export function tradingItemSearchItemsRequestToJSON(
60
+ tradingItemSearchItemsRequest: TradingItemSearchItemsRequest,
61
+ ): string {
62
+ return JSON.stringify(
63
+ TradingItemSearchItemsRequest$outboundSchema.parse(
64
+ tradingItemSearchItemsRequest,
65
+ ),
66
+ );
67
+ }
68
+
69
+ /** @internal */
70
+ export const TradingItemSearchItemsResponse$inboundSchema: z.ZodType<
71
+ TradingItemSearchItemsResponse,
72
+ z.ZodTypeDef,
73
+ unknown
74
+ > = z.object({
75
+ HttpMeta: components.HTTPMetadata$inboundSchema,
76
+ TradingItemSearchItemsResponseBody: components
77
+ .TradingItemSearchItemsResponseBody$inboundSchema.optional(),
78
+ }).transform((v) => {
79
+ return remap$(v, {
80
+ "HttpMeta": "httpMeta",
81
+ "TradingItemSearchItemsResponseBody": "tradingItemSearchItemsResponseBody",
82
+ });
83
+ });
84
+
85
+ export function tradingItemSearchItemsResponseFromJSON(
86
+ jsonString: string,
87
+ ): SafeParseResult<TradingItemSearchItemsResponse, SDKValidationError> {
88
+ return safeParse(
89
+ jsonString,
90
+ (x) => TradingItemSearchItemsResponse$inboundSchema.parse(JSON.parse(x)),
91
+ `Failed to parse 'TradingItemSearchItemsResponse' from JSON`,
92
+ );
93
+ }
@@ -31,10 +31,12 @@ import { accountListLeaderboardHistory } from "../funcs/accountListLeaderboardHi
31
31
  import { accountListOwnedBadges } from "../funcs/accountListOwnedBadges.js";
32
32
  import { accountLogin } from "../funcs/accountLogin.js";
33
33
  import { accountLogout } from "../funcs/accountLogout.js";
34
+ import { accountQueueInventoryRefresh } from "../funcs/accountQueueInventoryRefresh.js";
34
35
  import { accountQueueUpdate } from "../funcs/accountQueueUpdate.js";
35
36
  import { accountReconnectConnection } from "../funcs/accountReconnectConnection.js";
36
37
  import { accountRefreshInventory } from "../funcs/accountRefreshInventory.js";
37
38
  import { accountRefreshSession } from "../funcs/accountRefreshSession.js";
39
+ import { accountSearch } from "../funcs/accountSearch.js";
38
40
  import { accountSendEmailVerification } from "../funcs/accountSendEmailVerification.js";
39
41
  import { accountSubscribe } from "../funcs/accountSubscribe.js";
40
42
  import { accountSubscribeEmail } from "../funcs/accountSubscribeEmail.js";
@@ -448,6 +450,20 @@ export class Account extends ClientSDK {
448
450
  ));
449
451
  }
450
452
 
453
+ /**
454
+ * Queue inventory refresh
455
+ */
456
+ async queueInventoryRefresh(
457
+ request: components.V1AccountQueueInventoryRefreshRequestBody,
458
+ options?: RequestOptions,
459
+ ): Promise<operations.AccountQueueInventoryRefreshResponse> {
460
+ return unwrapAsync(accountQueueInventoryRefresh(
461
+ this,
462
+ request,
463
+ options,
464
+ ));
465
+ }
466
+
451
467
  /**
452
468
  * Queue account update
453
469
  */
@@ -505,6 +521,20 @@ export class Account extends ClientSDK {
505
521
  ));
506
522
  }
507
523
 
524
+ /**
525
+ * Search accounts
526
+ */
527
+ async search(
528
+ request: operations.AccountSearchAccountsRequest,
529
+ options?: RequestOptions,
530
+ ): Promise<operations.AccountSearchAccountsResponse> {
531
+ return unwrapAsync(accountSearch(
532
+ this,
533
+ request,
534
+ options,
535
+ ));
536
+ }
537
+
508
538
  /**
509
539
  * Send email verification
510
540
  */
package/src/sdk/app.ts ADDED
@@ -0,0 +1,40 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { appQueueUpdate } from "../funcs/appQueueUpdate.js";
6
+ import { appSearch } from "../funcs/appSearch.js";
7
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
8
+ import * as components from "../models/components/index.js";
9
+ import * as operations from "../models/operations/index.js";
10
+ import { unwrapAsync } from "../types/fp.js";
11
+
12
+ export class App extends ClientSDK {
13
+ /**
14
+ * Queue app update
15
+ */
16
+ async queueUpdate(
17
+ request: components.V1AppQueueUpdateRequestBody,
18
+ options?: RequestOptions,
19
+ ): Promise<operations.AppQueueUpdateResponse> {
20
+ return unwrapAsync(appQueueUpdate(
21
+ this,
22
+ request,
23
+ options,
24
+ ));
25
+ }
26
+
27
+ /**
28
+ * Search apps
29
+ */
30
+ async search(
31
+ request: operations.AppSearchRequest,
32
+ options?: RequestOptions,
33
+ ): Promise<operations.AppSearchResponse> {
34
+ return unwrapAsync(appSearch(
35
+ this,
36
+ request,
37
+ options,
38
+ ));
39
+ }
40
+ }
@@ -0,0 +1,24 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { badgePricingSearch } from "../funcs/badgePricingSearch.js";
6
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
7
+ import * as operations from "../models/operations/index.js";
8
+ import { unwrapAsync } from "../types/fp.js";
9
+
10
+ export class BadgePricing extends ClientSDK {
11
+ /**
12
+ * Search the badge-pricing catalog
13
+ */
14
+ async search(
15
+ request: operations.BadgePricingSearchRequest,
16
+ options?: RequestOptions,
17
+ ): Promise<operations.BadgePricingSearchResponse> {
18
+ return unwrapAsync(badgePricingSearch(
19
+ this,
20
+ request,
21
+ options,
22
+ ));
23
+ }
24
+ }
@@ -0,0 +1,40 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { groupQueueUpdate } from "../funcs/groupQueueUpdate.js";
6
+ import { groupSearch } from "../funcs/groupSearch.js";
7
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
8
+ import * as components from "../models/components/index.js";
9
+ import * as operations from "../models/operations/index.js";
10
+ import { unwrapAsync } from "../types/fp.js";
11
+
12
+ export class Group extends ClientSDK {
13
+ /**
14
+ * Queue group update
15
+ */
16
+ async queueUpdate(
17
+ request: components.V1GroupQueueUpdateRequestBody,
18
+ options?: RequestOptions,
19
+ ): Promise<operations.GroupQueueUpdateResponse> {
20
+ return unwrapAsync(groupQueueUpdate(
21
+ this,
22
+ request,
23
+ options,
24
+ ));
25
+ }
26
+
27
+ /**
28
+ * Search groups
29
+ */
30
+ async search(
31
+ request: operations.GroupSearchRequest,
32
+ options?: RequestOptions,
33
+ ): Promise<operations.GroupSearchResponse> {
34
+ return unwrapAsync(groupSearch(
35
+ this,
36
+ request,
37
+ options,
38
+ ));
39
+ }
40
+ }
@@ -50,7 +50,7 @@ export class Leaderboard extends ClientSDK {
50
50
  async getBucketLeaders(
51
51
  request: components.V1LeaderboardGetBucketLeadersRequestBody,
52
52
  options?: RequestOptions,
53
- ): Promise<operations.GetBucketLeadersResponse> {
53
+ ): Promise<operations.LeaderboardGetBucketLeadersResponse> {
54
54
  return unwrapAsync(leaderboardGetBucketLeaders(
55
55
  this,
56
56
  request,
@@ -3,6 +3,7 @@
3
3
  */
4
4
 
5
5
  import { locationGet } from "../funcs/locationGet.js";
6
+ import { locationSearch } from "../funcs/locationSearch.js";
6
7
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
7
8
  import * as operations from "../models/operations/index.js";
8
9
  import { unwrapAsync } from "../types/fp.js";
@@ -19,4 +20,18 @@ export class Location extends ClientSDK {
19
20
  options,
20
21
  ));
21
22
  }
23
+
24
+ /**
25
+ * Search locations (typeahead)
26
+ */
27
+ async search(
28
+ request: operations.LocationSearchRequest,
29
+ options?: RequestOptions,
30
+ ): Promise<operations.LocationSearchResponse> {
31
+ return unwrapAsync(locationSearch(
32
+ this,
33
+ request,
34
+ options,
35
+ ));
36
+ }
22
37
  }
package/src/sdk/sdk.ts CHANGED
@@ -7,11 +7,14 @@ import { Account } from "./account.js";
7
7
  import { Activity } from "./activity.js";
8
8
  import { Admin } from "./admin.js";
9
9
  import { Analytics } from "./analytics.js";
10
+ import { App } from "./app.js";
10
11
  import { Apps } from "./apps.js";
11
12
  import { Badge } from "./badge.js";
13
+ import { BadgePricing } from "./badgepricing.js";
12
14
  import { Badges } from "./badges.js";
13
15
  import { Cms } from "./cms.js";
14
16
  import { Donations } from "./donations.js";
17
+ import { Group } from "./group.js";
15
18
  import { Item } from "./item.js";
16
19
  import { Leaderboard } from "./leaderboard.js";
17
20
  import { Leaderboards } from "./leaderboards.js";
@@ -21,6 +24,7 @@ import { Search } from "./search.js";
21
24
  import { Site } from "./site.js";
22
25
  import { Staff } from "./staff.js";
23
26
  import { Stats } from "./stats.js";
27
+ import { TradingItem } from "./tradingitem.js";
24
28
 
25
29
  export class SteamSets extends ClientSDK {
26
30
  private _account?: Account;
@@ -48,6 +52,11 @@ export class SteamSets extends ClientSDK {
48
52
  return (this._apps ??= new Apps(this._options));
49
53
  }
50
54
 
55
+ private _app?: App;
56
+ get app(): App {
57
+ return (this._app ??= new App(this._options));
58
+ }
59
+
51
60
  private _badges?: Badges;
52
61
  get badges(): Badges {
53
62
  return (this._badges ??= new Badges(this._options));
@@ -58,6 +67,11 @@ export class SteamSets extends ClientSDK {
58
67
  return (this._badge ??= new Badge(this._options));
59
68
  }
60
69
 
70
+ private _badgePricing?: BadgePricing;
71
+ get badgePricing(): BadgePricing {
72
+ return (this._badgePricing ??= new BadgePricing(this._options));
73
+ }
74
+
61
75
  private _cms?: Cms;
62
76
  get cms(): Cms {
63
77
  return (this._cms ??= new Cms(this._options));
@@ -68,6 +82,11 @@ export class SteamSets extends ClientSDK {
68
82
  return (this._donations ??= new Donations(this._options));
69
83
  }
70
84
 
85
+ private _group?: Group;
86
+ get group(): Group {
87
+ return (this._group ??= new Group(this._options));
88
+ }
89
+
71
90
  private _item?: Item;
72
91
  get item(): Item {
73
92
  return (this._item ??= new Item(this._options));
@@ -112,4 +131,9 @@ export class SteamSets extends ClientSDK {
112
131
  get stats(): Stats {
113
132
  return (this._stats ??= new Stats(this._options));
114
133
  }
134
+
135
+ private _tradingItem?: TradingItem;
136
+ get tradingItem(): TradingItem {
137
+ return (this._tradingItem ??= new TradingItem(this._options));
138
+ }
115
139
  }
@@ -0,0 +1,24 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { tradingItemSearch } from "../funcs/tradingItemSearch.js";
6
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
7
+ import * as operations from "../models/operations/index.js";
8
+ import { unwrapAsync } from "../types/fp.js";
9
+
10
+ export class TradingItem extends ClientSDK {
11
+ /**
12
+ * Search trading items
13
+ */
14
+ async search(
15
+ request: operations.TradingItemSearchItemsRequest,
16
+ options?: RequestOptions,
17
+ ): Promise<operations.TradingItemSearchItemsResponse> {
18
+ return unwrapAsync(tradingItemSearch(
19
+ this,
20
+ request,
21
+ options,
22
+ ));
23
+ }
24
+ }
@@ -21,16 +21,17 @@ export type APICall =
21
21
 
22
22
  export class APIPromise<T> implements Promise<T> {
23
23
  readonly #promise: Promise<[T, APICall]>;
24
- readonly #unwrapped: Promise<T>;
24
+ #unwrapped: Promise<T> | null;
25
25
 
26
26
  readonly [Symbol.toStringTag] = "APIPromise";
27
27
 
28
28
  constructor(p: [T, APICall] | Promise<[T, APICall]>) {
29
29
  this.#promise = p instanceof Promise ? p : Promise.resolve(p);
30
- this.#unwrapped =
31
- p instanceof Promise
32
- ? this.#promise.then(([value]) => value)
33
- : Promise.resolve(p[0]);
30
+ this.#unwrapped = p instanceof Promise ? null : Promise.resolve(p[0]);
31
+ }
32
+
33
+ #getUnwrapped(): Promise<T> {
34
+ return (this.#unwrapped ??= this.#promise.then(([value]) => value));
34
35
  }
35
36
 
36
37
  then<TResult1 = T, TResult2 = never>(
@@ -55,11 +56,11 @@ export class APIPromise<T> implements Promise<T> {
55
56
  | null
56
57
  | undefined,
57
58
  ): Promise<T | TResult> {
58
- return this.#unwrapped.catch(onrejected);
59
+ return this.#getUnwrapped().catch(onrejected);
59
60
  }
60
61
 
61
62
  finally(onfinally?: (() => void) | null | undefined): Promise<T> {
62
- return this.#unwrapped.finally(onfinally);
63
+ return this.#getUnwrapped().finally(onfinally);
63
64
  }
64
65
 
65
66
  $inspect(): Promise<[T, APICall]> {