kalshi-typescript 2.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 (626) hide show
  1. package/.openapi-generator/FILES +210 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +25 -0
  4. package/README.md +212 -0
  5. package/api/api-keys-api.ts +354 -0
  6. package/api/communications-api.ts +863 -0
  7. package/api/events-api.ts +330 -0
  8. package/api/exchange-api.ts +315 -0
  9. package/api/markets-api.ts +554 -0
  10. package/api/milestones-api.ts +216 -0
  11. package/api/multivariate-collections-api.ts +293 -0
  12. package/api/portfolio-api.ts +1646 -0
  13. package/api/series-api.ts +208 -0
  14. package/api/structured-targets-api.ts +216 -0
  15. package/api.ts +27 -0
  16. package/base.ts +62 -0
  17. package/common.ts +98 -0
  18. package/configuration.ts +94 -0
  19. package/dist/api/api-keys-api.d.ts +163 -0
  20. package/dist/api/api-keys-api.js +333 -0
  21. package/dist/api/communications-api.d.ts +388 -0
  22. package/dist/api/communications-api.js +803 -0
  23. package/dist/api/events-api.d.ts +157 -0
  24. package/dist/api/events-api.js +312 -0
  25. package/dist/api/exchange-api.d.ts +150 -0
  26. package/dist/api/exchange-api.js +301 -0
  27. package/dist/api/markets-api.d.ts +263 -0
  28. package/dist/api/markets-api.js +515 -0
  29. package/dist/api/milestones-api.d.ts +104 -0
  30. package/dist/api/milestones-api.js +209 -0
  31. package/dist/api/multivariate-collections-api.d.ts +138 -0
  32. package/dist/api/multivariate-collections-api.js +278 -0
  33. package/dist/api/portfolio-api.d.ts +742 -0
  34. package/dist/api/portfolio-api.js +1498 -0
  35. package/dist/api/series-api.d.ts +100 -0
  36. package/dist/api/series-api.js +202 -0
  37. package/dist/api/structured-targets-api.d.ts +104 -0
  38. package/dist/api/structured-targets-api.js +209 -0
  39. package/dist/api.d.ts +21 -0
  40. package/dist/api.js +39 -0
  41. package/dist/base.d.ts +42 -0
  42. package/dist/base.js +46 -0
  43. package/dist/common.d.ts +29 -0
  44. package/dist/common.js +109 -0
  45. package/dist/configuration.d.ts +75 -0
  46. package/dist/configuration.js +40 -0
  47. package/dist/esm/api/api-keys-api.d.ts +163 -0
  48. package/dist/esm/api/api-keys-api.js +326 -0
  49. package/dist/esm/api/communications-api.d.ts +388 -0
  50. package/dist/esm/api/communications-api.js +796 -0
  51. package/dist/esm/api/events-api.d.ts +157 -0
  52. package/dist/esm/api/events-api.js +305 -0
  53. package/dist/esm/api/exchange-api.d.ts +150 -0
  54. package/dist/esm/api/exchange-api.js +294 -0
  55. package/dist/esm/api/markets-api.d.ts +263 -0
  56. package/dist/esm/api/markets-api.js +508 -0
  57. package/dist/esm/api/milestones-api.d.ts +104 -0
  58. package/dist/esm/api/milestones-api.js +202 -0
  59. package/dist/esm/api/multivariate-collections-api.d.ts +138 -0
  60. package/dist/esm/api/multivariate-collections-api.js +271 -0
  61. package/dist/esm/api/portfolio-api.d.ts +742 -0
  62. package/dist/esm/api/portfolio-api.js +1491 -0
  63. package/dist/esm/api/series-api.d.ts +100 -0
  64. package/dist/esm/api/series-api.js +195 -0
  65. package/dist/esm/api/structured-targets-api.d.ts +104 -0
  66. package/dist/esm/api/structured-targets-api.js +202 -0
  67. package/dist/esm/api.d.ts +21 -0
  68. package/dist/esm/api.js +23 -0
  69. package/dist/esm/base.d.ts +42 -0
  70. package/dist/esm/base.js +41 -0
  71. package/dist/esm/common.d.ts +29 -0
  72. package/dist/esm/common.js +97 -0
  73. package/dist/esm/configuration.d.ts +75 -0
  74. package/dist/esm/configuration.js +36 -0
  75. package/dist/esm/index.d.ts +14 -0
  76. package/dist/esm/index.js +16 -0
  77. package/dist/esm/models/accept-quote-request.d.ts +14 -0
  78. package/dist/esm/models/accept-quote-request.js +14 -0
  79. package/dist/esm/models/amend-order-request.d.ts +16 -0
  80. package/dist/esm/models/amend-order-request.js +14 -0
  81. package/dist/esm/models/amend-order-response.d.ts +15 -0
  82. package/dist/esm/models/amend-order-response.js +14 -0
  83. package/dist/esm/models/announcement.d.ts +28 -0
  84. package/dist/esm/models/announcement.js +22 -0
  85. package/dist/esm/models/api-key.d.ts +25 -0
  86. package/dist/esm/models/api-key.js +14 -0
  87. package/dist/esm/models/batch-cancel-orders-request.d.ts +14 -0
  88. package/dist/esm/models/batch-cancel-orders-request.js +14 -0
  89. package/dist/esm/models/batch-cancel-orders-response-responses-inner.d.ts +17 -0
  90. package/dist/esm/models/batch-cancel-orders-response-responses-inner.js +14 -0
  91. package/dist/esm/models/batch-cancel-orders-response.d.ts +15 -0
  92. package/dist/esm/models/batch-cancel-orders-response.js +14 -0
  93. package/dist/esm/models/batch-create-orders-request.d.ts +15 -0
  94. package/dist/esm/models/batch-create-orders-request.js +14 -0
  95. package/dist/esm/models/batch-create-orders-response-responses-inner.d.ts +17 -0
  96. package/dist/esm/models/batch-create-orders-response-responses-inner.js +14 -0
  97. package/dist/esm/models/batch-create-orders-response.d.ts +15 -0
  98. package/dist/esm/models/batch-create-orders-response.js +14 -0
  99. package/dist/esm/models/cancel-order-response.d.ts +16 -0
  100. package/dist/esm/models/cancel-order-response.js +14 -0
  101. package/dist/esm/models/candlestick.d.ts +20 -0
  102. package/dist/esm/models/candlestick.js +14 -0
  103. package/dist/esm/models/create-api-key-request.d.ts +21 -0
  104. package/dist/esm/models/create-api-key-request.js +14 -0
  105. package/dist/esm/models/create-api-key-response.d.ts +17 -0
  106. package/dist/esm/models/create-api-key-response.js +14 -0
  107. package/dist/esm/models/create-order-group-request.d.ts +14 -0
  108. package/dist/esm/models/create-order-group-request.js +14 -0
  109. package/dist/esm/models/create-order-group-response.d.ts +15 -0
  110. package/dist/esm/models/create-order-group-response.js +14 -0
  111. package/dist/esm/models/create-order-request.d.ts +39 -0
  112. package/dist/esm/models/create-order-request.js +25 -0
  113. package/dist/esm/models/create-order-response.d.ts +15 -0
  114. package/dist/esm/models/create-order-response.js +14 -0
  115. package/dist/esm/models/create-quote-request.d.ts +16 -0
  116. package/dist/esm/models/create-quote-request.js +14 -0
  117. package/dist/esm/models/create-quote-response.d.ts +15 -0
  118. package/dist/esm/models/create-quote-response.js +14 -0
  119. package/dist/esm/models/create-rfqrequest.d.ts +22 -0
  120. package/dist/esm/models/create-rfqrequest.js +17 -0
  121. package/dist/esm/models/create-rfqresponse.d.ts +15 -0
  122. package/dist/esm/models/create-rfqresponse.js +14 -0
  123. package/dist/esm/models/daily-schedule.d.ts +15 -0
  124. package/dist/esm/models/daily-schedule.js +14 -0
  125. package/dist/esm/models/decrease-order-request.d.ts +14 -0
  126. package/dist/esm/models/decrease-order-request.js +14 -0
  127. package/dist/esm/models/decrease-order-response.d.ts +15 -0
  128. package/dist/esm/models/decrease-order-response.js +14 -0
  129. package/dist/esm/models/error-response-error.d.ts +25 -0
  130. package/dist/esm/models/error-response-error.js +14 -0
  131. package/dist/esm/models/error-response.d.ts +15 -0
  132. package/dist/esm/models/error-response.js +14 -0
  133. package/dist/esm/models/event.d.ts +26 -0
  134. package/dist/esm/models/event.js +18 -0
  135. package/dist/esm/models/exchange-status.d.ts +15 -0
  136. package/dist/esm/models/exchange-status.js +14 -0
  137. package/dist/esm/models/fill.d.ts +32 -0
  138. package/dist/esm/models/fill.js +21 -0
  139. package/dist/esm/models/generate-api-key-request.d.ts +17 -0
  140. package/dist/esm/models/generate-api-key-request.js +14 -0
  141. package/dist/esm/models/generate-api-key-response.d.ts +21 -0
  142. package/dist/esm/models/generate-api-key-response.js +14 -0
  143. package/dist/esm/models/get-api-keys-response.d.ts +18 -0
  144. package/dist/esm/models/get-api-keys-response.js +14 -0
  145. package/dist/esm/models/get-balance-response.d.ts +17 -0
  146. package/dist/esm/models/get-balance-response.js +14 -0
  147. package/dist/esm/models/get-communications-idresponse.d.ts +17 -0
  148. package/dist/esm/models/get-communications-idresponse.js +14 -0
  149. package/dist/esm/models/get-event-metadata-response.d.ts +14 -0
  150. package/dist/esm/models/get-event-metadata-response.js +14 -0
  151. package/dist/esm/models/get-event-response.d.ts +17 -0
  152. package/dist/esm/models/get-event-response.js +14 -0
  153. package/dist/esm/models/get-events-response.d.ts +16 -0
  154. package/dist/esm/models/get-events-response.js +14 -0
  155. package/dist/esm/models/get-exchange-announcements-response.d.ts +15 -0
  156. package/dist/esm/models/get-exchange-announcements-response.js +14 -0
  157. package/dist/esm/models/get-exchange-schedule-response-schedule.d.ts +21 -0
  158. package/dist/esm/models/get-exchange-schedule-response-schedule.js +14 -0
  159. package/dist/esm/models/get-exchange-schedule-response.d.ts +15 -0
  160. package/dist/esm/models/get-exchange-schedule-response.js +14 -0
  161. package/dist/esm/models/get-fills-response.d.ts +16 -0
  162. package/dist/esm/models/get-fills-response.js +14 -0
  163. package/dist/esm/models/get-market-candlesticks-response.d.ts +15 -0
  164. package/dist/esm/models/get-market-candlesticks-response.js +14 -0
  165. package/dist/esm/models/get-market-orderbook-response-orderbook.d.ts +16 -0
  166. package/dist/esm/models/get-market-orderbook-response-orderbook.js +14 -0
  167. package/dist/esm/models/get-market-orderbook-response.d.ts +15 -0
  168. package/dist/esm/models/get-market-orderbook-response.js +14 -0
  169. package/dist/esm/models/get-market-response.d.ts +15 -0
  170. package/dist/esm/models/get-market-response.js +14 -0
  171. package/dist/esm/models/get-markets-response.d.ts +16 -0
  172. package/dist/esm/models/get-markets-response.js +14 -0
  173. package/dist/esm/models/get-milestone-response.d.ts +15 -0
  174. package/dist/esm/models/get-milestone-response.js +14 -0
  175. package/dist/esm/models/get-milestones-response.d.ts +15 -0
  176. package/dist/esm/models/get-milestones-response.js +14 -0
  177. package/dist/esm/models/get-multivariate-event-collection-response.d.ts +15 -0
  178. package/dist/esm/models/get-multivariate-event-collection-response.js +14 -0
  179. package/dist/esm/models/get-multivariate-event-collections-response.d.ts +15 -0
  180. package/dist/esm/models/get-multivariate-event-collections-response.js +14 -0
  181. package/dist/esm/models/get-order-groups-response.d.ts +16 -0
  182. package/dist/esm/models/get-order-groups-response.js +14 -0
  183. package/dist/esm/models/get-order-queue-position-response.d.ts +14 -0
  184. package/dist/esm/models/get-order-queue-position-response.js +14 -0
  185. package/dist/esm/models/get-order-response.d.ts +15 -0
  186. package/dist/esm/models/get-order-response.js +14 -0
  187. package/dist/esm/models/get-orders-response.d.ts +16 -0
  188. package/dist/esm/models/get-orders-response.js +14 -0
  189. package/dist/esm/models/get-positions-response.d.ts +16 -0
  190. package/dist/esm/models/get-positions-response.js +14 -0
  191. package/dist/esm/models/get-queue-positions-request.d.ts +14 -0
  192. package/dist/esm/models/get-queue-positions-request.js +14 -0
  193. package/dist/esm/models/get-queue-positions-response.d.ts +16 -0
  194. package/dist/esm/models/get-queue-positions-response.js +14 -0
  195. package/dist/esm/models/get-quote-response.d.ts +15 -0
  196. package/dist/esm/models/get-quote-response.js +14 -0
  197. package/dist/esm/models/get-quotes-response.d.ts +15 -0
  198. package/dist/esm/models/get-quotes-response.js +14 -0
  199. package/dist/esm/models/get-rfqresponse.d.ts +15 -0
  200. package/dist/esm/models/get-rfqresponse.js +14 -0
  201. package/dist/esm/models/get-rfqs-response.d.ts +15 -0
  202. package/dist/esm/models/get-rfqs-response.js +14 -0
  203. package/dist/esm/models/get-series-by-ticker-response.d.ts +15 -0
  204. package/dist/esm/models/get-series-by-ticker-response.js +14 -0
  205. package/dist/esm/models/get-series-response.d.ts +15 -0
  206. package/dist/esm/models/get-series-response.js +14 -0
  207. package/dist/esm/models/get-settlements-response.d.ts +16 -0
  208. package/dist/esm/models/get-settlements-response.js +14 -0
  209. package/dist/esm/models/get-structured-target-response.d.ts +15 -0
  210. package/dist/esm/models/get-structured-target-response.js +14 -0
  211. package/dist/esm/models/get-structured-targets-response.d.ts +15 -0
  212. package/dist/esm/models/get-structured-targets-response.js +14 -0
  213. package/dist/esm/models/get-total-resting-order-value-response.d.ts +14 -0
  214. package/dist/esm/models/get-total-resting-order-value-response.js +14 -0
  215. package/dist/esm/models/get-trades-response.d.ts +16 -0
  216. package/dist/esm/models/get-trades-response.js +14 -0
  217. package/dist/esm/models/get-user-data-timestamp-response.d.ts +14 -0
  218. package/dist/esm/models/get-user-data-timestamp-response.js +14 -0
  219. package/dist/esm/models/index.d.ts +88 -0
  220. package/dist/esm/models/index.js +88 -0
  221. package/dist/esm/models/lookup-bundle-request-bundle-inner.d.ts +15 -0
  222. package/dist/esm/models/lookup-bundle-request-bundle-inner.js +14 -0
  223. package/dist/esm/models/lookup-bundle-request.d.ts +15 -0
  224. package/dist/esm/models/lookup-bundle-request.js +14 -0
  225. package/dist/esm/models/lookup-bundle-response.d.ts +15 -0
  226. package/dist/esm/models/lookup-bundle-response.js +14 -0
  227. package/dist/esm/models/market.d.ts +49 -0
  228. package/dist/esm/models/market.js +25 -0
  229. package/dist/esm/models/milestone.d.ts +16 -0
  230. package/dist/esm/models/milestone.js +14 -0
  231. package/dist/esm/models/multivariate-event-collection-events-inner.d.ts +17 -0
  232. package/dist/esm/models/multivariate-event-collection-events-inner.js +14 -0
  233. package/dist/esm/models/multivariate-event-collection.d.ts +18 -0
  234. package/dist/esm/models/multivariate-event-collection.js +14 -0
  235. package/dist/esm/models/order-group.d.ts +17 -0
  236. package/dist/esm/models/order-group.js +14 -0
  237. package/dist/esm/models/order.d.ts +49 -0
  238. package/dist/esm/models/order.js +31 -0
  239. package/dist/esm/models/orderbook-level.d.ts +15 -0
  240. package/dist/esm/models/orderbook-level.js +14 -0
  241. package/dist/esm/models/position.d.ts +26 -0
  242. package/dist/esm/models/position.js +17 -0
  243. package/dist/esm/models/quote.d.ts +27 -0
  244. package/dist/esm/models/quote.js +17 -0
  245. package/dist/esm/models/rfq.d.ts +26 -0
  246. package/dist/esm/models/rfq.js +17 -0
  247. package/dist/esm/models/series.d.ts +20 -0
  248. package/dist/esm/models/series.js +14 -0
  249. package/dist/esm/models/settlement.d.ts +24 -0
  250. package/dist/esm/models/settlement.js +17 -0
  251. package/dist/esm/models/structured-target.d.ts +16 -0
  252. package/dist/esm/models/structured-target.js +14 -0
  253. package/dist/esm/models/trade.d.ts +24 -0
  254. package/dist/esm/models/trade.js +17 -0
  255. package/dist/index.d.ts +14 -0
  256. package/dist/index.js +32 -0
  257. package/dist/models/accept-quote-request.d.ts +14 -0
  258. package/dist/models/accept-quote-request.js +15 -0
  259. package/dist/models/amend-order-request.d.ts +16 -0
  260. package/dist/models/amend-order-request.js +15 -0
  261. package/dist/models/amend-order-response.d.ts +15 -0
  262. package/dist/models/amend-order-response.js +15 -0
  263. package/dist/models/announcement.d.ts +28 -0
  264. package/dist/models/announcement.js +25 -0
  265. package/dist/models/api-key.d.ts +25 -0
  266. package/dist/models/api-key.js +15 -0
  267. package/dist/models/batch-cancel-orders-request.d.ts +14 -0
  268. package/dist/models/batch-cancel-orders-request.js +15 -0
  269. package/dist/models/batch-cancel-orders-response-responses-inner.d.ts +17 -0
  270. package/dist/models/batch-cancel-orders-response-responses-inner.js +15 -0
  271. package/dist/models/batch-cancel-orders-response.d.ts +15 -0
  272. package/dist/models/batch-cancel-orders-response.js +15 -0
  273. package/dist/models/batch-create-orders-request.d.ts +15 -0
  274. package/dist/models/batch-create-orders-request.js +15 -0
  275. package/dist/models/batch-create-orders-response-responses-inner.d.ts +17 -0
  276. package/dist/models/batch-create-orders-response-responses-inner.js +15 -0
  277. package/dist/models/batch-create-orders-response.d.ts +15 -0
  278. package/dist/models/batch-create-orders-response.js +15 -0
  279. package/dist/models/cancel-order-response.d.ts +16 -0
  280. package/dist/models/cancel-order-response.js +15 -0
  281. package/dist/models/candlestick.d.ts +20 -0
  282. package/dist/models/candlestick.js +15 -0
  283. package/dist/models/create-api-key-request.d.ts +21 -0
  284. package/dist/models/create-api-key-request.js +15 -0
  285. package/dist/models/create-api-key-response.d.ts +17 -0
  286. package/dist/models/create-api-key-response.js +15 -0
  287. package/dist/models/create-order-group-request.d.ts +14 -0
  288. package/dist/models/create-order-group-request.js +15 -0
  289. package/dist/models/create-order-group-response.d.ts +15 -0
  290. package/dist/models/create-order-group-response.js +15 -0
  291. package/dist/models/create-order-request.d.ts +39 -0
  292. package/dist/models/create-order-request.js +28 -0
  293. package/dist/models/create-order-response.d.ts +15 -0
  294. package/dist/models/create-order-response.js +15 -0
  295. package/dist/models/create-quote-request.d.ts +16 -0
  296. package/dist/models/create-quote-request.js +15 -0
  297. package/dist/models/create-quote-response.d.ts +15 -0
  298. package/dist/models/create-quote-response.js +15 -0
  299. package/dist/models/create-rfqrequest.d.ts +22 -0
  300. package/dist/models/create-rfqrequest.js +20 -0
  301. package/dist/models/create-rfqresponse.d.ts +15 -0
  302. package/dist/models/create-rfqresponse.js +15 -0
  303. package/dist/models/daily-schedule.d.ts +15 -0
  304. package/dist/models/daily-schedule.js +15 -0
  305. package/dist/models/decrease-order-request.d.ts +14 -0
  306. package/dist/models/decrease-order-request.js +15 -0
  307. package/dist/models/decrease-order-response.d.ts +15 -0
  308. package/dist/models/decrease-order-response.js +15 -0
  309. package/dist/models/error-response-error.d.ts +25 -0
  310. package/dist/models/error-response-error.js +15 -0
  311. package/dist/models/error-response.d.ts +15 -0
  312. package/dist/models/error-response.js +15 -0
  313. package/dist/models/event.d.ts +26 -0
  314. package/dist/models/event.js +21 -0
  315. package/dist/models/exchange-status.d.ts +15 -0
  316. package/dist/models/exchange-status.js +15 -0
  317. package/dist/models/fill.d.ts +32 -0
  318. package/dist/models/fill.js +24 -0
  319. package/dist/models/generate-api-key-request.d.ts +17 -0
  320. package/dist/models/generate-api-key-request.js +15 -0
  321. package/dist/models/generate-api-key-response.d.ts +21 -0
  322. package/dist/models/generate-api-key-response.js +15 -0
  323. package/dist/models/get-api-keys-response.d.ts +18 -0
  324. package/dist/models/get-api-keys-response.js +15 -0
  325. package/dist/models/get-balance-response.d.ts +17 -0
  326. package/dist/models/get-balance-response.js +15 -0
  327. package/dist/models/get-communications-idresponse.d.ts +17 -0
  328. package/dist/models/get-communications-idresponse.js +15 -0
  329. package/dist/models/get-event-metadata-response.d.ts +14 -0
  330. package/dist/models/get-event-metadata-response.js +15 -0
  331. package/dist/models/get-event-response.d.ts +17 -0
  332. package/dist/models/get-event-response.js +15 -0
  333. package/dist/models/get-events-response.d.ts +16 -0
  334. package/dist/models/get-events-response.js +15 -0
  335. package/dist/models/get-exchange-announcements-response.d.ts +15 -0
  336. package/dist/models/get-exchange-announcements-response.js +15 -0
  337. package/dist/models/get-exchange-schedule-response-schedule.d.ts +21 -0
  338. package/dist/models/get-exchange-schedule-response-schedule.js +15 -0
  339. package/dist/models/get-exchange-schedule-response.d.ts +15 -0
  340. package/dist/models/get-exchange-schedule-response.js +15 -0
  341. package/dist/models/get-fills-response.d.ts +16 -0
  342. package/dist/models/get-fills-response.js +15 -0
  343. package/dist/models/get-market-candlesticks-response.d.ts +15 -0
  344. package/dist/models/get-market-candlesticks-response.js +15 -0
  345. package/dist/models/get-market-orderbook-response-orderbook.d.ts +16 -0
  346. package/dist/models/get-market-orderbook-response-orderbook.js +15 -0
  347. package/dist/models/get-market-orderbook-response.d.ts +15 -0
  348. package/dist/models/get-market-orderbook-response.js +15 -0
  349. package/dist/models/get-market-response.d.ts +15 -0
  350. package/dist/models/get-market-response.js +15 -0
  351. package/dist/models/get-markets-response.d.ts +16 -0
  352. package/dist/models/get-markets-response.js +15 -0
  353. package/dist/models/get-milestone-response.d.ts +15 -0
  354. package/dist/models/get-milestone-response.js +15 -0
  355. package/dist/models/get-milestones-response.d.ts +15 -0
  356. package/dist/models/get-milestones-response.js +15 -0
  357. package/dist/models/get-multivariate-event-collection-response.d.ts +15 -0
  358. package/dist/models/get-multivariate-event-collection-response.js +15 -0
  359. package/dist/models/get-multivariate-event-collections-response.d.ts +15 -0
  360. package/dist/models/get-multivariate-event-collections-response.js +15 -0
  361. package/dist/models/get-order-groups-response.d.ts +16 -0
  362. package/dist/models/get-order-groups-response.js +15 -0
  363. package/dist/models/get-order-queue-position-response.d.ts +14 -0
  364. package/dist/models/get-order-queue-position-response.js +15 -0
  365. package/dist/models/get-order-response.d.ts +15 -0
  366. package/dist/models/get-order-response.js +15 -0
  367. package/dist/models/get-orders-response.d.ts +16 -0
  368. package/dist/models/get-orders-response.js +15 -0
  369. package/dist/models/get-positions-response.d.ts +16 -0
  370. package/dist/models/get-positions-response.js +15 -0
  371. package/dist/models/get-queue-positions-request.d.ts +14 -0
  372. package/dist/models/get-queue-positions-request.js +15 -0
  373. package/dist/models/get-queue-positions-response.d.ts +16 -0
  374. package/dist/models/get-queue-positions-response.js +15 -0
  375. package/dist/models/get-quote-response.d.ts +15 -0
  376. package/dist/models/get-quote-response.js +15 -0
  377. package/dist/models/get-quotes-response.d.ts +15 -0
  378. package/dist/models/get-quotes-response.js +15 -0
  379. package/dist/models/get-rfqresponse.d.ts +15 -0
  380. package/dist/models/get-rfqresponse.js +15 -0
  381. package/dist/models/get-rfqs-response.d.ts +15 -0
  382. package/dist/models/get-rfqs-response.js +15 -0
  383. package/dist/models/get-series-by-ticker-response.d.ts +15 -0
  384. package/dist/models/get-series-by-ticker-response.js +15 -0
  385. package/dist/models/get-series-response.d.ts +15 -0
  386. package/dist/models/get-series-response.js +15 -0
  387. package/dist/models/get-settlements-response.d.ts +16 -0
  388. package/dist/models/get-settlements-response.js +15 -0
  389. package/dist/models/get-structured-target-response.d.ts +15 -0
  390. package/dist/models/get-structured-target-response.js +15 -0
  391. package/dist/models/get-structured-targets-response.d.ts +15 -0
  392. package/dist/models/get-structured-targets-response.js +15 -0
  393. package/dist/models/get-total-resting-order-value-response.d.ts +14 -0
  394. package/dist/models/get-total-resting-order-value-response.js +15 -0
  395. package/dist/models/get-trades-response.d.ts +16 -0
  396. package/dist/models/get-trades-response.js +15 -0
  397. package/dist/models/get-user-data-timestamp-response.d.ts +14 -0
  398. package/dist/models/get-user-data-timestamp-response.js +15 -0
  399. package/dist/models/index.d.ts +88 -0
  400. package/dist/models/index.js +104 -0
  401. package/dist/models/lookup-bundle-request-bundle-inner.d.ts +15 -0
  402. package/dist/models/lookup-bundle-request-bundle-inner.js +15 -0
  403. package/dist/models/lookup-bundle-request.d.ts +15 -0
  404. package/dist/models/lookup-bundle-request.js +15 -0
  405. package/dist/models/lookup-bundle-response.d.ts +15 -0
  406. package/dist/models/lookup-bundle-response.js +15 -0
  407. package/dist/models/market.d.ts +49 -0
  408. package/dist/models/market.js +28 -0
  409. package/dist/models/milestone.d.ts +16 -0
  410. package/dist/models/milestone.js +15 -0
  411. package/dist/models/multivariate-event-collection-events-inner.d.ts +17 -0
  412. package/dist/models/multivariate-event-collection-events-inner.js +15 -0
  413. package/dist/models/multivariate-event-collection.d.ts +18 -0
  414. package/dist/models/multivariate-event-collection.js +15 -0
  415. package/dist/models/order-group.d.ts +17 -0
  416. package/dist/models/order-group.js +15 -0
  417. package/dist/models/order.d.ts +49 -0
  418. package/dist/models/order.js +34 -0
  419. package/dist/models/orderbook-level.d.ts +15 -0
  420. package/dist/models/orderbook-level.js +15 -0
  421. package/dist/models/position.d.ts +26 -0
  422. package/dist/models/position.js +20 -0
  423. package/dist/models/quote.d.ts +27 -0
  424. package/dist/models/quote.js +20 -0
  425. package/dist/models/rfq.d.ts +26 -0
  426. package/dist/models/rfq.js +20 -0
  427. package/dist/models/series.d.ts +20 -0
  428. package/dist/models/series.js +15 -0
  429. package/dist/models/settlement.d.ts +24 -0
  430. package/dist/models/settlement.js +20 -0
  431. package/dist/models/structured-target.d.ts +16 -0
  432. package/dist/models/structured-target.js +15 -0
  433. package/dist/models/trade.d.ts +24 -0
  434. package/dist/models/trade.js +20 -0
  435. package/docs/AcceptQuoteRequest.md +20 -0
  436. package/docs/AmendOrderRequest.md +24 -0
  437. package/docs/AmendOrderResponse.md +20 -0
  438. package/docs/Announcement.md +26 -0
  439. package/docs/ApiKey.md +24 -0
  440. package/docs/ApiKeysApi.md +223 -0
  441. package/docs/BatchCancelOrdersRequest.md +20 -0
  442. package/docs/BatchCancelOrdersResponse.md +20 -0
  443. package/docs/BatchCancelOrdersResponseResponsesInner.md +24 -0
  444. package/docs/BatchCreateOrdersRequest.md +20 -0
  445. package/docs/BatchCreateOrdersResponse.md +20 -0
  446. package/docs/BatchCreateOrdersResponseResponsesInner.md +22 -0
  447. package/docs/CancelOrderResponse.md +22 -0
  448. package/docs/Candlestick.md +32 -0
  449. package/docs/CommunicationsApi.md +595 -0
  450. package/docs/CreateApiKeyRequest.md +22 -0
  451. package/docs/CreateApiKeyResponse.md +20 -0
  452. package/docs/CreateOrderGroupRequest.md +20 -0
  453. package/docs/CreateOrderGroupResponse.md +20 -0
  454. package/docs/CreateOrderRequest.md +40 -0
  455. package/docs/CreateOrderResponse.md +20 -0
  456. package/docs/CreateQuoteRequest.md +24 -0
  457. package/docs/CreateQuoteResponse.md +20 -0
  458. package/docs/CreateRFQRequest.md +26 -0
  459. package/docs/CreateRFQResponse.md +20 -0
  460. package/docs/DailySchedule.md +22 -0
  461. package/docs/DecreaseOrderRequest.md +20 -0
  462. package/docs/DecreaseOrderResponse.md +20 -0
  463. package/docs/ErrorResponse.md +20 -0
  464. package/docs/ErrorResponseError.md +24 -0
  465. package/docs/Event.md +30 -0
  466. package/docs/EventsApi.md +190 -0
  467. package/docs/ExchangeApi.md +192 -0
  468. package/docs/ExchangeStatus.md +22 -0
  469. package/docs/Fill.md +36 -0
  470. package/docs/GenerateApiKeyRequest.md +20 -0
  471. package/docs/GenerateApiKeyResponse.md +22 -0
  472. package/docs/GetApiKeysResponse.md +20 -0
  473. package/docs/GetBalanceResponse.md +20 -0
  474. package/docs/GetCommunicationsIDResponse.md +20 -0
  475. package/docs/GetEventMetadataResponse.md +20 -0
  476. package/docs/GetEventResponse.md +22 -0
  477. package/docs/GetEventsResponse.md +22 -0
  478. package/docs/GetExchangeAnnouncementsResponse.md +20 -0
  479. package/docs/GetExchangeScheduleResponse.md +20 -0
  480. package/docs/GetExchangeScheduleResponseSchedule.md +32 -0
  481. package/docs/GetFillsResponse.md +22 -0
  482. package/docs/GetMarketCandlesticksResponse.md +20 -0
  483. package/docs/GetMarketOrderbookResponse.md +20 -0
  484. package/docs/GetMarketOrderbookResponseOrderbook.md +22 -0
  485. package/docs/GetMarketResponse.md +20 -0
  486. package/docs/GetMarketsResponse.md +22 -0
  487. package/docs/GetMilestoneResponse.md +20 -0
  488. package/docs/GetMilestonesResponse.md +20 -0
  489. package/docs/GetMultivariateEventCollectionResponse.md +20 -0
  490. package/docs/GetMultivariateEventCollectionsResponse.md +20 -0
  491. package/docs/GetOrderGroupsResponse.md +22 -0
  492. package/docs/GetOrderQueuePositionResponse.md +20 -0
  493. package/docs/GetOrderResponse.md +20 -0
  494. package/docs/GetOrdersResponse.md +22 -0
  495. package/docs/GetPositionsResponse.md +22 -0
  496. package/docs/GetQueuePositionsRequest.md +20 -0
  497. package/docs/GetQueuePositionsResponse.md +20 -0
  498. package/docs/GetQuoteResponse.md +20 -0
  499. package/docs/GetQuotesResponse.md +20 -0
  500. package/docs/GetRFQResponse.md +20 -0
  501. package/docs/GetRFQsResponse.md +20 -0
  502. package/docs/GetSeriesByTickerResponse.md +20 -0
  503. package/docs/GetSeriesResponse.md +20 -0
  504. package/docs/GetSettlementsResponse.md +22 -0
  505. package/docs/GetStructuredTargetResponse.md +20 -0
  506. package/docs/GetStructuredTargetsResponse.md +20 -0
  507. package/docs/GetTotalRestingOrderValueResponse.md +20 -0
  508. package/docs/GetTradesResponse.md +22 -0
  509. package/docs/GetUserDataTimestampResponse.md +20 -0
  510. package/docs/LookupBundleRequest.md +20 -0
  511. package/docs/LookupBundleRequestBundleInner.md +22 -0
  512. package/docs/LookupBundleResponse.md +22 -0
  513. package/docs/Market.md +56 -0
  514. package/docs/MarketsApi.md +330 -0
  515. package/docs/Milestone.md +24 -0
  516. package/docs/MilestonesApi.md +119 -0
  517. package/docs/MultivariateCollectionsApi.md +176 -0
  518. package/docs/MultivariateEventCollection.md +26 -0
  519. package/docs/MultivariateEventCollectionEventsInner.md +26 -0
  520. package/docs/Order.md +46 -0
  521. package/docs/OrderGroup.md +26 -0
  522. package/docs/OrderbookLevel.md +22 -0
  523. package/docs/PortfolioApi.md +1109 -0
  524. package/docs/Position.md +34 -0
  525. package/docs/Quote.md +36 -0
  526. package/docs/RFQ.md +34 -0
  527. package/docs/Series.md +26 -0
  528. package/docs/SeriesApi.md +116 -0
  529. package/docs/Settlement.md +30 -0
  530. package/docs/StructuredTarget.md +24 -0
  531. package/docs/StructuredTargetsApi.md +119 -0
  532. package/docs/Trade.md +30 -0
  533. package/git_push.sh +57 -0
  534. package/index.ts +18 -0
  535. package/models/accept-quote-request.ts +20 -0
  536. package/models/amend-order-request.ts +22 -0
  537. package/models/amend-order-response.ts +23 -0
  538. package/models/announcement.ts +38 -0
  539. package/models/api-key.ts +31 -0
  540. package/models/batch-cancel-orders-request.ts +20 -0
  541. package/models/batch-cancel-orders-response-responses-inner.ts +25 -0
  542. package/models/batch-cancel-orders-response.ts +23 -0
  543. package/models/batch-create-orders-request.ts +23 -0
  544. package/models/batch-create-orders-response-responses-inner.ts +27 -0
  545. package/models/batch-create-orders-response.ts +23 -0
  546. package/models/cancel-order-response.ts +24 -0
  547. package/models/candlestick.ts +26 -0
  548. package/models/create-api-key-request.ts +27 -0
  549. package/models/create-api-key-response.ts +23 -0
  550. package/models/create-order-group-request.ts +20 -0
  551. package/models/create-order-group-response.ts +23 -0
  552. package/models/create-order-request.ts +50 -0
  553. package/models/create-order-response.ts +23 -0
  554. package/models/create-quote-request.ts +22 -0
  555. package/models/create-quote-response.ts +23 -0
  556. package/models/create-rfqrequest.ts +31 -0
  557. package/models/create-rfqresponse.ts +23 -0
  558. package/models/daily-schedule.ts +21 -0
  559. package/models/decrease-order-request.ts +20 -0
  560. package/models/decrease-order-response.ts +23 -0
  561. package/models/error-response-error.ts +31 -0
  562. package/models/error-response.ts +23 -0
  563. package/models/event.ts +37 -0
  564. package/models/exchange-status.ts +21 -0
  565. package/models/fill.ts +42 -0
  566. package/models/generate-api-key-request.ts +23 -0
  567. package/models/generate-api-key-response.ts +27 -0
  568. package/models/get-api-keys-response.ts +26 -0
  569. package/models/get-balance-response.ts +23 -0
  570. package/models/get-communications-idresponse.ts +23 -0
  571. package/models/get-event-metadata-response.ts +20 -0
  572. package/models/get-event-response.ts +27 -0
  573. package/models/get-events-response.ts +24 -0
  574. package/models/get-exchange-announcements-response.ts +23 -0
  575. package/models/get-exchange-schedule-response-schedule.ts +29 -0
  576. package/models/get-exchange-schedule-response.ts +23 -0
  577. package/models/get-fills-response.ts +24 -0
  578. package/models/get-market-candlesticks-response.ts +23 -0
  579. package/models/get-market-orderbook-response-orderbook.ts +24 -0
  580. package/models/get-market-orderbook-response.ts +23 -0
  581. package/models/get-market-response.ts +23 -0
  582. package/models/get-markets-response.ts +24 -0
  583. package/models/get-milestone-response.ts +23 -0
  584. package/models/get-milestones-response.ts +23 -0
  585. package/models/get-multivariate-event-collection-response.ts +23 -0
  586. package/models/get-multivariate-event-collections-response.ts +23 -0
  587. package/models/get-order-groups-response.ts +24 -0
  588. package/models/get-order-queue-position-response.ts +20 -0
  589. package/models/get-order-response.ts +23 -0
  590. package/models/get-orders-response.ts +24 -0
  591. package/models/get-positions-response.ts +24 -0
  592. package/models/get-queue-positions-request.ts +20 -0
  593. package/models/get-queue-positions-response.ts +20 -0
  594. package/models/get-quote-response.ts +23 -0
  595. package/models/get-quotes-response.ts +23 -0
  596. package/models/get-rfqresponse.ts +23 -0
  597. package/models/get-rfqs-response.ts +23 -0
  598. package/models/get-series-by-ticker-response.ts +23 -0
  599. package/models/get-series-response.ts +23 -0
  600. package/models/get-settlements-response.ts +24 -0
  601. package/models/get-structured-target-response.ts +23 -0
  602. package/models/get-structured-targets-response.ts +23 -0
  603. package/models/get-total-resting-order-value-response.ts +20 -0
  604. package/models/get-trades-response.ts +24 -0
  605. package/models/get-user-data-timestamp-response.ts +20 -0
  606. package/models/index.ts +88 -0
  607. package/models/lookup-bundle-request-bundle-inner.ts +21 -0
  608. package/models/lookup-bundle-request.ts +23 -0
  609. package/models/lookup-bundle-response.ts +21 -0
  610. package/models/market.ts +59 -0
  611. package/models/milestone.ts +22 -0
  612. package/models/multivariate-event-collection-events-inner.ts +23 -0
  613. package/models/multivariate-event-collection.ts +26 -0
  614. package/models/order-group.ts +23 -0
  615. package/models/order.ts +61 -0
  616. package/models/orderbook-level.ts +21 -0
  617. package/models/position.ts +35 -0
  618. package/models/quote.ts +36 -0
  619. package/models/rfq.ts +35 -0
  620. package/models/series.ts +26 -0
  621. package/models/settlement.ts +33 -0
  622. package/models/structured-target.ts +22 -0
  623. package/models/trade.ts +33 -0
  624. package/package.json +33 -0
  625. package/tsconfig.esm.json +7 -0
  626. package/tsconfig.json +18 -0
@@ -0,0 +1,94 @@
1
+ /**
2
+ * Kalshi Trading API
3
+ * Complete API for the Kalshi trading platform including all handlers for SDK generation
4
+ *
5
+ * The version of the OpenAPI document: 2.0.0
6
+ * Contact: support@kalshi.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+
13
+ /* tslint:disable */
14
+ /* eslint-disable */
15
+
16
+
17
+ export interface ConfigurationParameters {
18
+ apiKey?: string;
19
+ privateKeyPath?: string;
20
+ privateKeyPem?: string;
21
+ basePath?: string;
22
+ serverIndex?: number;
23
+ baseOptions?: any;
24
+ formDataCtor?: new () => any;
25
+ }
26
+
27
+ export class Configuration {
28
+ /**
29
+ * Kalshi API Key ID
30
+ *
31
+ * @type {string}
32
+ * @memberof Configuration
33
+ */
34
+ apiKey?: string;
35
+ /**
36
+ * Path to RSA private key PEM file
37
+ *
38
+ * @type {string}
39
+ * @memberof Configuration
40
+ */
41
+ privateKeyPath?: string;
42
+ /**
43
+ * RSA private key PEM string
44
+ *
45
+ * @type {string}
46
+ * @memberof Configuration
47
+ */
48
+ privateKeyPem?: string;
49
+ /**
50
+ * override base path
51
+ *
52
+ * @type {string}
53
+ * @memberof Configuration
54
+ */
55
+ basePath?: string;
56
+ /**
57
+ * override server index
58
+ */
59
+ serverIndex?: number;
60
+ /**
61
+ * base options for axios calls
62
+ */
63
+ baseOptions?: any;
64
+ /**
65
+ * The FormData constructor that will be used to create multipart form data
66
+ * requests.
67
+ */
68
+ formDataCtor?: new () => any;
69
+
70
+ constructor(param: ConfigurationParameters = {}) {
71
+ this.apiKey = param.apiKey;
72
+ this.privateKeyPath = param.privateKeyPath;
73
+ this.privateKeyPem = param.privateKeyPem;
74
+ this.basePath = param.basePath;
75
+ this.serverIndex = param.serverIndex;
76
+ this.baseOptions = param.baseOptions;
77
+ this.formDataCtor = param.formDataCtor;
78
+ }
79
+
80
+ /**
81
+ * Check if the given MIME is a JSON MIME.
82
+ * JSON MIME examples:
83
+ * application/json
84
+ * application/json; charset=UTF8
85
+ * APPLICATION/JSON
86
+ * application/vnd.company+json
87
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
88
+ * @return True if the given MIME is JSON, false otherwise.
89
+ */
90
+ public isJsonMime(mime: string): boolean {
91
+ const jsonMime: RegExp = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
92
+ return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
93
+ }
94
+ }
@@ -0,0 +1,163 @@
1
+ /**
2
+ * Kalshi Trading API
3
+ * Complete API for the Kalshi trading platform including all handlers for SDK generation
4
+ *
5
+ * The version of the OpenAPI document: 2.0.0
6
+ * Contact: support@kalshi.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Configuration } from '../configuration';
13
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
+ import { type RequestArgs, BaseAPI } from '../base';
15
+ import type { CreateApiKeyRequest } from '../models';
16
+ import type { CreateApiKeyResponse } from '../models';
17
+ import type { GenerateApiKeyRequest } from '../models';
18
+ import type { GenerateApiKeyResponse } from '../models';
19
+ import type { GetApiKeysResponse } from '../models';
20
+ /**
21
+ * ApiKeysApi - axios parameter creator
22
+ */
23
+ export declare const ApiKeysApiAxiosParamCreator: (configuration?: Configuration) => {
24
+ /**
25
+ * Create a new API key with a user-provided public key. This endpoint allows users with Premier or Market Maker API usage levels to create API keys by providing their own RSA public key. The platform will use this public key to verify signatures on API requests.
26
+ * @summary Create API Key
27
+ * @param {CreateApiKeyRequest} createApiKeyRequest
28
+ * @param {*} [options] Override http request option.
29
+ * @throws {RequiredError}
30
+ */
31
+ createApiKey: (createApiKeyRequest: CreateApiKeyRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
32
+ /**
33
+ * Delete an existing API key. This endpoint permanently deletes an API key. Once deleted, the key can no longer be used for authentication. This action cannot be undone.
34
+ * @summary Delete API Key
35
+ * @param {string} apiKey API key ID to delete
36
+ * @param {*} [options] Override http request option.
37
+ * @throws {RequiredError}
38
+ */
39
+ deleteApiKey: (apiKey: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
40
+ /**
41
+ * Generate a new API key with an automatically created key pair. This endpoint generates both a public and private RSA key pair. The public key is stored on the platform, while the private key is returned to the user and must be stored securely. The private key cannot be retrieved again.
42
+ * @summary Generate API Key
43
+ * @param {GenerateApiKeyRequest} generateApiKeyRequest
44
+ * @param {*} [options] Override http request option.
45
+ * @throws {RequiredError}
46
+ */
47
+ generateApiKey: (generateApiKeyRequest: GenerateApiKeyRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
48
+ /**
49
+ * Retrieve all API keys associated with the authenticated user. API keys allow programmatic access to the platform without requiring username/password authentication. Each key has a unique identifier and name.
50
+ * @summary Get API Keys
51
+ * @param {*} [options] Override http request option.
52
+ * @throws {RequiredError}
53
+ */
54
+ getApiKeys: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
55
+ };
56
+ /**
57
+ * ApiKeysApi - functional programming interface
58
+ */
59
+ export declare const ApiKeysApiFp: (configuration?: Configuration) => {
60
+ /**
61
+ * Create a new API key with a user-provided public key. This endpoint allows users with Premier or Market Maker API usage levels to create API keys by providing their own RSA public key. The platform will use this public key to verify signatures on API requests.
62
+ * @summary Create API Key
63
+ * @param {CreateApiKeyRequest} createApiKeyRequest
64
+ * @param {*} [options] Override http request option.
65
+ * @throws {RequiredError}
66
+ */
67
+ createApiKey(createApiKeyRequest: CreateApiKeyRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateApiKeyResponse>>;
68
+ /**
69
+ * Delete an existing API key. This endpoint permanently deletes an API key. Once deleted, the key can no longer be used for authentication. This action cannot be undone.
70
+ * @summary Delete API Key
71
+ * @param {string} apiKey API key ID to delete
72
+ * @param {*} [options] Override http request option.
73
+ * @throws {RequiredError}
74
+ */
75
+ deleteApiKey(apiKey: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
76
+ /**
77
+ * Generate a new API key with an automatically created key pair. This endpoint generates both a public and private RSA key pair. The public key is stored on the platform, while the private key is returned to the user and must be stored securely. The private key cannot be retrieved again.
78
+ * @summary Generate API Key
79
+ * @param {GenerateApiKeyRequest} generateApiKeyRequest
80
+ * @param {*} [options] Override http request option.
81
+ * @throws {RequiredError}
82
+ */
83
+ generateApiKey(generateApiKeyRequest: GenerateApiKeyRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenerateApiKeyResponse>>;
84
+ /**
85
+ * Retrieve all API keys associated with the authenticated user. API keys allow programmatic access to the platform without requiring username/password authentication. Each key has a unique identifier and name.
86
+ * @summary Get API Keys
87
+ * @param {*} [options] Override http request option.
88
+ * @throws {RequiredError}
89
+ */
90
+ getApiKeys(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetApiKeysResponse>>;
91
+ };
92
+ /**
93
+ * ApiKeysApi - factory interface
94
+ */
95
+ export declare const ApiKeysApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
96
+ /**
97
+ * Create a new API key with a user-provided public key. This endpoint allows users with Premier or Market Maker API usage levels to create API keys by providing their own RSA public key. The platform will use this public key to verify signatures on API requests.
98
+ * @summary Create API Key
99
+ * @param {CreateApiKeyRequest} createApiKeyRequest
100
+ * @param {*} [options] Override http request option.
101
+ * @throws {RequiredError}
102
+ */
103
+ createApiKey(createApiKeyRequest: CreateApiKeyRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateApiKeyResponse>;
104
+ /**
105
+ * Delete an existing API key. This endpoint permanently deletes an API key. Once deleted, the key can no longer be used for authentication. This action cannot be undone.
106
+ * @summary Delete API Key
107
+ * @param {string} apiKey API key ID to delete
108
+ * @param {*} [options] Override http request option.
109
+ * @throws {RequiredError}
110
+ */
111
+ deleteApiKey(apiKey: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
112
+ /**
113
+ * Generate a new API key with an automatically created key pair. This endpoint generates both a public and private RSA key pair. The public key is stored on the platform, while the private key is returned to the user and must be stored securely. The private key cannot be retrieved again.
114
+ * @summary Generate API Key
115
+ * @param {GenerateApiKeyRequest} generateApiKeyRequest
116
+ * @param {*} [options] Override http request option.
117
+ * @throws {RequiredError}
118
+ */
119
+ generateApiKey(generateApiKeyRequest: GenerateApiKeyRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenerateApiKeyResponse>;
120
+ /**
121
+ * Retrieve all API keys associated with the authenticated user. API keys allow programmatic access to the platform without requiring username/password authentication. Each key has a unique identifier and name.
122
+ * @summary Get API Keys
123
+ * @param {*} [options] Override http request option.
124
+ * @throws {RequiredError}
125
+ */
126
+ getApiKeys(options?: RawAxiosRequestConfig): AxiosPromise<GetApiKeysResponse>;
127
+ };
128
+ /**
129
+ * ApiKeysApi - object-oriented interface
130
+ */
131
+ export declare class ApiKeysApi extends BaseAPI {
132
+ /**
133
+ * Create a new API key with a user-provided public key. This endpoint allows users with Premier or Market Maker API usage levels to create API keys by providing their own RSA public key. The platform will use this public key to verify signatures on API requests.
134
+ * @summary Create API Key
135
+ * @param {CreateApiKeyRequest} createApiKeyRequest
136
+ * @param {*} [options] Override http request option.
137
+ * @throws {RequiredError}
138
+ */
139
+ createApiKey(createApiKeyRequest: CreateApiKeyRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateApiKeyResponse, any>>;
140
+ /**
141
+ * Delete an existing API key. This endpoint permanently deletes an API key. Once deleted, the key can no longer be used for authentication. This action cannot be undone.
142
+ * @summary Delete API Key
143
+ * @param {string} apiKey API key ID to delete
144
+ * @param {*} [options] Override http request option.
145
+ * @throws {RequiredError}
146
+ */
147
+ deleteApiKey(apiKey: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
148
+ /**
149
+ * Generate a new API key with an automatically created key pair. This endpoint generates both a public and private RSA key pair. The public key is stored on the platform, while the private key is returned to the user and must be stored securely. The private key cannot be retrieved again.
150
+ * @summary Generate API Key
151
+ * @param {GenerateApiKeyRequest} generateApiKeyRequest
152
+ * @param {*} [options] Override http request option.
153
+ * @throws {RequiredError}
154
+ */
155
+ generateApiKey(generateApiKeyRequest: GenerateApiKeyRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GenerateApiKeyResponse, any>>;
156
+ /**
157
+ * Retrieve all API keys associated with the authenticated user. API keys allow programmatic access to the platform without requiring username/password authentication. Each key has a unique identifier and name.
158
+ * @summary Get API Keys
159
+ * @param {*} [options] Override http request option.
160
+ * @throws {RequiredError}
161
+ */
162
+ getApiKeys(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetApiKeysResponse, any>>;
163
+ }
@@ -0,0 +1,333 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Kalshi Trading API
6
+ * Complete API for the Kalshi trading platform including all handlers for SDK generation
7
+ *
8
+ * The version of the OpenAPI document: 2.0.0
9
+ * Contact: support@kalshi.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
+ return new (P || (P = Promise))(function (resolve, reject) {
18
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22
+ });
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.ApiKeysApi = exports.ApiKeysApiFactory = exports.ApiKeysApiFp = exports.ApiKeysApiAxiosParamCreator = void 0;
26
+ const axios_1 = require("axios");
27
+ // URLSearchParams not necessarily used
28
+ // @ts-ignore
29
+ const url_1 = require("url");
30
+ // Some imports not used depending on template conditions
31
+ // @ts-ignore
32
+ const common_1 = require("../common");
33
+ // @ts-ignore
34
+ const base_1 = require("../base");
35
+ /**
36
+ * ApiKeysApi - axios parameter creator
37
+ */
38
+ const ApiKeysApiAxiosParamCreator = function (configuration) {
39
+ return {
40
+ /**
41
+ * Create a new API key with a user-provided public key. This endpoint allows users with Premier or Market Maker API usage levels to create API keys by providing their own RSA public key. The platform will use this public key to verify signatures on API requests.
42
+ * @summary Create API Key
43
+ * @param {CreateApiKeyRequest} createApiKeyRequest
44
+ * @param {*} [options] Override http request option.
45
+ * @throws {RequiredError}
46
+ */
47
+ createApiKey: (createApiKeyRequest_1, ...args_1) => __awaiter(this, [createApiKeyRequest_1, ...args_1], void 0, function* (createApiKeyRequest, options = {}) {
48
+ // verify required parameter 'createApiKeyRequest' is not null or undefined
49
+ (0, common_1.assertParamExists)('createApiKey', 'createApiKeyRequest', createApiKeyRequest);
50
+ const localVarPath = `/api_keys`;
51
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
52
+ const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
53
+ let baseOptions;
54
+ if (configuration) {
55
+ baseOptions = configuration.baseOptions;
56
+ }
57
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
58
+ const localVarHeaderParameter = {};
59
+ const localVarQueryParameter = {};
60
+ // authentication bearerAuth required
61
+ // http bearer authentication required
62
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
63
+ localVarHeaderParameter['Content-Type'] = 'application/json';
64
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
65
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
66
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
67
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createApiKeyRequest, localVarRequestOptions, configuration);
68
+ return {
69
+ url: (0, common_1.toPathString)(localVarUrlObj),
70
+ options: localVarRequestOptions,
71
+ };
72
+ }),
73
+ /**
74
+ * Delete an existing API key. This endpoint permanently deletes an API key. Once deleted, the key can no longer be used for authentication. This action cannot be undone.
75
+ * @summary Delete API Key
76
+ * @param {string} apiKey API key ID to delete
77
+ * @param {*} [options] Override http request option.
78
+ * @throws {RequiredError}
79
+ */
80
+ deleteApiKey: (apiKey_1, ...args_1) => __awaiter(this, [apiKey_1, ...args_1], void 0, function* (apiKey, options = {}) {
81
+ // verify required parameter 'apiKey' is not null or undefined
82
+ (0, common_1.assertParamExists)('deleteApiKey', 'apiKey', apiKey);
83
+ const localVarPath = `/api_keys/{api_key}`
84
+ .replace(`{${"api_key"}}`, encodeURIComponent(String(apiKey)));
85
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
86
+ const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
87
+ let baseOptions;
88
+ if (configuration) {
89
+ baseOptions = configuration.baseOptions;
90
+ }
91
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
92
+ const localVarHeaderParameter = {};
93
+ const localVarQueryParameter = {};
94
+ // authentication bearerAuth required
95
+ // http bearer authentication required
96
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
97
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
98
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
99
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
100
+ return {
101
+ url: (0, common_1.toPathString)(localVarUrlObj),
102
+ options: localVarRequestOptions,
103
+ };
104
+ }),
105
+ /**
106
+ * Generate a new API key with an automatically created key pair. This endpoint generates both a public and private RSA key pair. The public key is stored on the platform, while the private key is returned to the user and must be stored securely. The private key cannot be retrieved again.
107
+ * @summary Generate API Key
108
+ * @param {GenerateApiKeyRequest} generateApiKeyRequest
109
+ * @param {*} [options] Override http request option.
110
+ * @throws {RequiredError}
111
+ */
112
+ generateApiKey: (generateApiKeyRequest_1, ...args_1) => __awaiter(this, [generateApiKeyRequest_1, ...args_1], void 0, function* (generateApiKeyRequest, options = {}) {
113
+ // verify required parameter 'generateApiKeyRequest' is not null or undefined
114
+ (0, common_1.assertParamExists)('generateApiKey', 'generateApiKeyRequest', generateApiKeyRequest);
115
+ const localVarPath = `/api_keys/generate`;
116
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
117
+ const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
118
+ let baseOptions;
119
+ if (configuration) {
120
+ baseOptions = configuration.baseOptions;
121
+ }
122
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
123
+ const localVarHeaderParameter = {};
124
+ const localVarQueryParameter = {};
125
+ // authentication bearerAuth required
126
+ // http bearer authentication required
127
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
128
+ localVarHeaderParameter['Content-Type'] = 'application/json';
129
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
130
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
131
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
132
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(generateApiKeyRequest, localVarRequestOptions, configuration);
133
+ return {
134
+ url: (0, common_1.toPathString)(localVarUrlObj),
135
+ options: localVarRequestOptions,
136
+ };
137
+ }),
138
+ /**
139
+ * Retrieve all API keys associated with the authenticated user. API keys allow programmatic access to the platform without requiring username/password authentication. Each key has a unique identifier and name.
140
+ * @summary Get API Keys
141
+ * @param {*} [options] Override http request option.
142
+ * @throws {RequiredError}
143
+ */
144
+ getApiKeys: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
145
+ const localVarPath = `/api_keys`;
146
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
147
+ const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
148
+ let baseOptions;
149
+ if (configuration) {
150
+ baseOptions = configuration.baseOptions;
151
+ }
152
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
153
+ const localVarHeaderParameter = {};
154
+ const localVarQueryParameter = {};
155
+ // authentication bearerAuth required
156
+ // http bearer authentication required
157
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
158
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
159
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
160
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
161
+ return {
162
+ url: (0, common_1.toPathString)(localVarUrlObj),
163
+ options: localVarRequestOptions,
164
+ };
165
+ }),
166
+ };
167
+ };
168
+ exports.ApiKeysApiAxiosParamCreator = ApiKeysApiAxiosParamCreator;
169
+ /**
170
+ * ApiKeysApi - functional programming interface
171
+ */
172
+ const ApiKeysApiFp = function (configuration) {
173
+ const localVarAxiosParamCreator = (0, exports.ApiKeysApiAxiosParamCreator)(configuration);
174
+ return {
175
+ /**
176
+ * Create a new API key with a user-provided public key. This endpoint allows users with Premier or Market Maker API usage levels to create API keys by providing their own RSA public key. The platform will use this public key to verify signatures on API requests.
177
+ * @summary Create API Key
178
+ * @param {CreateApiKeyRequest} createApiKeyRequest
179
+ * @param {*} [options] Override http request option.
180
+ * @throws {RequiredError}
181
+ */
182
+ createApiKey(createApiKeyRequest, options) {
183
+ return __awaiter(this, void 0, void 0, function* () {
184
+ var _a, _b, _c;
185
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createApiKey(createApiKeyRequest, options);
186
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
187
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApiKeysApi.createApiKey']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
188
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
189
+ });
190
+ },
191
+ /**
192
+ * Delete an existing API key. This endpoint permanently deletes an API key. Once deleted, the key can no longer be used for authentication. This action cannot be undone.
193
+ * @summary Delete API Key
194
+ * @param {string} apiKey API key ID to delete
195
+ * @param {*} [options] Override http request option.
196
+ * @throws {RequiredError}
197
+ */
198
+ deleteApiKey(apiKey, options) {
199
+ return __awaiter(this, void 0, void 0, function* () {
200
+ var _a, _b, _c;
201
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteApiKey(apiKey, options);
202
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
203
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApiKeysApi.deleteApiKey']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
204
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
205
+ });
206
+ },
207
+ /**
208
+ * Generate a new API key with an automatically created key pair. This endpoint generates both a public and private RSA key pair. The public key is stored on the platform, while the private key is returned to the user and must be stored securely. The private key cannot be retrieved again.
209
+ * @summary Generate API Key
210
+ * @param {GenerateApiKeyRequest} generateApiKeyRequest
211
+ * @param {*} [options] Override http request option.
212
+ * @throws {RequiredError}
213
+ */
214
+ generateApiKey(generateApiKeyRequest, options) {
215
+ return __awaiter(this, void 0, void 0, function* () {
216
+ var _a, _b, _c;
217
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.generateApiKey(generateApiKeyRequest, options);
218
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
219
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApiKeysApi.generateApiKey']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
220
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
221
+ });
222
+ },
223
+ /**
224
+ * Retrieve all API keys associated with the authenticated user. API keys allow programmatic access to the platform without requiring username/password authentication. Each key has a unique identifier and name.
225
+ * @summary Get API Keys
226
+ * @param {*} [options] Override http request option.
227
+ * @throws {RequiredError}
228
+ */
229
+ getApiKeys(options) {
230
+ return __awaiter(this, void 0, void 0, function* () {
231
+ var _a, _b, _c;
232
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getApiKeys(options);
233
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
234
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApiKeysApi.getApiKeys']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
235
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
236
+ });
237
+ },
238
+ };
239
+ };
240
+ exports.ApiKeysApiFp = ApiKeysApiFp;
241
+ /**
242
+ * ApiKeysApi - factory interface
243
+ */
244
+ const ApiKeysApiFactory = function (configuration, basePath, axios) {
245
+ const localVarFp = (0, exports.ApiKeysApiFp)(configuration);
246
+ return {
247
+ /**
248
+ * Create a new API key with a user-provided public key. This endpoint allows users with Premier or Market Maker API usage levels to create API keys by providing their own RSA public key. The platform will use this public key to verify signatures on API requests.
249
+ * @summary Create API Key
250
+ * @param {CreateApiKeyRequest} createApiKeyRequest
251
+ * @param {*} [options] Override http request option.
252
+ * @throws {RequiredError}
253
+ */
254
+ createApiKey(createApiKeyRequest, options) {
255
+ return localVarFp.createApiKey(createApiKeyRequest, options).then((request) => request(axios, basePath));
256
+ },
257
+ /**
258
+ * Delete an existing API key. This endpoint permanently deletes an API key. Once deleted, the key can no longer be used for authentication. This action cannot be undone.
259
+ * @summary Delete API Key
260
+ * @param {string} apiKey API key ID to delete
261
+ * @param {*} [options] Override http request option.
262
+ * @throws {RequiredError}
263
+ */
264
+ deleteApiKey(apiKey, options) {
265
+ return localVarFp.deleteApiKey(apiKey, options).then((request) => request(axios, basePath));
266
+ },
267
+ /**
268
+ * Generate a new API key with an automatically created key pair. This endpoint generates both a public and private RSA key pair. The public key is stored on the platform, while the private key is returned to the user and must be stored securely. The private key cannot be retrieved again.
269
+ * @summary Generate API Key
270
+ * @param {GenerateApiKeyRequest} generateApiKeyRequest
271
+ * @param {*} [options] Override http request option.
272
+ * @throws {RequiredError}
273
+ */
274
+ generateApiKey(generateApiKeyRequest, options) {
275
+ return localVarFp.generateApiKey(generateApiKeyRequest, options).then((request) => request(axios, basePath));
276
+ },
277
+ /**
278
+ * Retrieve all API keys associated with the authenticated user. API keys allow programmatic access to the platform without requiring username/password authentication. Each key has a unique identifier and name.
279
+ * @summary Get API Keys
280
+ * @param {*} [options] Override http request option.
281
+ * @throws {RequiredError}
282
+ */
283
+ getApiKeys(options) {
284
+ return localVarFp.getApiKeys(options).then((request) => request(axios, basePath));
285
+ },
286
+ };
287
+ };
288
+ exports.ApiKeysApiFactory = ApiKeysApiFactory;
289
+ /**
290
+ * ApiKeysApi - object-oriented interface
291
+ */
292
+ class ApiKeysApi extends base_1.BaseAPI {
293
+ /**
294
+ * Create a new API key with a user-provided public key. This endpoint allows users with Premier or Market Maker API usage levels to create API keys by providing their own RSA public key. The platform will use this public key to verify signatures on API requests.
295
+ * @summary Create API Key
296
+ * @param {CreateApiKeyRequest} createApiKeyRequest
297
+ * @param {*} [options] Override http request option.
298
+ * @throws {RequiredError}
299
+ */
300
+ createApiKey(createApiKeyRequest, options) {
301
+ return (0, exports.ApiKeysApiFp)(this.configuration).createApiKey(createApiKeyRequest, options).then((request) => request(this.axios, this.basePath));
302
+ }
303
+ /**
304
+ * Delete an existing API key. This endpoint permanently deletes an API key. Once deleted, the key can no longer be used for authentication. This action cannot be undone.
305
+ * @summary Delete API Key
306
+ * @param {string} apiKey API key ID to delete
307
+ * @param {*} [options] Override http request option.
308
+ * @throws {RequiredError}
309
+ */
310
+ deleteApiKey(apiKey, options) {
311
+ return (0, exports.ApiKeysApiFp)(this.configuration).deleteApiKey(apiKey, options).then((request) => request(this.axios, this.basePath));
312
+ }
313
+ /**
314
+ * Generate a new API key with an automatically created key pair. This endpoint generates both a public and private RSA key pair. The public key is stored on the platform, while the private key is returned to the user and must be stored securely. The private key cannot be retrieved again.
315
+ * @summary Generate API Key
316
+ * @param {GenerateApiKeyRequest} generateApiKeyRequest
317
+ * @param {*} [options] Override http request option.
318
+ * @throws {RequiredError}
319
+ */
320
+ generateApiKey(generateApiKeyRequest, options) {
321
+ return (0, exports.ApiKeysApiFp)(this.configuration).generateApiKey(generateApiKeyRequest, options).then((request) => request(this.axios, this.basePath));
322
+ }
323
+ /**
324
+ * Retrieve all API keys associated with the authenticated user. API keys allow programmatic access to the platform without requiring username/password authentication. Each key has a unique identifier and name.
325
+ * @summary Get API Keys
326
+ * @param {*} [options] Override http request option.
327
+ * @throws {RequiredError}
328
+ */
329
+ getApiKeys(options) {
330
+ return (0, exports.ApiKeysApiFp)(this.configuration).getApiKeys(options).then((request) => request(this.axios, this.basePath));
331
+ }
332
+ }
333
+ exports.ApiKeysApi = ApiKeysApi;