@studyfetch/sdk 1.26.0 → 1.27.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 (296) hide show
  1. package/CHANGELOG.md +12 -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 +0 -7
  8. package/resources/v1/index.d.mts.map +1 -1
  9. package/resources/v1/index.d.ts +0 -7
  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/upload.d.mts +12 -0
  16. package/resources/v1/materials/upload.d.mts.map +1 -1
  17. package/resources/v1/materials/upload.d.ts +12 -0
  18. package/resources/v1/materials/upload.d.ts.map +1 -1
  19. package/resources/v1/v1.d.mts +0 -28
  20. package/resources/v1/v1.d.mts.map +1 -1
  21. package/resources/v1/v1.d.ts +0 -28
  22. package/resources/v1/v1.d.ts.map +1 -1
  23. package/resources/v1/v1.js +0 -28
  24. package/resources/v1/v1.js.map +1 -1
  25. package/resources/v1/v1.mjs +0 -28
  26. package/resources/v1/v1.mjs.map +1 -1
  27. package/src/resources/v1/components.ts +49 -0
  28. package/src/resources/v1/index.ts +0 -45
  29. package/src/resources/v1/materials/upload.ts +15 -0
  30. package/src/resources/v1/v1.ts +0 -122
  31. package/src/version.ts +1 -1
  32. package/version.d.mts +1 -1
  33. package/version.d.ts +1 -1
  34. package/version.js +1 -1
  35. package/version.mjs +1 -1
  36. package/resources/v1/audio-recaps/audio-recaps.d.mts +0 -44
  37. package/resources/v1/audio-recaps/audio-recaps.d.mts.map +0 -1
  38. package/resources/v1/audio-recaps/audio-recaps.d.ts +0 -44
  39. package/resources/v1/audio-recaps/audio-recaps.d.ts.map +0 -1
  40. package/resources/v1/audio-recaps/audio-recaps.js +0 -63
  41. package/resources/v1/audio-recaps/audio-recaps.js.map +0 -1
  42. package/resources/v1/audio-recaps/audio-recaps.mjs +0 -58
  43. package/resources/v1/audio-recaps/audio-recaps.mjs.map +0 -1
  44. package/resources/v1/audio-recaps/index.d.mts +0 -3
  45. package/resources/v1/audio-recaps/index.d.mts.map +0 -1
  46. package/resources/v1/audio-recaps/index.d.ts +0 -3
  47. package/resources/v1/audio-recaps/index.d.ts.map +0 -1
  48. package/resources/v1/audio-recaps/index.js +0 -9
  49. package/resources/v1/audio-recaps/index.js.map +0 -1
  50. package/resources/v1/audio-recaps/index.mjs +0 -4
  51. package/resources/v1/audio-recaps/index.mjs.map +0 -1
  52. package/resources/v1/audio-recaps/sections.d.mts +0 -35
  53. package/resources/v1/audio-recaps/sections.d.mts.map +0 -1
  54. package/resources/v1/audio-recaps/sections.d.ts +0 -35
  55. package/resources/v1/audio-recaps/sections.d.ts.map +0 -1
  56. package/resources/v1/audio-recaps/sections.js +0 -42
  57. package/resources/v1/audio-recaps/sections.js.map +0 -1
  58. package/resources/v1/audio-recaps/sections.mjs +0 -38
  59. package/resources/v1/audio-recaps/sections.mjs.map +0 -1
  60. package/resources/v1/audio-recaps.d.mts +0 -2
  61. package/resources/v1/audio-recaps.d.mts.map +0 -1
  62. package/resources/v1/audio-recaps.d.ts +0 -2
  63. package/resources/v1/audio-recaps.d.ts.map +0 -1
  64. package/resources/v1/audio-recaps.js +0 -6
  65. package/resources/v1/audio-recaps.js.map +0 -1
  66. package/resources/v1/audio-recaps.mjs +0 -3
  67. package/resources/v1/audio-recaps.mjs.map +0 -1
  68. package/resources/v1/chat/chat.d.mts +0 -217
  69. package/resources/v1/chat/chat.d.mts.map +0 -1
  70. package/resources/v1/chat/chat.d.ts +0 -217
  71. package/resources/v1/chat/chat.d.ts.map +0 -1
  72. package/resources/v1/chat/chat.js +0 -99
  73. package/resources/v1/chat/chat.js.map +0 -1
  74. package/resources/v1/chat/chat.mjs +0 -94
  75. package/resources/v1/chat/chat.mjs.map +0 -1
  76. package/resources/v1/chat/index.d.mts +0 -4
  77. package/resources/v1/chat/index.d.mts.map +0 -1
  78. package/resources/v1/chat/index.d.ts +0 -4
  79. package/resources/v1/chat/index.d.ts.map +0 -1
  80. package/resources/v1/chat/index.js +0 -11
  81. package/resources/v1/chat/index.js.map +0 -1
  82. package/resources/v1/chat/index.mjs +0 -5
  83. package/resources/v1/chat/index.mjs.map +0 -1
  84. package/resources/v1/chat/sessions.d.mts +0 -28
  85. package/resources/v1/chat/sessions.d.mts.map +0 -1
  86. package/resources/v1/chat/sessions.d.ts +0 -28
  87. package/resources/v1/chat/sessions.d.ts.map +0 -1
  88. package/resources/v1/chat/sessions.js +0 -38
  89. package/resources/v1/chat/sessions.js.map +0 -1
  90. package/resources/v1/chat/sessions.mjs +0 -34
  91. package/resources/v1/chat/sessions.mjs.map +0 -1
  92. package/resources/v1/chat/test.d.mts +0 -20
  93. package/resources/v1/chat/test.d.mts.map +0 -1
  94. package/resources/v1/chat/test.d.ts +0 -20
  95. package/resources/v1/chat/test.d.ts.map +0 -1
  96. package/resources/v1/chat/test.js +0 -34
  97. package/resources/v1/chat/test.js.map +0 -1
  98. package/resources/v1/chat/test.mjs +0 -30
  99. package/resources/v1/chat/test.mjs.map +0 -1
  100. package/resources/v1/chat.d.mts +0 -2
  101. package/resources/v1/chat.d.mts.map +0 -1
  102. package/resources/v1/chat.d.ts +0 -2
  103. package/resources/v1/chat.d.ts.map +0 -1
  104. package/resources/v1/chat.js +0 -6
  105. package/resources/v1/chat.js.map +0 -1
  106. package/resources/v1/chat.mjs +0 -3
  107. package/resources/v1/chat.mjs.map +0 -1
  108. package/resources/v1/data-analyst/data-analyst.d.mts +0 -156
  109. package/resources/v1/data-analyst/data-analyst.d.mts.map +0 -1
  110. package/resources/v1/data-analyst/data-analyst.d.ts +0 -156
  111. package/resources/v1/data-analyst/data-analyst.d.ts.map +0 -1
  112. package/resources/v1/data-analyst/data-analyst.js +0 -99
  113. package/resources/v1/data-analyst/data-analyst.js.map +0 -1
  114. package/resources/v1/data-analyst/data-analyst.mjs +0 -94
  115. package/resources/v1/data-analyst/data-analyst.mjs.map +0 -1
  116. package/resources/v1/data-analyst/index.d.mts +0 -4
  117. package/resources/v1/data-analyst/index.d.mts.map +0 -1
  118. package/resources/v1/data-analyst/index.d.ts +0 -4
  119. package/resources/v1/data-analyst/index.d.ts.map +0 -1
  120. package/resources/v1/data-analyst/index.js +0 -11
  121. package/resources/v1/data-analyst/index.js.map +0 -1
  122. package/resources/v1/data-analyst/index.mjs +0 -5
  123. package/resources/v1/data-analyst/index.mjs.map +0 -1
  124. package/resources/v1/data-analyst/sessions.d.mts +0 -28
  125. package/resources/v1/data-analyst/sessions.d.mts.map +0 -1
  126. package/resources/v1/data-analyst/sessions.d.ts +0 -28
  127. package/resources/v1/data-analyst/sessions.d.ts.map +0 -1
  128. package/resources/v1/data-analyst/sessions.js +0 -38
  129. package/resources/v1/data-analyst/sessions.js.map +0 -1
  130. package/resources/v1/data-analyst/sessions.mjs +0 -34
  131. package/resources/v1/data-analyst/sessions.mjs.map +0 -1
  132. package/resources/v1/data-analyst/test.d.mts +0 -20
  133. package/resources/v1/data-analyst/test.d.mts.map +0 -1
  134. package/resources/v1/data-analyst/test.d.ts +0 -20
  135. package/resources/v1/data-analyst/test.d.ts.map +0 -1
  136. package/resources/v1/data-analyst/test.js +0 -34
  137. package/resources/v1/data-analyst/test.js.map +0 -1
  138. package/resources/v1/data-analyst/test.mjs +0 -30
  139. package/resources/v1/data-analyst/test.mjs.map +0 -1
  140. package/resources/v1/data-analyst.d.mts +0 -2
  141. package/resources/v1/data-analyst.d.mts.map +0 -1
  142. package/resources/v1/data-analyst.d.ts +0 -2
  143. package/resources/v1/data-analyst.d.ts.map +0 -1
  144. package/resources/v1/data-analyst.js +0 -6
  145. package/resources/v1/data-analyst.js.map +0 -1
  146. package/resources/v1/data-analyst.mjs +0 -3
  147. package/resources/v1/data-analyst.mjs.map +0 -1
  148. package/resources/v1/explainers.d.mts +0 -152
  149. package/resources/v1/explainers.d.mts.map +0 -1
  150. package/resources/v1/explainers.d.ts +0 -152
  151. package/resources/v1/explainers.d.ts.map +0 -1
  152. package/resources/v1/explainers.js +0 -64
  153. package/resources/v1/explainers.js.map +0 -1
  154. package/resources/v1/explainers.mjs +0 -60
  155. package/resources/v1/explainers.mjs.map +0 -1
  156. package/resources/v1/flashcards.d.mts +0 -256
  157. package/resources/v1/flashcards.d.mts.map +0 -1
  158. package/resources/v1/flashcards.d.ts +0 -256
  159. package/resources/v1/flashcards.d.ts.map +0 -1
  160. package/resources/v1/flashcards.js +0 -112
  161. package/resources/v1/flashcards.js.map +0 -1
  162. package/resources/v1/flashcards.mjs +0 -108
  163. package/resources/v1/flashcards.mjs.map +0 -1
  164. package/resources/v1/scenarios/component.d.mts +0 -84
  165. package/resources/v1/scenarios/component.d.mts.map +0 -1
  166. package/resources/v1/scenarios/component.d.ts +0 -84
  167. package/resources/v1/scenarios/component.d.ts.map +0 -1
  168. package/resources/v1/scenarios/component.js +0 -56
  169. package/resources/v1/scenarios/component.js.map +0 -1
  170. package/resources/v1/scenarios/component.mjs +0 -52
  171. package/resources/v1/scenarios/component.mjs.map +0 -1
  172. package/resources/v1/scenarios/index.d.mts +0 -5
  173. package/resources/v1/scenarios/index.d.mts.map +0 -1
  174. package/resources/v1/scenarios/index.d.ts +0 -5
  175. package/resources/v1/scenarios/index.d.ts.map +0 -1
  176. package/resources/v1/scenarios/index.js +0 -13
  177. package/resources/v1/scenarios/index.js.map +0 -1
  178. package/resources/v1/scenarios/index.mjs +0 -6
  179. package/resources/v1/scenarios/index.mjs.map +0 -1
  180. package/resources/v1/scenarios/scenarios.d.mts +0 -289
  181. package/resources/v1/scenarios/scenarios.d.mts.map +0 -1
  182. package/resources/v1/scenarios/scenarios.d.ts +0 -289
  183. package/resources/v1/scenarios/scenarios.d.ts.map +0 -1
  184. package/resources/v1/scenarios/scenarios.js +0 -131
  185. package/resources/v1/scenarios/scenarios.js.map +0 -1
  186. package/resources/v1/scenarios/scenarios.mjs +0 -126
  187. package/resources/v1/scenarios/scenarios.mjs.map +0 -1
  188. package/resources/v1/scenarios/sessions.d.mts +0 -20
  189. package/resources/v1/scenarios/sessions.d.mts.map +0 -1
  190. package/resources/v1/scenarios/sessions.d.ts +0 -20
  191. package/resources/v1/scenarios/sessions.d.ts.map +0 -1
  192. package/resources/v1/scenarios/sessions.js +0 -35
  193. package/resources/v1/scenarios/sessions.js.map +0 -1
  194. package/resources/v1/scenarios/sessions.mjs +0 -31
  195. package/resources/v1/scenarios/sessions.mjs.map +0 -1
  196. package/resources/v1/scenarios/submissions/index.d.mts +0 -3
  197. package/resources/v1/scenarios/submissions/index.d.mts.map +0 -1
  198. package/resources/v1/scenarios/submissions/index.d.ts +0 -3
  199. package/resources/v1/scenarios/submissions/index.d.ts.map +0 -1
  200. package/resources/v1/scenarios/submissions/index.js +0 -9
  201. package/resources/v1/scenarios/submissions/index.js.map +0 -1
  202. package/resources/v1/scenarios/submissions/index.mjs +0 -4
  203. package/resources/v1/scenarios/submissions/index.mjs.map +0 -1
  204. package/resources/v1/scenarios/submissions/submissions.d.mts +0 -10
  205. package/resources/v1/scenarios/submissions/submissions.d.mts.map +0 -1
  206. package/resources/v1/scenarios/submissions/submissions.d.ts +0 -10
  207. package/resources/v1/scenarios/submissions/submissions.d.ts.map +0 -1
  208. package/resources/v1/scenarios/submissions/submissions.js +0 -17
  209. package/resources/v1/scenarios/submissions/submissions.js.map +0 -1
  210. package/resources/v1/scenarios/submissions/submissions.mjs +0 -12
  211. package/resources/v1/scenarios/submissions/submissions.mjs.map +0 -1
  212. package/resources/v1/scenarios/submissions/user.d.mts +0 -22
  213. package/resources/v1/scenarios/submissions/user.d.mts.map +0 -1
  214. package/resources/v1/scenarios/submissions/user.d.ts +0 -22
  215. package/resources/v1/scenarios/submissions/user.d.ts.map +0 -1
  216. package/resources/v1/scenarios/submissions/user.js +0 -37
  217. package/resources/v1/scenarios/submissions/user.js.map +0 -1
  218. package/resources/v1/scenarios/submissions/user.mjs +0 -33
  219. package/resources/v1/scenarios/submissions/user.mjs.map +0 -1
  220. package/resources/v1/scenarios/submissions.d.mts +0 -2
  221. package/resources/v1/scenarios/submissions.d.mts.map +0 -1
  222. package/resources/v1/scenarios/submissions.d.ts +0 -2
  223. package/resources/v1/scenarios/submissions.d.ts.map +0 -1
  224. package/resources/v1/scenarios/submissions.js +0 -6
  225. package/resources/v1/scenarios/submissions.js.map +0 -1
  226. package/resources/v1/scenarios/submissions.mjs +0 -3
  227. package/resources/v1/scenarios/submissions.mjs.map +0 -1
  228. package/resources/v1/scenarios.d.mts +0 -2
  229. package/resources/v1/scenarios.d.mts.map +0 -1
  230. package/resources/v1/scenarios.d.ts +0 -2
  231. package/resources/v1/scenarios.d.ts.map +0 -1
  232. package/resources/v1/scenarios.js +0 -6
  233. package/resources/v1/scenarios.js.map +0 -1
  234. package/resources/v1/scenarios.mjs +0 -3
  235. package/resources/v1/scenarios.mjs.map +0 -1
  236. package/resources/v1/tests/component.d.mts +0 -13
  237. package/resources/v1/tests/component.d.mts.map +0 -1
  238. package/resources/v1/tests/component.d.ts +0 -13
  239. package/resources/v1/tests/component.d.ts.map +0 -1
  240. package/resources/v1/tests/component.js +0 -23
  241. package/resources/v1/tests/component.js.map +0 -1
  242. package/resources/v1/tests/component.mjs +0 -19
  243. package/resources/v1/tests/component.mjs.map +0 -1
  244. package/resources/v1/tests/index.d.mts +0 -3
  245. package/resources/v1/tests/index.d.mts.map +0 -1
  246. package/resources/v1/tests/index.d.ts +0 -3
  247. package/resources/v1/tests/index.d.ts.map +0 -1
  248. package/resources/v1/tests/index.js +0 -9
  249. package/resources/v1/tests/index.js.map +0 -1
  250. package/resources/v1/tests/index.mjs +0 -4
  251. package/resources/v1/tests/index.mjs.map +0 -1
  252. package/resources/v1/tests/tests.d.mts +0 -112
  253. package/resources/v1/tests/tests.d.mts.map +0 -1
  254. package/resources/v1/tests/tests.d.ts +0 -112
  255. package/resources/v1/tests/tests.d.ts.map +0 -1
  256. package/resources/v1/tests/tests.js +0 -112
  257. package/resources/v1/tests/tests.js.map +0 -1
  258. package/resources/v1/tests/tests.mjs +0 -107
  259. package/resources/v1/tests/tests.mjs.map +0 -1
  260. package/resources/v1/tests.d.mts +0 -2
  261. package/resources/v1/tests.d.mts.map +0 -1
  262. package/resources/v1/tests.d.ts +0 -2
  263. package/resources/v1/tests.d.ts.map +0 -1
  264. package/resources/v1/tests.js +0 -6
  265. package/resources/v1/tests.js.map +0 -1
  266. package/resources/v1/tests.mjs +0 -3
  267. package/resources/v1/tests.mjs.map +0 -1
  268. package/src/resources/v1/audio-recaps/audio-recaps.ts +0 -79
  269. package/src/resources/v1/audio-recaps/index.ts +0 -4
  270. package/src/resources/v1/audio-recaps/sections.ts +0 -53
  271. package/src/resources/v1/audio-recaps.ts +0 -3
  272. package/src/resources/v1/chat/chat.ts +0 -303
  273. package/src/resources/v1/chat/index.ts +0 -11
  274. package/src/resources/v1/chat/sessions.ts +0 -46
  275. package/src/resources/v1/chat/test.ts +0 -34
  276. package/src/resources/v1/chat.ts +0 -3
  277. package/src/resources/v1/data-analyst/data-analyst.ts +0 -233
  278. package/src/resources/v1/data-analyst/index.ts +0 -10
  279. package/src/resources/v1/data-analyst/sessions.ts +0 -46
  280. package/src/resources/v1/data-analyst/test.ts +0 -34
  281. package/src/resources/v1/data-analyst.ts +0 -3
  282. package/src/resources/v1/explainers.ts +0 -203
  283. package/src/resources/v1/flashcards.ts +0 -353
  284. package/src/resources/v1/scenarios/component.ts +0 -118
  285. package/src/resources/v1/scenarios/index.ts +0 -13
  286. package/src/resources/v1/scenarios/scenarios.ts +0 -400
  287. package/src/resources/v1/scenarios/sessions.ts +0 -35
  288. package/src/resources/v1/scenarios/submissions/index.ts +0 -4
  289. package/src/resources/v1/scenarios/submissions/submissions.ts +0 -15
  290. package/src/resources/v1/scenarios/submissions/user.ts +0 -37
  291. package/src/resources/v1/scenarios/submissions.ts +0 -3
  292. package/src/resources/v1/scenarios.ts +0 -3
  293. package/src/resources/v1/tests/component.ts +0 -22
  294. package/src/resources/v1/tests/index.ts +0 -10
  295. package/src/resources/v1/tests/tests.ts +0 -173
  296. package/src/resources/v1/tests.ts +0 -3
@@ -1,107 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../../../core/resource.mjs";
3
- import * as ComponentAPI from "./component.mjs";
4
- import { Component } from "./component.mjs";
5
- import { buildHeaders } from "../../../internal/headers.mjs";
6
- import { path } from "../../../internal/utils/path.mjs";
7
- export class Tests extends APIResource {
8
- constructor() {
9
- super(...arguments);
10
- this.component = new ComponentAPI.Component(this._client);
11
- }
12
- /**
13
- * Create a new test
14
- *
15
- * @example
16
- * ```ts
17
- * await client.v1.tests.create({
18
- * componentId: 'componentId',
19
- * });
20
- * ```
21
- */
22
- create(body, options) {
23
- return this._client.post('/api/v1/tests/create', {
24
- body,
25
- ...options,
26
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
27
- });
28
- }
29
- /**
30
- * Get test by ID
31
- *
32
- * @example
33
- * ```ts
34
- * await client.v1.tests.retrieve('testId');
35
- * ```
36
- */
37
- retrieve(testID, options) {
38
- return this._client.get(path `/api/v1/tests/${testID}`, {
39
- ...options,
40
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
41
- });
42
- }
43
- /**
44
- * Get test results
45
- *
46
- * @example
47
- * ```ts
48
- * await client.v1.tests.getResults('testId');
49
- * ```
50
- */
51
- getResults(testID, options) {
52
- return this._client.get(path `/api/v1/tests/${testID}/results`, {
53
- ...options,
54
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
55
- });
56
- }
57
- /**
58
- * Retake a test
59
- *
60
- * @example
61
- * ```ts
62
- * await client.v1.tests.retake('testId');
63
- * ```
64
- */
65
- retake(testID, body, options) {
66
- return this._client.post(path `/api/v1/tests/${testID}/retake`, {
67
- body,
68
- ...options,
69
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
70
- });
71
- }
72
- /**
73
- * Submit completed test
74
- *
75
- * @example
76
- * ```ts
77
- * await client.v1.tests.submit('testId');
78
- * ```
79
- */
80
- submit(testID, body, options) {
81
- return this._client.post(path `/api/v1/tests/${testID}/submit`, {
82
- body,
83
- ...options,
84
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
85
- });
86
- }
87
- /**
88
- * Submit test answer
89
- *
90
- * @example
91
- * ```ts
92
- * await client.v1.tests.submitAnswer('testId', {
93
- * answer: 'answer',
94
- * questionId: 'questionId',
95
- * });
96
- * ```
97
- */
98
- submitAnswer(testID, body, options) {
99
- return this._client.post(path `/api/v1/tests/${testID}/submit-answer`, {
100
- body,
101
- ...options,
102
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
103
- });
104
- }
105
- }
106
- Tests.Component = Component;
107
- //# sourceMappingURL=tests.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tests.mjs","sourceRoot":"","sources":["../../../src/resources/v1/tests/tests.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EAAE,SAAS,EAAE;OAEb,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,KAAM,SAAQ,WAAW;IAAtC;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAoG/E,CAAC;IAlGC;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAsB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE;YAC/C,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,QAAQ,CAAC,MAAc,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,iBAAiB,MAAM,EAAE,EAAE;YACrD,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,UAAU,CAAC,MAAc,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,iBAAiB,MAAM,UAAU,EAAE;YAC7D,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,MAAc,EAAE,IAAsB,EAAE,OAAwB;QACrE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,iBAAiB,MAAM,SAAS,EAAE;YAC7D,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,MAAc,EAAE,IAAsB,EAAE,OAAwB;QACrE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,iBAAiB,MAAM,SAAS,EAAE;YAC7D,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;OAUG;IACH,YAAY,CAAC,MAAc,EAAE,IAA4B,EAAE,OAAwB;QACjF,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,iBAAiB,MAAM,gBAAgB,EAAE;YACpE,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AAkDD,KAAK,CAAC,SAAS,GAAG,SAAS,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from "./tests/index.mjs";
2
- //# sourceMappingURL=tests.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tests.d.mts","sourceRoot":"","sources":["../../src/resources/v1/tests.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export * from "./tests/index.js";
2
- //# sourceMappingURL=tests.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tests.d.ts","sourceRoot":"","sources":["../../src/resources/v1/tests.ts"],"names":[],"mappings":""}
@@ -1,6 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- const tslib_1 = require("../../internal/tslib.js");
5
- tslib_1.__exportStar(require("./tests/index.js"), exports);
6
- //# sourceMappingURL=tests.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tests.js","sourceRoot":"","sources":["../../src/resources/v1/tests.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2DAA8B"}
@@ -1,3 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- export * from "./tests/index.mjs";
3
- //# sourceMappingURL=tests.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tests.mjs","sourceRoot":"","sources":["../../src/resources/v1/tests.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
@@ -1,79 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { APIResource } from '../../../core/resource';
4
- import * as SectionsAPI from './sections';
5
- import { SectionRetrieveParams, Sections } from './sections';
6
- import { APIPromise } from '../../../core/api-promise';
7
- import { buildHeaders } from '../../../internal/headers';
8
- import { RequestOptions } from '../../../internal/request-options';
9
- import { path } from '../../../internal/utils/path';
10
-
11
- export class AudioRecaps extends APIResource {
12
- sections: SectionsAPI.Sections = new SectionsAPI.Sections(this._client);
13
-
14
- /**
15
- * Create a new audio recap
16
- *
17
- * @example
18
- * ```ts
19
- * await client.v1.audioRecaps.create();
20
- * ```
21
- */
22
- create(body: AudioRecapCreateParams, options?: RequestOptions): APIPromise<void> {
23
- return this._client.post('/api/v1/audio-recaps/create', {
24
- body,
25
- ...options,
26
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
27
- });
28
- }
29
-
30
- /**
31
- * Get audio recap by ID
32
- *
33
- * @example
34
- * ```ts
35
- * await client.v1.audioRecaps.retrieve('recapId');
36
- * ```
37
- */
38
- retrieve(recapID: string, options?: RequestOptions): APIPromise<void> {
39
- return this._client.get(path`/api/v1/audio-recaps/${recapID}/get`, {
40
- ...options,
41
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
42
- });
43
- }
44
-
45
- /**
46
- * Ask a question about the audio recap
47
- *
48
- * @example
49
- * ```ts
50
- * await client.v1.audioRecaps.askQuestion('recapId');
51
- * ```
52
- */
53
- askQuestion(
54
- recapID: string,
55
- body: AudioRecapAskQuestionParams,
56
- options?: RequestOptions,
57
- ): APIPromise<void> {
58
- return this._client.post(path`/api/v1/audio-recaps/${recapID}/ask-question`, {
59
- body,
60
- ...options,
61
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
62
- });
63
- }
64
- }
65
-
66
- export interface AudioRecapCreateParams {}
67
-
68
- export interface AudioRecapAskQuestionParams {}
69
-
70
- AudioRecaps.Sections = Sections;
71
-
72
- export declare namespace AudioRecaps {
73
- export {
74
- type AudioRecapCreateParams as AudioRecapCreateParams,
75
- type AudioRecapAskQuestionParams as AudioRecapAskQuestionParams,
76
- };
77
-
78
- export { Sections as Sections, type SectionRetrieveParams as SectionRetrieveParams };
79
- }
@@ -1,4 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- export { AudioRecaps, type AudioRecapCreateParams, type AudioRecapAskQuestionParams } from './audio-recaps';
4
- export { Sections, type SectionRetrieveParams } from './sections';
@@ -1,53 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { APIResource } from '../../../core/resource';
4
- import { APIPromise } from '../../../core/api-promise';
5
- import { buildHeaders } from '../../../internal/headers';
6
- import { RequestOptions } from '../../../internal/request-options';
7
- import { path } from '../../../internal/utils/path';
8
-
9
- export class Sections extends APIResource {
10
- /**
11
- * Get specific audio recap section
12
- *
13
- * @example
14
- * ```ts
15
- * await client.v1.audioRecaps.sections.retrieve('sectionId', {
16
- * recapId: 'recapId',
17
- * });
18
- * ```
19
- */
20
- retrieve(sectionID: string, params: SectionRetrieveParams, options?: RequestOptions): APIPromise<void> {
21
- const { recapId } = params;
22
- return this._client.get(path`/api/v1/audio-recaps/${recapId}/sections/${sectionID}`, {
23
- ...options,
24
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
25
- });
26
- }
27
-
28
- /**
29
- * Get audio recap sections
30
- *
31
- * @example
32
- * ```ts
33
- * await client.v1.audioRecaps.sections.list('recapId');
34
- * ```
35
- */
36
- list(recapID: string, options?: RequestOptions): APIPromise<void> {
37
- return this._client.get(path`/api/v1/audio-recaps/${recapID}/sections`, {
38
- ...options,
39
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
40
- });
41
- }
42
- }
43
-
44
- export interface SectionRetrieveParams {
45
- /**
46
- * Audio recap ID
47
- */
48
- recapId: string;
49
- }
50
-
51
- export declare namespace Sections {
52
- export { type SectionRetrieveParams as SectionRetrieveParams };
53
- }
@@ -1,3 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- export * from './audio-recaps/index';
@@ -1,303 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { APIResource } from '../../../core/resource';
4
- import * as SessionsAPI from './sessions';
5
- import { SessionRetrieveParams, Sessions } from './sessions';
6
- import * as TestAPI from './test';
7
- import { Test } from './test';
8
- import { APIPromise } from '../../../core/api-promise';
9
- import { buildHeaders } from '../../../internal/headers';
10
- import { RequestOptions } from '../../../internal/request-options';
11
- import { path } from '../../../internal/utils/path';
12
-
13
- export class Chat extends APIResource {
14
- sessions: SessionsAPI.Sessions = new SessionsAPI.Sessions(this._client);
15
- test: TestAPI.Test = new TestAPI.Test(this._client);
16
-
17
- /**
18
- * @example
19
- * ```ts
20
- * await client.v1.chat.getHistory();
21
- * ```
22
- */
23
- getHistory(options?: RequestOptions): APIPromise<void> {
24
- return this._client.post('/api/v1/chat/history', {
25
- ...options,
26
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
27
- });
28
- }
29
-
30
- /**
31
- * @example
32
- * ```ts
33
- * await client.v1.chat.getSession('sessionId', {
34
- * userId: 'userId',
35
- * });
36
- * ```
37
- */
38
- getSession(sessionID: string, query: ChatGetSessionParams, options?: RequestOptions): APIPromise<void> {
39
- return this._client.get(path`/api/v1/chat/session/${sessionID}`, {
40
- query,
41
- ...options,
42
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
43
- });
44
- }
45
-
46
- /**
47
- * @example
48
- * ```ts
49
- * await client.v1.chat.sendFollowups();
50
- * ```
51
- */
52
- sendFollowups(options?: RequestOptions): APIPromise<void> {
53
- return this._client.post('/api/v1/chat/followups', {
54
- ...options,
55
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
56
- });
57
- }
58
-
59
- /**
60
- * @example
61
- * ```ts
62
- * await client.v1.chat.sendMessage({
63
- * componentId: 'componentId',
64
- * message: {},
65
- * 'x-component-id': 'x-component-id',
66
- * });
67
- * ```
68
- */
69
- sendMessage(params: ChatSendMessageParams, options?: RequestOptions): APIPromise<void> {
70
- const { 'x-component-id': xComponentID, ...body } = params;
71
- return this._client.post('/api/v1/chat/message', {
72
- body,
73
- ...options,
74
- headers: buildHeaders([{ Accept: '*/*', 'x-component-id': xComponentID }, options?.headers]),
75
- });
76
- }
77
-
78
- /**
79
- * Stream chat responses
80
- *
81
- * @example
82
- * ```ts
83
- * await client.v1.chat.stream();
84
- * ```
85
- */
86
- stream(params: ChatStreamParams, options?: RequestOptions): APIPromise<void> {
87
- const { 'x-component-id': xComponentID, ...body } = params;
88
- return this._client.post('/api/v1/chat/stream', {
89
- body,
90
- ...options,
91
- headers: buildHeaders([
92
- { Accept: '*/*', ...(xComponentID != null ? { 'x-component-id': xComponentID } : undefined) },
93
- options?.headers,
94
- ]),
95
- });
96
- }
97
- }
98
-
99
- export interface Interaction {
100
- /**
101
- * Component ID for context
102
- */
103
- componentId: string;
104
-
105
- /**
106
- * Chat message content
107
- */
108
- message: Interaction.Message;
109
-
110
- /**
111
- * Additional context data
112
- */
113
- context?: unknown;
114
-
115
- /**
116
- * Group IDs for collaboration
117
- */
118
- groupIds?: Array<string>;
119
-
120
- /**
121
- * Session ID for conversation continuity
122
- */
123
- sessionId?: string;
124
-
125
- /**
126
- * User ID for tracking
127
- */
128
- userId?: string;
129
- }
130
-
131
- export namespace Interaction {
132
- /**
133
- * Chat message content
134
- */
135
- export interface Message {
136
- /**
137
- * Images attached to the message
138
- */
139
- images?: Array<Message.Image>;
140
-
141
- /**
142
- * Text content of the message
143
- */
144
- text?: string;
145
- }
146
-
147
- export namespace Message {
148
- export interface Image {
149
- /**
150
- * Base64 encoded image data
151
- */
152
- base64?: string;
153
-
154
- /**
155
- * Caption for the image
156
- */
157
- caption?: string;
158
-
159
- /**
160
- * MIME type of the image
161
- */
162
- mimeType?: string;
163
-
164
- /**
165
- * URL of the image
166
- */
167
- url?: string;
168
- }
169
- }
170
- }
171
-
172
- export interface ChatGetSessionParams {
173
- userId: string;
174
- }
175
-
176
- export interface ChatSendMessageParams {
177
- /**
178
- * Body param: Component ID for context
179
- */
180
- componentId: string;
181
-
182
- /**
183
- * Body param: Chat message content
184
- */
185
- message: ChatSendMessageParams.Message;
186
-
187
- /**
188
- * Header param:
189
- */
190
- 'x-component-id': string;
191
-
192
- /**
193
- * Body param: Additional context data
194
- */
195
- context?: unknown;
196
-
197
- /**
198
- * Body param: Group IDs for collaboration
199
- */
200
- groupIds?: Array<string>;
201
-
202
- /**
203
- * Body param: Session ID for conversation continuity
204
- */
205
- sessionId?: string;
206
-
207
- /**
208
- * Body param: User ID for tracking
209
- */
210
- userId?: string;
211
- }
212
-
213
- export namespace ChatSendMessageParams {
214
- /**
215
- * Chat message content
216
- */
217
- export interface Message {
218
- /**
219
- * Images attached to the message
220
- */
221
- images?: Array<Message.Image>;
222
-
223
- /**
224
- * Text content of the message
225
- */
226
- text?: string;
227
- }
228
-
229
- export namespace Message {
230
- export interface Image {
231
- /**
232
- * Base64 encoded image data
233
- */
234
- base64?: string;
235
-
236
- /**
237
- * Caption for the image
238
- */
239
- caption?: string;
240
-
241
- /**
242
- * MIME type of the image
243
- */
244
- mimeType?: string;
245
-
246
- /**
247
- * URL of the image
248
- */
249
- url?: string;
250
- }
251
- }
252
- }
253
-
254
- export interface ChatStreamParams {
255
- /**
256
- * Body param:
257
- */
258
- context?: unknown;
259
-
260
- /**
261
- * Body param:
262
- */
263
- groupId?: string;
264
-
265
- /**
266
- * Body param:
267
- */
268
- messages?: Array<ChatStreamParams.Message>;
269
-
270
- /**
271
- * Body param:
272
- */
273
- userId?: string;
274
-
275
- /**
276
- * Header param: Component ID for context
277
- */
278
- 'x-component-id'?: string;
279
- }
280
-
281
- export namespace ChatStreamParams {
282
- export interface Message {
283
- content?: string;
284
-
285
- role?: 'user' | 'assistant' | 'system';
286
- }
287
- }
288
-
289
- Chat.Sessions = Sessions;
290
- Chat.Test = Test;
291
-
292
- export declare namespace Chat {
293
- export {
294
- type Interaction as Interaction,
295
- type ChatGetSessionParams as ChatGetSessionParams,
296
- type ChatSendMessageParams as ChatSendMessageParams,
297
- type ChatStreamParams as ChatStreamParams,
298
- };
299
-
300
- export { Sessions as Sessions, type SessionRetrieveParams as SessionRetrieveParams };
301
-
302
- export { Test as Test };
303
- }
@@ -1,11 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- export {
4
- Chat,
5
- type Interaction,
6
- type ChatGetSessionParams,
7
- type ChatSendMessageParams,
8
- type ChatStreamParams,
9
- } from './chat';
10
- export { Sessions, type SessionRetrieveParams } from './sessions';
11
- export { Test } from './test';
@@ -1,46 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { APIResource } from '../../../core/resource';
4
- import { APIPromise } from '../../../core/api-promise';
5
- import { buildHeaders } from '../../../internal/headers';
6
- import { RequestOptions } from '../../../internal/request-options';
7
- import { path } from '../../../internal/utils/path';
8
-
9
- export class Sessions extends APIResource {
10
- /**
11
- * @example
12
- * ```ts
13
- * await client.v1.chat.sessions.create();
14
- * ```
15
- */
16
- create(options?: RequestOptions): APIPromise<void> {
17
- return this._client.post('/api/v1/chat/sessions/create', {
18
- ...options,
19
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
20
- });
21
- }
22
-
23
- /**
24
- * @example
25
- * ```ts
26
- * await client.v1.chat.sessions.retrieve('userId', {
27
- * limit: 'limit',
28
- * });
29
- * ```
30
- */
31
- retrieve(userID: string, query: SessionRetrieveParams, options?: RequestOptions): APIPromise<void> {
32
- return this._client.get(path`/api/v1/chat/sessions/${userID}`, {
33
- query,
34
- ...options,
35
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
36
- });
37
- }
38
- }
39
-
40
- export interface SessionRetrieveParams {
41
- limit: string;
42
- }
43
-
44
- export declare namespace Sessions {
45
- export { type SessionRetrieveParams as SessionRetrieveParams };
46
- }
@@ -1,34 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { APIResource } from '../../../core/resource';
4
- import { APIPromise } from '../../../core/api-promise';
5
- import { buildHeaders } from '../../../internal/headers';
6
- import { RequestOptions } from '../../../internal/request-options';
7
-
8
- export class Test extends APIResource {
9
- /**
10
- * @example
11
- * ```ts
12
- * await client.v1.chat.test.citeImage();
13
- * ```
14
- */
15
- citeImage(options?: RequestOptions): APIPromise<void> {
16
- return this._client.post('/api/v1/chat/test/image-citation', {
17
- ...options,
18
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
19
- });
20
- }
21
-
22
- /**
23
- * @example
24
- * ```ts
25
- * await client.v1.chat.test.uploadImage();
26
- * ```
27
- */
28
- uploadImage(options?: RequestOptions): APIPromise<void> {
29
- return this._client.post('/api/v1/chat/test/image', {
30
- ...options,
31
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
32
- });
33
- }
34
- }
@@ -1,3 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- export * from './chat/index';