@studyfetch/sdk 1.26.0 → 1.28.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 (312) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/package.json +1 -1
  3. package/resources/v1/components.d.mts +40 -0
  4. package/resources/v1/components.d.mts.map +1 -1
  5. package/resources/v1/components.d.ts +40 -0
  6. package/resources/v1/components.d.ts.map +1 -1
  7. package/resources/v1/index.d.mts +1 -8
  8. package/resources/v1/index.d.mts.map +1 -1
  9. package/resources/v1/index.d.ts +1 -8
  10. package/resources/v1/index.d.ts.map +1 -1
  11. package/resources/v1/index.js +9 -23
  12. package/resources/v1/index.js.map +1 -1
  13. package/resources/v1/index.mjs +0 -7
  14. package/resources/v1/index.mjs.map +1 -1
  15. package/resources/v1/materials/index.d.mts +1 -1
  16. package/resources/v1/materials/index.d.mts.map +1 -1
  17. package/resources/v1/materials/index.d.ts +1 -1
  18. package/resources/v1/materials/index.d.ts.map +1 -1
  19. package/resources/v1/materials/index.js.map +1 -1
  20. package/resources/v1/materials/index.mjs.map +1 -1
  21. package/resources/v1/materials/materials.d.mts +110 -1
  22. package/resources/v1/materials/materials.d.mts.map +1 -1
  23. package/resources/v1/materials/materials.d.ts +110 -1
  24. package/resources/v1/materials/materials.d.ts.map +1 -1
  25. package/resources/v1/materials/materials.js +17 -0
  26. package/resources/v1/materials/materials.js.map +1 -1
  27. package/resources/v1/materials/materials.mjs +17 -0
  28. package/resources/v1/materials/materials.mjs.map +1 -1
  29. package/resources/v1/materials/upload.d.mts +12 -0
  30. package/resources/v1/materials/upload.d.mts.map +1 -1
  31. package/resources/v1/materials/upload.d.ts +12 -0
  32. package/resources/v1/materials/upload.d.ts.map +1 -1
  33. package/resources/v1/v1.d.mts +2 -30
  34. package/resources/v1/v1.d.mts.map +1 -1
  35. package/resources/v1/v1.d.ts +2 -30
  36. package/resources/v1/v1.d.ts.map +1 -1
  37. package/resources/v1/v1.js +0 -28
  38. package/resources/v1/v1.js.map +1 -1
  39. package/resources/v1/v1.mjs +0 -28
  40. package/resources/v1/v1.mjs.map +1 -1
  41. package/src/resources/v1/components.ts +49 -0
  42. package/src/resources/v1/index.ts +2 -45
  43. package/src/resources/v1/materials/index.ts +2 -0
  44. package/src/resources/v1/materials/materials.ts +143 -0
  45. package/src/resources/v1/materials/upload.ts +15 -0
  46. package/src/resources/v1/v1.ts +4 -122
  47. package/src/version.ts +1 -1
  48. package/version.d.mts +1 -1
  49. package/version.d.ts +1 -1
  50. package/version.js +1 -1
  51. package/version.mjs +1 -1
  52. package/resources/v1/audio-recaps/audio-recaps.d.mts +0 -44
  53. package/resources/v1/audio-recaps/audio-recaps.d.mts.map +0 -1
  54. package/resources/v1/audio-recaps/audio-recaps.d.ts +0 -44
  55. package/resources/v1/audio-recaps/audio-recaps.d.ts.map +0 -1
  56. package/resources/v1/audio-recaps/audio-recaps.js +0 -63
  57. package/resources/v1/audio-recaps/audio-recaps.js.map +0 -1
  58. package/resources/v1/audio-recaps/audio-recaps.mjs +0 -58
  59. package/resources/v1/audio-recaps/audio-recaps.mjs.map +0 -1
  60. package/resources/v1/audio-recaps/index.d.mts +0 -3
  61. package/resources/v1/audio-recaps/index.d.mts.map +0 -1
  62. package/resources/v1/audio-recaps/index.d.ts +0 -3
  63. package/resources/v1/audio-recaps/index.d.ts.map +0 -1
  64. package/resources/v1/audio-recaps/index.js +0 -9
  65. package/resources/v1/audio-recaps/index.js.map +0 -1
  66. package/resources/v1/audio-recaps/index.mjs +0 -4
  67. package/resources/v1/audio-recaps/index.mjs.map +0 -1
  68. package/resources/v1/audio-recaps/sections.d.mts +0 -35
  69. package/resources/v1/audio-recaps/sections.d.mts.map +0 -1
  70. package/resources/v1/audio-recaps/sections.d.ts +0 -35
  71. package/resources/v1/audio-recaps/sections.d.ts.map +0 -1
  72. package/resources/v1/audio-recaps/sections.js +0 -42
  73. package/resources/v1/audio-recaps/sections.js.map +0 -1
  74. package/resources/v1/audio-recaps/sections.mjs +0 -38
  75. package/resources/v1/audio-recaps/sections.mjs.map +0 -1
  76. package/resources/v1/audio-recaps.d.mts +0 -2
  77. package/resources/v1/audio-recaps.d.mts.map +0 -1
  78. package/resources/v1/audio-recaps.d.ts +0 -2
  79. package/resources/v1/audio-recaps.d.ts.map +0 -1
  80. package/resources/v1/audio-recaps.js +0 -6
  81. package/resources/v1/audio-recaps.js.map +0 -1
  82. package/resources/v1/audio-recaps.mjs +0 -3
  83. package/resources/v1/audio-recaps.mjs.map +0 -1
  84. package/resources/v1/chat/chat.d.mts +0 -217
  85. package/resources/v1/chat/chat.d.mts.map +0 -1
  86. package/resources/v1/chat/chat.d.ts +0 -217
  87. package/resources/v1/chat/chat.d.ts.map +0 -1
  88. package/resources/v1/chat/chat.js +0 -99
  89. package/resources/v1/chat/chat.js.map +0 -1
  90. package/resources/v1/chat/chat.mjs +0 -94
  91. package/resources/v1/chat/chat.mjs.map +0 -1
  92. package/resources/v1/chat/index.d.mts +0 -4
  93. package/resources/v1/chat/index.d.mts.map +0 -1
  94. package/resources/v1/chat/index.d.ts +0 -4
  95. package/resources/v1/chat/index.d.ts.map +0 -1
  96. package/resources/v1/chat/index.js +0 -11
  97. package/resources/v1/chat/index.js.map +0 -1
  98. package/resources/v1/chat/index.mjs +0 -5
  99. package/resources/v1/chat/index.mjs.map +0 -1
  100. package/resources/v1/chat/sessions.d.mts +0 -28
  101. package/resources/v1/chat/sessions.d.mts.map +0 -1
  102. package/resources/v1/chat/sessions.d.ts +0 -28
  103. package/resources/v1/chat/sessions.d.ts.map +0 -1
  104. package/resources/v1/chat/sessions.js +0 -38
  105. package/resources/v1/chat/sessions.js.map +0 -1
  106. package/resources/v1/chat/sessions.mjs +0 -34
  107. package/resources/v1/chat/sessions.mjs.map +0 -1
  108. package/resources/v1/chat/test.d.mts +0 -20
  109. package/resources/v1/chat/test.d.mts.map +0 -1
  110. package/resources/v1/chat/test.d.ts +0 -20
  111. package/resources/v1/chat/test.d.ts.map +0 -1
  112. package/resources/v1/chat/test.js +0 -34
  113. package/resources/v1/chat/test.js.map +0 -1
  114. package/resources/v1/chat/test.mjs +0 -30
  115. package/resources/v1/chat/test.mjs.map +0 -1
  116. package/resources/v1/chat.d.mts +0 -2
  117. package/resources/v1/chat.d.mts.map +0 -1
  118. package/resources/v1/chat.d.ts +0 -2
  119. package/resources/v1/chat.d.ts.map +0 -1
  120. package/resources/v1/chat.js +0 -6
  121. package/resources/v1/chat.js.map +0 -1
  122. package/resources/v1/chat.mjs +0 -3
  123. package/resources/v1/chat.mjs.map +0 -1
  124. package/resources/v1/data-analyst/data-analyst.d.mts +0 -156
  125. package/resources/v1/data-analyst/data-analyst.d.mts.map +0 -1
  126. package/resources/v1/data-analyst/data-analyst.d.ts +0 -156
  127. package/resources/v1/data-analyst/data-analyst.d.ts.map +0 -1
  128. package/resources/v1/data-analyst/data-analyst.js +0 -99
  129. package/resources/v1/data-analyst/data-analyst.js.map +0 -1
  130. package/resources/v1/data-analyst/data-analyst.mjs +0 -94
  131. package/resources/v1/data-analyst/data-analyst.mjs.map +0 -1
  132. package/resources/v1/data-analyst/index.d.mts +0 -4
  133. package/resources/v1/data-analyst/index.d.mts.map +0 -1
  134. package/resources/v1/data-analyst/index.d.ts +0 -4
  135. package/resources/v1/data-analyst/index.d.ts.map +0 -1
  136. package/resources/v1/data-analyst/index.js +0 -11
  137. package/resources/v1/data-analyst/index.js.map +0 -1
  138. package/resources/v1/data-analyst/index.mjs +0 -5
  139. package/resources/v1/data-analyst/index.mjs.map +0 -1
  140. package/resources/v1/data-analyst/sessions.d.mts +0 -28
  141. package/resources/v1/data-analyst/sessions.d.mts.map +0 -1
  142. package/resources/v1/data-analyst/sessions.d.ts +0 -28
  143. package/resources/v1/data-analyst/sessions.d.ts.map +0 -1
  144. package/resources/v1/data-analyst/sessions.js +0 -38
  145. package/resources/v1/data-analyst/sessions.js.map +0 -1
  146. package/resources/v1/data-analyst/sessions.mjs +0 -34
  147. package/resources/v1/data-analyst/sessions.mjs.map +0 -1
  148. package/resources/v1/data-analyst/test.d.mts +0 -20
  149. package/resources/v1/data-analyst/test.d.mts.map +0 -1
  150. package/resources/v1/data-analyst/test.d.ts +0 -20
  151. package/resources/v1/data-analyst/test.d.ts.map +0 -1
  152. package/resources/v1/data-analyst/test.js +0 -34
  153. package/resources/v1/data-analyst/test.js.map +0 -1
  154. package/resources/v1/data-analyst/test.mjs +0 -30
  155. package/resources/v1/data-analyst/test.mjs.map +0 -1
  156. package/resources/v1/data-analyst.d.mts +0 -2
  157. package/resources/v1/data-analyst.d.mts.map +0 -1
  158. package/resources/v1/data-analyst.d.ts +0 -2
  159. package/resources/v1/data-analyst.d.ts.map +0 -1
  160. package/resources/v1/data-analyst.js +0 -6
  161. package/resources/v1/data-analyst.js.map +0 -1
  162. package/resources/v1/data-analyst.mjs +0 -3
  163. package/resources/v1/data-analyst.mjs.map +0 -1
  164. package/resources/v1/explainers.d.mts +0 -152
  165. package/resources/v1/explainers.d.mts.map +0 -1
  166. package/resources/v1/explainers.d.ts +0 -152
  167. package/resources/v1/explainers.d.ts.map +0 -1
  168. package/resources/v1/explainers.js +0 -64
  169. package/resources/v1/explainers.js.map +0 -1
  170. package/resources/v1/explainers.mjs +0 -60
  171. package/resources/v1/explainers.mjs.map +0 -1
  172. package/resources/v1/flashcards.d.mts +0 -256
  173. package/resources/v1/flashcards.d.mts.map +0 -1
  174. package/resources/v1/flashcards.d.ts +0 -256
  175. package/resources/v1/flashcards.d.ts.map +0 -1
  176. package/resources/v1/flashcards.js +0 -112
  177. package/resources/v1/flashcards.js.map +0 -1
  178. package/resources/v1/flashcards.mjs +0 -108
  179. package/resources/v1/flashcards.mjs.map +0 -1
  180. package/resources/v1/scenarios/component.d.mts +0 -84
  181. package/resources/v1/scenarios/component.d.mts.map +0 -1
  182. package/resources/v1/scenarios/component.d.ts +0 -84
  183. package/resources/v1/scenarios/component.d.ts.map +0 -1
  184. package/resources/v1/scenarios/component.js +0 -56
  185. package/resources/v1/scenarios/component.js.map +0 -1
  186. package/resources/v1/scenarios/component.mjs +0 -52
  187. package/resources/v1/scenarios/component.mjs.map +0 -1
  188. package/resources/v1/scenarios/index.d.mts +0 -5
  189. package/resources/v1/scenarios/index.d.mts.map +0 -1
  190. package/resources/v1/scenarios/index.d.ts +0 -5
  191. package/resources/v1/scenarios/index.d.ts.map +0 -1
  192. package/resources/v1/scenarios/index.js +0 -13
  193. package/resources/v1/scenarios/index.js.map +0 -1
  194. package/resources/v1/scenarios/index.mjs +0 -6
  195. package/resources/v1/scenarios/index.mjs.map +0 -1
  196. package/resources/v1/scenarios/scenarios.d.mts +0 -289
  197. package/resources/v1/scenarios/scenarios.d.mts.map +0 -1
  198. package/resources/v1/scenarios/scenarios.d.ts +0 -289
  199. package/resources/v1/scenarios/scenarios.d.ts.map +0 -1
  200. package/resources/v1/scenarios/scenarios.js +0 -131
  201. package/resources/v1/scenarios/scenarios.js.map +0 -1
  202. package/resources/v1/scenarios/scenarios.mjs +0 -126
  203. package/resources/v1/scenarios/scenarios.mjs.map +0 -1
  204. package/resources/v1/scenarios/sessions.d.mts +0 -20
  205. package/resources/v1/scenarios/sessions.d.mts.map +0 -1
  206. package/resources/v1/scenarios/sessions.d.ts +0 -20
  207. package/resources/v1/scenarios/sessions.d.ts.map +0 -1
  208. package/resources/v1/scenarios/sessions.js +0 -35
  209. package/resources/v1/scenarios/sessions.js.map +0 -1
  210. package/resources/v1/scenarios/sessions.mjs +0 -31
  211. package/resources/v1/scenarios/sessions.mjs.map +0 -1
  212. package/resources/v1/scenarios/submissions/index.d.mts +0 -3
  213. package/resources/v1/scenarios/submissions/index.d.mts.map +0 -1
  214. package/resources/v1/scenarios/submissions/index.d.ts +0 -3
  215. package/resources/v1/scenarios/submissions/index.d.ts.map +0 -1
  216. package/resources/v1/scenarios/submissions/index.js +0 -9
  217. package/resources/v1/scenarios/submissions/index.js.map +0 -1
  218. package/resources/v1/scenarios/submissions/index.mjs +0 -4
  219. package/resources/v1/scenarios/submissions/index.mjs.map +0 -1
  220. package/resources/v1/scenarios/submissions/submissions.d.mts +0 -10
  221. package/resources/v1/scenarios/submissions/submissions.d.mts.map +0 -1
  222. package/resources/v1/scenarios/submissions/submissions.d.ts +0 -10
  223. package/resources/v1/scenarios/submissions/submissions.d.ts.map +0 -1
  224. package/resources/v1/scenarios/submissions/submissions.js +0 -17
  225. package/resources/v1/scenarios/submissions/submissions.js.map +0 -1
  226. package/resources/v1/scenarios/submissions/submissions.mjs +0 -12
  227. package/resources/v1/scenarios/submissions/submissions.mjs.map +0 -1
  228. package/resources/v1/scenarios/submissions/user.d.mts +0 -22
  229. package/resources/v1/scenarios/submissions/user.d.mts.map +0 -1
  230. package/resources/v1/scenarios/submissions/user.d.ts +0 -22
  231. package/resources/v1/scenarios/submissions/user.d.ts.map +0 -1
  232. package/resources/v1/scenarios/submissions/user.js +0 -37
  233. package/resources/v1/scenarios/submissions/user.js.map +0 -1
  234. package/resources/v1/scenarios/submissions/user.mjs +0 -33
  235. package/resources/v1/scenarios/submissions/user.mjs.map +0 -1
  236. package/resources/v1/scenarios/submissions.d.mts +0 -2
  237. package/resources/v1/scenarios/submissions.d.mts.map +0 -1
  238. package/resources/v1/scenarios/submissions.d.ts +0 -2
  239. package/resources/v1/scenarios/submissions.d.ts.map +0 -1
  240. package/resources/v1/scenarios/submissions.js +0 -6
  241. package/resources/v1/scenarios/submissions.js.map +0 -1
  242. package/resources/v1/scenarios/submissions.mjs +0 -3
  243. package/resources/v1/scenarios/submissions.mjs.map +0 -1
  244. package/resources/v1/scenarios.d.mts +0 -2
  245. package/resources/v1/scenarios.d.mts.map +0 -1
  246. package/resources/v1/scenarios.d.ts +0 -2
  247. package/resources/v1/scenarios.d.ts.map +0 -1
  248. package/resources/v1/scenarios.js +0 -6
  249. package/resources/v1/scenarios.js.map +0 -1
  250. package/resources/v1/scenarios.mjs +0 -3
  251. package/resources/v1/scenarios.mjs.map +0 -1
  252. package/resources/v1/tests/component.d.mts +0 -13
  253. package/resources/v1/tests/component.d.mts.map +0 -1
  254. package/resources/v1/tests/component.d.ts +0 -13
  255. package/resources/v1/tests/component.d.ts.map +0 -1
  256. package/resources/v1/tests/component.js +0 -23
  257. package/resources/v1/tests/component.js.map +0 -1
  258. package/resources/v1/tests/component.mjs +0 -19
  259. package/resources/v1/tests/component.mjs.map +0 -1
  260. package/resources/v1/tests/index.d.mts +0 -3
  261. package/resources/v1/tests/index.d.mts.map +0 -1
  262. package/resources/v1/tests/index.d.ts +0 -3
  263. package/resources/v1/tests/index.d.ts.map +0 -1
  264. package/resources/v1/tests/index.js +0 -9
  265. package/resources/v1/tests/index.js.map +0 -1
  266. package/resources/v1/tests/index.mjs +0 -4
  267. package/resources/v1/tests/index.mjs.map +0 -1
  268. package/resources/v1/tests/tests.d.mts +0 -112
  269. package/resources/v1/tests/tests.d.mts.map +0 -1
  270. package/resources/v1/tests/tests.d.ts +0 -112
  271. package/resources/v1/tests/tests.d.ts.map +0 -1
  272. package/resources/v1/tests/tests.js +0 -112
  273. package/resources/v1/tests/tests.js.map +0 -1
  274. package/resources/v1/tests/tests.mjs +0 -107
  275. package/resources/v1/tests/tests.mjs.map +0 -1
  276. package/resources/v1/tests.d.mts +0 -2
  277. package/resources/v1/tests.d.mts.map +0 -1
  278. package/resources/v1/tests.d.ts +0 -2
  279. package/resources/v1/tests.d.ts.map +0 -1
  280. package/resources/v1/tests.js +0 -6
  281. package/resources/v1/tests.js.map +0 -1
  282. package/resources/v1/tests.mjs +0 -3
  283. package/resources/v1/tests.mjs.map +0 -1
  284. package/src/resources/v1/audio-recaps/audio-recaps.ts +0 -79
  285. package/src/resources/v1/audio-recaps/index.ts +0 -4
  286. package/src/resources/v1/audio-recaps/sections.ts +0 -53
  287. package/src/resources/v1/audio-recaps.ts +0 -3
  288. package/src/resources/v1/chat/chat.ts +0 -303
  289. package/src/resources/v1/chat/index.ts +0 -11
  290. package/src/resources/v1/chat/sessions.ts +0 -46
  291. package/src/resources/v1/chat/test.ts +0 -34
  292. package/src/resources/v1/chat.ts +0 -3
  293. package/src/resources/v1/data-analyst/data-analyst.ts +0 -233
  294. package/src/resources/v1/data-analyst/index.ts +0 -10
  295. package/src/resources/v1/data-analyst/sessions.ts +0 -46
  296. package/src/resources/v1/data-analyst/test.ts +0 -34
  297. package/src/resources/v1/data-analyst.ts +0 -3
  298. package/src/resources/v1/explainers.ts +0 -203
  299. package/src/resources/v1/flashcards.ts +0 -353
  300. package/src/resources/v1/scenarios/component.ts +0 -118
  301. package/src/resources/v1/scenarios/index.ts +0 -13
  302. package/src/resources/v1/scenarios/scenarios.ts +0 -400
  303. package/src/resources/v1/scenarios/sessions.ts +0 -35
  304. package/src/resources/v1/scenarios/submissions/index.ts +0 -4
  305. package/src/resources/v1/scenarios/submissions/submissions.ts +0 -15
  306. package/src/resources/v1/scenarios/submissions/user.ts +0 -37
  307. package/src/resources/v1/scenarios/submissions.ts +0 -3
  308. package/src/resources/v1/scenarios.ts +0 -3
  309. package/src/resources/v1/tests/component.ts +0 -22
  310. package/src/resources/v1/tests/index.ts +0 -10
  311. package/src/resources/v1/tests/tests.ts +0 -173
  312. package/src/resources/v1/tests.ts +0 -3
@@ -8,26 +8,12 @@ const AssignmentGraderAPI = tslib_1.__importStar(require("./assignment-grader.js
8
8
  const assignment_grader_1 = require("./assignment-grader.js");
9
9
  const ComponentsAPI = tslib_1.__importStar(require("./components.js"));
10
10
  const components_1 = require("./components.js");
11
- const ExplainersAPI = tslib_1.__importStar(require("./explainers.js"));
12
- const explainers_1 = require("./explainers.js");
13
- const FlashcardsAPI = tslib_1.__importStar(require("./flashcards.js"));
14
- const flashcards_1 = require("./flashcards.js");
15
11
  const FoldersAPI = tslib_1.__importStar(require("./folders.js"));
16
12
  const folders_1 = require("./folders.js");
17
- const AudioRecapsAPI = tslib_1.__importStar(require("./audio-recaps/audio-recaps.js"));
18
- const audio_recaps_1 = require("./audio-recaps/audio-recaps.js");
19
- const ChatAPI = tslib_1.__importStar(require("./chat/chat.js"));
20
- const chat_1 = require("./chat/chat.js");
21
- const DataAnalystAPI = tslib_1.__importStar(require("./data-analyst/data-analyst.js"));
22
- const data_analyst_1 = require("./data-analyst/data-analyst.js");
23
13
  const EmbedAPI = tslib_1.__importStar(require("./embed/embed.js"));
24
14
  const embed_1 = require("./embed/embed.js");
25
15
  const MaterialsAPI = tslib_1.__importStar(require("./materials/materials.js"));
26
16
  const materials_1 = require("./materials/materials.js");
27
- const ScenariosAPI = tslib_1.__importStar(require("./scenarios/scenarios.js"));
28
- const scenarios_1 = require("./scenarios/scenarios.js");
29
- const TestsAPI = tslib_1.__importStar(require("./tests/tests.js"));
30
- const tests_1 = require("./tests/tests.js");
31
17
  const UploadAPI = tslib_1.__importStar(require("./upload/upload.js"));
32
18
  const upload_1 = require("./upload/upload.js");
33
19
  const UsageAPI = tslib_1.__importStar(require("./usage/usage.js"));
@@ -41,15 +27,8 @@ class V1 extends resource_1.APIResource {
41
27
  this.components = new ComponentsAPI.Components(this._client);
42
28
  this.usage = new UsageAPI.Usage(this._client);
43
29
  this.embed = new EmbedAPI.Embed(this._client);
44
- this.chat = new ChatAPI.Chat(this._client);
45
- this.tests = new TestsAPI.Tests(this._client);
46
- this.audioRecaps = new AudioRecapsAPI.AudioRecaps(this._client);
47
- this.flashcards = new FlashcardsAPI.Flashcards(this._client);
48
- this.scenarios = new ScenariosAPI.Scenarios(this._client);
49
- this.explainers = new ExplainersAPI.Explainers(this._client);
50
30
  this.upload = new UploadAPI.Upload(this._client);
51
31
  this.assignmentGrader = new AssignmentGraderAPI.AssignmentGrader(this._client);
52
- this.dataAnalyst = new DataAnalystAPI.DataAnalyst(this._client);
53
32
  }
54
33
  /**
55
34
  * Test MongoDB connection and get outbound IP
@@ -72,13 +51,6 @@ V1.Folders = folders_1.Folders;
72
51
  V1.Components = components_1.Components;
73
52
  V1.Usage = usage_1.Usage;
74
53
  V1.Embed = embed_1.Embed;
75
- V1.Chat = chat_1.Chat;
76
- V1.Tests = tests_1.Tests;
77
- V1.AudioRecaps = audio_recaps_1.AudioRecaps;
78
- V1.Flashcards = flashcards_1.Flashcards;
79
- V1.Scenarios = scenarios_1.Scenarios;
80
- V1.Explainers = explainers_1.Explainers;
81
54
  V1.Upload = upload_1.Upload;
82
55
  V1.AssignmentGrader = assignment_grader_1.AssignmentGrader;
83
- V1.DataAnalyst = data_analyst_1.DataAnalyst;
84
56
  //# sourceMappingURL=v1.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"v1.js","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,oFAA2D;AAC3D,8DAK6B;AAC7B,uEAA8C;AAC9C,gDASsB;AACtB,uEAA8C;AAC9C,gDAA+F;AAC/F,uEAA8C;AAC9C,gDAUsB;AACtB,iEAAwC;AACxC,0CAA8F;AAC9F,uFAA8D;AAC9D,iEAIqC;AACrC,gEAAuC;AACvC,yCAMqB;AACrB,uFAA8D;AAC9D,iEAKqC;AACrC,mEAA0C;AAC1C,4CAA8E;AAC9E,+EAAsD;AACtD,wDAiB+B;AAC/B,+EAAsD;AACtD,wDAO+B;AAC/B,mEAA0C;AAC1C,4CAMuB;AACvB,sEAA6C;AAC7C,+CAAyC;AACzC,mEAA0C;AAC1C,4CAAyG;AAEzG,uDAAsD;AAGtD,MAAa,EAAG,SAAQ,sBAAW;IAAnC;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClF,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,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,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,qBAAgB,GAAyC,IAAI,mBAAmB,CAAC,gBAAgB,CAC/F,IAAI,CAAC,OAAO,CACb,CAAC;IAgBJ,CAAC;IAdC;;;;;;;OAOG;IACH,WAAW,CAAC,OAAwB;QAClC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE;YAC9C,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;AAzBD,gBAyBC;AAED,EAAE,CAAC,SAAS,GAAG,qBAAS,CAAC;AACzB,EAAE,CAAC,OAAO,GAAG,iBAAO,CAAC;AACrB,EAAE,CAAC,UAAU,GAAG,uBAAU,CAAC;AAC3B,EAAE,CAAC,KAAK,GAAG,aAAK,CAAC;AACjB,EAAE,CAAC,KAAK,GAAG,aAAK,CAAC;AACjB,EAAE,CAAC,MAAM,GAAG,eAAM,CAAC;AACnB,EAAE,CAAC,gBAAgB,GAAG,oCAAgB,CAAC"}
@@ -4,26 +4,12 @@ import * as AssignmentGraderAPI from "./assignment-grader.mjs";
4
4
  import { AssignmentGrader, } from "./assignment-grader.mjs";
5
5
  import * as ComponentsAPI from "./components.mjs";
6
6
  import { Components, } from "./components.mjs";
7
- import * as ExplainersAPI from "./explainers.mjs";
8
- import { Explainers } from "./explainers.mjs";
9
- import * as FlashcardsAPI from "./flashcards.mjs";
10
- import { Flashcards, } from "./flashcards.mjs";
11
7
  import * as FoldersAPI from "./folders.mjs";
12
8
  import { Folders } from "./folders.mjs";
13
- import * as AudioRecapsAPI from "./audio-recaps/audio-recaps.mjs";
14
- import { AudioRecaps, } from "./audio-recaps/audio-recaps.mjs";
15
- import * as ChatAPI from "./chat/chat.mjs";
16
- import { Chat, } from "./chat/chat.mjs";
17
- import * as DataAnalystAPI from "./data-analyst/data-analyst.mjs";
18
- import { DataAnalyst, } from "./data-analyst/data-analyst.mjs";
19
9
  import * as EmbedAPI from "./embed/embed.mjs";
20
10
  import { Embed } from "./embed/embed.mjs";
21
11
  import * as MaterialsAPI from "./materials/materials.mjs";
22
12
  import { Materials, } from "./materials/materials.mjs";
23
- import * as ScenariosAPI from "./scenarios/scenarios.mjs";
24
- import { Scenarios, } from "./scenarios/scenarios.mjs";
25
- import * as TestsAPI from "./tests/tests.mjs";
26
- import { Tests, } from "./tests/tests.mjs";
27
13
  import * as UploadAPI from "./upload/upload.mjs";
28
14
  import { Upload } from "./upload/upload.mjs";
29
15
  import * as UsageAPI from "./usage/usage.mjs";
@@ -37,15 +23,8 @@ export class V1 extends APIResource {
37
23
  this.components = new ComponentsAPI.Components(this._client);
38
24
  this.usage = new UsageAPI.Usage(this._client);
39
25
  this.embed = new EmbedAPI.Embed(this._client);
40
- this.chat = new ChatAPI.Chat(this._client);
41
- this.tests = new TestsAPI.Tests(this._client);
42
- this.audioRecaps = new AudioRecapsAPI.AudioRecaps(this._client);
43
- this.flashcards = new FlashcardsAPI.Flashcards(this._client);
44
- this.scenarios = new ScenariosAPI.Scenarios(this._client);
45
- this.explainers = new ExplainersAPI.Explainers(this._client);
46
26
  this.upload = new UploadAPI.Upload(this._client);
47
27
  this.assignmentGrader = new AssignmentGraderAPI.AssignmentGrader(this._client);
48
- this.dataAnalyst = new DataAnalystAPI.DataAnalyst(this._client);
49
28
  }
50
29
  /**
51
30
  * Test MongoDB connection and get outbound IP
@@ -67,13 +46,6 @@ V1.Folders = Folders;
67
46
  V1.Components = Components;
68
47
  V1.Usage = Usage;
69
48
  V1.Embed = Embed;
70
- V1.Chat = Chat;
71
- V1.Tests = Tests;
72
- V1.AudioRecaps = AudioRecaps;
73
- V1.Flashcards = Flashcards;
74
- V1.Scenarios = Scenarios;
75
- V1.Explainers = Explainers;
76
49
  V1.Upload = Upload;
77
50
  V1.AssignmentGrader = AssignmentGrader;
78
- V1.DataAnalyst = DataAnalyst;
79
51
  //# sourceMappingURL=v1.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"v1.mjs","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,mBAAmB;OACxB,EACL,gBAAgB,GAIjB;OACM,KAAK,aAAa;OAClB,EAQL,UAAU,GACX;OACM,KAAK,aAAa;OAClB,EAAuD,UAAU,EAAE;OACnE,KAAK,aAAa;OAClB,EASL,UAAU,GACX;OACM,KAAK,UAAU;OACf,EAA4D,OAAO,EAAE;OACrE,KAAK,cAAc;OACnB,EAGL,WAAW,GACZ;OACM,KAAK,OAAO;OACZ,EACL,IAAI,GAKL;OACM,KAAK,cAAc;OACnB,EACL,WAAW,GAIZ;OACM,KAAK,QAAQ;OACb,EAAE,KAAK,EAA0C;OACjD,KAAK,YAAY;OACjB,EAgBL,SAAS,GACV;OACM,KAAK,YAAY;OACjB,EAKL,SAAS,GAEV;OACM,KAAK,QAAQ;OACb,EAKL,KAAK,GACN;OACM,KAAK,SAAS;OACd,EAAE,MAAM,EAAE;OACV,KAAK,QAAQ;OACb,EAAE,KAAK,EAAqE;OAE5E,EAAE,YAAY,EAAE;AAGvB,MAAM,OAAO,EAAG,SAAQ,WAAW;IAAnC;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClF,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAA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,OAAO,CAAC,CAAC;QACzD,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,qBAAgB,GAAyC,IAAI,mBAAmB,CAAC,gBAAgB,CAC/F,IAAI,CAAC,OAAO,CACb,CAAC;IAgBJ,CAAC;IAdC;;;;;;;OAOG;IACH,WAAW,CAAC,OAAwB;QAClC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE;YAC9C,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;AAED,EAAE,CAAC,SAAS,GAAG,SAAS,CAAC;AACzB,EAAE,CAAC,OAAO,GAAG,OAAO,CAAC;AACrB,EAAE,CAAC,UAAU,GAAG,UAAU,CAAC;AAC3B,EAAE,CAAC,KAAK,GAAG,KAAK,CAAC;AACjB,EAAE,CAAC,KAAK,GAAG,KAAK,CAAC;AACjB,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC;AACnB,EAAE,CAAC,gBAAgB,GAAG,gBAAgB,CAAC"}
@@ -314,6 +314,11 @@ export namespace ComponentCreateParams {
314
314
  */
315
315
  enableFollowUps?: boolean;
316
316
 
317
+ /**
318
+ * Enable guardrails for content moderation
319
+ */
320
+ enableGuardrails?: boolean;
321
+
317
322
  /**
318
323
  * Enable conversation history
319
324
  */
@@ -339,6 +344,11 @@ export namespace ComponentCreateParams {
339
344
  */
340
345
  folders?: Array<string>;
341
346
 
347
+ /**
348
+ * Guardrail rules for content moderation
349
+ */
350
+ guardrailRules?: Array<ChatConfigDto.GuardrailRule>;
351
+
342
352
  /**
343
353
  * Material IDs
344
354
  */
@@ -365,6 +375,35 @@ export namespace ComponentCreateParams {
365
375
  temperature?: number;
366
376
  }
367
377
 
378
+ export namespace ChatConfigDto {
379
+ export interface GuardrailRule {
380
+ /**
381
+ * Unique identifier for the rule
382
+ */
383
+ id: string;
384
+
385
+ /**
386
+ * Action to take when rule is triggered
387
+ */
388
+ action: 'block' | 'warn' | 'modify';
389
+
390
+ /**
391
+ * Condition to check
392
+ */
393
+ condition: string;
394
+
395
+ /**
396
+ * Description of the rule
397
+ */
398
+ description: string;
399
+
400
+ /**
401
+ * Message to show when rule is triggered
402
+ */
403
+ message?: string;
404
+ }
405
+ }
406
+
368
407
  export interface DataAnalystConfigDto {
369
408
  /**
370
409
  * AI model to use
@@ -950,6 +989,11 @@ export namespace ComponentGenerateEmbedParams {
950
989
  * Feature toggles
951
990
  */
952
991
  export interface Features {
992
+ /**
993
+ * Enable bad words filter
994
+ */
995
+ enableBadWordsFilter: boolean;
996
+
953
997
  /**
954
998
  * Enable component creation
955
999
  */
@@ -960,6 +1004,11 @@ export namespace ComponentGenerateEmbedParams {
960
1004
  */
961
1005
  enableFollowUps?: boolean;
962
1006
 
1007
+ /**
1008
+ * Enable guardrails
1009
+ */
1010
+ enableGuardrails?: boolean;
1011
+
963
1012
  /**
964
1013
  * Enable history
965
1014
  */
@@ -6,18 +6,6 @@ export {
6
6
  type AssignmentGraderGetAllResponse,
7
7
  type AssignmentGraderCreateParams,
8
8
  } from './assignment-grader';
9
- export {
10
- AudioRecaps,
11
- type AudioRecapCreateParams,
12
- type AudioRecapAskQuestionParams,
13
- } from './audio-recaps/index';
14
- export {
15
- Chat,
16
- type Interaction,
17
- type ChatGetSessionParams,
18
- type ChatSendMessageParams,
19
- type ChatStreamParams,
20
- } from './chat/index';
21
9
  export {
22
10
  Components,
23
11
  type Component,
@@ -28,25 +16,7 @@ export {
28
16
  type ComponentListParams,
29
17
  type ComponentGenerateEmbedParams,
30
18
  } from './components';
31
- export {
32
- DataAnalyst,
33
- type DataAnalystRetrieveSessionParams,
34
- type DataAnalystSendMessageParams,
35
- type DataAnalystStreamParams,
36
- } from './data-analyst/index';
37
19
  export { Embed, type EmbedGetThemeParams, type EmbedVerifyParams } from './embed/index';
38
- export { Explainers, type ExplainerCreateParams, type ExplainerHandleWebhookParams } from './explainers';
39
- export {
40
- Flashcards,
41
- type FlashcardBatchProcessResponse,
42
- type FlashcardGetAlgorithmResponse,
43
- type FlashcardGetTypesResponse,
44
- type FlashcardBatchProcessParams,
45
- type FlashcardGetAllParams,
46
- type FlashcardGetDueParams,
47
- type FlashcardGetStatsParams,
48
- type FlashcardRateParams,
49
- } from './flashcards';
50
20
  export { Folders, type FolderCreateParams, type FolderUpdateParams, type FolderListParams } from './folders';
51
21
  export {
52
22
  Materials,
@@ -55,32 +25,19 @@ export {
55
25
  type MaterialListResponse,
56
26
  type MaterialBatchCreateResponse,
57
27
  type MaterialDebugResponse,
28
+ type MaterialGenerateAndProcessResponse,
58
29
  type MaterialGetDownloadURLResponse,
59
30
  type MaterialSearchResponse,
60
31
  type MaterialCreateParams,
61
32
  type MaterialListParams,
62
33
  type MaterialBatchCreateParams,
63
34
  type MaterialCreateAndProcessParams,
35
+ type MaterialGenerateAndProcessParams,
64
36
  type MaterialGetDownloadURLParams,
65
37
  type MaterialMoveParams,
66
38
  type MaterialRenameParams,
67
39
  type MaterialSearchParams,
68
40
  } from './materials/index';
69
- export {
70
- Scenarios,
71
- type Scenario,
72
- type UpdateScenario,
73
- type ScenarioCreateParams,
74
- type ScenarioUpdateParams,
75
- type ScenarioSubmitAnswerParams,
76
- } from './scenarios/index';
77
- export {
78
- Tests,
79
- type TestCreateParams,
80
- type TestRetakeParams,
81
- type TestSubmitParams,
82
- type TestSubmitAnswerParams,
83
- } from './tests/index';
84
41
  export { Upload } from './upload/index';
85
42
  export {
86
43
  Usage,
@@ -8,12 +8,14 @@ export {
8
8
  type MaterialListResponse,
9
9
  type MaterialBatchCreateResponse,
10
10
  type MaterialDebugResponse,
11
+ type MaterialGenerateAndProcessResponse,
11
12
  type MaterialGetDownloadURLResponse,
12
13
  type MaterialSearchResponse,
13
14
  type MaterialCreateParams,
14
15
  type MaterialListParams,
15
16
  type MaterialBatchCreateParams,
16
17
  type MaterialCreateAndProcessParams,
18
+ type MaterialGenerateAndProcessParams,
17
19
  type MaterialGetDownloadURLParams,
18
20
  type MaterialMoveParams,
19
21
  type MaterialRenameParams,
@@ -143,6 +143,27 @@ export class Materials extends APIResource {
143
143
  return this._client.get(path`/api/v1/materials/${id}/debug`, options);
144
144
  }
145
145
 
146
+ /**
147
+ * Uses AI to generate study materials like outlines, notes, summaries, etc. from a
148
+ * given topic and waits for processing to complete
149
+ *
150
+ * @example
151
+ * ```ts
152
+ * const response =
153
+ * await client.v1.materials.generateAndProcess({
154
+ * name: 'Photosynthesis Study Plan',
155
+ * topic: 'Photosynthesis in plants',
156
+ * type: 'notes',
157
+ * });
158
+ * ```
159
+ */
160
+ generateAndProcess(
161
+ body: MaterialGenerateAndProcessParams,
162
+ options?: RequestOptions,
163
+ ): APIPromise<MaterialGenerateAndProcessResponse> {
164
+ return this._client.post('/api/v1/materials/generate-and-process', { body, ...options });
165
+ }
166
+
146
167
  /**
147
168
  * Get temporary download URL for material
148
169
  *
@@ -400,6 +421,89 @@ export namespace MaterialDebugResponse {
400
421
  }
401
422
  }
402
423
 
424
+ export interface MaterialGenerateAndProcessResponse {
425
+ /**
426
+ * Material ID
427
+ */
428
+ _id: string;
429
+
430
+ /**
431
+ * Material content
432
+ */
433
+ content: MaterialGenerateAndProcessResponse.Content;
434
+
435
+ /**
436
+ * Content type
437
+ */
438
+ contentType: 'text' | 'pdf' | 'video' | 'audio' | 'image' | 'epub';
439
+
440
+ /**
441
+ * Creation timestamp
442
+ */
443
+ createdAt: string;
444
+
445
+ /**
446
+ * Folder ID
447
+ */
448
+ folderId: string | null;
449
+
450
+ /**
451
+ * Material name
452
+ */
453
+ name: string;
454
+
455
+ /**
456
+ * Organization ID
457
+ */
458
+ organizationId: string;
459
+
460
+ /**
461
+ * Material status
462
+ */
463
+ status: 'active' | 'processing' | 'pending_upload' | 'error' | 'deleted';
464
+
465
+ /**
466
+ * Last update timestamp
467
+ */
468
+ updatedAt: string;
469
+
470
+ /**
471
+ * Generation metadata
472
+ */
473
+ generationMetadata?: unknown;
474
+
475
+ /**
476
+ * Material metadata
477
+ */
478
+ metadata?: unknown;
479
+
480
+ /**
481
+ * Usage information
482
+ */
483
+ usage?: unknown;
484
+ }
485
+
486
+ export namespace MaterialGenerateAndProcessResponse {
487
+ /**
488
+ * Material content
489
+ */
490
+ export interface Content {
491
+ filename?: string;
492
+
493
+ fileSize?: number;
494
+
495
+ mimeType?: string;
496
+
497
+ s3Key?: string;
498
+
499
+ s3Url?: string;
500
+
501
+ text?: string;
502
+
503
+ url?: string;
504
+ }
505
+ }
506
+
403
507
  export interface MaterialGetDownloadURLResponse {
404
508
  /**
405
509
  * Temporary download URL
@@ -562,6 +666,43 @@ export interface MaterialCreateAndProcessParams {
562
666
  timeoutMs?: number;
563
667
  }
564
668
 
669
+ export interface MaterialGenerateAndProcessParams {
670
+ /**
671
+ * Name for the generated material
672
+ */
673
+ name: string;
674
+
675
+ /**
676
+ * Topic or context to generate material from
677
+ */
678
+ topic: string;
679
+
680
+ /**
681
+ * Type of material to generate
682
+ */
683
+ type: 'outline' | 'overview' | 'notes' | 'summary';
684
+
685
+ /**
686
+ * Additional context or details about the topic
687
+ */
688
+ context?: string;
689
+
690
+ /**
691
+ * Target folder ID
692
+ */
693
+ folderId?: string;
694
+
695
+ /**
696
+ * Length of the generated content
697
+ */
698
+ length?: 'short' | 'medium' | 'long';
699
+
700
+ /**
701
+ * Target education level
702
+ */
703
+ level?: 'high_school' | 'college' | 'professional';
704
+ }
705
+
565
706
  export interface MaterialGetDownloadURLParams {
566
707
  /**
567
708
  * URL expiration time in seconds (default: 3600)
@@ -616,12 +757,14 @@ export declare namespace Materials {
616
757
  type MaterialListResponse as MaterialListResponse,
617
758
  type MaterialBatchCreateResponse as MaterialBatchCreateResponse,
618
759
  type MaterialDebugResponse as MaterialDebugResponse,
760
+ type MaterialGenerateAndProcessResponse as MaterialGenerateAndProcessResponse,
619
761
  type MaterialGetDownloadURLResponse as MaterialGetDownloadURLResponse,
620
762
  type MaterialSearchResponse as MaterialSearchResponse,
621
763
  type MaterialCreateParams as MaterialCreateParams,
622
764
  type MaterialListParams as MaterialListParams,
623
765
  type MaterialBatchCreateParams as MaterialBatchCreateParams,
624
766
  type MaterialCreateAndProcessParams as MaterialCreateAndProcessParams,
767
+ type MaterialGenerateAndProcessParams as MaterialGenerateAndProcessParams,
625
768
  type MaterialGetDownloadURLParams as MaterialGetDownloadURLParams,
626
769
  type MaterialMoveParams as MaterialMoveParams,
627
770
  type MaterialRenameParams as MaterialRenameParams,
@@ -198,6 +198,11 @@ export interface UploadCreatePresignedURLParams {
198
198
  */
199
199
  name: string;
200
200
 
201
+ /**
202
+ * Whether to extract images from files
203
+ */
204
+ extractImages?: boolean;
205
+
201
206
  /**
202
207
  * Folder ID to place the material in
203
208
  */
@@ -212,6 +217,11 @@ export interface UploadUploadFileParams {
212
217
  */
213
218
  name: string;
214
219
 
220
+ /**
221
+ * Whether to extract images from files (true/false, default: true)
222
+ */
223
+ extractImages?: string;
224
+
215
225
  /**
216
226
  * Folder ID (optional)
217
227
  */
@@ -226,6 +236,11 @@ export interface UploadUploadFileAndProcessParams {
226
236
  */
227
237
  name: string;
228
238
 
239
+ /**
240
+ * Whether to extract images from files (true/false, default: true)
241
+ */
242
+ extractImages?: string;
243
+
229
244
  /**
230
245
  * Folder ID (optional)
231
246
  */