@studyfetch/sdk 1.1.1 → 1.2.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 (552) hide show
  1. package/CHANGELOG.md +28 -15
  2. package/README.md +62 -17
  3. package/client.d.mts +1 -4
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +1 -4
  6. package/client.d.ts.map +1 -1
  7. package/client.js +3 -16
  8. package/client.js.map +1 -1
  9. package/client.mjs +3 -16
  10. package/client.mjs.map +1 -1
  11. package/internal/qs/formats.d.mts +7 -0
  12. package/internal/qs/formats.d.mts.map +1 -0
  13. package/internal/qs/formats.d.ts +7 -0
  14. package/internal/qs/formats.d.ts.map +1 -0
  15. package/internal/qs/formats.js +13 -0
  16. package/internal/qs/formats.js.map +1 -0
  17. package/internal/qs/formats.mjs +9 -0
  18. package/internal/qs/formats.mjs.map +1 -0
  19. package/internal/qs/index.d.mts +10 -0
  20. package/internal/qs/index.d.mts.map +1 -0
  21. package/internal/qs/index.d.ts +10 -0
  22. package/internal/qs/index.d.ts.map +1 -0
  23. package/internal/qs/index.js +14 -0
  24. package/internal/qs/index.js.map +1 -0
  25. package/internal/qs/index.mjs +10 -0
  26. package/internal/qs/index.mjs.map +1 -0
  27. package/internal/qs/stringify.d.mts +3 -0
  28. package/internal/qs/stringify.d.mts.map +1 -0
  29. package/internal/qs/stringify.d.ts +3 -0
  30. package/internal/qs/stringify.d.ts.map +1 -0
  31. package/internal/qs/stringify.js +277 -0
  32. package/internal/qs/stringify.js.map +1 -0
  33. package/internal/qs/stringify.mjs +274 -0
  34. package/internal/qs/stringify.mjs.map +1 -0
  35. package/internal/qs/types.d.mts +57 -0
  36. package/internal/qs/types.d.mts.map +1 -0
  37. package/internal/qs/types.d.ts +57 -0
  38. package/internal/qs/types.d.ts.map +1 -0
  39. package/internal/qs/types.js +3 -0
  40. package/internal/qs/types.js.map +1 -0
  41. package/internal/qs/types.mjs +2 -0
  42. package/internal/qs/types.mjs.map +1 -0
  43. package/internal/qs/utils.d.mts +15 -0
  44. package/internal/qs/utils.d.mts.map +1 -0
  45. package/internal/qs/utils.d.ts +15 -0
  46. package/internal/qs/utils.d.ts.map +1 -0
  47. package/internal/qs/utils.js +230 -0
  48. package/internal/qs/utils.js.map +1 -0
  49. package/internal/qs/utils.mjs +217 -0
  50. package/internal/qs/utils.mjs.map +1 -0
  51. package/internal/utils/log.d.mts.map +1 -1
  52. package/internal/utils/log.d.ts.map +1 -1
  53. package/internal/utils/log.js +2 -1
  54. package/internal/utils/log.js.map +1 -1
  55. package/internal/utils/log.mjs +2 -1
  56. package/internal/utils/log.mjs.map +1 -1
  57. package/package.json +1 -1
  58. package/resources/v1/admin/admin.d.mts +6 -0
  59. package/resources/v1/admin/admin.d.mts.map +1 -1
  60. package/resources/v1/admin/admin.d.ts +6 -0
  61. package/resources/v1/admin/admin.d.ts.map +1 -1
  62. package/resources/v1/admin/admin.js +6 -0
  63. package/resources/v1/admin/admin.js.map +1 -1
  64. package/resources/v1/admin/admin.mjs +6 -0
  65. package/resources/v1/admin/admin.mjs.map +1 -1
  66. package/resources/v1/admin/models.d.mts +6 -0
  67. package/resources/v1/admin/models.d.mts.map +1 -1
  68. package/resources/v1/admin/models.d.ts +6 -0
  69. package/resources/v1/admin/models.d.ts.map +1 -1
  70. package/resources/v1/admin/models.js +6 -0
  71. package/resources/v1/admin/models.js.map +1 -1
  72. package/resources/v1/admin/models.mjs +6 -0
  73. package/resources/v1/admin/models.mjs.map +1 -1
  74. package/resources/v1/admin/organization-invites.d.mts +26 -0
  75. package/resources/v1/admin/organization-invites.d.mts.map +1 -1
  76. package/resources/v1/admin/organization-invites.d.ts +26 -0
  77. package/resources/v1/admin/organization-invites.d.ts.map +1 -1
  78. package/resources/v1/admin/organization-invites.js +26 -0
  79. package/resources/v1/admin/organization-invites.js.map +1 -1
  80. package/resources/v1/admin/organization-invites.mjs +26 -0
  81. package/resources/v1/admin/organization-invites.mjs.map +1 -1
  82. package/resources/v1/admin/organizations/models/excluded.d.mts +16 -0
  83. package/resources/v1/admin/organizations/models/excluded.d.mts.map +1 -1
  84. package/resources/v1/admin/organizations/models/excluded.d.ts +16 -0
  85. package/resources/v1/admin/organizations/models/excluded.d.ts.map +1 -1
  86. package/resources/v1/admin/organizations/models/excluded.js +16 -0
  87. package/resources/v1/admin/organizations/models/excluded.js.map +1 -1
  88. package/resources/v1/admin/organizations/models/excluded.mjs +16 -0
  89. package/resources/v1/admin/organizations/models/excluded.mjs.map +1 -1
  90. package/resources/v1/admin/organizations/organizations.d.mts +6 -0
  91. package/resources/v1/admin/organizations/organizations.d.mts.map +1 -1
  92. package/resources/v1/admin/organizations/organizations.d.ts +6 -0
  93. package/resources/v1/admin/organizations/organizations.d.ts.map +1 -1
  94. package/resources/v1/admin/organizations/organizations.js +6 -0
  95. package/resources/v1/admin/organizations/organizations.js.map +1 -1
  96. package/resources/v1/admin/organizations/organizations.mjs +6 -0
  97. package/resources/v1/admin/organizations/organizations.mjs.map +1 -1
  98. package/resources/v1/audio-recaps/audio-recaps.d.mts +24 -0
  99. package/resources/v1/audio-recaps/audio-recaps.d.mts.map +1 -1
  100. package/resources/v1/audio-recaps/audio-recaps.d.ts +24 -0
  101. package/resources/v1/audio-recaps/audio-recaps.d.ts.map +1 -1
  102. package/resources/v1/audio-recaps/audio-recaps.js +24 -0
  103. package/resources/v1/audio-recaps/audio-recaps.js.map +1 -1
  104. package/resources/v1/audio-recaps/audio-recaps.mjs +24 -0
  105. package/resources/v1/audio-recaps/audio-recaps.mjs.map +1 -1
  106. package/resources/v1/audio-recaps/sections.d.mts +21 -0
  107. package/resources/v1/audio-recaps/sections.d.mts.map +1 -1
  108. package/resources/v1/audio-recaps/sections.d.ts +21 -0
  109. package/resources/v1/audio-recaps/sections.d.ts.map +1 -1
  110. package/resources/v1/audio-recaps/sections.js +18 -0
  111. package/resources/v1/audio-recaps/sections.js.map +1 -1
  112. package/resources/v1/audio-recaps/sections.mjs +18 -0
  113. package/resources/v1/audio-recaps/sections.mjs.map +1 -1
  114. package/resources/v1/auth/auth.d.mts +108 -7
  115. package/resources/v1/auth/auth.d.mts.map +1 -1
  116. package/resources/v1/auth/auth.d.ts +108 -7
  117. package/resources/v1/auth/auth.d.ts.map +1 -1
  118. package/resources/v1/auth/auth.js +80 -8
  119. package/resources/v1/auth/auth.js.map +1 -1
  120. package/resources/v1/auth/auth.mjs +80 -8
  121. package/resources/v1/auth/auth.mjs.map +1 -1
  122. package/resources/v1/auth/index.d.mts +2 -2
  123. package/resources/v1/auth/index.d.mts.map +1 -1
  124. package/resources/v1/auth/index.d.ts +2 -2
  125. package/resources/v1/auth/index.d.ts.map +1 -1
  126. package/resources/v1/auth/index.js.map +1 -1
  127. package/resources/v1/auth/index.mjs.map +1 -1
  128. package/resources/v1/auth/login.d.mts +60 -3
  129. package/resources/v1/auth/login.d.mts.map +1 -1
  130. package/resources/v1/auth/login.d.ts +60 -3
  131. package/resources/v1/auth/login.d.ts.map +1 -1
  132. package/resources/v1/auth/login.js +34 -1
  133. package/resources/v1/auth/login.js.map +1 -1
  134. package/resources/v1/auth/login.mjs +34 -1
  135. package/resources/v1/auth/login.mjs.map +1 -1
  136. package/resources/v1/auth/number-2fa.d.mts +63 -1
  137. package/resources/v1/auth/number-2fa.d.mts.map +1 -1
  138. package/resources/v1/auth/number-2fa.d.ts +63 -1
  139. package/resources/v1/auth/number-2fa.d.ts.map +1 -1
  140. package/resources/v1/auth/number-2fa.js +52 -6
  141. package/resources/v1/auth/number-2fa.js.map +1 -1
  142. package/resources/v1/auth/number-2fa.mjs +52 -6
  143. package/resources/v1/auth/number-2fa.mjs.map +1 -1
  144. package/resources/v1/auth/organization-invites.d.mts +6 -0
  145. package/resources/v1/auth/organization-invites.d.mts.map +1 -1
  146. package/resources/v1/auth/organization-invites.d.ts +6 -0
  147. package/resources/v1/auth/organization-invites.d.ts.map +1 -1
  148. package/resources/v1/auth/organization-invites.js +6 -0
  149. package/resources/v1/auth/organization-invites.js.map +1 -1
  150. package/resources/v1/auth/organization-invites.mjs +6 -0
  151. package/resources/v1/auth/organization-invites.mjs.map +1 -1
  152. package/resources/v1/chat/chat.d.mts +131 -6
  153. package/resources/v1/chat/chat.d.mts.map +1 -1
  154. package/resources/v1/chat/chat.d.ts +131 -6
  155. package/resources/v1/chat/chat.d.ts.map +1 -1
  156. package/resources/v1/chat/chat.js +55 -13
  157. package/resources/v1/chat/chat.js.map +1 -1
  158. package/resources/v1/chat/chat.mjs +55 -13
  159. package/resources/v1/chat/chat.mjs.map +1 -1
  160. package/resources/v1/chat/index.d.mts +1 -1
  161. package/resources/v1/chat/index.d.mts.map +1 -1
  162. package/resources/v1/chat/index.d.ts +1 -1
  163. package/resources/v1/chat/index.d.ts.map +1 -1
  164. package/resources/v1/chat/sessions.d.mts +14 -0
  165. package/resources/v1/chat/sessions.d.mts.map +1 -1
  166. package/resources/v1/chat/sessions.d.ts +14 -0
  167. package/resources/v1/chat/sessions.d.ts.map +1 -1
  168. package/resources/v1/chat/sessions.js +14 -0
  169. package/resources/v1/chat/sessions.js.map +1 -1
  170. package/resources/v1/chat/sessions.mjs +14 -0
  171. package/resources/v1/chat/sessions.mjs.map +1 -1
  172. package/resources/v1/chat/test.d.mts +12 -0
  173. package/resources/v1/chat/test.d.mts.map +1 -1
  174. package/resources/v1/chat/test.d.ts +12 -0
  175. package/resources/v1/chat/test.d.ts.map +1 -1
  176. package/resources/v1/chat/test.js +12 -0
  177. package/resources/v1/chat/test.js.map +1 -1
  178. package/resources/v1/chat/test.mjs +12 -0
  179. package/resources/v1/chat/test.mjs.map +1 -1
  180. package/resources/v1/components.d.mts +228 -2
  181. package/resources/v1/components.d.mts.map +1 -1
  182. package/resources/v1/components.d.ts +228 -2
  183. package/resources/v1/components.d.ts.map +1 -1
  184. package/resources/v1/components.js +72 -1
  185. package/resources/v1/components.js.map +1 -1
  186. package/resources/v1/components.mjs +72 -1
  187. package/resources/v1/components.mjs.map +1 -1
  188. package/resources/v1/embed/component.d.mts +31 -0
  189. package/resources/v1/embed/component.d.mts.map +1 -1
  190. package/resources/v1/embed/component.d.ts +31 -0
  191. package/resources/v1/embed/component.d.ts.map +1 -1
  192. package/resources/v1/embed/component.js +23 -1
  193. package/resources/v1/embed/component.js.map +1 -1
  194. package/resources/v1/embed/component.mjs +23 -1
  195. package/resources/v1/embed/component.mjs.map +1 -1
  196. package/resources/v1/embed/embed.d.mts +32 -6
  197. package/resources/v1/embed/embed.d.mts.map +1 -1
  198. package/resources/v1/embed/embed.d.ts +32 -6
  199. package/resources/v1/embed/embed.d.ts.map +1 -1
  200. package/resources/v1/embed/embed.js +27 -11
  201. package/resources/v1/embed/embed.js.map +1 -1
  202. package/resources/v1/embed/embed.mjs +27 -11
  203. package/resources/v1/embed/embed.mjs.map +1 -1
  204. package/resources/v1/embed/index.d.mts +1 -1
  205. package/resources/v1/embed/index.d.mts.map +1 -1
  206. package/resources/v1/embed/index.d.ts +1 -1
  207. package/resources/v1/embed/index.d.ts.map +1 -1
  208. package/resources/v1/embed/index.js.map +1 -1
  209. package/resources/v1/embed/index.mjs.map +1 -1
  210. package/resources/v1/explainers.d.mts +21 -2
  211. package/resources/v1/explainers.d.mts.map +1 -1
  212. package/resources/v1/explainers.d.ts +21 -2
  213. package/resources/v1/explainers.d.ts.map +1 -1
  214. package/resources/v1/explainers.js +19 -1
  215. package/resources/v1/explainers.js.map +1 -1
  216. package/resources/v1/explainers.mjs +19 -1
  217. package/resources/v1/explainers.mjs.map +1 -1
  218. package/resources/v1/flashcards.d.mts +242 -16
  219. package/resources/v1/flashcards.d.mts.map +1 -1
  220. package/resources/v1/flashcards.d.ts +242 -16
  221. package/resources/v1/flashcards.d.ts.map +1 -1
  222. package/resources/v1/flashcards.js +78 -21
  223. package/resources/v1/flashcards.js.map +1 -1
  224. package/resources/v1/flashcards.mjs +78 -21
  225. package/resources/v1/flashcards.mjs.map +1 -1
  226. package/resources/v1/folders.d.mts +93 -4
  227. package/resources/v1/folders.d.mts.map +1 -1
  228. package/resources/v1/folders.d.ts +93 -4
  229. package/resources/v1/folders.d.ts.map +1 -1
  230. package/resources/v1/folders.js +72 -9
  231. package/resources/v1/folders.js.map +1 -1
  232. package/resources/v1/folders.mjs +72 -9
  233. package/resources/v1/folders.mjs.map +1 -1
  234. package/resources/v1/index.d.mts +11 -10
  235. package/resources/v1/index.d.mts.map +1 -1
  236. package/resources/v1/index.d.ts +11 -10
  237. package/resources/v1/index.d.ts.map +1 -1
  238. package/resources/v1/index.js +3 -1
  239. package/resources/v1/index.js.map +1 -1
  240. package/resources/v1/index.mjs +5 -4
  241. package/resources/v1/index.mjs.map +1 -1
  242. package/resources/v1/materials/bulk.d.mts +6 -0
  243. package/resources/v1/materials/bulk.d.mts.map +1 -1
  244. package/resources/v1/materials/bulk.d.ts +6 -0
  245. package/resources/v1/materials/bulk.d.ts.map +1 -1
  246. package/resources/v1/materials/bulk.js +6 -0
  247. package/resources/v1/materials/bulk.js.map +1 -1
  248. package/resources/v1/materials/bulk.mjs +6 -0
  249. package/resources/v1/materials/bulk.mjs.map +1 -1
  250. package/resources/v1/materials/index.d.mts +2 -2
  251. package/resources/v1/materials/index.d.mts.map +1 -1
  252. package/resources/v1/materials/index.d.ts +2 -2
  253. package/resources/v1/materials/index.d.ts.map +1 -1
  254. package/resources/v1/materials/index.js.map +1 -1
  255. package/resources/v1/materials/index.mjs +1 -1
  256. package/resources/v1/materials/index.mjs.map +1 -1
  257. package/resources/v1/materials/materials.d.mts +125 -5
  258. package/resources/v1/materials/materials.d.mts.map +1 -1
  259. package/resources/v1/materials/materials.d.ts +125 -5
  260. package/resources/v1/materials/materials.d.ts.map +1 -1
  261. package/resources/v1/materials/materials.js +82 -2
  262. package/resources/v1/materials/materials.js.map +1 -1
  263. package/resources/v1/materials/materials.mjs +82 -2
  264. package/resources/v1/materials/materials.mjs.map +1 -1
  265. package/resources/v1/materials/test.d.mts +28 -4
  266. package/resources/v1/materials/test.d.mts.map +1 -1
  267. package/resources/v1/materials/test.d.ts +28 -4
  268. package/resources/v1/materials/test.d.ts.map +1 -1
  269. package/resources/v1/materials/test.js +31 -7
  270. package/resources/v1/materials/test.js.map +1 -1
  271. package/resources/v1/materials/test.mjs +31 -7
  272. package/resources/v1/materials/test.mjs.map +1 -1
  273. package/resources/v1/materials/upload.d.mts +66 -3
  274. package/resources/v1/materials/upload.d.mts.map +1 -1
  275. package/resources/v1/materials/upload.d.ts +66 -3
  276. package/resources/v1/materials/upload.d.ts.map +1 -1
  277. package/resources/v1/materials/upload.js +41 -8
  278. package/resources/v1/materials/upload.js.map +1 -1
  279. package/resources/v1/materials/upload.mjs +41 -8
  280. package/resources/v1/materials/upload.mjs.map +1 -1
  281. package/resources/v1/organizations/api-keys.d.mts +32 -1
  282. package/resources/v1/organizations/api-keys.d.mts.map +1 -1
  283. package/resources/v1/organizations/api-keys.d.ts +32 -1
  284. package/resources/v1/organizations/api-keys.d.ts.map +1 -1
  285. package/resources/v1/organizations/api-keys.js +24 -1
  286. package/resources/v1/organizations/api-keys.js.map +1 -1
  287. package/resources/v1/organizations/api-keys.mjs +24 -1
  288. package/resources/v1/organizations/api-keys.mjs.map +1 -1
  289. package/resources/v1/organizations/index.d.mts +1 -1
  290. package/resources/v1/organizations/index.d.mts.map +1 -1
  291. package/resources/v1/organizations/index.d.ts +1 -1
  292. package/resources/v1/organizations/index.d.ts.map +1 -1
  293. package/resources/v1/organizations/index.js.map +1 -1
  294. package/resources/v1/organizations/index.mjs.map +1 -1
  295. package/resources/v1/organizations/logo/logo.d.mts +6 -0
  296. package/resources/v1/organizations/logo/logo.d.mts.map +1 -1
  297. package/resources/v1/organizations/logo/logo.d.ts +6 -0
  298. package/resources/v1/organizations/logo/logo.d.ts.map +1 -1
  299. package/resources/v1/organizations/logo/logo.js +6 -0
  300. package/resources/v1/organizations/logo/logo.js.map +1 -1
  301. package/resources/v1/organizations/logo/logo.mjs +6 -0
  302. package/resources/v1/organizations/logo/logo.mjs.map +1 -1
  303. package/resources/v1/organizations/logo/upload.d.mts +12 -0
  304. package/resources/v1/organizations/logo/upload.d.mts.map +1 -1
  305. package/resources/v1/organizations/logo/upload.d.ts +12 -0
  306. package/resources/v1/organizations/logo/upload.d.ts.map +1 -1
  307. package/resources/v1/organizations/logo/upload.js +12 -0
  308. package/resources/v1/organizations/logo/upload.js.map +1 -1
  309. package/resources/v1/organizations/logo/upload.mjs +12 -0
  310. package/resources/v1/organizations/logo/upload.mjs.map +1 -1
  311. package/resources/v1/organizations/organizations.d.mts +14 -2
  312. package/resources/v1/organizations/organizations.d.mts.map +1 -1
  313. package/resources/v1/organizations/organizations.d.ts +14 -2
  314. package/resources/v1/organizations/organizations.d.ts.map +1 -1
  315. package/resources/v1/organizations/organizations.js +12 -0
  316. package/resources/v1/organizations/organizations.js.map +1 -1
  317. package/resources/v1/organizations/organizations.mjs +12 -0
  318. package/resources/v1/organizations/organizations.mjs.map +1 -1
  319. package/resources/v1/organizations/profile/models.d.mts +6 -0
  320. package/resources/v1/organizations/profile/models.d.mts.map +1 -1
  321. package/resources/v1/organizations/profile/models.d.ts +6 -0
  322. package/resources/v1/organizations/profile/models.d.ts.map +1 -1
  323. package/resources/v1/organizations/profile/models.js +6 -0
  324. package/resources/v1/organizations/profile/models.js.map +1 -1
  325. package/resources/v1/organizations/profile/models.mjs +6 -0
  326. package/resources/v1/organizations/profile/models.mjs.map +1 -1
  327. package/resources/v1/organizations/profile/profile.d.mts +14 -0
  328. package/resources/v1/organizations/profile/profile.d.mts.map +1 -1
  329. package/resources/v1/organizations/profile/profile.d.ts +14 -0
  330. package/resources/v1/organizations/profile/profile.d.ts.map +1 -1
  331. package/resources/v1/organizations/profile/profile.js +14 -0
  332. package/resources/v1/organizations/profile/profile.js.map +1 -1
  333. package/resources/v1/organizations/profile/profile.mjs +14 -0
  334. package/resources/v1/organizations/profile/profile.mjs.map +1 -1
  335. package/resources/v1/organizations/profile/team.d.mts +40 -0
  336. package/resources/v1/organizations/profile/team.d.mts.map +1 -1
  337. package/resources/v1/organizations/profile/team.d.ts +40 -0
  338. package/resources/v1/organizations/profile/team.d.ts.map +1 -1
  339. package/resources/v1/organizations/profile/team.js +40 -0
  340. package/resources/v1/organizations/profile/team.js.map +1 -1
  341. package/resources/v1/organizations/profile/team.mjs +40 -0
  342. package/resources/v1/organizations/profile/team.mjs.map +1 -1
  343. package/resources/v1/organizations/team/invite.d.mts +14 -0
  344. package/resources/v1/organizations/team/invite.d.mts.map +1 -1
  345. package/resources/v1/organizations/team/invite.d.ts +14 -0
  346. package/resources/v1/organizations/team/invite.d.ts.map +1 -1
  347. package/resources/v1/organizations/team/invite.js +14 -0
  348. package/resources/v1/organizations/team/invite.js.map +1 -1
  349. package/resources/v1/organizations/team/invite.mjs +14 -0
  350. package/resources/v1/organizations/team/invite.mjs.map +1 -1
  351. package/resources/v1/organizations/team/team.d.mts +42 -0
  352. package/resources/v1/organizations/team/team.d.mts.map +1 -1
  353. package/resources/v1/organizations/team/team.d.ts +42 -0
  354. package/resources/v1/organizations/team/team.d.ts.map +1 -1
  355. package/resources/v1/organizations/team/team.js +42 -0
  356. package/resources/v1/organizations/team/team.js.map +1 -1
  357. package/resources/v1/organizations/team/team.mjs +42 -0
  358. package/resources/v1/organizations/team/team.mjs.map +1 -1
  359. package/resources/v1/organizations/theme.d.mts +12 -0
  360. package/resources/v1/organizations/theme.d.mts.map +1 -1
  361. package/resources/v1/organizations/theme.d.ts +12 -0
  362. package/resources/v1/organizations/theme.d.ts.map +1 -1
  363. package/resources/v1/organizations/theme.js +12 -0
  364. package/resources/v1/organizations/theme.js.map +1 -1
  365. package/resources/v1/organizations/theme.mjs +12 -0
  366. package/resources/v1/organizations/theme.mjs.map +1 -1
  367. package/resources/v1/organizations/usage.d.mts +8 -0
  368. package/resources/v1/organizations/usage.d.mts.map +1 -1
  369. package/resources/v1/organizations/usage.d.ts +8 -0
  370. package/resources/v1/organizations/usage.d.ts.map +1 -1
  371. package/resources/v1/organizations/usage.js +8 -0
  372. package/resources/v1/organizations/usage.js.map +1 -1
  373. package/resources/v1/organizations/usage.mjs +8 -0
  374. package/resources/v1/organizations/usage.mjs.map +1 -1
  375. package/resources/v1/scenarios/component.d.mts +33 -1
  376. package/resources/v1/scenarios/component.d.mts.map +1 -1
  377. package/resources/v1/scenarios/component.d.ts +33 -1
  378. package/resources/v1/scenarios/component.d.ts.map +1 -1
  379. package/resources/v1/scenarios/component.js +29 -1
  380. package/resources/v1/scenarios/component.js.map +1 -1
  381. package/resources/v1/scenarios/component.mjs +29 -1
  382. package/resources/v1/scenarios/component.mjs.map +1 -1
  383. package/resources/v1/scenarios/index.d.mts +2 -2
  384. package/resources/v1/scenarios/index.d.mts.map +1 -1
  385. package/resources/v1/scenarios/index.d.ts +2 -2
  386. package/resources/v1/scenarios/index.d.ts.map +1 -1
  387. package/resources/v1/scenarios/index.js.map +1 -1
  388. package/resources/v1/scenarios/index.mjs.map +1 -1
  389. package/resources/v1/scenarios/scenarios.d.mts +63 -4
  390. package/resources/v1/scenarios/scenarios.d.mts.map +1 -1
  391. package/resources/v1/scenarios/scenarios.d.ts +63 -4
  392. package/resources/v1/scenarios/scenarios.d.ts.map +1 -1
  393. package/resources/v1/scenarios/scenarios.js +58 -2
  394. package/resources/v1/scenarios/scenarios.js.map +1 -1
  395. package/resources/v1/scenarios/scenarios.mjs +58 -2
  396. package/resources/v1/scenarios/scenarios.mjs.map +1 -1
  397. package/resources/v1/scenarios/sessions.d.mts +12 -0
  398. package/resources/v1/scenarios/sessions.d.mts.map +1 -1
  399. package/resources/v1/scenarios/sessions.d.ts +12 -0
  400. package/resources/v1/scenarios/sessions.d.ts.map +1 -1
  401. package/resources/v1/scenarios/sessions.js +12 -0
  402. package/resources/v1/scenarios/sessions.js.map +1 -1
  403. package/resources/v1/scenarios/sessions.mjs +12 -0
  404. package/resources/v1/scenarios/sessions.mjs.map +1 -1
  405. package/resources/v1/scenarios/submissions/user.d.mts +12 -0
  406. package/resources/v1/scenarios/submissions/user.d.mts.map +1 -1
  407. package/resources/v1/scenarios/submissions/user.d.ts +12 -0
  408. package/resources/v1/scenarios/submissions/user.d.ts.map +1 -1
  409. package/resources/v1/scenarios/submissions/user.js +12 -0
  410. package/resources/v1/scenarios/submissions/user.js.map +1 -1
  411. package/resources/v1/scenarios/submissions/user.mjs +12 -0
  412. package/resources/v1/scenarios/submissions/user.mjs.map +1 -1
  413. package/resources/v1/tests/component.d.mts +6 -0
  414. package/resources/v1/tests/component.d.mts.map +1 -1
  415. package/resources/v1/tests/component.d.ts +6 -0
  416. package/resources/v1/tests/component.d.ts.map +1 -1
  417. package/resources/v1/tests/component.js +6 -0
  418. package/resources/v1/tests/component.js.map +1 -1
  419. package/resources/v1/tests/component.mjs +6 -0
  420. package/resources/v1/tests/component.mjs.map +1 -1
  421. package/resources/v1/tests/index.d.mts +1 -1
  422. package/resources/v1/tests/index.d.mts.map +1 -1
  423. package/resources/v1/tests/index.d.ts +1 -1
  424. package/resources/v1/tests/index.d.ts.map +1 -1
  425. package/resources/v1/tests/index.js.map +1 -1
  426. package/resources/v1/tests/index.mjs +1 -1
  427. package/resources/v1/tests/index.mjs.map +1 -1
  428. package/resources/v1/tests/tests.d.mts +98 -4
  429. package/resources/v1/tests/tests.d.mts.map +1 -1
  430. package/resources/v1/tests/tests.d.ts +98 -4
  431. package/resources/v1/tests/tests.d.ts.map +1 -1
  432. package/resources/v1/tests/tests.js +61 -4
  433. package/resources/v1/tests/tests.js.map +1 -1
  434. package/resources/v1/tests/tests.mjs +61 -4
  435. package/resources/v1/tests/tests.mjs.map +1 -1
  436. package/resources/v1/upload/component.d.mts +38 -0
  437. package/resources/v1/upload/component.d.mts.map +1 -0
  438. package/resources/v1/upload/component.d.ts +38 -0
  439. package/resources/v1/upload/component.d.ts.map +1 -0
  440. package/resources/v1/upload/component.js +63 -0
  441. package/resources/v1/upload/component.js.map +1 -0
  442. package/resources/v1/upload/component.mjs +59 -0
  443. package/resources/v1/upload/component.mjs.map +1 -0
  444. package/resources/v1/upload/index.d.mts +3 -0
  445. package/resources/v1/upload/index.d.mts.map +1 -0
  446. package/resources/v1/upload/index.d.ts +3 -0
  447. package/resources/v1/upload/index.d.ts.map +1 -0
  448. package/resources/v1/upload/index.js +9 -0
  449. package/resources/v1/upload/index.js.map +1 -0
  450. package/resources/v1/upload/index.mjs +4 -0
  451. package/resources/v1/upload/index.mjs.map +1 -0
  452. package/resources/v1/upload/upload.d.mts +10 -0
  453. package/resources/v1/upload/upload.d.mts.map +1 -0
  454. package/resources/v1/upload/upload.d.ts +10 -0
  455. package/resources/v1/upload/upload.d.ts.map +1 -0
  456. package/resources/v1/upload/upload.js +17 -0
  457. package/resources/v1/upload/upload.js.map +1 -0
  458. package/resources/v1/upload/upload.mjs +12 -0
  459. package/resources/v1/upload/upload.mjs.map +1 -0
  460. package/resources/v1/upload.d.mts +2 -0
  461. package/resources/v1/upload.d.mts.map +1 -0
  462. package/resources/v1/upload.d.ts +2 -0
  463. package/resources/v1/upload.d.ts.map +1 -0
  464. package/resources/v1/upload.js +6 -0
  465. package/resources/v1/upload.js.map +1 -0
  466. package/resources/v1/upload.mjs +3 -0
  467. package/resources/v1/upload.mjs.map +1 -0
  468. package/resources/v1/usage.d.mts +285 -9
  469. package/resources/v1/usage.d.mts.map +1 -1
  470. package/resources/v1/usage.d.ts +285 -9
  471. package/resources/v1/usage.d.ts.map +1 -1
  472. package/resources/v1/usage.js +76 -13
  473. package/resources/v1/usage.js.map +1 -1
  474. package/resources/v1/usage.mjs +76 -13
  475. package/resources/v1/usage.mjs.map +1 -1
  476. package/resources/v1/v1.d.mts +24 -20
  477. package/resources/v1/v1.d.mts.map +1 -1
  478. package/resources/v1/v1.d.ts +24 -20
  479. package/resources/v1/v1.d.ts.map +1 -1
  480. package/resources/v1/v1.js +4 -0
  481. package/resources/v1/v1.js.map +1 -1
  482. package/resources/v1/v1.mjs +7 -3
  483. package/resources/v1/v1.mjs.map +1 -1
  484. package/src/client.ts +4 -19
  485. package/src/internal/qs/LICENSE.md +13 -0
  486. package/src/internal/qs/README.md +3 -0
  487. package/src/internal/qs/formats.ts +10 -0
  488. package/src/internal/qs/index.ts +13 -0
  489. package/src/internal/qs/stringify.ts +385 -0
  490. package/src/internal/qs/types.ts +71 -0
  491. package/src/internal/qs/utils.ts +265 -0
  492. package/src/internal/utils/log.ts +1 -0
  493. package/src/resources/v1/admin/admin.ts +6 -0
  494. package/src/resources/v1/admin/models.ts +6 -0
  495. package/src/resources/v1/admin/organization-invites.ts +26 -0
  496. package/src/resources/v1/admin/organizations/models/excluded.ts +16 -0
  497. package/src/resources/v1/admin/organizations/organizations.ts +6 -0
  498. package/src/resources/v1/audio-recaps/audio-recaps.ts +24 -0
  499. package/src/resources/v1/audio-recaps/sections.ts +21 -0
  500. package/src/resources/v1/auth/auth.ts +132 -13
  501. package/src/resources/v1/auth/index.ts +4 -2
  502. package/src/resources/v1/auth/login.ts +68 -5
  503. package/src/resources/v1/auth/number-2fa.ts +77 -11
  504. package/src/resources/v1/auth/organization-invites.ts +6 -0
  505. package/src/resources/v1/chat/chat.ts +166 -19
  506. package/src/resources/v1/chat/index.ts +1 -1
  507. package/src/resources/v1/chat/sessions.ts +14 -0
  508. package/src/resources/v1/chat/test.ts +12 -0
  509. package/src/resources/v1/components.ts +282 -5
  510. package/src/resources/v1/embed/component.ts +34 -1
  511. package/src/resources/v1/embed/embed.ts +34 -21
  512. package/src/resources/v1/embed/index.ts +1 -1
  513. package/src/resources/v1/explainers.ts +27 -2
  514. package/src/resources/v1/flashcards.ts +292 -31
  515. package/src/resources/v1/folders.ts +111 -9
  516. package/src/resources/v1/index.ts +37 -15
  517. package/src/resources/v1/materials/bulk.ts +6 -0
  518. package/src/resources/v1/materials/index.ts +7 -2
  519. package/src/resources/v1/materials/materials.ts +139 -5
  520. package/src/resources/v1/materials/test.ts +31 -7
  521. package/src/resources/v1/materials/upload.ts +86 -8
  522. package/src/resources/v1/organizations/api-keys.ts +35 -1
  523. package/src/resources/v1/organizations/index.ts +1 -1
  524. package/src/resources/v1/organizations/logo/logo.ts +6 -0
  525. package/src/resources/v1/organizations/logo/upload.ts +12 -0
  526. package/src/resources/v1/organizations/organizations.ts +14 -2
  527. package/src/resources/v1/organizations/profile/models.ts +6 -0
  528. package/src/resources/v1/organizations/profile/profile.ts +14 -0
  529. package/src/resources/v1/organizations/profile/team.ts +40 -0
  530. package/src/resources/v1/organizations/team/invite.ts +14 -0
  531. package/src/resources/v1/organizations/team/team.ts +42 -0
  532. package/src/resources/v1/organizations/theme.ts +12 -0
  533. package/src/resources/v1/organizations/usage.ts +8 -0
  534. package/src/resources/v1/scenarios/component.ts +37 -1
  535. package/src/resources/v1/scenarios/index.ts +2 -2
  536. package/src/resources/v1/scenarios/scenarios.ts +73 -4
  537. package/src/resources/v1/scenarios/sessions.ts +12 -0
  538. package/src/resources/v1/scenarios/submissions/user.ts +12 -0
  539. package/src/resources/v1/tests/component.ts +6 -0
  540. package/src/resources/v1/tests/index.ts +7 -1
  541. package/src/resources/v1/tests/tests.ts +116 -4
  542. package/src/resources/v1/upload/component.ts +65 -0
  543. package/src/resources/v1/upload/index.ts +4 -0
  544. package/src/resources/v1/upload/upload.ts +15 -0
  545. package/src/resources/v1/upload.ts +3 -0
  546. package/src/resources/v1/usage.ts +431 -16
  547. package/src/resources/v1/v1.ts +82 -20
  548. package/src/version.ts +1 -1
  549. package/version.d.mts +1 -1
  550. package/version.d.ts +1 -1
  551. package/version.js +1 -1
  552. package/version.mjs +1 -1
@@ -2,30 +2,256 @@ import { APIResource } from "../../core/resource.js";
2
2
  import { APIPromise } from "../../core/api-promise.js";
3
3
  import { RequestOptions } from "../../internal/request-options.js";
4
4
  export declare class Flashcards extends APIResource {
5
- createBatch(componentID: string, options?: RequestOptions): APIPromise<void>;
6
- getAlgorithm(options?: RequestOptions): APIPromise<void>;
5
+ /**
6
+ * Process multiple flashcard operations
7
+ *
8
+ * @example
9
+ * ```ts
10
+ * const response = await client.v1.flashcards.batchProcess(
11
+ * 'componentId',
12
+ * { operations: [{ action: 'rate', cardId: 'cardId' }] },
13
+ * );
14
+ * ```
15
+ */
16
+ batchProcess(componentID: string, body: FlashcardBatchProcessParams, options?: RequestOptions): APIPromise<FlashcardBatchProcessResponse>;
17
+ /**
18
+ * Get spaced repetition algorithm info
19
+ *
20
+ * @example
21
+ * ```ts
22
+ * const response =
23
+ * await client.v1.flashcards.getAlgorithmInfo();
24
+ * ```
25
+ */
26
+ getAlgorithmInfo(options?: RequestOptions): APIPromise<FlashcardGetAlgorithmInfoResponse>;
27
+ /**
28
+ * Get all flashcards for component
29
+ *
30
+ * @example
31
+ * ```ts
32
+ * await client.v1.flashcards.getAll('componentId');
33
+ * ```
34
+ */
35
+ getAll(componentID: string, query?: FlashcardGetAllParams | null | undefined, options?: RequestOptions): APIPromise<void>;
36
+ /**
37
+ * Get due flashcards for review
38
+ *
39
+ * @example
40
+ * ```ts
41
+ * await client.v1.flashcards.getDue('componentId', {
42
+ * groupId: 'groupId',
43
+ * });
44
+ * ```
45
+ */
7
46
  getDue(componentID: string, query: FlashcardGetDueParams, options?: RequestOptions): APIPromise<void>;
8
- getStats(componentID: string, query: FlashcardGetStatsParams, options?: RequestOptions): APIPromise<void>;
9
- listAll(componentID: string, query: FlashcardListAllParams, options?: RequestOptions): APIPromise<void>;
10
- listTypes(options?: RequestOptions): APIPromise<void>;
11
- rate(componentID: string, options?: RequestOptions): APIPromise<void>;
47
+ /**
48
+ * Get flashcard statistics
49
+ *
50
+ * @example
51
+ * ```ts
52
+ * await client.v1.flashcards.getStats('componentId');
53
+ * ```
54
+ */
55
+ getStats(componentID: string, query?: FlashcardGetStatsParams | null | undefined, options?: RequestOptions): APIPromise<void>;
56
+ /**
57
+ * Get available flashcard types
58
+ *
59
+ * @example
60
+ * ```ts
61
+ * const response = await client.v1.flashcards.getTypes();
62
+ * ```
63
+ */
64
+ getTypes(options?: RequestOptions): APIPromise<FlashcardGetTypesResponse>;
65
+ /**
66
+ * Rate a flashcard
67
+ *
68
+ * @example
69
+ * ```ts
70
+ * await client.v1.flashcards.rate('componentId', {
71
+ * cardId: 'cardId',
72
+ * rating: 0,
73
+ * });
74
+ * ```
75
+ */
76
+ rate(componentID: string, body: FlashcardRateParams, options?: RequestOptions): APIPromise<void>;
77
+ }
78
+ export interface FlashcardBatchProcessResponse {
79
+ /**
80
+ * Failed operations
81
+ */
82
+ failed?: number;
83
+ /**
84
+ * Total operations processed
85
+ */
86
+ processed?: number;
87
+ results?: Array<FlashcardBatchProcessResponse.Result>;
88
+ /**
89
+ * Overall success
90
+ */
91
+ success?: boolean;
92
+ /**
93
+ * Successful operations
94
+ */
95
+ successful?: number;
96
+ }
97
+ export declare namespace FlashcardBatchProcessResponse {
98
+ interface Result {
99
+ /**
100
+ * Flashcard ID
101
+ */
102
+ cardId: string;
103
+ /**
104
+ * Operation success
105
+ */
106
+ success: boolean;
107
+ /**
108
+ * Error message if failed
109
+ */
110
+ error?: string;
111
+ /**
112
+ * Operation result
113
+ */
114
+ result?: unknown;
115
+ }
116
+ }
117
+ export interface FlashcardGetAlgorithmInfoResponse {
118
+ /**
119
+ * Algorithm name
120
+ */
121
+ algorithm?: string;
122
+ intervals?: FlashcardGetAlgorithmInfoResponse.Intervals;
123
+ phases?: {
124
+ [key: string]: string;
125
+ };
126
+ ratings?: {
127
+ [key: string]: FlashcardGetAlgorithmInfoResponse.Ratings;
128
+ };
129
+ }
130
+ export declare namespace FlashcardGetAlgorithmInfoResponse {
131
+ interface Intervals {
132
+ /**
133
+ * Description of graduated intervals
134
+ */
135
+ graduated?: string;
136
+ /**
137
+ * Description of lapse intervals
138
+ */
139
+ lapse?: string;
140
+ /**
141
+ * Learning intervals in minutes
142
+ */
143
+ learning?: Array<number>;
144
+ }
145
+ interface Ratings {
146
+ /**
147
+ * Rating description
148
+ */
149
+ description: string;
150
+ /**
151
+ * Rating name
152
+ */
153
+ name: string;
154
+ }
155
+ }
156
+ export interface FlashcardGetTypesResponse {
157
+ descriptions?: {
158
+ [key: string]: string;
159
+ };
160
+ /**
161
+ * List of flashcard types
162
+ */
163
+ types?: Array<string>;
164
+ }
165
+ export interface FlashcardBatchProcessParams {
166
+ operations: Array<FlashcardBatchProcessParams.Operation>;
167
+ /**
168
+ * Group ID (optional)
169
+ */
170
+ groupId?: string;
171
+ /**
172
+ * User ID (optional)
173
+ */
174
+ userId?: string;
175
+ }
176
+ export declare namespace FlashcardBatchProcessParams {
177
+ interface Operation {
178
+ action: 'rate' | 'get_due' | 'get_all' | 'get_stats';
179
+ /**
180
+ * Flashcard ID
181
+ */
182
+ cardId: string;
183
+ /**
184
+ * Group ID (optional)
185
+ */
186
+ groupId?: string;
187
+ /**
188
+ * Rating for rate action (0-3)
189
+ */
190
+ rating?: number;
191
+ /**
192
+ * User ID (optional)
193
+ */
194
+ userId?: string;
195
+ }
196
+ }
197
+ export interface FlashcardGetAllParams {
198
+ /**
199
+ * Group ID
200
+ */
201
+ groupId?: string;
202
+ /**
203
+ * Max number of cards
204
+ */
205
+ limit?: number;
206
+ /**
207
+ * Offset
208
+ */
209
+ offset?: number;
210
+ /**
211
+ * User ID
212
+ */
213
+ userId?: string;
12
214
  }
13
215
  export interface FlashcardGetDueParams {
14
216
  groupId: string;
15
- limit: number;
16
- userId: string;
217
+ /**
218
+ * Max number of cards
219
+ */
220
+ limit?: number;
221
+ /**
222
+ * User ID
223
+ */
224
+ userId?: string;
17
225
  }
18
226
  export interface FlashcardGetStatsParams {
19
- groupId: string;
20
- userId: string;
227
+ /**
228
+ * Group ID
229
+ */
230
+ groupId?: string;
231
+ /**
232
+ * User ID
233
+ */
234
+ userId?: string;
21
235
  }
22
- export interface FlashcardListAllParams {
23
- groupId: string;
24
- limit: number;
25
- offset: number;
26
- userId: string;
236
+ export interface FlashcardRateParams {
237
+ /**
238
+ * Flashcard ID
239
+ */
240
+ cardId: string;
241
+ /**
242
+ * Rating (0-3)
243
+ */
244
+ rating: number;
245
+ /**
246
+ * Group ID (optional)
247
+ */
248
+ groupId?: string;
249
+ /**
250
+ * User ID (optional)
251
+ */
252
+ userId?: string;
27
253
  }
28
254
  export declare namespace Flashcards {
29
- export { type FlashcardGetDueParams as FlashcardGetDueParams, type FlashcardGetStatsParams as FlashcardGetStatsParams, type FlashcardListAllParams as FlashcardListAllParams, };
255
+ export { type FlashcardBatchProcessResponse as FlashcardBatchProcessResponse, type FlashcardGetAlgorithmInfoResponse as FlashcardGetAlgorithmInfoResponse, type FlashcardGetTypesResponse as FlashcardGetTypesResponse, type FlashcardBatchProcessParams as FlashcardBatchProcessParams, type FlashcardGetAllParams as FlashcardGetAllParams, type FlashcardGetDueParams as FlashcardGetDueParams, type FlashcardGetStatsParams as FlashcardGetStatsParams, type FlashcardRateParams as FlashcardRateParams, };
30
256
  }
31
257
  //# sourceMappingURL=flashcards.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"flashcards.d.ts","sourceRoot":"","sources":["../../src/resources/v1/flashcards.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,UAAW,SAAQ,WAAW;IACzC,WAAW,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAO5E,YAAY,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAOxD,MAAM,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQrG,QAAQ,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQzG,OAAO,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQvG,SAAS,CAAC,OAAO,CAA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,MAAM,CAAC;KACjB;CACF;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
@@ -6,18 +6,57 @@ const resource_1 = require("../../core/resource.js");
6
6
  const headers_1 = require("../../internal/headers.js");
7
7
  const path_1 = require("../../internal/utils/path.js");
8
8
  class Flashcards extends resource_1.APIResource {
9
- createBatch(componentID, options) {
10
- return this._client.post((0, path_1.path) `/api/v1/flashcards/${componentID}/batch`, {
11
- ...options,
12
- headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
13
- });
9
+ /**
10
+ * Process multiple flashcard operations
11
+ *
12
+ * @example
13
+ * ```ts
14
+ * const response = await client.v1.flashcards.batchProcess(
15
+ * 'componentId',
16
+ * { operations: [{ action: 'rate', cardId: 'cardId' }] },
17
+ * );
18
+ * ```
19
+ */
20
+ batchProcess(componentID, body, options) {
21
+ return this._client.post((0, path_1.path) `/api/v1/flashcards/${componentID}/batch`, { body, ...options });
22
+ }
23
+ /**
24
+ * Get spaced repetition algorithm info
25
+ *
26
+ * @example
27
+ * ```ts
28
+ * const response =
29
+ * await client.v1.flashcards.getAlgorithmInfo();
30
+ * ```
31
+ */
32
+ getAlgorithmInfo(options) {
33
+ return this._client.get('/api/v1/flashcards/algorithm', options);
14
34
  }
15
- getAlgorithm(options) {
16
- return this._client.get('/api/v1/flashcards/algorithm', {
35
+ /**
36
+ * Get all flashcards for component
37
+ *
38
+ * @example
39
+ * ```ts
40
+ * await client.v1.flashcards.getAll('componentId');
41
+ * ```
42
+ */
43
+ getAll(componentID, query = {}, options) {
44
+ return this._client.get((0, path_1.path) `/api/v1/flashcards/${componentID}/all`, {
45
+ query,
17
46
  ...options,
18
47
  headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
19
48
  });
20
49
  }
50
+ /**
51
+ * Get due flashcards for review
52
+ *
53
+ * @example
54
+ * ```ts
55
+ * await client.v1.flashcards.getDue('componentId', {
56
+ * groupId: 'groupId',
57
+ * });
58
+ * ```
59
+ */
21
60
  getDue(componentID, query, options) {
22
61
  return this._client.get((0, path_1.path) `/api/v1/flashcards/${componentID}/due`, {
23
62
  query,
@@ -25,28 +64,46 @@ class Flashcards extends resource_1.APIResource {
25
64
  headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
26
65
  });
27
66
  }
28
- getStats(componentID, query, options) {
67
+ /**
68
+ * Get flashcard statistics
69
+ *
70
+ * @example
71
+ * ```ts
72
+ * await client.v1.flashcards.getStats('componentId');
73
+ * ```
74
+ */
75
+ getStats(componentID, query = {}, options) {
29
76
  return this._client.get((0, path_1.path) `/api/v1/flashcards/${componentID}/stats`, {
30
77
  query,
31
78
  ...options,
32
79
  headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
33
80
  });
34
81
  }
35
- listAll(componentID, query, options) {
36
- return this._client.get((0, path_1.path) `/api/v1/flashcards/${componentID}/all`, {
37
- query,
38
- ...options,
39
- headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
40
- });
41
- }
42
- listTypes(options) {
43
- return this._client.get('/api/v1/flashcards/types', {
44
- ...options,
45
- headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
46
- });
82
+ /**
83
+ * Get available flashcard types
84
+ *
85
+ * @example
86
+ * ```ts
87
+ * const response = await client.v1.flashcards.getTypes();
88
+ * ```
89
+ */
90
+ getTypes(options) {
91
+ return this._client.get('/api/v1/flashcards/types', options);
47
92
  }
48
- rate(componentID, options) {
93
+ /**
94
+ * Rate a flashcard
95
+ *
96
+ * @example
97
+ * ```ts
98
+ * await client.v1.flashcards.rate('componentId', {
99
+ * cardId: 'cardId',
100
+ * rating: 0,
101
+ * });
102
+ * ```
103
+ */
104
+ rate(componentID, body, options) {
49
105
  return this._client.post((0, path_1.path) `/api/v1/flashcards/${componentID}/rate`, {
106
+ body,
50
107
  ...options,
51
108
  headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
52
109
  });
@@ -1 +1 @@
1
- {"version":3,"file":"flashcards.js","sourceRoot":"","sources":["../../src/resources/v1/flashcards.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,UAAW,SAAQ,sBAAW;IACzC,WA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;;;OAUG;IACH,IAAI,CAAC,WAAmB,EAAE,IAAyB,EAAE,OAAwB;QAC3E,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,sBAAsB,WAAW,OAAO,EAAE;YACrE,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AAzHD,gCAyHC"}
@@ -3,18 +3,57 @@ import { APIResource } from "../../core/resource.mjs";
3
3
  import { buildHeaders } from "../../internal/headers.mjs";
4
4
  import { path } from "../../internal/utils/path.mjs";
5
5
  export class Flashcards extends APIResource {
6
- createBatch(componentID, options) {
7
- return this._client.post(path `/api/v1/flashcards/${componentID}/batch`, {
8
- ...options,
9
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
10
- });
6
+ /**
7
+ * Process multiple flashcard operations
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * const response = await client.v1.flashcards.batchProcess(
12
+ * 'componentId',
13
+ * { operations: [{ action: 'rate', cardId: 'cardId' }] },
14
+ * );
15
+ * ```
16
+ */
17
+ batchProcess(componentID, body, options) {
18
+ return this._client.post(path `/api/v1/flashcards/${componentID}/batch`, { body, ...options });
19
+ }
20
+ /**
21
+ * Get spaced repetition algorithm info
22
+ *
23
+ * @example
24
+ * ```ts
25
+ * const response =
26
+ * await client.v1.flashcards.getAlgorithmInfo();
27
+ * ```
28
+ */
29
+ getAlgorithmInfo(options) {
30
+ return this._client.get('/api/v1/flashcards/algorithm', options);
11
31
  }
12
- getAlgorithm(options) {
13
- return this._client.get('/api/v1/flashcards/algorithm', {
32
+ /**
33
+ * Get all flashcards for component
34
+ *
35
+ * @example
36
+ * ```ts
37
+ * await client.v1.flashcards.getAll('componentId');
38
+ * ```
39
+ */
40
+ getAll(componentID, query = {}, options) {
41
+ return this._client.get(path `/api/v1/flashcards/${componentID}/all`, {
42
+ query,
14
43
  ...options,
15
44
  headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
16
45
  });
17
46
  }
47
+ /**
48
+ * Get due flashcards for review
49
+ *
50
+ * @example
51
+ * ```ts
52
+ * await client.v1.flashcards.getDue('componentId', {
53
+ * groupId: 'groupId',
54
+ * });
55
+ * ```
56
+ */
18
57
  getDue(componentID, query, options) {
19
58
  return this._client.get(path `/api/v1/flashcards/${componentID}/due`, {
20
59
  query,
@@ -22,28 +61,46 @@ export class Flashcards extends APIResource {
22
61
  headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
23
62
  });
24
63
  }
25
- getStats(componentID, query, options) {
64
+ /**
65
+ * Get flashcard statistics
66
+ *
67
+ * @example
68
+ * ```ts
69
+ * await client.v1.flashcards.getStats('componentId');
70
+ * ```
71
+ */
72
+ getStats(componentID, query = {}, options) {
26
73
  return this._client.get(path `/api/v1/flashcards/${componentID}/stats`, {
27
74
  query,
28
75
  ...options,
29
76
  headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
30
77
  });
31
78
  }
32
- listAll(componentID, query, options) {
33
- return this._client.get(path `/api/v1/flashcards/${componentID}/all`, {
34
- query,
35
- ...options,
36
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
37
- });
38
- }
39
- listTypes(options) {
40
- return this._client.get('/api/v1/flashcards/types', {
41
- ...options,
42
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
43
- });
79
+ /**
80
+ * Get available flashcard types
81
+ *
82
+ * @example
83
+ * ```ts
84
+ * const response = await client.v1.flashcards.getTypes();
85
+ * ```
86
+ */
87
+ getTypes(options) {
88
+ return this._client.get('/api/v1/flashcards/types', options);
44
89
  }
45
- rate(componentID, options) {
90
+ /**
91
+ * Rate a flashcard
92
+ *
93
+ * @example
94
+ * ```ts
95
+ * await client.v1.flashcards.rate('componentId', {
96
+ * cardId: 'cardId',
97
+ * rating: 0,
98
+ * });
99
+ * ```
100
+ */
101
+ rate(componentID, body, options) {
46
102
  return this._client.post(path `/api/v1/flashcards/${componentID}/rate`, {
103
+ body,
47
104
  ...options,
48
105
  headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
49
106
  });
@@ -1 +1 @@
1
- {"version":3,"file":"flashcards.mjs","sourceRoot":"","sources":["../../src/resources/v1/flashcards.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC,WAAW,CAAC,WAAmB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,sBAAsB,WAAW,QAAQ,EAAE;YACtE,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED,YAAY,CAAC,OAAwB;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,8BAA8B,EAAE;YACtD,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED,MAAM,CAAC,WAAmB,EAAE,KAA4B,EAAE,OAAwB;QAChF,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,sBAAsB,WAAW,MAAM,EAAE;YACnE,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED,QAAQ,CAAC,WAAmB,EAAE,KAA8B,EAAE,OAAwB;QACpF,OAAO,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,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,QAAQ,CAAC,OAAwB;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,0BAA0B,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CAAC,WAAmB,EAAE,IAAyB,EAAE,OAAwB;QAC3E,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,sBAAsB,WAAW,OAAO,EAAE;YACrE,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -2,13 +2,102 @@ import { APIResource } from "../../core/resource.mjs";
2
2
  import { APIPromise } from "../../core/api-promise.mjs";
3
3
  import { RequestOptions } from "../../internal/request-options.mjs";
4
4
  export declare class Folders extends APIResource {
5
- create(options?: RequestOptions): APIPromise<void>;
5
+ /**
6
+ * Create a new folder
7
+ *
8
+ * @example
9
+ * ```ts
10
+ * await client.v1.folders.create({ name: 'name' });
11
+ * ```
12
+ */
13
+ create(body: FolderCreateParams, options?: RequestOptions): APIPromise<void>;
14
+ /**
15
+ * Get folder by ID
16
+ *
17
+ * @example
18
+ * ```ts
19
+ * await client.v1.folders.retrieve('id');
20
+ * ```
21
+ */
6
22
  retrieve(id: string, options?: RequestOptions): APIPromise<void>;
7
- update(id: string, options?: RequestOptions): APIPromise<void>;
8
- list(options?: RequestOptions): APIPromise<void>;
23
+ /**
24
+ * Update folder
25
+ *
26
+ * @example
27
+ * ```ts
28
+ * await client.v1.folders.update('id');
29
+ * ```
30
+ */
31
+ update(id: string, body: FolderUpdateParams, options?: RequestOptions): APIPromise<void>;
32
+ /**
33
+ * Get all folders
34
+ *
35
+ * @example
36
+ * ```ts
37
+ * await client.v1.folders.list();
38
+ * ```
39
+ */
40
+ list(query?: FolderListParams | null | undefined, options?: RequestOptions): APIPromise<void>;
41
+ /**
42
+ * Delete folder
43
+ *
44
+ * @example
45
+ * ```ts
46
+ * await client.v1.folders.delete('id');
47
+ * ```
48
+ */
9
49
  delete(id: string, options?: RequestOptions): APIPromise<void>;
50
+ /**
51
+ * Get folder tree structure
52
+ *
53
+ * @example
54
+ * ```ts
55
+ * await client.v1.folders.getTree();
56
+ * ```
57
+ */
58
+ getTree(options?: RequestOptions): APIPromise<void>;
59
+ /**
60
+ * @example
61
+ * ```ts
62
+ * await client.v1.folders.listMaterials('id');
63
+ * ```
64
+ */
10
65
  listMaterials(id: string, options?: RequestOptions): APIPromise<void>;
66
+ /**
67
+ * @example
68
+ * ```ts
69
+ * await client.v1.folders.move('id');
70
+ * ```
71
+ */
11
72
  move(id: string, options?: RequestOptions): APIPromise<void>;
12
- retrieveTree(options?: RequestOptions): APIPromise<void>;
73
+ }
74
+ export interface FolderCreateParams {
75
+ /**
76
+ * Folder name
77
+ */
78
+ name: string;
79
+ /**
80
+ * Parent folder ID (optional)
81
+ */
82
+ parentId?: string;
83
+ }
84
+ export interface FolderUpdateParams {
85
+ /**
86
+ * New folder name
87
+ */
88
+ name?: string;
89
+ /**
90
+ * New parent folder ID
91
+ */
92
+ parentId?: string;
93
+ }
94
+ export interface FolderListParams {
95
+ /**
96
+ * Filter by parent folder
97
+ */
98
+ parentId?: unknown;
99
+ }
100
+ export declare namespace Folders {
101
+ export { type FolderCreateParams as FolderCreateParams, type FolderUpdateParams as FolderUpdateParams, type FolderListParams as FolderListParams, };
13
102
  }
14
103
  //# sourceMappingURL=folders.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"folders.d.mts","sourceRoot":"","sources":["../../src/resources/v1/folders.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,E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