@studyfetch/sdk 1.11.0 → 1.13.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 (454) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +364 -1
  3. package/package.json +1 -1
  4. package/resources/v1/chat/chat.d.mts +4 -4
  5. package/resources/v1/chat/chat.d.mts.map +1 -1
  6. package/resources/v1/chat/chat.d.ts +4 -4
  7. package/resources/v1/chat/chat.d.ts.map +1 -1
  8. package/resources/v1/chat/chat.js +2 -2
  9. package/resources/v1/chat/chat.js.map +1 -1
  10. package/resources/v1/chat/chat.mjs +2 -2
  11. package/resources/v1/chat/chat.mjs.map +1 -1
  12. package/resources/v1/chat/index.d.mts +1 -1
  13. package/resources/v1/chat/index.d.mts.map +1 -1
  14. package/resources/v1/chat/index.d.ts +1 -1
  15. package/resources/v1/chat/index.d.ts.map +1 -1
  16. package/resources/v1/chat/index.js.map +1 -1
  17. package/resources/v1/chat/index.mjs +1 -1
  18. package/resources/v1/chat/index.mjs.map +1 -1
  19. package/resources/v1/components.d.mts +17 -155
  20. package/resources/v1/components.d.mts.map +1 -1
  21. package/resources/v1/components.d.ts +17 -155
  22. package/resources/v1/components.d.ts.map +1 -1
  23. package/resources/v1/components.js +4 -2
  24. package/resources/v1/components.js.map +1 -1
  25. package/resources/v1/components.mjs +4 -2
  26. package/resources/v1/components.mjs.map +1 -1
  27. package/resources/v1/explainers.d.mts +9 -0
  28. package/resources/v1/explainers.d.mts.map +1 -1
  29. package/resources/v1/explainers.d.ts +9 -0
  30. package/resources/v1/explainers.d.ts.map +1 -1
  31. package/resources/v1/explainers.js +15 -0
  32. package/resources/v1/explainers.js.map +1 -1
  33. package/resources/v1/explainers.mjs +15 -0
  34. package/resources/v1/explainers.mjs.map +1 -1
  35. package/resources/v1/flashcards.d.mts +7 -8
  36. package/resources/v1/flashcards.d.mts.map +1 -1
  37. package/resources/v1/flashcards.d.ts +7 -8
  38. package/resources/v1/flashcards.d.ts.map +1 -1
  39. package/resources/v1/flashcards.js +2 -3
  40. package/resources/v1/flashcards.js.map +1 -1
  41. package/resources/v1/flashcards.mjs +2 -3
  42. package/resources/v1/flashcards.mjs.map +1 -1
  43. package/resources/v1/index.d.mts +5 -8
  44. package/resources/v1/index.d.mts.map +1 -1
  45. package/resources/v1/index.d.ts +5 -8
  46. package/resources/v1/index.d.ts.map +1 -1
  47. package/resources/v1/index.js +15 -21
  48. package/resources/v1/index.js.map +1 -1
  49. package/resources/v1/index.mjs +0 -3
  50. package/resources/v1/index.mjs.map +1 -1
  51. package/resources/v1/materials/index.d.mts +2 -2
  52. package/resources/v1/materials/index.d.mts.map +1 -1
  53. package/resources/v1/materials/index.d.ts +2 -2
  54. package/resources/v1/materials/index.d.ts.map +1 -1
  55. package/resources/v1/materials/index.js.map +1 -1
  56. package/resources/v1/materials/index.mjs +1 -1
  57. package/resources/v1/materials/index.mjs.map +1 -1
  58. package/resources/v1/materials/materials.d.mts +11 -133
  59. package/resources/v1/materials/materials.d.mts.map +1 -1
  60. package/resources/v1/materials/materials.d.ts +11 -133
  61. package/resources/v1/materials/materials.d.ts.map +1 -1
  62. package/resources/v1/materials/materials.js +2 -2
  63. package/resources/v1/materials/materials.js.map +1 -1
  64. package/resources/v1/materials/materials.mjs +3 -3
  65. package/resources/v1/materials/materials.mjs.map +1 -1
  66. package/resources/v1/materials/upload.d.mts +8 -127
  67. package/resources/v1/materials/upload.d.mts.map +1 -1
  68. package/resources/v1/materials/upload.d.ts +8 -127
  69. package/resources/v1/materials/upload.d.ts.map +1 -1
  70. package/resources/v1/materials/upload.js +4 -4
  71. package/resources/v1/materials/upload.js.map +1 -1
  72. package/resources/v1/materials/upload.mjs +4 -4
  73. package/resources/v1/materials/upload.mjs.map +1 -1
  74. package/resources/v1/scenarios/index.d.mts +1 -1
  75. package/resources/v1/scenarios/index.d.mts.map +1 -1
  76. package/resources/v1/scenarios/index.d.ts +1 -1
  77. package/resources/v1/scenarios/index.d.ts.map +1 -1
  78. package/resources/v1/scenarios/index.js.map +1 -1
  79. package/resources/v1/scenarios/index.mjs.map +1 -1
  80. package/resources/v1/scenarios/scenarios.d.mts +54 -4
  81. package/resources/v1/scenarios/scenarios.d.mts.map +1 -1
  82. package/resources/v1/scenarios/scenarios.d.ts +54 -4
  83. package/resources/v1/scenarios/scenarios.d.ts.map +1 -1
  84. package/resources/v1/scenarios/scenarios.js +2 -2
  85. package/resources/v1/scenarios/scenarios.js.map +1 -1
  86. package/resources/v1/scenarios/scenarios.mjs +2 -2
  87. package/resources/v1/scenarios/scenarios.mjs.map +1 -1
  88. package/resources/v1/scenarios/submissions/user.d.mts +6 -4
  89. package/resources/v1/scenarios/submissions/user.d.mts.map +1 -1
  90. package/resources/v1/scenarios/submissions/user.d.ts +6 -4
  91. package/resources/v1/scenarios/submissions/user.d.ts.map +1 -1
  92. package/resources/v1/scenarios/submissions/user.js +8 -6
  93. package/resources/v1/scenarios/submissions/user.js.map +1 -1
  94. package/resources/v1/scenarios/submissions/user.mjs +8 -6
  95. package/resources/v1/scenarios/submissions/user.mjs.map +1 -1
  96. package/resources/v1/v1.d.mts +13 -25
  97. package/resources/v1/v1.d.mts.map +1 -1
  98. package/resources/v1/v1.d.ts +13 -25
  99. package/resources/v1/v1.d.ts.map +1 -1
  100. package/resources/v1/v1.js +4 -16
  101. package/resources/v1/v1.js.map +1 -1
  102. package/resources/v1/v1.mjs +4 -16
  103. package/resources/v1/v1.mjs.map +1 -1
  104. package/src/resources/v1/chat/chat.ts +4 -8
  105. package/src/resources/v1/chat/index.ts +1 -6
  106. package/src/resources/v1/components.ts +21 -222
  107. package/src/resources/v1/explainers.ts +16 -0
  108. package/src/resources/v1/flashcards.ts +7 -8
  109. package/src/resources/v1/index.ts +8 -13
  110. package/src/resources/v1/materials/index.ts +2 -9
  111. package/src/resources/v1/materials/materials.ts +10 -177
  112. package/src/resources/v1/materials/upload.ts +7 -164
  113. package/src/resources/v1/scenarios/index.ts +2 -1
  114. package/src/resources/v1/scenarios/scenarios.ts +67 -4
  115. package/src/resources/v1/scenarios/submissions/user.ts +8 -6
  116. package/src/resources/v1/v1.ts +38 -60
  117. package/src/version.ts +1 -1
  118. package/version.d.mts +1 -1
  119. package/version.d.ts +1 -1
  120. package/version.js +1 -1
  121. package/version.mjs +1 -1
  122. package/resources/v1/admin/admin.d.mts +0 -18
  123. package/resources/v1/admin/admin.d.mts.map +0 -1
  124. package/resources/v1/admin/admin.d.ts +0 -18
  125. package/resources/v1/admin/admin.d.ts.map +0 -1
  126. package/resources/v1/admin/admin.js +0 -25
  127. package/resources/v1/admin/admin.js.map +0 -1
  128. package/resources/v1/admin/admin.mjs +0 -20
  129. package/resources/v1/admin/admin.mjs.map +0 -1
  130. package/resources/v1/admin/index.d.mts +0 -5
  131. package/resources/v1/admin/index.d.mts.map +0 -1
  132. package/resources/v1/admin/index.d.ts +0 -5
  133. package/resources/v1/admin/index.d.ts.map +0 -1
  134. package/resources/v1/admin/index.js +0 -13
  135. package/resources/v1/admin/index.js.map +0 -1
  136. package/resources/v1/admin/index.mjs +0 -6
  137. package/resources/v1/admin/index.mjs.map +0 -1
  138. package/resources/v1/admin/models.d.mts +0 -4
  139. package/resources/v1/admin/models.d.mts.map +0 -1
  140. package/resources/v1/admin/models.d.ts +0 -4
  141. package/resources/v1/admin/models.d.ts.map +0 -1
  142. package/resources/v1/admin/models.js +0 -9
  143. package/resources/v1/admin/models.js.map +0 -1
  144. package/resources/v1/admin/models.mjs +0 -5
  145. package/resources/v1/admin/models.mjs.map +0 -1
  146. package/resources/v1/admin/organization-invites.d.mts +0 -4
  147. package/resources/v1/admin/organization-invites.d.mts.map +0 -1
  148. package/resources/v1/admin/organization-invites.d.ts +0 -4
  149. package/resources/v1/admin/organization-invites.d.ts.map +0 -1
  150. package/resources/v1/admin/organization-invites.js +0 -9
  151. package/resources/v1/admin/organization-invites.js.map +0 -1
  152. package/resources/v1/admin/organization-invites.mjs +0 -5
  153. package/resources/v1/admin/organization-invites.mjs.map +0 -1
  154. package/resources/v1/admin/organizations/index.d.mts +0 -3
  155. package/resources/v1/admin/organizations/index.d.mts.map +0 -1
  156. package/resources/v1/admin/organizations/index.d.ts +0 -3
  157. package/resources/v1/admin/organizations/index.d.ts.map +0 -1
  158. package/resources/v1/admin/organizations/index.js +0 -9
  159. package/resources/v1/admin/organizations/index.js.map +0 -1
  160. package/resources/v1/admin/organizations/index.mjs +0 -4
  161. package/resources/v1/admin/organizations/index.mjs.map +0 -1
  162. package/resources/v1/admin/organizations/models/excluded.d.mts +0 -4
  163. package/resources/v1/admin/organizations/models/excluded.d.mts.map +0 -1
  164. package/resources/v1/admin/organizations/models/excluded.d.ts +0 -4
  165. package/resources/v1/admin/organizations/models/excluded.d.ts.map +0 -1
  166. package/resources/v1/admin/organizations/models/excluded.js +0 -9
  167. package/resources/v1/admin/organizations/models/excluded.js.map +0 -1
  168. package/resources/v1/admin/organizations/models/excluded.mjs +0 -5
  169. package/resources/v1/admin/organizations/models/excluded.mjs.map +0 -1
  170. package/resources/v1/admin/organizations/models/index.d.mts +0 -3
  171. package/resources/v1/admin/organizations/models/index.d.mts.map +0 -1
  172. package/resources/v1/admin/organizations/models/index.d.ts +0 -3
  173. package/resources/v1/admin/organizations/models/index.d.ts.map +0 -1
  174. package/resources/v1/admin/organizations/models/index.js +0 -9
  175. package/resources/v1/admin/organizations/models/index.js.map +0 -1
  176. package/resources/v1/admin/organizations/models/index.mjs +0 -4
  177. package/resources/v1/admin/organizations/models/index.mjs.map +0 -1
  178. package/resources/v1/admin/organizations/models/models.d.mts +0 -10
  179. package/resources/v1/admin/organizations/models/models.d.mts.map +0 -1
  180. package/resources/v1/admin/organizations/models/models.d.ts +0 -10
  181. package/resources/v1/admin/organizations/models/models.d.ts.map +0 -1
  182. package/resources/v1/admin/organizations/models/models.js +0 -17
  183. package/resources/v1/admin/organizations/models/models.js.map +0 -1
  184. package/resources/v1/admin/organizations/models/models.mjs +0 -12
  185. package/resources/v1/admin/organizations/models/models.mjs.map +0 -1
  186. package/resources/v1/admin/organizations/models.d.mts +0 -2
  187. package/resources/v1/admin/organizations/models.d.mts.map +0 -1
  188. package/resources/v1/admin/organizations/models.d.ts +0 -2
  189. package/resources/v1/admin/organizations/models.d.ts.map +0 -1
  190. package/resources/v1/admin/organizations/models.js +0 -6
  191. package/resources/v1/admin/organizations/models.js.map +0 -1
  192. package/resources/v1/admin/organizations/models.mjs +0 -3
  193. package/resources/v1/admin/organizations/models.mjs.map +0 -1
  194. package/resources/v1/admin/organizations/organizations.d.mts +0 -10
  195. package/resources/v1/admin/organizations/organizations.d.mts.map +0 -1
  196. package/resources/v1/admin/organizations/organizations.d.ts +0 -10
  197. package/resources/v1/admin/organizations/organizations.d.ts.map +0 -1
  198. package/resources/v1/admin/organizations/organizations.js +0 -17
  199. package/resources/v1/admin/organizations/organizations.js.map +0 -1
  200. package/resources/v1/admin/organizations/organizations.mjs +0 -12
  201. package/resources/v1/admin/organizations/organizations.mjs.map +0 -1
  202. package/resources/v1/admin/organizations.d.mts +0 -2
  203. package/resources/v1/admin/organizations.d.mts.map +0 -1
  204. package/resources/v1/admin/organizations.d.ts +0 -2
  205. package/resources/v1/admin/organizations.d.ts.map +0 -1
  206. package/resources/v1/admin/organizations.js +0 -6
  207. package/resources/v1/admin/organizations.js.map +0 -1
  208. package/resources/v1/admin/organizations.mjs +0 -3
  209. package/resources/v1/admin/organizations.mjs.map +0 -1
  210. package/resources/v1/admin.d.mts +0 -2
  211. package/resources/v1/admin.d.mts.map +0 -1
  212. package/resources/v1/admin.d.ts +0 -2
  213. package/resources/v1/admin.d.ts.map +0 -1
  214. package/resources/v1/admin.js +0 -6
  215. package/resources/v1/admin.js.map +0 -1
  216. package/resources/v1/admin.mjs +0 -3
  217. package/resources/v1/admin.mjs.map +0 -1
  218. package/resources/v1/auth/auth.d.mts +0 -29
  219. package/resources/v1/auth/auth.d.mts.map +0 -1
  220. package/resources/v1/auth/auth.d.ts +0 -29
  221. package/resources/v1/auth/auth.d.ts.map +0 -1
  222. package/resources/v1/auth/auth.js +0 -40
  223. package/resources/v1/auth/auth.js.map +0 -1
  224. package/resources/v1/auth/auth.mjs +0 -35
  225. package/resources/v1/auth/auth.mjs.map +0 -1
  226. package/resources/v1/auth/index.d.mts +0 -5
  227. package/resources/v1/auth/index.d.mts.map +0 -1
  228. package/resources/v1/auth/index.d.ts +0 -5
  229. package/resources/v1/auth/index.d.ts.map +0 -1
  230. package/resources/v1/auth/index.js +0 -13
  231. package/resources/v1/auth/index.js.map +0 -1
  232. package/resources/v1/auth/index.mjs +0 -6
  233. package/resources/v1/auth/index.mjs.map +0 -1
  234. package/resources/v1/auth/login.d.mts +0 -4
  235. package/resources/v1/auth/login.d.mts.map +0 -1
  236. package/resources/v1/auth/login.d.ts +0 -4
  237. package/resources/v1/auth/login.d.ts.map +0 -1
  238. package/resources/v1/auth/login.js +0 -9
  239. package/resources/v1/auth/login.js.map +0 -1
  240. package/resources/v1/auth/login.mjs +0 -5
  241. package/resources/v1/auth/login.mjs.map +0 -1
  242. package/resources/v1/auth/number-2fa.d.mts +0 -24
  243. package/resources/v1/auth/number-2fa.d.mts.map +0 -1
  244. package/resources/v1/auth/number-2fa.d.ts +0 -24
  245. package/resources/v1/auth/number-2fa.d.ts.map +0 -1
  246. package/resources/v1/auth/number-2fa.js +0 -25
  247. package/resources/v1/auth/number-2fa.js.map +0 -1
  248. package/resources/v1/auth/number-2fa.mjs +0 -21
  249. package/resources/v1/auth/number-2fa.mjs.map +0 -1
  250. package/resources/v1/auth/organization-invites.d.mts +0 -4
  251. package/resources/v1/auth/organization-invites.d.mts.map +0 -1
  252. package/resources/v1/auth/organization-invites.d.ts +0 -4
  253. package/resources/v1/auth/organization-invites.d.ts.map +0 -1
  254. package/resources/v1/auth/organization-invites.js +0 -9
  255. package/resources/v1/auth/organization-invites.js.map +0 -1
  256. package/resources/v1/auth/organization-invites.mjs +0 -5
  257. package/resources/v1/auth/organization-invites.mjs.map +0 -1
  258. package/resources/v1/auth.d.mts +0 -2
  259. package/resources/v1/auth.d.mts.map +0 -1
  260. package/resources/v1/auth.d.ts +0 -2
  261. package/resources/v1/auth.d.ts.map +0 -1
  262. package/resources/v1/auth.js +0 -6
  263. package/resources/v1/auth.js.map +0 -1
  264. package/resources/v1/auth.mjs +0 -3
  265. package/resources/v1/auth.mjs.map +0 -1
  266. package/resources/v1/organizations/api-keys.d.mts +0 -4
  267. package/resources/v1/organizations/api-keys.d.mts.map +0 -1
  268. package/resources/v1/organizations/api-keys.d.ts +0 -4
  269. package/resources/v1/organizations/api-keys.d.ts.map +0 -1
  270. package/resources/v1/organizations/api-keys.js +0 -9
  271. package/resources/v1/organizations/api-keys.js.map +0 -1
  272. package/resources/v1/organizations/api-keys.mjs +0 -5
  273. package/resources/v1/organizations/api-keys.mjs.map +0 -1
  274. package/resources/v1/organizations/index.d.mts +0 -8
  275. package/resources/v1/organizations/index.d.mts.map +0 -1
  276. package/resources/v1/organizations/index.d.ts +0 -8
  277. package/resources/v1/organizations/index.d.ts.map +0 -1
  278. package/resources/v1/organizations/index.js +0 -19
  279. package/resources/v1/organizations/index.js.map +0 -1
  280. package/resources/v1/organizations/index.mjs +0 -9
  281. package/resources/v1/organizations/index.mjs.map +0 -1
  282. package/resources/v1/organizations/logo/index.d.mts +0 -3
  283. package/resources/v1/organizations/logo/index.d.mts.map +0 -1
  284. package/resources/v1/organizations/logo/index.d.ts +0 -3
  285. package/resources/v1/organizations/logo/index.d.ts.map +0 -1
  286. package/resources/v1/organizations/logo/index.js +0 -9
  287. package/resources/v1/organizations/logo/index.js.map +0 -1
  288. package/resources/v1/organizations/logo/index.mjs +0 -4
  289. package/resources/v1/organizations/logo/index.mjs.map +0 -1
  290. package/resources/v1/organizations/logo/logo.d.mts +0 -10
  291. package/resources/v1/organizations/logo/logo.d.mts.map +0 -1
  292. package/resources/v1/organizations/logo/logo.d.ts +0 -10
  293. package/resources/v1/organizations/logo/logo.d.ts.map +0 -1
  294. package/resources/v1/organizations/logo/logo.js +0 -17
  295. package/resources/v1/organizations/logo/logo.js.map +0 -1
  296. package/resources/v1/organizations/logo/logo.mjs +0 -12
  297. package/resources/v1/organizations/logo/logo.mjs.map +0 -1
  298. package/resources/v1/organizations/logo/upload.d.mts +0 -4
  299. package/resources/v1/organizations/logo/upload.d.mts.map +0 -1
  300. package/resources/v1/organizations/logo/upload.d.ts +0 -4
  301. package/resources/v1/organizations/logo/upload.d.ts.map +0 -1
  302. package/resources/v1/organizations/logo/upload.js +0 -9
  303. package/resources/v1/organizations/logo/upload.js.map +0 -1
  304. package/resources/v1/organizations/logo/upload.mjs +0 -5
  305. package/resources/v1/organizations/logo/upload.mjs.map +0 -1
  306. package/resources/v1/organizations/logo.d.mts +0 -2
  307. package/resources/v1/organizations/logo.d.mts.map +0 -1
  308. package/resources/v1/organizations/logo.d.ts +0 -2
  309. package/resources/v1/organizations/logo.d.ts.map +0 -1
  310. package/resources/v1/organizations/logo.js +0 -6
  311. package/resources/v1/organizations/logo.js.map +0 -1
  312. package/resources/v1/organizations/logo.mjs +0 -3
  313. package/resources/v1/organizations/logo.mjs.map +0 -1
  314. package/resources/v1/organizations/organizations.d.mts +0 -30
  315. package/resources/v1/organizations/organizations.d.mts.map +0 -1
  316. package/resources/v1/organizations/organizations.d.ts +0 -30
  317. package/resources/v1/organizations/organizations.d.ts.map +0 -1
  318. package/resources/v1/organizations/organizations.js +0 -37
  319. package/resources/v1/organizations/organizations.js.map +0 -1
  320. package/resources/v1/organizations/organizations.mjs +0 -32
  321. package/resources/v1/organizations/organizations.mjs.map +0 -1
  322. package/resources/v1/organizations/profile/index.d.mts +0 -4
  323. package/resources/v1/organizations/profile/index.d.mts.map +0 -1
  324. package/resources/v1/organizations/profile/index.d.ts +0 -4
  325. package/resources/v1/organizations/profile/index.d.ts.map +0 -1
  326. package/resources/v1/organizations/profile/index.js +0 -11
  327. package/resources/v1/organizations/profile/index.js.map +0 -1
  328. package/resources/v1/organizations/profile/index.mjs +0 -5
  329. package/resources/v1/organizations/profile/index.mjs.map +0 -1
  330. package/resources/v1/organizations/profile/models.d.mts +0 -4
  331. package/resources/v1/organizations/profile/models.d.mts.map +0 -1
  332. package/resources/v1/organizations/profile/models.d.ts +0 -4
  333. package/resources/v1/organizations/profile/models.d.ts.map +0 -1
  334. package/resources/v1/organizations/profile/models.js +0 -9
  335. package/resources/v1/organizations/profile/models.js.map +0 -1
  336. package/resources/v1/organizations/profile/models.mjs +0 -5
  337. package/resources/v1/organizations/profile/models.mjs.map +0 -1
  338. package/resources/v1/organizations/profile/profile.d.mts +0 -14
  339. package/resources/v1/organizations/profile/profile.d.mts.map +0 -1
  340. package/resources/v1/organizations/profile/profile.d.ts +0 -14
  341. package/resources/v1/organizations/profile/profile.d.ts.map +0 -1
  342. package/resources/v1/organizations/profile/profile.js +0 -21
  343. package/resources/v1/organizations/profile/profile.js.map +0 -1
  344. package/resources/v1/organizations/profile/profile.mjs +0 -16
  345. package/resources/v1/organizations/profile/profile.mjs.map +0 -1
  346. package/resources/v1/organizations/profile/team.d.mts +0 -4
  347. package/resources/v1/organizations/profile/team.d.mts.map +0 -1
  348. package/resources/v1/organizations/profile/team.d.ts +0 -4
  349. package/resources/v1/organizations/profile/team.d.ts.map +0 -1
  350. package/resources/v1/organizations/profile/team.js +0 -9
  351. package/resources/v1/organizations/profile/team.js.map +0 -1
  352. package/resources/v1/organizations/profile/team.mjs +0 -5
  353. package/resources/v1/organizations/profile/team.mjs.map +0 -1
  354. package/resources/v1/organizations/profile.d.mts +0 -2
  355. package/resources/v1/organizations/profile.d.mts.map +0 -1
  356. package/resources/v1/organizations/profile.d.ts +0 -2
  357. package/resources/v1/organizations/profile.d.ts.map +0 -1
  358. package/resources/v1/organizations/profile.js +0 -6
  359. package/resources/v1/organizations/profile.js.map +0 -1
  360. package/resources/v1/organizations/profile.mjs +0 -3
  361. package/resources/v1/organizations/profile.mjs.map +0 -1
  362. package/resources/v1/organizations/team/index.d.mts +0 -3
  363. package/resources/v1/organizations/team/index.d.mts.map +0 -1
  364. package/resources/v1/organizations/team/index.d.ts +0 -3
  365. package/resources/v1/organizations/team/index.d.ts.map +0 -1
  366. package/resources/v1/organizations/team/index.js +0 -9
  367. package/resources/v1/organizations/team/index.js.map +0 -1
  368. package/resources/v1/organizations/team/index.mjs +0 -4
  369. package/resources/v1/organizations/team/index.mjs.map +0 -1
  370. package/resources/v1/organizations/team/invite.d.mts +0 -4
  371. package/resources/v1/organizations/team/invite.d.mts.map +0 -1
  372. package/resources/v1/organizations/team/invite.d.ts +0 -4
  373. package/resources/v1/organizations/team/invite.d.ts.map +0 -1
  374. package/resources/v1/organizations/team/invite.js +0 -9
  375. package/resources/v1/organizations/team/invite.js.map +0 -1
  376. package/resources/v1/organizations/team/invite.mjs +0 -5
  377. package/resources/v1/organizations/team/invite.mjs.map +0 -1
  378. package/resources/v1/organizations/team/team.d.mts +0 -10
  379. package/resources/v1/organizations/team/team.d.mts.map +0 -1
  380. package/resources/v1/organizations/team/team.d.ts +0 -10
  381. package/resources/v1/organizations/team/team.d.ts.map +0 -1
  382. package/resources/v1/organizations/team/team.js +0 -17
  383. package/resources/v1/organizations/team/team.js.map +0 -1
  384. package/resources/v1/organizations/team/team.mjs +0 -12
  385. package/resources/v1/organizations/team/team.mjs.map +0 -1
  386. package/resources/v1/organizations/team.d.mts +0 -2
  387. package/resources/v1/organizations/team.d.mts.map +0 -1
  388. package/resources/v1/organizations/team.d.ts +0 -2
  389. package/resources/v1/organizations/team.d.ts.map +0 -1
  390. package/resources/v1/organizations/team.js +0 -6
  391. package/resources/v1/organizations/team.js.map +0 -1
  392. package/resources/v1/organizations/team.mjs +0 -3
  393. package/resources/v1/organizations/team.mjs.map +0 -1
  394. package/resources/v1/organizations/theme.d.mts +0 -4
  395. package/resources/v1/organizations/theme.d.mts.map +0 -1
  396. package/resources/v1/organizations/theme.d.ts +0 -4
  397. package/resources/v1/organizations/theme.d.ts.map +0 -1
  398. package/resources/v1/organizations/theme.js +0 -9
  399. package/resources/v1/organizations/theme.js.map +0 -1
  400. package/resources/v1/organizations/theme.mjs +0 -5
  401. package/resources/v1/organizations/theme.mjs.map +0 -1
  402. package/resources/v1/organizations/usage.d.mts +0 -4
  403. package/resources/v1/organizations/usage.d.mts.map +0 -1
  404. package/resources/v1/organizations/usage.d.ts +0 -4
  405. package/resources/v1/organizations/usage.d.ts.map +0 -1
  406. package/resources/v1/organizations/usage.js +0 -9
  407. package/resources/v1/organizations/usage.js.map +0 -1
  408. package/resources/v1/organizations/usage.mjs +0 -5
  409. package/resources/v1/organizations/usage.mjs.map +0 -1
  410. package/resources/v1/organizations.d.mts +0 -2
  411. package/resources/v1/organizations.d.mts.map +0 -1
  412. package/resources/v1/organizations.d.ts +0 -2
  413. package/resources/v1/organizations.d.ts.map +0 -1
  414. package/resources/v1/organizations.js +0 -6
  415. package/resources/v1/organizations.js.map +0 -1
  416. package/resources/v1/organizations.mjs +0 -3
  417. package/resources/v1/organizations.mjs.map +0 -1
  418. package/src/resources/v1/admin/admin.ts +0 -28
  419. package/src/resources/v1/admin/index.ts +0 -6
  420. package/src/resources/v1/admin/models.ts +0 -5
  421. package/src/resources/v1/admin/organization-invites.ts +0 -5
  422. package/src/resources/v1/admin/organizations/index.ts +0 -4
  423. package/src/resources/v1/admin/organizations/models/excluded.ts +0 -5
  424. package/src/resources/v1/admin/organizations/models/index.ts +0 -4
  425. package/src/resources/v1/admin/organizations/models/models.ts +0 -15
  426. package/src/resources/v1/admin/organizations/models.ts +0 -3
  427. package/src/resources/v1/admin/organizations/organizations.ts +0 -15
  428. package/src/resources/v1/admin/organizations.ts +0 -3
  429. package/src/resources/v1/admin.ts +0 -3
  430. package/src/resources/v1/auth/auth.ts +0 -46
  431. package/src/resources/v1/auth/index.ts +0 -6
  432. package/src/resources/v1/auth/login.ts +0 -5
  433. package/src/resources/v1/auth/number-2fa.ts +0 -35
  434. package/src/resources/v1/auth/organization-invites.ts +0 -5
  435. package/src/resources/v1/auth.ts +0 -3
  436. package/src/resources/v1/organizations/api-keys.ts +0 -5
  437. package/src/resources/v1/organizations/index.ts +0 -9
  438. package/src/resources/v1/organizations/logo/index.ts +0 -4
  439. package/src/resources/v1/organizations/logo/logo.ts +0 -15
  440. package/src/resources/v1/organizations/logo/upload.ts +0 -5
  441. package/src/resources/v1/organizations/logo.ts +0 -3
  442. package/src/resources/v1/organizations/organizations.ts +0 -45
  443. package/src/resources/v1/organizations/profile/index.ts +0 -5
  444. package/src/resources/v1/organizations/profile/models.ts +0 -5
  445. package/src/resources/v1/organizations/profile/profile.ts +0 -21
  446. package/src/resources/v1/organizations/profile/team.ts +0 -5
  447. package/src/resources/v1/organizations/profile.ts +0 -3
  448. package/src/resources/v1/organizations/team/index.ts +0 -4
  449. package/src/resources/v1/organizations/team/invite.ts +0 -5
  450. package/src/resources/v1/organizations/team/team.ts +0 -15
  451. package/src/resources/v1/organizations/team.ts +0 -3
  452. package/src/resources/v1/organizations/theme.ts +0 -5
  453. package/src/resources/v1/organizations/usage.ts +0 -5
  454. package/src/resources/v1/organizations.ts +0 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.13.0 (2025-07-20)
4
+
5
+ Full Changelog: [v1.12.0...v1.13.0](https://github.com/GoStudyFetchGo/studyfetch-sdk/compare/v1.12.0...v1.13.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([efbe509](https://github.com/GoStudyFetchGo/studyfetch-sdk/commit/efbe50917d2f4c778a6a94fc3e4fdba4bfad30bc))
10
+ * **api:** manual updates ([23869a0](https://github.com/GoStudyFetchGo/studyfetch-sdk/commit/23869a0f07ee86682280610662c3b04bcbe8418b))
11
+ * **api:** manual updates ([a26a064](https://github.com/GoStudyFetchGo/studyfetch-sdk/commit/a26a0648a6df372188dd246984222a224a103ade))
12
+
13
+ ## 1.12.0 (2025-07-20)
14
+
15
+ Full Changelog: [v1.11.0...v1.12.0](https://github.com/GoStudyFetchGo/studyfetch-sdk/compare/v1.11.0...v1.12.0)
16
+
17
+ ### Features
18
+
19
+ * **api:** api update ([4f1164a](https://github.com/GoStudyFetchGo/studyfetch-sdk/commit/4f1164a403a90f0a3f2b9396b2c772211562d64d))
20
+ * **api:** manual updates ([50ff997](https://github.com/GoStudyFetchGo/studyfetch-sdk/commit/50ff9971504f8f75871278e594dd8bb19c5c4b06))
21
+ * **api:** manual updates ([01ac410](https://github.com/GoStudyFetchGo/studyfetch-sdk/commit/01ac4104f801227d43f6e41d53006cff07f269e0))
22
+
3
23
  ## 1.11.0 (2025-07-20)
4
24
 
5
25
  Full Changelog: [v1.10.0...v1.11.0](https://github.com/GoStudyFetchGo/studyfetch-sdk/compare/v1.10.0...v1.11.0)
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  This library provides convenient access to the Studyfetch SDK REST API from server-side TypeScript or JavaScript.
6
6
 
7
- The REST API documentation can be found on [studyfetch.com](https://studyfetch.com/docs). The full API of this library can be found in [api.md](api.md).
7
+ The full API of this library can be found in [api.md](api.md).
8
8
 
9
9
  ## Installation
10
10
 
@@ -24,4 +24,367 @@ const client = new StudyfetchSDK({
24
24
  apiKey: process.env['STUDYFETCH_SDK_API_KEY'], // This is the default and can be omitted
25
25
  });
26
26
 
27
+ const materials = await client.v1.materials.list();
28
+ ```
29
+
30
+ ### Request & Response types
31
+
32
+ This library includes TypeScript definitions for all request params and response fields. You may import and use them like so:
33
+
34
+ <!-- prettier-ignore -->
35
+ ```ts
36
+ import StudyfetchSDK from '@studyfetch/sdk';
37
+
38
+ const client = new StudyfetchSDK({
39
+ apiKey: process.env['STUDYFETCH_SDK_API_KEY'], // This is the default and can be omitted
40
+ });
41
+
42
+ const materials: StudyfetchSDK.V1.MaterialListResponse = await client.v1.materials.list();
43
+ ```
44
+
45
+ Documentation for each method, request param, and response field are available in docstrings and will appear on hover in most modern editors.
46
+
47
+ ## File uploads
48
+
49
+ Request parameters that correspond to file uploads can be passed in many different forms:
50
+
51
+ - `File` (or an object with the same structure)
52
+ - a `fetch` `Response` (or an object with the same structure)
53
+ - an `fs.ReadStream`
54
+ - the return value of our `toFile` helper
55
+
56
+ ```ts
57
+ import fs from 'fs';
58
+ import StudyfetchSDK, { toFile } from '@studyfetch/sdk';
59
+
60
+ const client = new StudyfetchSDK();
61
+
62
+ // If you have access to Node `fs` we recommend using `fs.createReadStream()`:
63
+ await client.v1.materials.upload.uploadFile({ file: fs.createReadStream('/path/to/file'), name: 'name' });
64
+
65
+ // Or if you have the web `File` API you can pass a `File` instance:
66
+ await client.v1.materials.upload.uploadFile({ file: new File(['my bytes'], 'file'), name: 'name' });
67
+
68
+ // You can also pass a `fetch` `Response`:
69
+ await client.v1.materials.upload.uploadFile({ file: await fetch('https://somesite/file'), name: 'name' });
70
+
71
+ // Finally, if none of the above are convenient, you can use our `toFile` helper:
72
+ await client.v1.materials.upload.uploadFile({
73
+ file: await toFile(Buffer.from('my bytes'), 'file'),
74
+ name: 'name',
75
+ });
76
+ await client.v1.materials.upload.uploadFile({
77
+ file: await toFile(new Uint8Array([0, 1, 2]), 'file'),
78
+ name: 'name',
79
+ });
80
+ ```
81
+
82
+ ## Handling errors
83
+
84
+ When the library is unable to connect to the API,
85
+ or if the API returns a non-success status code (i.e., 4xx or 5xx response),
86
+ a subclass of `APIError` will be thrown:
87
+
88
+ <!-- prettier-ignore -->
89
+ ```ts
90
+ const materials = await client.v1.materials.list().catch(async (err) => {
91
+ if (err instanceof StudyfetchSDK.APIError) {
92
+ console.log(err.status); // 400
93
+ console.log(err.name); // BadRequestError
94
+ console.log(err.headers); // {server: 'nginx', ...}
95
+ } else {
96
+ throw err;
97
+ }
98
+ });
99
+ ```
100
+
101
+ Error codes are as follows:
102
+
103
+ | Status Code | Error Type |
104
+ | ----------- | -------------------------- |
105
+ | 400 | `BadRequestError` |
106
+ | 401 | `AuthenticationError` |
107
+ | 403 | `PermissionDeniedError` |
108
+ | 404 | `NotFoundError` |
109
+ | 422 | `UnprocessableEntityError` |
110
+ | 429 | `RateLimitError` |
111
+ | >=500 | `InternalServerError` |
112
+ | N/A | `APIConnectionError` |
113
+
114
+ ### Retries
115
+
116
+ Certain errors will be automatically retried 2 times by default, with a short exponential backoff.
117
+ Connection errors (for example, due to a network connectivity problem), 408 Request Timeout, 409 Conflict,
118
+ 429 Rate Limit, and >=500 Internal errors will all be retried by default.
119
+
120
+ You can use the `maxRetries` option to configure or disable this:
121
+
122
+ <!-- prettier-ignore -->
123
+ ```js
124
+ // Configure the default for all requests:
125
+ const client = new StudyfetchSDK({
126
+ maxRetries: 0, // default is 2
127
+ });
128
+
129
+ // Or, configure per-request:
130
+ await client.v1.materials.list({
131
+ maxRetries: 5,
132
+ });
133
+ ```
134
+
135
+ ### Timeouts
136
+
137
+ Requests time out after 1 minute by default. You can configure this with a `timeout` option:
138
+
139
+ <!-- prettier-ignore -->
140
+ ```ts
141
+ // Configure the default for all requests:
142
+ const client = new StudyfetchSDK({
143
+ timeout: 20 * 1000, // 20 seconds (default is 1 minute)
144
+ });
145
+
146
+ // Override per-request:
147
+ await client.v1.materials.list({
148
+ timeout: 5 * 1000,
149
+ });
150
+ ```
151
+
152
+ On timeout, an `APIConnectionTimeoutError` is thrown.
153
+
154
+ Note that requests which time out will be [retried twice by default](#retries).
155
+
156
+ ## Advanced Usage
157
+
158
+ ### Accessing raw Response data (e.g., headers)
159
+
160
+ The "raw" `Response` returned by `fetch()` can be accessed through the `.asResponse()` method on the `APIPromise` type that all methods return.
161
+ This method returns as soon as the headers for a successful response are received and does not consume the response body, so you are free to write custom parsing or streaming logic.
162
+
163
+ You can also use the `.withResponse()` method to get the raw `Response` along with the parsed data.
164
+ Unlike `.asResponse()` this method consumes the body, returning once it is parsed.
165
+
166
+ <!-- prettier-ignore -->
167
+ ```ts
168
+ const client = new StudyfetchSDK();
169
+
170
+ const response = await client.v1.materials.list().asResponse();
171
+ console.log(response.headers.get('X-My-Header'));
172
+ console.log(response.statusText); // access the underlying Response object
173
+
174
+ const { data: materials, response: raw } = await client.v1.materials.list().withResponse();
175
+ console.log(raw.headers.get('X-My-Header'));
176
+ console.log(materials);
177
+ ```
178
+
179
+ ### Logging
180
+
181
+ > [!IMPORTANT]
182
+ > All log messages are intended for debugging only. The format and content of log messages
183
+ > may change between releases.
184
+
185
+ #### Log levels
186
+
187
+ The log level can be configured in two ways:
188
+
189
+ 1. Via the `STUDYFETCH_SDK_LOG` environment variable
190
+ 2. Using the `logLevel` client option (overrides the environment variable if set)
191
+
192
+ ```ts
193
+ import StudyfetchSDK from '@studyfetch/sdk';
194
+
195
+ const client = new StudyfetchSDK({
196
+ logLevel: 'debug', // Show all log messages
197
+ });
27
198
  ```
199
+
200
+ Available log levels, from most to least verbose:
201
+
202
+ - `'debug'` - Show debug messages, info, warnings, and errors
203
+ - `'info'` - Show info messages, warnings, and errors
204
+ - `'warn'` - Show warnings and errors (default)
205
+ - `'error'` - Show only errors
206
+ - `'off'` - Disable all logging
207
+
208
+ At the `'debug'` level, all HTTP requests and responses are logged, including headers and bodies.
209
+ Some authentication-related headers are redacted, but sensitive data in request and response bodies
210
+ may still be visible.
211
+
212
+ #### Custom logger
213
+
214
+ By default, this library logs to `globalThis.console`. You can also provide a custom logger.
215
+ Most logging libraries are supported, including [pino](https://www.npmjs.com/package/pino), [winston](https://www.npmjs.com/package/winston), [bunyan](https://www.npmjs.com/package/bunyan), [consola](https://www.npmjs.com/package/consola), [signale](https://www.npmjs.com/package/signale), and [@std/log](https://jsr.io/@std/log). If your logger doesn't work, please open an issue.
216
+
217
+ When providing a custom logger, the `logLevel` option still controls which messages are emitted, messages
218
+ below the configured level will not be sent to your logger.
219
+
220
+ ```ts
221
+ import StudyfetchSDK from '@studyfetch/sdk';
222
+ import pino from 'pino';
223
+
224
+ const logger = pino();
225
+
226
+ const client = new StudyfetchSDK({
227
+ logger: logger.child({ name: 'StudyfetchSDK' }),
228
+ logLevel: 'debug', // Send all messages to pino, allowing it to filter
229
+ });
230
+ ```
231
+
232
+ ### Making custom/undocumented requests
233
+
234
+ This library is typed for convenient access to the documented API. If you need to access undocumented
235
+ endpoints, params, or response properties, the library can still be used.
236
+
237
+ #### Undocumented endpoints
238
+
239
+ To make requests to undocumented endpoints, you can use `client.get`, `client.post`, and other HTTP verbs.
240
+ Options on the client, such as retries, will be respected when making these requests.
241
+
242
+ ```ts
243
+ await client.post('/some/path', {
244
+ body: { some_prop: 'foo' },
245
+ query: { some_query_arg: 'bar' },
246
+ });
247
+ ```
248
+
249
+ #### Undocumented request params
250
+
251
+ To make requests using undocumented parameters, you may use `// @ts-expect-error` on the undocumented
252
+ parameter. This library doesn't validate at runtime that the request matches the type, so any extra values you
253
+ send will be sent as-is.
254
+
255
+ ```ts
256
+ client.v1.materials.list({
257
+ // ...
258
+ // @ts-expect-error baz is not yet public
259
+ baz: 'undocumented option',
260
+ });
261
+ ```
262
+
263
+ For requests with the `GET` verb, any extra params will be in the query, all other requests will send the
264
+ extra param in the body.
265
+
266
+ If you want to explicitly send an extra argument, you can do so with the `query`, `body`, and `headers` request
267
+ options.
268
+
269
+ #### Undocumented response properties
270
+
271
+ To access undocumented response properties, you may access the response object with `// @ts-expect-error` on
272
+ the response object, or cast the response object to the requisite type. Like the request params, we do not
273
+ validate or strip extra properties from the response from the API.
274
+
275
+ ### Customizing the fetch client
276
+
277
+ By default, this library expects a global `fetch` function is defined.
278
+
279
+ If you want to use a different `fetch` function, you can either polyfill the global:
280
+
281
+ ```ts
282
+ import fetch from 'my-fetch';
283
+
284
+ globalThis.fetch = fetch;
285
+ ```
286
+
287
+ Or pass it to the client:
288
+
289
+ ```ts
290
+ import StudyfetchSDK from '@studyfetch/sdk';
291
+ import fetch from 'my-fetch';
292
+
293
+ const client = new StudyfetchSDK({ fetch });
294
+ ```
295
+
296
+ ### Fetch options
297
+
298
+ If you want to set custom `fetch` options without overriding the `fetch` function, you can provide a `fetchOptions` object when instantiating the client or making a request. (Request-specific options override client options.)
299
+
300
+ ```ts
301
+ import StudyfetchSDK from '@studyfetch/sdk';
302
+
303
+ const client = new StudyfetchSDK({
304
+ fetchOptions: {
305
+ // `RequestInit` options
306
+ },
307
+ });
308
+ ```
309
+
310
+ #### Configuring proxies
311
+
312
+ To modify proxy behavior, you can provide custom `fetchOptions` that add runtime-specific proxy
313
+ options to requests:
314
+
315
+ <img src="https://raw.githubusercontent.com/stainless-api/sdk-assets/refs/heads/main/node.svg" align="top" width="18" height="21"> **Node** <sup>[[docs](https://github.com/nodejs/undici/blob/main/docs/docs/api/ProxyAgent.md#example---proxyagent-with-fetch)]</sup>
316
+
317
+ ```ts
318
+ import StudyfetchSDK from '@studyfetch/sdk';
319
+ import * as undici from 'undici';
320
+
321
+ const proxyAgent = new undici.ProxyAgent('http://localhost:8888');
322
+ const client = new StudyfetchSDK({
323
+ fetchOptions: {
324
+ dispatcher: proxyAgent,
325
+ },
326
+ });
327
+ ```
328
+
329
+ <img src="https://raw.githubusercontent.com/stainless-api/sdk-assets/refs/heads/main/bun.svg" align="top" width="18" height="21"> **Bun** <sup>[[docs](https://bun.sh/guides/http/proxy)]</sup>
330
+
331
+ ```ts
332
+ import StudyfetchSDK from '@studyfetch/sdk';
333
+
334
+ const client = new StudyfetchSDK({
335
+ fetchOptions: {
336
+ proxy: 'http://localhost:8888',
337
+ },
338
+ });
339
+ ```
340
+
341
+ <img src="https://raw.githubusercontent.com/stainless-api/sdk-assets/refs/heads/main/deno.svg" align="top" width="18" height="21"> **Deno** <sup>[[docs](https://docs.deno.com/api/deno/~/Deno.createHttpClient)]</sup>
342
+
343
+ ```ts
344
+ import StudyfetchSDK from 'npm:@studyfetch/sdk';
345
+
346
+ const httpClient = Deno.createHttpClient({ proxy: { url: 'http://localhost:8888' } });
347
+ const client = new StudyfetchSDK({
348
+ fetchOptions: {
349
+ client: httpClient,
350
+ },
351
+ });
352
+ ```
353
+
354
+ ## Frequently Asked Questions
355
+
356
+ ## Semantic versioning
357
+
358
+ This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) conventions, though certain backwards-incompatible changes may be released as minor versions:
359
+
360
+ 1. Changes that only affect static types, without breaking runtime behavior.
361
+ 2. Changes to library internals which are technically public but not intended or documented for external use. _(Please open a GitHub issue to let us know if you are relying on such internals.)_
362
+ 3. Changes that we do not expect to impact the vast majority of users in practice.
363
+
364
+ We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.
365
+
366
+ We are keen for your feedback; please open an [issue](https://www.github.com/GoStudyFetchGo/studyfetch-sdk/issues) with questions, bugs, or suggestions.
367
+
368
+ ## Requirements
369
+
370
+ TypeScript >= 4.9 is supported.
371
+
372
+ The following runtimes are supported:
373
+
374
+ - Web browsers (Up-to-date Chrome, Firefox, Safari, Edge, and more)
375
+ - Node.js 20 LTS or later ([non-EOL](https://endoflife.date/nodejs)) versions.
376
+ - Deno v1.28.0 or higher.
377
+ - Bun 1.0 or later.
378
+ - Cloudflare Workers.
379
+ - Vercel Edge Runtime.
380
+ - Jest 28 or greater with the `"node"` environment (`"jsdom"` is not supported at this time).
381
+ - Nitro v2.6 or greater.
382
+
383
+ Note that React Native is not supported at this time.
384
+
385
+ If you are interested in other runtime environments, please open or upvote an issue on GitHub.
386
+
387
+ ## Contributing
388
+
389
+ See [the contributing documentation](./CONTRIBUTING.md).
390
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@studyfetch/sdk",
3
- "version": "1.11.0",
3
+ "version": "1.13.0",
4
4
  "description": "The official TypeScript library for the Studyfetch SDK API",
5
5
  "author": "Studyfetch SDK <>",
6
6
  "types": "./index.d.ts",
@@ -18,12 +18,12 @@ export declare class Chat extends APIResource {
18
18
  /**
19
19
  * @example
20
20
  * ```ts
21
- * await client.v1.chat.retrieveSession('sessionId', {
21
+ * await client.v1.chat.getSession('sessionId', {
22
22
  * userId: 'userId',
23
23
  * });
24
24
  * ```
25
25
  */
26
- retrieveSession(sessionID: string, query: ChatRetrieveSessionParams, options?: RequestOptions): APIPromise<void>;
26
+ getSession(sessionID: string, query: ChatGetSessionParams, options?: RequestOptions): APIPromise<void>;
27
27
  /**
28
28
  * @example
29
29
  * ```ts
@@ -52,7 +52,7 @@ export declare class Chat extends APIResource {
52
52
  */
53
53
  stream(params: ChatStreamParams, options?: RequestOptions): APIPromise<void>;
54
54
  }
55
- export interface ChatRetrieveSessionParams {
55
+ export interface ChatGetSessionParams {
56
56
  userId: string;
57
57
  }
58
58
  export interface ChatSendMessageParams {
@@ -149,7 +149,7 @@ export declare namespace ChatStreamParams {
149
149
  }
150
150
  }
151
151
  export declare namespace Chat {
152
- export { type ChatRetrieveSessionParams as ChatRetrieveSessionParams, type ChatSendMessageParams as ChatSendMessageParams, type ChatStreamParams as ChatStreamParams, };
152
+ export { type ChatGetSessionParams as ChatGetSessionParams, type ChatSendMessageParams as ChatSendMessageParams, type ChatStreamParams as ChatStreamParams, };
153
153
  export { Sessions as Sessions, type SessionRetrieveParams as SessionRetrieveParams };
154
154
  export { Test as Test };
155
155
  }
@@ -1 +1 @@
1
- {"version":3,"file":"chat.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/chat/chat.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,EAAE,qBAAqB,EAAE,QAAQ,EAAE;OACnC,KAAK,OAAO;OACZ,EAAE,IAAI,EAAE;OACR,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,IAAK,SAAQ,WAAW;IACnC,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;IACxE,IAAI,EAAE,OAAO,CAAC,IAAI,CAAkC;IAEpD;;;;;OAKG;IACH,UAAU,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAOtD;;;;;;;OAOG;IACH,eAAe,CACb,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,yBAAyB,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,IAAI,CAAC;IAQnB;;;;;OAKG;IACH,aAAa,CAAC,OAAO,CAAC,EA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;eAEG;YACH,QAAQ,CAAC,EAAE,MAAM,CAAC;YAElB;;eAEG;YACH,GAAG,CAAC,EAAE,MAAM,CAAC;SACd;KACF;CACF;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAE3C;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,yBAAiB,gBAAgB,CAAC;IAChC,UAAiB,OAAO;QACtB,OAAO,CAAC,EAAE,MAAM,CAAC;QAEjB,IAAI,CAAC,EAAE,MAAM,GAAG,WAAW,GAAG,QAAQ,CAAC;KACxC;CACF;AAKD,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;IAEF,OAAO,EAAE,QAAQ,IAAI,QAAQ,EAAE,KAAK,qBAAqB,IAAI,qBAAqB,EAAE,CAAC;IAErF,OAAO,EAAE,IAAI,IAAI,IAAI,EAAE,CAAC;CACzB"}
@@ -18,12 +18,12 @@ export declare class Chat extends APIResource {
18
18
  /**
19
19
  * @example
20
20
  * ```ts
21
- * await client.v1.chat.retrieveSession('sessionId', {
21
+ * await client.v1.chat.getSession('sessionId', {
22
22
  * userId: 'userId',
23
23
  * });
24
24
  * ```
25
25
  */
26
- retrieveSession(sessionID: string, query: ChatRetrieveSessionParams, options?: RequestOptions): APIPromise<void>;
26
+ getSession(sessionID: string, query: ChatGetSessionParams, options?: RequestOptions): APIPromise<void>;
27
27
  /**
28
28
  * @example
29
29
  * ```ts
@@ -52,7 +52,7 @@ export declare class Chat extends APIResource {
52
52
  */
53
53
  stream(params: ChatStreamParams, options?: RequestOptions): APIPromise<void>;
54
54
  }
55
- export interface ChatRetrieveSessionParams {
55
+ export interface ChatGetSessionParams {
56
56
  userId: string;
57
57
  }
58
58
  export interface ChatSendMessageParams {
@@ -149,7 +149,7 @@ export declare namespace ChatStreamParams {
149
149
  }
150
150
  }
151
151
  export declare namespace Chat {
152
- export { type ChatRetrieveSessionParams as ChatRetrieveSessionParams, type ChatSendMessageParams as ChatSendMessageParams, type ChatStreamParams as ChatStreamParams, };
152
+ export { type ChatGetSessionParams as ChatGetSessionParams, type ChatSendMessageParams as ChatSendMessageParams, type ChatStreamParams as ChatStreamParams, };
153
153
  export { Sessions as Sessions, type SessionRetrieveParams as SessionRetrieveParams };
154
154
  export { Test as Test };
155
155
  }
@@ -1 +1 @@
1
- {"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/chat/chat.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,EAAE,qBAAqB,EAAE,QAAQ,EAAE;OACnC,KAAK,OAAO;OACZ,EAAE,IAAI,EAAE;OACR,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,IAAK,SAAQ,WAAW;IACnC,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;IACxE,IAAI,EAAE,OAAO,CAAC,IAAI,CAAkC;IAEpD;;;;;OAKG;IACH,UAAU,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAOtD;;;;;;;OAOG;IACH,eAAe,CACb,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,yBAAyB,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,IAAI,CAAC;IAQnB;;;;;OAKG;IACH,aAAa,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAOzD;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B;;eAEG;YACH,GAAG,CAAC,EAAE,MAAM,CAAC;SACd;KACF;CACF;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAE3C;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,yBAAiB,gBAAgB,CAAC;IAChC,UAAiB,OAAO;QACtB,OAAO,CAAC,EAAE,MAAM,CAAC;QAEjB,IAAI,CAAC,EAAE,MAAM,GAAG,WAAW,GAAG,QAAQ,CAAC;KACxC;CACF;AAKD,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;IAEF,OAAO,EAAE,QAAQ,IAAI,QAAQ,EAAE,KAAK,qBAAqB,IAAI,qBAAqB,EAAE,CAAC;IAErF,OAAO,EAAE,IAAI,IAAI,IAAI,EAAE,CAAC;CACzB"}
@@ -31,12 +31,12 @@ class Chat extends resource_1.APIResource {
31
31
  /**
32
32
  * @example
33
33
  * ```ts
34
- * await client.v1.chat.retrieveSession('sessionId', {
34
+ * await client.v1.chat.getSession('sessionId', {
35
35
  * userId: 'userId',
36
36
  * });
37
37
  * ```
38
38
  */
39
- retrieveSession(sessionID, query, options) {
39
+ getSession(sessionID, query, options) {
40
40
  return this._client.get((0, path_1.path) `/api/v1/chat/session/${sessionID}`, {
41
41
  query,
42
42
  ...options,
@@ -1 +1 @@
1
- {"version":3,"file":"chat.js","sourceRoot":"","sources":["../../../src/resources/v1/chat/chat.ts"],"names":[],"m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AAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7F,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,MAAwB,EAAE,OAAwB;QACvD,MAAM,EAAE,gBAAgB,EAAE,YAAY,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE;YAC9C,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,CAAC,YAAY,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,gBAAgB,EAAE,YAAY,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBAC7F,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AApFD,oBAoFC;AAuHD,IAAI,CAAC,QAAQ,GAAG,mBAAQ,CAAC;AACzB,IAAI,CAAC,IAAI,GAAG,WAAI,CAAC"}
@@ -27,12 +27,12 @@ export class Chat extends APIResource {
27
27
  /**
28
28
  * @example
29
29
  * ```ts
30
- * await client.v1.chat.retrieveSession('sessionId', {
30
+ * await client.v1.chat.getSession('sessionId', {
31
31
  * userId: 'userId',
32
32
  * });
33
33
  * ```
34
34
  */
35
- retrieveSession(sessionID, query, options) {
35
+ getSession(sessionID, query, options) {
36
36
  return this._client.get(path `/api/v1/chat/session/${sessionID}`, {
37
37
  query,
38
38
  ...options,
@@ -1 +1 @@
1
- {"version":3,"file":"chat.mjs","sourceRoot":"","sources":["../../../src/resources/v1/chat/chat.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,EAAyB,QAAQ,EAAE;OACnC,KAA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,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7F,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,MAAwB,EAAE,OAAwB;QACvD,MAAM,EAAE,gBAAgB,EAAE,YAAY,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE;YAC9C,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,CAAC,YAAY,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,gBAAgB,EAAE,YAAY,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBAC7F,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AAuHD,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;AACzB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC"}
@@ -1,4 +1,4 @@
1
- export { Chat, type ChatRetrieveSessionParams, type ChatSendMessageParams, type ChatStreamParams, } from "./chat.mjs";
1
+ export { Chat, type ChatGetSessionParams, type ChatSendMessageParams, type ChatStreamParams } from "./chat.mjs";
2
2
  export { Sessions, type SessionRetrieveParams } from "./sessions.mjs";
3
3
  export { Test } from "./test.mjs";
4
4
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/chat/index.ts"],"names":[],"mappings":"OAEO,EACL,IAAI,EACJ,KAAK,yBAAyB,EAC9B,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,GACtB;OACM,EAAE,QAAQ,EAAE,KAAK,qBAAqB,EAAE;OACxC,EAAE,IAAI,EAAE"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/chat/index.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE,KAAK,oBAAoB,EAAE,KAAK,qBAAqB,EAAE,KAAK,gBAAgB,EAAE;OACtF,EAAE,QAAQ,EAAE,KAAK,qBAAqB,EAAE;OACxC,EAAE,IAAI,EAAE"}
@@ -1,4 +1,4 @@
1
- export { Chat, type ChatRetrieveSessionParams, type ChatSendMessageParams, type ChatStreamParams, } from "./chat.js";
1
+ export { Chat, type ChatGetSessionParams, type ChatSendMessageParams, type ChatStreamParams } from "./chat.js";
2
2
  export { Sessions, type SessionRetrieveParams } from "./sessions.js";
3
3
  export { Test } from "./test.js";
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/chat/index.ts"],"names":[],"mappings":"OAEO,EACL,IAAI,EACJ,KAAK,yBAAyB,EAC9B,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,GACtB;OACM,EAAE,QAAQ,EAAE,KAAK,qBAAqB,EAAE;OACxC,EAAE,IAAI,EAAE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/chat/index.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE,KAAK,oBAAoB,EAAE,KAAK,qBAAqB,EAAE,KAAK,gBAAgB,EAAE;OACtF,EAAE,QAAQ,EAAE,KAAK,qBAAqB,EAAE;OACxC,EAAE,IAAI,EAAE"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/chat/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kCAKgB;AAJd,4FAAA,IAAI,OAAA;AAKN,0CAAkE;AAAzD,oGAAA,QAAQ,OAAA;AACjB,kCAA8B;AAArB,4FAAA,IAAI,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/chat/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kCAA4G;AAAnG,4FAAA,IAAI,OAAA;AACb,0CAAkE;AAAzD,oGAAA,QAAQ,OAAA;AACjB,kCAA8B;AAArB,4FAAA,IAAI,OAAA"}
@@ -1,5 +1,5 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- export { Chat, } from "./chat.mjs";
2
+ export { Chat } from "./chat.mjs";
3
3
  export { Sessions } from "./sessions.mjs";
4
4
  export { Test } from "./test.mjs";
5
5
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/chat/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,IAAI,GAIL;OACM,EAAE,QAAQ,EAA8B;OACxC,EAAE,IAAI,EAAE"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/chat/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,IAAI,EAAgF;OACtF,EAAE,QAAQ,EAA8B;OACxC,EAAE,IAAI,EAAE"}