@studyfetch/sdk 0.1.0-alpha.1

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 (1083) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/LICENSE +201 -0
  3. package/README.md +401 -0
  4. package/api-promise.d.mts +2 -0
  5. package/api-promise.d.mts.map +1 -0
  6. package/api-promise.d.ts +2 -0
  7. package/api-promise.d.ts.map +1 -0
  8. package/api-promise.js +6 -0
  9. package/api-promise.js.map +1 -0
  10. package/api-promise.mjs +2 -0
  11. package/api-promise.mjs.map +1 -0
  12. package/client.d.mts +177 -0
  13. package/client.d.mts.map +1 -0
  14. package/client.d.ts +177 -0
  15. package/client.d.ts.map +1 -0
  16. package/client.js +448 -0
  17. package/client.js.map +1 -0
  18. package/client.mjs +444 -0
  19. package/client.mjs.map +1 -0
  20. package/core/api-promise.d.mts +46 -0
  21. package/core/api-promise.d.mts.map +1 -0
  22. package/core/api-promise.d.ts +46 -0
  23. package/core/api-promise.d.ts.map +1 -0
  24. package/core/api-promise.js +74 -0
  25. package/core/api-promise.js.map +1 -0
  26. package/core/api-promise.mjs +70 -0
  27. package/core/api-promise.mjs.map +1 -0
  28. package/core/error.d.mts +46 -0
  29. package/core/error.d.mts.map +1 -0
  30. package/core/error.d.ts +46 -0
  31. package/core/error.d.ts.map +1 -0
  32. package/core/error.js +113 -0
  33. package/core/error.js.map +1 -0
  34. package/core/error.mjs +97 -0
  35. package/core/error.mjs.map +1 -0
  36. package/core/resource.d.mts +6 -0
  37. package/core/resource.d.mts.map +1 -0
  38. package/core/resource.d.ts +6 -0
  39. package/core/resource.d.ts.map +1 -0
  40. package/core/resource.js +11 -0
  41. package/core/resource.js.map +1 -0
  42. package/core/resource.mjs +7 -0
  43. package/core/resource.mjs.map +1 -0
  44. package/core/uploads.d.mts +3 -0
  45. package/core/uploads.d.mts.map +1 -0
  46. package/core/uploads.d.ts +3 -0
  47. package/core/uploads.d.ts.map +1 -0
  48. package/core/uploads.js +6 -0
  49. package/core/uploads.js.map +1 -0
  50. package/core/uploads.mjs +2 -0
  51. package/core/uploads.mjs.map +1 -0
  52. package/error.d.mts +2 -0
  53. package/error.d.mts.map +1 -0
  54. package/error.d.ts +2 -0
  55. package/error.d.ts.map +1 -0
  56. package/error.js +6 -0
  57. package/error.js.map +1 -0
  58. package/error.mjs +2 -0
  59. package/error.mjs.map +1 -0
  60. package/index.d.mts +6 -0
  61. package/index.d.mts.map +1 -0
  62. package/index.d.ts +6 -0
  63. package/index.d.ts.map +1 -0
  64. package/index.js +30 -0
  65. package/index.js.map +1 -0
  66. package/index.mjs +7 -0
  67. package/index.mjs.map +1 -0
  68. package/internal/builtin-types.d.mts +73 -0
  69. package/internal/builtin-types.d.mts.map +1 -0
  70. package/internal/builtin-types.d.ts +73 -0
  71. package/internal/builtin-types.d.ts.map +1 -0
  72. package/internal/builtin-types.js +4 -0
  73. package/internal/builtin-types.js.map +1 -0
  74. package/internal/builtin-types.mjs +3 -0
  75. package/internal/builtin-types.mjs.map +1 -0
  76. package/internal/detect-platform.d.mts +15 -0
  77. package/internal/detect-platform.d.mts.map +1 -0
  78. package/internal/detect-platform.d.ts +15 -0
  79. package/internal/detect-platform.d.ts.map +1 -0
  80. package/internal/detect-platform.js +162 -0
  81. package/internal/detect-platform.js.map +1 -0
  82. package/internal/detect-platform.mjs +157 -0
  83. package/internal/detect-platform.mjs.map +1 -0
  84. package/internal/errors.d.mts +3 -0
  85. package/internal/errors.d.mts.map +1 -0
  86. package/internal/errors.d.ts +3 -0
  87. package/internal/errors.d.ts.map +1 -0
  88. package/internal/errors.js +41 -0
  89. package/internal/errors.js.map +1 -0
  90. package/internal/errors.mjs +36 -0
  91. package/internal/errors.mjs.map +1 -0
  92. package/internal/headers.d.mts +20 -0
  93. package/internal/headers.d.mts.map +1 -0
  94. package/internal/headers.d.ts +20 -0
  95. package/internal/headers.d.ts.map +1 -0
  96. package/internal/headers.js +79 -0
  97. package/internal/headers.js.map +1 -0
  98. package/internal/headers.mjs +74 -0
  99. package/internal/headers.mjs.map +1 -0
  100. package/internal/parse.d.mts +12 -0
  101. package/internal/parse.d.mts.map +1 -0
  102. package/internal/parse.d.ts +12 -0
  103. package/internal/parse.d.ts.map +1 -0
  104. package/internal/parse.js +35 -0
  105. package/internal/parse.js.map +1 -0
  106. package/internal/parse.mjs +32 -0
  107. package/internal/parse.mjs.map +1 -0
  108. package/internal/qs/formats.d.mts +7 -0
  109. package/internal/qs/formats.d.mts.map +1 -0
  110. package/internal/qs/formats.d.ts +7 -0
  111. package/internal/qs/formats.d.ts.map +1 -0
  112. package/internal/qs/formats.js +13 -0
  113. package/internal/qs/formats.js.map +1 -0
  114. package/internal/qs/formats.mjs +9 -0
  115. package/internal/qs/formats.mjs.map +1 -0
  116. package/internal/qs/index.d.mts +10 -0
  117. package/internal/qs/index.d.mts.map +1 -0
  118. package/internal/qs/index.d.ts +10 -0
  119. package/internal/qs/index.d.ts.map +1 -0
  120. package/internal/qs/index.js +14 -0
  121. package/internal/qs/index.js.map +1 -0
  122. package/internal/qs/index.mjs +10 -0
  123. package/internal/qs/index.mjs.map +1 -0
  124. package/internal/qs/stringify.d.mts +3 -0
  125. package/internal/qs/stringify.d.mts.map +1 -0
  126. package/internal/qs/stringify.d.ts +3 -0
  127. package/internal/qs/stringify.d.ts.map +1 -0
  128. package/internal/qs/stringify.js +277 -0
  129. package/internal/qs/stringify.js.map +1 -0
  130. package/internal/qs/stringify.mjs +274 -0
  131. package/internal/qs/stringify.mjs.map +1 -0
  132. package/internal/qs/types.d.mts +57 -0
  133. package/internal/qs/types.d.mts.map +1 -0
  134. package/internal/qs/types.d.ts +57 -0
  135. package/internal/qs/types.d.ts.map +1 -0
  136. package/internal/qs/types.js +3 -0
  137. package/internal/qs/types.js.map +1 -0
  138. package/internal/qs/types.mjs +2 -0
  139. package/internal/qs/types.mjs.map +1 -0
  140. package/internal/qs/utils.d.mts +15 -0
  141. package/internal/qs/utils.d.mts.map +1 -0
  142. package/internal/qs/utils.d.ts +15 -0
  143. package/internal/qs/utils.d.ts.map +1 -0
  144. package/internal/qs/utils.js +230 -0
  145. package/internal/qs/utils.js.map +1 -0
  146. package/internal/qs/utils.mjs +217 -0
  147. package/internal/qs/utils.mjs.map +1 -0
  148. package/internal/request-options.d.mts +75 -0
  149. package/internal/request-options.d.mts.map +1 -0
  150. package/internal/request-options.d.ts +75 -0
  151. package/internal/request-options.d.ts.map +1 -0
  152. package/internal/request-options.js +14 -0
  153. package/internal/request-options.js.map +1 -0
  154. package/internal/request-options.mjs +10 -0
  155. package/internal/request-options.mjs.map +1 -0
  156. package/internal/shim-types.d.mts +17 -0
  157. package/internal/shim-types.d.mts.map +1 -0
  158. package/internal/shim-types.d.ts +17 -0
  159. package/internal/shim-types.d.ts.map +1 -0
  160. package/internal/shim-types.js +4 -0
  161. package/internal/shim-types.js.map +1 -0
  162. package/internal/shim-types.mjs +3 -0
  163. package/internal/shim-types.mjs.map +1 -0
  164. package/internal/shims.d.mts +20 -0
  165. package/internal/shims.d.mts.map +1 -0
  166. package/internal/shims.d.ts +20 -0
  167. package/internal/shims.d.ts.map +1 -0
  168. package/internal/shims.js +92 -0
  169. package/internal/shims.js.map +1 -0
  170. package/internal/shims.mjs +85 -0
  171. package/internal/shims.mjs.map +1 -0
  172. package/internal/to-file.d.mts +45 -0
  173. package/internal/to-file.d.mts.map +1 -0
  174. package/internal/to-file.d.ts +45 -0
  175. package/internal/to-file.d.ts.map +1 -0
  176. package/internal/to-file.js +91 -0
  177. package/internal/to-file.js.map +1 -0
  178. package/internal/to-file.mjs +88 -0
  179. package/internal/to-file.mjs.map +1 -0
  180. package/internal/tslib.js +81 -0
  181. package/internal/tslib.mjs +17 -0
  182. package/internal/types.d.mts +69 -0
  183. package/internal/types.d.mts.map +1 -0
  184. package/internal/types.d.ts +69 -0
  185. package/internal/types.d.ts.map +1 -0
  186. package/internal/types.js +4 -0
  187. package/internal/types.js.map +1 -0
  188. package/internal/types.mjs +3 -0
  189. package/internal/types.mjs.map +1 -0
  190. package/internal/uploads.d.mts +42 -0
  191. package/internal/uploads.d.mts.map +1 -0
  192. package/internal/uploads.d.ts +42 -0
  193. package/internal/uploads.d.ts.map +1 -0
  194. package/internal/uploads.js +141 -0
  195. package/internal/uploads.js.map +1 -0
  196. package/internal/uploads.mjs +131 -0
  197. package/internal/uploads.mjs.map +1 -0
  198. package/internal/utils/base64.d.mts +3 -0
  199. package/internal/utils/base64.d.mts.map +1 -0
  200. package/internal/utils/base64.d.ts +3 -0
  201. package/internal/utils/base64.d.ts.map +1 -0
  202. package/internal/utils/base64.js +38 -0
  203. package/internal/utils/base64.js.map +1 -0
  204. package/internal/utils/base64.mjs +33 -0
  205. package/internal/utils/base64.mjs.map +1 -0
  206. package/internal/utils/bytes.d.mts +4 -0
  207. package/internal/utils/bytes.d.mts.map +1 -0
  208. package/internal/utils/bytes.d.ts +4 -0
  209. package/internal/utils/bytes.d.ts.map +1 -0
  210. package/internal/utils/bytes.js +31 -0
  211. package/internal/utils/bytes.js.map +1 -0
  212. package/internal/utils/bytes.mjs +26 -0
  213. package/internal/utils/bytes.mjs.map +1 -0
  214. package/internal/utils/env.d.mts +9 -0
  215. package/internal/utils/env.d.mts.map +1 -0
  216. package/internal/utils/env.d.ts +9 -0
  217. package/internal/utils/env.d.ts.map +1 -0
  218. package/internal/utils/env.js +22 -0
  219. package/internal/utils/env.js.map +1 -0
  220. package/internal/utils/env.mjs +18 -0
  221. package/internal/utils/env.mjs.map +1 -0
  222. package/internal/utils/log.d.mts +37 -0
  223. package/internal/utils/log.d.mts.map +1 -0
  224. package/internal/utils/log.d.ts +37 -0
  225. package/internal/utils/log.d.ts.map +1 -0
  226. package/internal/utils/log.js +86 -0
  227. package/internal/utils/log.js.map +1 -0
  228. package/internal/utils/log.mjs +80 -0
  229. package/internal/utils/log.mjs.map +1 -0
  230. package/internal/utils/path.d.mts +15 -0
  231. package/internal/utils/path.d.mts.map +1 -0
  232. package/internal/utils/path.d.ts +15 -0
  233. package/internal/utils/path.d.ts.map +1 -0
  234. package/internal/utils/path.js +79 -0
  235. package/internal/utils/path.js.map +1 -0
  236. package/internal/utils/path.mjs +74 -0
  237. package/internal/utils/path.mjs.map +1 -0
  238. package/internal/utils/sleep.d.mts +2 -0
  239. package/internal/utils/sleep.d.mts.map +1 -0
  240. package/internal/utils/sleep.d.ts +2 -0
  241. package/internal/utils/sleep.d.ts.map +1 -0
  242. package/internal/utils/sleep.js +7 -0
  243. package/internal/utils/sleep.js.map +1 -0
  244. package/internal/utils/sleep.mjs +3 -0
  245. package/internal/utils/sleep.mjs.map +1 -0
  246. package/internal/utils/uuid.d.mts +5 -0
  247. package/internal/utils/uuid.d.mts.map +1 -0
  248. package/internal/utils/uuid.d.ts +5 -0
  249. package/internal/utils/uuid.d.ts.map +1 -0
  250. package/internal/utils/uuid.js +19 -0
  251. package/internal/utils/uuid.js.map +1 -0
  252. package/internal/utils/uuid.mjs +15 -0
  253. package/internal/utils/uuid.mjs.map +1 -0
  254. package/internal/utils/values.d.mts +18 -0
  255. package/internal/utils/values.d.mts.map +1 -0
  256. package/internal/utils/values.d.ts +18 -0
  257. package/internal/utils/values.d.ts.map +1 -0
  258. package/internal/utils/values.js +112 -0
  259. package/internal/utils/values.js.map +1 -0
  260. package/internal/utils/values.mjs +94 -0
  261. package/internal/utils/values.mjs.map +1 -0
  262. package/internal/utils.d.mts +7 -0
  263. package/internal/utils.d.mts.map +1 -0
  264. package/internal/utils.d.ts +7 -0
  265. package/internal/utils.d.ts.map +1 -0
  266. package/internal/utils.js +11 -0
  267. package/internal/utils.js.map +1 -0
  268. package/internal/utils.mjs +8 -0
  269. package/internal/utils.mjs.map +1 -0
  270. package/package.json +139 -0
  271. package/resource.d.mts +2 -0
  272. package/resource.d.mts.map +1 -0
  273. package/resource.d.ts +2 -0
  274. package/resource.d.ts.map +1 -0
  275. package/resource.js +6 -0
  276. package/resource.js.map +1 -0
  277. package/resource.mjs +2 -0
  278. package/resource.mjs.map +1 -0
  279. package/resources/index.d.mts +2 -0
  280. package/resources/index.d.mts.map +1 -0
  281. package/resources/index.d.ts +2 -0
  282. package/resources/index.d.ts.map +1 -0
  283. package/resources/index.js +7 -0
  284. package/resources/index.js.map +1 -0
  285. package/resources/index.mjs +3 -0
  286. package/resources/index.mjs.map +1 -0
  287. package/resources/v1/admin/admin.d.mts +27 -0
  288. package/resources/v1/admin/admin.d.mts.map +1 -0
  289. package/resources/v1/admin/admin.d.ts +27 -0
  290. package/resources/v1/admin/admin.d.ts.map +1 -0
  291. package/resources/v1/admin/admin.js +38 -0
  292. package/resources/v1/admin/admin.js.map +1 -0
  293. package/resources/v1/admin/admin.mjs +33 -0
  294. package/resources/v1/admin/admin.mjs.map +1 -0
  295. package/resources/v1/admin/index.d.mts +5 -0
  296. package/resources/v1/admin/index.d.mts.map +1 -0
  297. package/resources/v1/admin/index.d.ts +5 -0
  298. package/resources/v1/admin/index.d.ts.map +1 -0
  299. package/resources/v1/admin/index.js +13 -0
  300. package/resources/v1/admin/index.js.map +1 -0
  301. package/resources/v1/admin/index.mjs +6 -0
  302. package/resources/v1/admin/index.mjs.map +1 -0
  303. package/resources/v1/admin/models.d.mts +13 -0
  304. package/resources/v1/admin/models.d.mts.map +1 -0
  305. package/resources/v1/admin/models.d.ts +13 -0
  306. package/resources/v1/admin/models.d.ts.map +1 -0
  307. package/resources/v1/admin/models.js +22 -0
  308. package/resources/v1/admin/models.js.map +1 -0
  309. package/resources/v1/admin/models.mjs +18 -0
  310. package/resources/v1/admin/models.mjs.map +1 -0
  311. package/resources/v1/admin/organization-invites.d.mts +41 -0
  312. package/resources/v1/admin/organization-invites.d.mts.map +1 -0
  313. package/resources/v1/admin/organization-invites.d.ts +41 -0
  314. package/resources/v1/admin/organization-invites.d.ts.map +1 -0
  315. package/resources/v1/admin/organization-invites.js +62 -0
  316. package/resources/v1/admin/organization-invites.js.map +1 -0
  317. package/resources/v1/admin/organization-invites.mjs +58 -0
  318. package/resources/v1/admin/organization-invites.mjs.map +1 -0
  319. package/resources/v1/admin/organizations/index.d.mts +3 -0
  320. package/resources/v1/admin/organizations/index.d.mts.map +1 -0
  321. package/resources/v1/admin/organizations/index.d.ts +3 -0
  322. package/resources/v1/admin/organizations/index.d.ts.map +1 -0
  323. package/resources/v1/admin/organizations/index.js +9 -0
  324. package/resources/v1/admin/organizations/index.js.map +1 -0
  325. package/resources/v1/admin/organizations/index.mjs +4 -0
  326. package/resources/v1/admin/organizations/index.mjs.map +1 -0
  327. package/resources/v1/admin/organizations/models/excluded.d.mts +24 -0
  328. package/resources/v1/admin/organizations/models/excluded.d.mts.map +1 -0
  329. package/resources/v1/admin/organizations/models/excluded.d.ts +24 -0
  330. package/resources/v1/admin/organizations/models/excluded.d.ts.map +1 -0
  331. package/resources/v1/admin/organizations/models/excluded.js +39 -0
  332. package/resources/v1/admin/organizations/models/excluded.js.map +1 -0
  333. package/resources/v1/admin/organizations/models/excluded.mjs +35 -0
  334. package/resources/v1/admin/organizations/models/excluded.mjs.map +1 -0
  335. package/resources/v1/admin/organizations/models/index.d.mts +3 -0
  336. package/resources/v1/admin/organizations/models/index.d.mts.map +1 -0
  337. package/resources/v1/admin/organizations/models/index.d.ts +3 -0
  338. package/resources/v1/admin/organizations/models/index.d.ts.map +1 -0
  339. package/resources/v1/admin/organizations/models/index.js +9 -0
  340. package/resources/v1/admin/organizations/models/index.js.map +1 -0
  341. package/resources/v1/admin/organizations/models/index.mjs +4 -0
  342. package/resources/v1/admin/organizations/models/index.mjs.map +1 -0
  343. package/resources/v1/admin/organizations/models/models.d.mts +10 -0
  344. package/resources/v1/admin/organizations/models/models.d.mts.map +1 -0
  345. package/resources/v1/admin/organizations/models/models.d.ts +10 -0
  346. package/resources/v1/admin/organizations/models/models.d.ts.map +1 -0
  347. package/resources/v1/admin/organizations/models/models.js +17 -0
  348. package/resources/v1/admin/organizations/models/models.js.map +1 -0
  349. package/resources/v1/admin/organizations/models/models.mjs +12 -0
  350. package/resources/v1/admin/organizations/models/models.mjs.map +1 -0
  351. package/resources/v1/admin/organizations/models.d.mts +2 -0
  352. package/resources/v1/admin/organizations/models.d.mts.map +1 -0
  353. package/resources/v1/admin/organizations/models.d.ts +2 -0
  354. package/resources/v1/admin/organizations/models.d.ts.map +1 -0
  355. package/resources/v1/admin/organizations/models.js +6 -0
  356. package/resources/v1/admin/organizations/models.js.map +1 -0
  357. package/resources/v1/admin/organizations/models.mjs +3 -0
  358. package/resources/v1/admin/organizations/models.mjs.map +1 -0
  359. package/resources/v1/admin/organizations/organizations.d.mts +19 -0
  360. package/resources/v1/admin/organizations/organizations.d.mts.map +1 -0
  361. package/resources/v1/admin/organizations/organizations.d.ts +19 -0
  362. package/resources/v1/admin/organizations/organizations.d.ts.map +1 -0
  363. package/resources/v1/admin/organizations/organizations.js +30 -0
  364. package/resources/v1/admin/organizations/organizations.js.map +1 -0
  365. package/resources/v1/admin/organizations/organizations.mjs +25 -0
  366. package/resources/v1/admin/organizations/organizations.mjs.map +1 -0
  367. package/resources/v1/admin/organizations.d.mts +2 -0
  368. package/resources/v1/admin/organizations.d.mts.map +1 -0
  369. package/resources/v1/admin/organizations.d.ts +2 -0
  370. package/resources/v1/admin/organizations.d.ts.map +1 -0
  371. package/resources/v1/admin/organizations.js +6 -0
  372. package/resources/v1/admin/organizations.js.map +1 -0
  373. package/resources/v1/admin/organizations.mjs +3 -0
  374. package/resources/v1/admin/organizations.mjs.map +1 -0
  375. package/resources/v1/admin.d.mts +2 -0
  376. package/resources/v1/admin.d.mts.map +1 -0
  377. package/resources/v1/admin.d.ts +2 -0
  378. package/resources/v1/admin.d.ts.map +1 -0
  379. package/resources/v1/admin.js +6 -0
  380. package/resources/v1/admin.js.map +1 -0
  381. package/resources/v1/admin.mjs +3 -0
  382. package/resources/v1/admin.mjs.map +1 -0
  383. package/resources/v1/audio-recaps/audio-recaps.d.mts +44 -0
  384. package/resources/v1/audio-recaps/audio-recaps.d.mts.map +1 -0
  385. package/resources/v1/audio-recaps/audio-recaps.d.ts +44 -0
  386. package/resources/v1/audio-recaps/audio-recaps.d.ts.map +1 -0
  387. package/resources/v1/audio-recaps/audio-recaps.js +63 -0
  388. package/resources/v1/audio-recaps/audio-recaps.js.map +1 -0
  389. package/resources/v1/audio-recaps/audio-recaps.mjs +58 -0
  390. package/resources/v1/audio-recaps/audio-recaps.mjs.map +1 -0
  391. package/resources/v1/audio-recaps/index.d.mts +3 -0
  392. package/resources/v1/audio-recaps/index.d.mts.map +1 -0
  393. package/resources/v1/audio-recaps/index.d.ts +3 -0
  394. package/resources/v1/audio-recaps/index.d.ts.map +1 -0
  395. package/resources/v1/audio-recaps/index.js +9 -0
  396. package/resources/v1/audio-recaps/index.js.map +1 -0
  397. package/resources/v1/audio-recaps/index.mjs +4 -0
  398. package/resources/v1/audio-recaps/index.mjs.map +1 -0
  399. package/resources/v1/audio-recaps/sections.d.mts +35 -0
  400. package/resources/v1/audio-recaps/sections.d.mts.map +1 -0
  401. package/resources/v1/audio-recaps/sections.d.ts +35 -0
  402. package/resources/v1/audio-recaps/sections.d.ts.map +1 -0
  403. package/resources/v1/audio-recaps/sections.js +42 -0
  404. package/resources/v1/audio-recaps/sections.js.map +1 -0
  405. package/resources/v1/audio-recaps/sections.mjs +38 -0
  406. package/resources/v1/audio-recaps/sections.mjs.map +1 -0
  407. package/resources/v1/audio-recaps.d.mts +2 -0
  408. package/resources/v1/audio-recaps.d.mts.map +1 -0
  409. package/resources/v1/audio-recaps.d.ts +2 -0
  410. package/resources/v1/audio-recaps.d.ts.map +1 -0
  411. package/resources/v1/audio-recaps.js +6 -0
  412. package/resources/v1/audio-recaps.js.map +1 -0
  413. package/resources/v1/audio-recaps.mjs +3 -0
  414. package/resources/v1/audio-recaps.mjs.map +1 -0
  415. package/resources/v1/auth/auth.d.mts +128 -0
  416. package/resources/v1/auth/auth.d.mts.map +1 -0
  417. package/resources/v1/auth/auth.d.ts +128 -0
  418. package/resources/v1/auth/auth.d.ts.map +1 -0
  419. package/resources/v1/auth/auth.js +136 -0
  420. package/resources/v1/auth/auth.js.map +1 -0
  421. package/resources/v1/auth/auth.mjs +131 -0
  422. package/resources/v1/auth/auth.mjs.map +1 -0
  423. package/resources/v1/auth/index.d.mts +5 -0
  424. package/resources/v1/auth/index.d.mts.map +1 -0
  425. package/resources/v1/auth/index.d.ts +5 -0
  426. package/resources/v1/auth/index.d.ts.map +1 -0
  427. package/resources/v1/auth/index.js +13 -0
  428. package/resources/v1/auth/index.js.map +1 -0
  429. package/resources/v1/auth/index.mjs +6 -0
  430. package/resources/v1/auth/index.mjs.map +1 -0
  431. package/resources/v1/auth/login.d.mts +75 -0
  432. package/resources/v1/auth/login.d.mts.map +1 -0
  433. package/resources/v1/auth/login.d.ts +75 -0
  434. package/resources/v1/auth/login.d.ts.map +1 -0
  435. package/resources/v1/auth/login.js +64 -0
  436. package/resources/v1/auth/login.js.map +1 -0
  437. package/resources/v1/auth/login.mjs +60 -0
  438. package/resources/v1/auth/login.mjs.map +1 -0
  439. package/resources/v1/auth/number-2fa.d.mts +84 -0
  440. package/resources/v1/auth/number-2fa.d.mts.map +1 -0
  441. package/resources/v1/auth/number-2fa.d.ts +84 -0
  442. package/resources/v1/auth/number-2fa.d.ts.map +1 -0
  443. package/resources/v1/auth/number-2fa.js +90 -0
  444. package/resources/v1/auth/number-2fa.js.map +1 -0
  445. package/resources/v1/auth/number-2fa.mjs +86 -0
  446. package/resources/v1/auth/number-2fa.mjs.map +1 -0
  447. package/resources/v1/auth/organization-invites.d.mts +13 -0
  448. package/resources/v1/auth/organization-invites.d.mts.map +1 -0
  449. package/resources/v1/auth/organization-invites.d.ts +13 -0
  450. package/resources/v1/auth/organization-invites.d.ts.map +1 -0
  451. package/resources/v1/auth/organization-invites.js +23 -0
  452. package/resources/v1/auth/organization-invites.js.map +1 -0
  453. package/resources/v1/auth/organization-invites.mjs +19 -0
  454. package/resources/v1/auth/organization-invites.mjs.map +1 -0
  455. package/resources/v1/auth.d.mts +2 -0
  456. package/resources/v1/auth.d.mts.map +1 -0
  457. package/resources/v1/auth.d.ts +2 -0
  458. package/resources/v1/auth.d.ts.map +1 -0
  459. package/resources/v1/auth.js +6 -0
  460. package/resources/v1/auth.js.map +1 -0
  461. package/resources/v1/auth.mjs +3 -0
  462. package/resources/v1/auth.mjs.map +1 -0
  463. package/resources/v1/chat/chat.d.mts +156 -0
  464. package/resources/v1/chat/chat.d.mts.map +1 -0
  465. package/resources/v1/chat/chat.d.ts +156 -0
  466. package/resources/v1/chat/chat.d.ts.map +1 -0
  467. package/resources/v1/chat/chat.js +99 -0
  468. package/resources/v1/chat/chat.js.map +1 -0
  469. package/resources/v1/chat/chat.mjs +94 -0
  470. package/resources/v1/chat/chat.mjs.map +1 -0
  471. package/resources/v1/chat/index.d.mts +4 -0
  472. package/resources/v1/chat/index.d.mts.map +1 -0
  473. package/resources/v1/chat/index.d.ts +4 -0
  474. package/resources/v1/chat/index.d.ts.map +1 -0
  475. package/resources/v1/chat/index.js +11 -0
  476. package/resources/v1/chat/index.js.map +1 -0
  477. package/resources/v1/chat/index.mjs +5 -0
  478. package/resources/v1/chat/index.mjs.map +1 -0
  479. package/resources/v1/chat/sessions.d.mts +28 -0
  480. package/resources/v1/chat/sessions.d.mts.map +1 -0
  481. package/resources/v1/chat/sessions.d.ts +28 -0
  482. package/resources/v1/chat/sessions.d.ts.map +1 -0
  483. package/resources/v1/chat/sessions.js +38 -0
  484. package/resources/v1/chat/sessions.js.map +1 -0
  485. package/resources/v1/chat/sessions.mjs +34 -0
  486. package/resources/v1/chat/sessions.mjs.map +1 -0
  487. package/resources/v1/chat/test.d.mts +20 -0
  488. package/resources/v1/chat/test.d.mts.map +1 -0
  489. package/resources/v1/chat/test.d.ts +20 -0
  490. package/resources/v1/chat/test.d.ts.map +1 -0
  491. package/resources/v1/chat/test.js +34 -0
  492. package/resources/v1/chat/test.js.map +1 -0
  493. package/resources/v1/chat/test.mjs +30 -0
  494. package/resources/v1/chat/test.mjs.map +1 -0
  495. package/resources/v1/chat.d.mts +2 -0
  496. package/resources/v1/chat.d.mts.map +1 -0
  497. package/resources/v1/chat.d.ts +2 -0
  498. package/resources/v1/chat.d.ts.map +1 -0
  499. package/resources/v1/chat.js +6 -0
  500. package/resources/v1/chat.js.map +1 -0
  501. package/resources/v1/chat.mjs +3 -0
  502. package/resources/v1/chat.mjs.map +1 -0
  503. package/resources/v1/components.d.mts +253 -0
  504. package/resources/v1/components.d.mts.map +1 -0
  505. package/resources/v1/components.d.ts +253 -0
  506. package/resources/v1/components.d.ts.map +1 -0
  507. package/resources/v1/components.js +140 -0
  508. package/resources/v1/components.js.map +1 -0
  509. package/resources/v1/components.mjs +136 -0
  510. package/resources/v1/components.mjs.map +1 -0
  511. package/resources/v1/embed/component.d.mts +48 -0
  512. package/resources/v1/embed/component.d.mts.map +1 -0
  513. package/resources/v1/embed/component.d.ts +48 -0
  514. package/resources/v1/embed/component.d.ts.map +1 -0
  515. package/resources/v1/embed/component.js +48 -0
  516. package/resources/v1/embed/component.js.map +1 -0
  517. package/resources/v1/embed/component.mjs +44 -0
  518. package/resources/v1/embed/component.mjs.map +1 -0
  519. package/resources/v1/embed/embed.d.mts +52 -0
  520. package/resources/v1/embed/embed.d.mts.map +1 -0
  521. package/resources/v1/embed/embed.d.ts +52 -0
  522. package/resources/v1/embed/embed.d.ts.map +1 -0
  523. package/resources/v1/embed/embed.js +62 -0
  524. package/resources/v1/embed/embed.js.map +1 -0
  525. package/resources/v1/embed/embed.mjs +57 -0
  526. package/resources/v1/embed/embed.mjs.map +1 -0
  527. package/resources/v1/embed/index.d.mts +3 -0
  528. package/resources/v1/embed/index.d.mts.map +1 -0
  529. package/resources/v1/embed/index.d.ts +3 -0
  530. package/resources/v1/embed/index.d.ts.map +1 -0
  531. package/resources/v1/embed/index.js +9 -0
  532. package/resources/v1/embed/index.js.map +1 -0
  533. package/resources/v1/embed/index.mjs +4 -0
  534. package/resources/v1/embed/index.mjs.map +1 -0
  535. package/resources/v1/embed.d.mts +2 -0
  536. package/resources/v1/embed.d.mts.map +1 -0
  537. package/resources/v1/embed.d.ts +2 -0
  538. package/resources/v1/embed.d.ts.map +1 -0
  539. package/resources/v1/embed.js +6 -0
  540. package/resources/v1/embed.js.map +1 -0
  541. package/resources/v1/embed.mjs +3 -0
  542. package/resources/v1/embed.mjs.map +1 -0
  543. package/resources/v1/explainers.d.mts +32 -0
  544. package/resources/v1/explainers.d.mts.map +1 -0
  545. package/resources/v1/explainers.d.ts +32 -0
  546. package/resources/v1/explainers.d.ts.map +1 -0
  547. package/resources/v1/explainers.js +41 -0
  548. package/resources/v1/explainers.js.map +1 -0
  549. package/resources/v1/explainers.mjs +37 -0
  550. package/resources/v1/explainers.mjs.map +1 -0
  551. package/resources/v1/flashcards.d.mts +257 -0
  552. package/resources/v1/flashcards.d.mts.map +1 -0
  553. package/resources/v1/flashcards.d.ts +257 -0
  554. package/resources/v1/flashcards.d.ts.map +1 -0
  555. package/resources/v1/flashcards.js +113 -0
  556. package/resources/v1/flashcards.js.map +1 -0
  557. package/resources/v1/flashcards.mjs +109 -0
  558. package/resources/v1/flashcards.mjs.map +1 -0
  559. package/resources/v1/folders.d.mts +103 -0
  560. package/resources/v1/folders.d.mts.map +1 -0
  561. package/resources/v1/folders.d.ts +103 -0
  562. package/resources/v1/folders.d.ts.map +1 -0
  563. package/resources/v1/folders.js +122 -0
  564. package/resources/v1/folders.js.map +1 -0
  565. package/resources/v1/folders.mjs +118 -0
  566. package/resources/v1/folders.mjs.map +1 -0
  567. package/resources/v1/index.d.mts +17 -0
  568. package/resources/v1/index.d.mts.map +1 -0
  569. package/resources/v1/index.d.ts +17 -0
  570. package/resources/v1/index.d.ts.map +1 -0
  571. package/resources/v1/index.js +37 -0
  572. package/resources/v1/index.js.map +1 -0
  573. package/resources/v1/index.mjs +18 -0
  574. package/resources/v1/index.mjs.map +1 -0
  575. package/resources/v1/materials/bulk.d.mts +13 -0
  576. package/resources/v1/materials/bulk.d.mts.map +1 -0
  577. package/resources/v1/materials/bulk.d.ts +13 -0
  578. package/resources/v1/materials/bulk.d.ts.map +1 -0
  579. package/resources/v1/materials/bulk.js +22 -0
  580. package/resources/v1/materials/bulk.js.map +1 -0
  581. package/resources/v1/materials/bulk.mjs +18 -0
  582. package/resources/v1/materials/bulk.mjs.map +1 -0
  583. package/resources/v1/materials/index.d.mts +5 -0
  584. package/resources/v1/materials/index.d.mts.map +1 -0
  585. package/resources/v1/materials/index.d.ts +5 -0
  586. package/resources/v1/materials/index.d.ts.map +1 -0
  587. package/resources/v1/materials/index.js +13 -0
  588. package/resources/v1/materials/index.js.map +1 -0
  589. package/resources/v1/materials/index.mjs +6 -0
  590. package/resources/v1/materials/index.mjs.map +1 -0
  591. package/resources/v1/materials/materials.d.mts +157 -0
  592. package/resources/v1/materials/materials.d.mts.map +1 -0
  593. package/resources/v1/materials/materials.d.ts +157 -0
  594. package/resources/v1/materials/materials.d.ts.map +1 -0
  595. package/resources/v1/materials/materials.js +175 -0
  596. package/resources/v1/materials/materials.js.map +1 -0
  597. package/resources/v1/materials/materials.mjs +170 -0
  598. package/resources/v1/materials/materials.mjs.map +1 -0
  599. package/resources/v1/materials/test.d.mts +34 -0
  600. package/resources/v1/materials/test.d.mts.map +1 -0
  601. package/resources/v1/materials/test.d.ts +34 -0
  602. package/resources/v1/materials/test.d.ts.map +1 -0
  603. package/resources/v1/materials/test.js +58 -0
  604. package/resources/v1/materials/test.js.map +1 -0
  605. package/resources/v1/materials/test.mjs +54 -0
  606. package/resources/v1/materials/test.mjs.map +1 -0
  607. package/resources/v1/materials/upload.d.mts +73 -0
  608. package/resources/v1/materials/upload.d.mts.map +1 -0
  609. package/resources/v1/materials/upload.d.ts +73 -0
  610. package/resources/v1/materials/upload.d.ts.map +1 -0
  611. package/resources/v1/materials/upload.js +67 -0
  612. package/resources/v1/materials/upload.js.map +1 -0
  613. package/resources/v1/materials/upload.mjs +63 -0
  614. package/resources/v1/materials/upload.mjs.map +1 -0
  615. package/resources/v1/materials.d.mts +2 -0
  616. package/resources/v1/materials.d.mts.map +1 -0
  617. package/resources/v1/materials.d.ts +2 -0
  618. package/resources/v1/materials.d.ts.map +1 -0
  619. package/resources/v1/materials.js +6 -0
  620. package/resources/v1/materials.js.map +1 -0
  621. package/resources/v1/materials.mjs +3 -0
  622. package/resources/v1/materials.mjs.map +1 -0
  623. package/resources/v1/organizations/api-keys.d.mts +40 -0
  624. package/resources/v1/organizations/api-keys.d.mts.map +1 -0
  625. package/resources/v1/organizations/api-keys.d.ts +40 -0
  626. package/resources/v1/organizations/api-keys.d.ts.map +1 -0
  627. package/resources/v1/organizations/api-keys.js +52 -0
  628. package/resources/v1/organizations/api-keys.js.map +1 -0
  629. package/resources/v1/organizations/api-keys.mjs +48 -0
  630. package/resources/v1/organizations/api-keys.mjs.map +1 -0
  631. package/resources/v1/organizations/index.d.mts +8 -0
  632. package/resources/v1/organizations/index.d.mts.map +1 -0
  633. package/resources/v1/organizations/index.d.ts +8 -0
  634. package/resources/v1/organizations/index.d.ts.map +1 -0
  635. package/resources/v1/organizations/index.js +19 -0
  636. package/resources/v1/organizations/index.js.map +1 -0
  637. package/resources/v1/organizations/index.mjs +9 -0
  638. package/resources/v1/organizations/index.mjs.map +1 -0
  639. package/resources/v1/organizations/logo/index.d.mts +3 -0
  640. package/resources/v1/organizations/logo/index.d.mts.map +1 -0
  641. package/resources/v1/organizations/logo/index.d.ts +3 -0
  642. package/resources/v1/organizations/logo/index.d.ts.map +1 -0
  643. package/resources/v1/organizations/logo/index.js +9 -0
  644. package/resources/v1/organizations/logo/index.js.map +1 -0
  645. package/resources/v1/organizations/logo/index.mjs +4 -0
  646. package/resources/v1/organizations/logo/index.mjs.map +1 -0
  647. package/resources/v1/organizations/logo/logo.d.mts +19 -0
  648. package/resources/v1/organizations/logo/logo.d.mts.map +1 -0
  649. package/resources/v1/organizations/logo/logo.d.ts +19 -0
  650. package/resources/v1/organizations/logo/logo.d.ts.map +1 -0
  651. package/resources/v1/organizations/logo/logo.js +30 -0
  652. package/resources/v1/organizations/logo/logo.js.map +1 -0
  653. package/resources/v1/organizations/logo/logo.mjs +25 -0
  654. package/resources/v1/organizations/logo/logo.mjs.map +1 -0
  655. package/resources/v1/organizations/logo/upload.d.mts +20 -0
  656. package/resources/v1/organizations/logo/upload.d.mts.map +1 -0
  657. package/resources/v1/organizations/logo/upload.d.ts +20 -0
  658. package/resources/v1/organizations/logo/upload.d.ts.map +1 -0
  659. package/resources/v1/organizations/logo/upload.js +34 -0
  660. package/resources/v1/organizations/logo/upload.js.map +1 -0
  661. package/resources/v1/organizations/logo/upload.mjs +30 -0
  662. package/resources/v1/organizations/logo/upload.mjs.map +1 -0
  663. package/resources/v1/organizations/logo.d.mts +2 -0
  664. package/resources/v1/organizations/logo.d.mts.map +1 -0
  665. package/resources/v1/organizations/logo.d.ts +2 -0
  666. package/resources/v1/organizations/logo.d.ts.map +1 -0
  667. package/resources/v1/organizations/logo.js +6 -0
  668. package/resources/v1/organizations/logo.js.map +1 -0
  669. package/resources/v1/organizations/logo.mjs +3 -0
  670. package/resources/v1/organizations/logo.mjs.map +1 -0
  671. package/resources/v1/organizations/organizations.d.mts +49 -0
  672. package/resources/v1/organizations/organizations.d.mts.map +1 -0
  673. package/resources/v1/organizations/organizations.d.ts +49 -0
  674. package/resources/v1/organizations/organizations.d.ts.map +1 -0
  675. package/resources/v1/organizations/organizations.js +64 -0
  676. package/resources/v1/organizations/organizations.js.map +1 -0
  677. package/resources/v1/organizations/organizations.mjs +59 -0
  678. package/resources/v1/organizations/organizations.mjs.map +1 -0
  679. package/resources/v1/organizations/profile/index.d.mts +4 -0
  680. package/resources/v1/organizations/profile/index.d.mts.map +1 -0
  681. package/resources/v1/organizations/profile/index.d.ts +4 -0
  682. package/resources/v1/organizations/profile/index.d.ts.map +1 -0
  683. package/resources/v1/organizations/profile/index.js +11 -0
  684. package/resources/v1/organizations/profile/index.js.map +1 -0
  685. package/resources/v1/organizations/profile/index.mjs +5 -0
  686. package/resources/v1/organizations/profile/index.mjs.map +1 -0
  687. package/resources/v1/organizations/profile/models.d.mts +13 -0
  688. package/resources/v1/organizations/profile/models.d.mts.map +1 -0
  689. package/resources/v1/organizations/profile/models.d.ts +13 -0
  690. package/resources/v1/organizations/profile/models.d.ts.map +1 -0
  691. package/resources/v1/organizations/profile/models.js +22 -0
  692. package/resources/v1/organizations/profile/models.js.map +1 -0
  693. package/resources/v1/organizations/profile/models.mjs +18 -0
  694. package/resources/v1/organizations/profile/models.mjs.map +1 -0
  695. package/resources/v1/organizations/profile/profile.d.mts +36 -0
  696. package/resources/v1/organizations/profile/profile.d.mts.map +1 -0
  697. package/resources/v1/organizations/profile/profile.d.ts +36 -0
  698. package/resources/v1/organizations/profile/profile.d.ts.map +1 -0
  699. package/resources/v1/organizations/profile/profile.js +49 -0
  700. package/resources/v1/organizations/profile/profile.js.map +1 -0
  701. package/resources/v1/organizations/profile/profile.mjs +44 -0
  702. package/resources/v1/organizations/profile/profile.mjs.map +1 -0
  703. package/resources/v1/organizations/profile/team.d.mts +61 -0
  704. package/resources/v1/organizations/profile/team.d.mts.map +1 -0
  705. package/resources/v1/organizations/profile/team.d.ts +61 -0
  706. package/resources/v1/organizations/profile/team.d.ts.map +1 -0
  707. package/resources/v1/organizations/profile/team.js +89 -0
  708. package/resources/v1/organizations/profile/team.js.map +1 -0
  709. package/resources/v1/organizations/profile/team.mjs +85 -0
  710. package/resources/v1/organizations/profile/team.mjs.map +1 -0
  711. package/resources/v1/organizations/profile.d.mts +2 -0
  712. package/resources/v1/organizations/profile.d.mts.map +1 -0
  713. package/resources/v1/organizations/profile.d.ts +2 -0
  714. package/resources/v1/organizations/profile.d.ts.map +1 -0
  715. package/resources/v1/organizations/profile.js +6 -0
  716. package/resources/v1/organizations/profile.js.map +1 -0
  717. package/resources/v1/organizations/profile.mjs +3 -0
  718. package/resources/v1/organizations/profile.mjs.map +1 -0
  719. package/resources/v1/organizations/team/index.d.mts +3 -0
  720. package/resources/v1/organizations/team/index.d.mts.map +1 -0
  721. package/resources/v1/organizations/team/index.d.ts +3 -0
  722. package/resources/v1/organizations/team/index.d.ts.map +1 -0
  723. package/resources/v1/organizations/team/index.js +9 -0
  724. package/resources/v1/organizations/team/index.js.map +1 -0
  725. package/resources/v1/organizations/team/index.mjs +4 -0
  726. package/resources/v1/organizations/team/index.mjs.map +1 -0
  727. package/resources/v1/organizations/team/invite.d.mts +27 -0
  728. package/resources/v1/organizations/team/invite.d.mts.map +1 -0
  729. package/resources/v1/organizations/team/invite.d.ts +27 -0
  730. package/resources/v1/organizations/team/invite.d.ts.map +1 -0
  731. package/resources/v1/organizations/team/invite.js +38 -0
  732. package/resources/v1/organizations/team/invite.js.map +1 -0
  733. package/resources/v1/organizations/team/invite.mjs +34 -0
  734. package/resources/v1/organizations/team/invite.mjs.map +1 -0
  735. package/resources/v1/organizations/team/team.d.mts +72 -0
  736. package/resources/v1/organizations/team/team.d.mts.map +1 -0
  737. package/resources/v1/organizations/team/team.d.ts +72 -0
  738. package/resources/v1/organizations/team/team.d.ts.map +1 -0
  739. package/resources/v1/organizations/team/team.js +102 -0
  740. package/resources/v1/organizations/team/team.js.map +1 -0
  741. package/resources/v1/organizations/team/team.mjs +97 -0
  742. package/resources/v1/organizations/team/team.mjs.map +1 -0
  743. package/resources/v1/organizations/team.d.mts +2 -0
  744. package/resources/v1/organizations/team.d.mts.map +1 -0
  745. package/resources/v1/organizations/team.d.ts +2 -0
  746. package/resources/v1/organizations/team.d.ts.map +1 -0
  747. package/resources/v1/organizations/team.js +6 -0
  748. package/resources/v1/organizations/team.js.map +1 -0
  749. package/resources/v1/organizations/team.mjs +3 -0
  750. package/resources/v1/organizations/team.mjs.map +1 -0
  751. package/resources/v1/organizations/theme.d.mts +20 -0
  752. package/resources/v1/organizations/theme.d.mts.map +1 -0
  753. package/resources/v1/organizations/theme.d.ts +20 -0
  754. package/resources/v1/organizations/theme.d.ts.map +1 -0
  755. package/resources/v1/organizations/theme.js +34 -0
  756. package/resources/v1/organizations/theme.js.map +1 -0
  757. package/resources/v1/organizations/theme.mjs +30 -0
  758. package/resources/v1/organizations/theme.mjs.map +1 -0
  759. package/resources/v1/organizations/usage.d.mts +15 -0
  760. package/resources/v1/organizations/usage.d.mts.map +1 -0
  761. package/resources/v1/organizations/usage.d.ts +15 -0
  762. package/resources/v1/organizations/usage.d.ts.map +1 -0
  763. package/resources/v1/organizations/usage.js +25 -0
  764. package/resources/v1/organizations/usage.js.map +1 -0
  765. package/resources/v1/organizations/usage.mjs +21 -0
  766. package/resources/v1/organizations/usage.mjs.map +1 -0
  767. package/resources/v1/organizations.d.mts +2 -0
  768. package/resources/v1/organizations.d.mts.map +1 -0
  769. package/resources/v1/organizations.d.ts +2 -0
  770. package/resources/v1/organizations.d.ts.map +1 -0
  771. package/resources/v1/organizations.js +6 -0
  772. package/resources/v1/organizations.js.map +1 -0
  773. package/resources/v1/organizations.mjs +3 -0
  774. package/resources/v1/organizations.mjs.map +1 -0
  775. package/resources/v1/scenarios/component.d.mts +41 -0
  776. package/resources/v1/scenarios/component.d.mts.map +1 -0
  777. package/resources/v1/scenarios/component.d.ts +41 -0
  778. package/resources/v1/scenarios/component.d.ts.map +1 -0
  779. package/resources/v1/scenarios/component.js +57 -0
  780. package/resources/v1/scenarios/component.js.map +1 -0
  781. package/resources/v1/scenarios/component.mjs +53 -0
  782. package/resources/v1/scenarios/component.mjs.map +1 -0
  783. package/resources/v1/scenarios/index.d.mts +5 -0
  784. package/resources/v1/scenarios/index.d.mts.map +1 -0
  785. package/resources/v1/scenarios/index.d.ts +5 -0
  786. package/resources/v1/scenarios/index.d.ts.map +1 -0
  787. package/resources/v1/scenarios/index.js +13 -0
  788. package/resources/v1/scenarios/index.js.map +1 -0
  789. package/resources/v1/scenarios/index.mjs +6 -0
  790. package/resources/v1/scenarios/index.mjs.map +1 -0
  791. package/resources/v1/scenarios/scenarios.d.mts +86 -0
  792. package/resources/v1/scenarios/scenarios.d.mts.map +1 -0
  793. package/resources/v1/scenarios/scenarios.d.ts +86 -0
  794. package/resources/v1/scenarios/scenarios.d.ts.map +1 -0
  795. package/resources/v1/scenarios/scenarios.js +125 -0
  796. package/resources/v1/scenarios/scenarios.js.map +1 -0
  797. package/resources/v1/scenarios/scenarios.mjs +120 -0
  798. package/resources/v1/scenarios/scenarios.mjs.map +1 -0
  799. package/resources/v1/scenarios/sessions.d.mts +20 -0
  800. package/resources/v1/scenarios/sessions.d.mts.map +1 -0
  801. package/resources/v1/scenarios/sessions.d.ts +20 -0
  802. package/resources/v1/scenarios/sessions.d.ts.map +1 -0
  803. package/resources/v1/scenarios/sessions.js +35 -0
  804. package/resources/v1/scenarios/sessions.js.map +1 -0
  805. package/resources/v1/scenarios/sessions.mjs +31 -0
  806. package/resources/v1/scenarios/sessions.mjs.map +1 -0
  807. package/resources/v1/scenarios/submissions/index.d.mts +3 -0
  808. package/resources/v1/scenarios/submissions/index.d.mts.map +1 -0
  809. package/resources/v1/scenarios/submissions/index.d.ts +3 -0
  810. package/resources/v1/scenarios/submissions/index.d.ts.map +1 -0
  811. package/resources/v1/scenarios/submissions/index.js +9 -0
  812. package/resources/v1/scenarios/submissions/index.js.map +1 -0
  813. package/resources/v1/scenarios/submissions/index.mjs +4 -0
  814. package/resources/v1/scenarios/submissions/index.mjs.map +1 -0
  815. package/resources/v1/scenarios/submissions/submissions.d.mts +10 -0
  816. package/resources/v1/scenarios/submissions/submissions.d.mts.map +1 -0
  817. package/resources/v1/scenarios/submissions/submissions.d.ts +10 -0
  818. package/resources/v1/scenarios/submissions/submissions.d.ts.map +1 -0
  819. package/resources/v1/scenarios/submissions/submissions.js +17 -0
  820. package/resources/v1/scenarios/submissions/submissions.js.map +1 -0
  821. package/resources/v1/scenarios/submissions/submissions.mjs +12 -0
  822. package/resources/v1/scenarios/submissions/submissions.mjs.map +1 -0
  823. package/resources/v1/scenarios/submissions/user.d.mts +20 -0
  824. package/resources/v1/scenarios/submissions/user.d.mts.map +1 -0
  825. package/resources/v1/scenarios/submissions/user.d.ts +20 -0
  826. package/resources/v1/scenarios/submissions/user.d.ts.map +1 -0
  827. package/resources/v1/scenarios/submissions/user.js +35 -0
  828. package/resources/v1/scenarios/submissions/user.js.map +1 -0
  829. package/resources/v1/scenarios/submissions/user.mjs +31 -0
  830. package/resources/v1/scenarios/submissions/user.mjs.map +1 -0
  831. package/resources/v1/scenarios/submissions.d.mts +2 -0
  832. package/resources/v1/scenarios/submissions.d.mts.map +1 -0
  833. package/resources/v1/scenarios/submissions.d.ts +2 -0
  834. package/resources/v1/scenarios/submissions.d.ts.map +1 -0
  835. package/resources/v1/scenarios/submissions.js +6 -0
  836. package/resources/v1/scenarios/submissions.js.map +1 -0
  837. package/resources/v1/scenarios/submissions.mjs +3 -0
  838. package/resources/v1/scenarios/submissions.mjs.map +1 -0
  839. package/resources/v1/scenarios.d.mts +2 -0
  840. package/resources/v1/scenarios.d.mts.map +1 -0
  841. package/resources/v1/scenarios.d.ts +2 -0
  842. package/resources/v1/scenarios.d.ts.map +1 -0
  843. package/resources/v1/scenarios.js +6 -0
  844. package/resources/v1/scenarios.js.map +1 -0
  845. package/resources/v1/scenarios.mjs +3 -0
  846. package/resources/v1/scenarios.mjs.map +1 -0
  847. package/resources/v1/tests/component.d.mts +13 -0
  848. package/resources/v1/tests/component.d.mts.map +1 -0
  849. package/resources/v1/tests/component.d.ts +13 -0
  850. package/resources/v1/tests/component.d.ts.map +1 -0
  851. package/resources/v1/tests/component.js +23 -0
  852. package/resources/v1/tests/component.js.map +1 -0
  853. package/resources/v1/tests/component.mjs +19 -0
  854. package/resources/v1/tests/component.mjs.map +1 -0
  855. package/resources/v1/tests/index.d.mts +3 -0
  856. package/resources/v1/tests/index.d.mts.map +1 -0
  857. package/resources/v1/tests/index.d.ts +3 -0
  858. package/resources/v1/tests/index.d.ts.map +1 -0
  859. package/resources/v1/tests/index.js +9 -0
  860. package/resources/v1/tests/index.js.map +1 -0
  861. package/resources/v1/tests/index.mjs +4 -0
  862. package/resources/v1/tests/index.mjs.map +1 -0
  863. package/resources/v1/tests/tests.d.mts +117 -0
  864. package/resources/v1/tests/tests.d.mts.map +1 -0
  865. package/resources/v1/tests/tests.d.ts +117 -0
  866. package/resources/v1/tests/tests.d.ts.map +1 -0
  867. package/resources/v1/tests/tests.js +113 -0
  868. package/resources/v1/tests/tests.js.map +1 -0
  869. package/resources/v1/tests/tests.mjs +108 -0
  870. package/resources/v1/tests/tests.mjs.map +1 -0
  871. package/resources/v1/tests.d.mts +2 -0
  872. package/resources/v1/tests.d.mts.map +1 -0
  873. package/resources/v1/tests.d.ts +2 -0
  874. package/resources/v1/tests.d.ts.map +1 -0
  875. package/resources/v1/tests.js +6 -0
  876. package/resources/v1/tests.js.map +1 -0
  877. package/resources/v1/tests.mjs +3 -0
  878. package/resources/v1/tests.mjs.map +1 -0
  879. package/resources/v1/upload/component.d.mts +38 -0
  880. package/resources/v1/upload/component.d.mts.map +1 -0
  881. package/resources/v1/upload/component.d.ts +38 -0
  882. package/resources/v1/upload/component.d.ts.map +1 -0
  883. package/resources/v1/upload/component.js +63 -0
  884. package/resources/v1/upload/component.js.map +1 -0
  885. package/resources/v1/upload/component.mjs +59 -0
  886. package/resources/v1/upload/component.mjs.map +1 -0
  887. package/resources/v1/upload/index.d.mts +3 -0
  888. package/resources/v1/upload/index.d.mts.map +1 -0
  889. package/resources/v1/upload/index.d.ts +3 -0
  890. package/resources/v1/upload/index.d.ts.map +1 -0
  891. package/resources/v1/upload/index.js +9 -0
  892. package/resources/v1/upload/index.js.map +1 -0
  893. package/resources/v1/upload/index.mjs +4 -0
  894. package/resources/v1/upload/index.mjs.map +1 -0
  895. package/resources/v1/upload/upload.d.mts +10 -0
  896. package/resources/v1/upload/upload.d.mts.map +1 -0
  897. package/resources/v1/upload/upload.d.ts +10 -0
  898. package/resources/v1/upload/upload.d.ts.map +1 -0
  899. package/resources/v1/upload/upload.js +17 -0
  900. package/resources/v1/upload/upload.js.map +1 -0
  901. package/resources/v1/upload/upload.mjs +12 -0
  902. package/resources/v1/upload/upload.mjs.map +1 -0
  903. package/resources/v1/upload.d.mts +2 -0
  904. package/resources/v1/upload.d.mts.map +1 -0
  905. package/resources/v1/upload.d.ts +2 -0
  906. package/resources/v1/upload.d.ts.map +1 -0
  907. package/resources/v1/upload.js +6 -0
  908. package/resources/v1/upload.js.map +1 -0
  909. package/resources/v1/upload.mjs +3 -0
  910. package/resources/v1/upload.mjs.map +1 -0
  911. package/resources/v1/usage.d.mts +295 -0
  912. package/resources/v1/usage.d.mts.map +1 -0
  913. package/resources/v1/usage.d.ts +295 -0
  914. package/resources/v1/usage.d.ts.map +1 -0
  915. package/resources/v1/usage.js +111 -0
  916. package/resources/v1/usage.js.map +1 -0
  917. package/resources/v1/usage.mjs +107 -0
  918. package/resources/v1/usage.mjs.map +1 -0
  919. package/resources/v1/v1.d.mts +66 -0
  920. package/resources/v1/v1.d.mts.map +1 -0
  921. package/resources/v1/v1.d.ts +66 -0
  922. package/resources/v1/v1.d.ts.map +1 -0
  923. package/resources/v1/v1.js +73 -0
  924. package/resources/v1/v1.js.map +1 -0
  925. package/resources/v1/v1.mjs +68 -0
  926. package/resources/v1/v1.mjs.map +1 -0
  927. package/resources/v1.d.mts +2 -0
  928. package/resources/v1.d.mts.map +1 -0
  929. package/resources/v1.d.ts +2 -0
  930. package/resources/v1.d.ts.map +1 -0
  931. package/resources/v1.js +6 -0
  932. package/resources/v1.js.map +1 -0
  933. package/resources/v1.mjs +3 -0
  934. package/resources/v1.mjs.map +1 -0
  935. package/resources.d.mts +2 -0
  936. package/resources.d.mts.map +1 -0
  937. package/resources.d.ts +2 -0
  938. package/resources.d.ts.map +1 -0
  939. package/resources.js +5 -0
  940. package/resources.js.map +1 -0
  941. package/resources.mjs +2 -0
  942. package/resources.mjs.map +1 -0
  943. package/src/api-promise.ts +2 -0
  944. package/src/client.ts +709 -0
  945. package/src/core/README.md +3 -0
  946. package/src/core/api-promise.ts +92 -0
  947. package/src/core/error.ts +130 -0
  948. package/src/core/resource.ts +11 -0
  949. package/src/core/uploads.ts +2 -0
  950. package/src/error.ts +2 -0
  951. package/src/index.ts +22 -0
  952. package/src/internal/README.md +3 -0
  953. package/src/internal/builtin-types.ts +93 -0
  954. package/src/internal/detect-platform.ts +196 -0
  955. package/src/internal/errors.ts +33 -0
  956. package/src/internal/headers.ts +97 -0
  957. package/src/internal/parse.ts +50 -0
  958. package/src/internal/qs/LICENSE.md +13 -0
  959. package/src/internal/qs/README.md +3 -0
  960. package/src/internal/qs/formats.ts +10 -0
  961. package/src/internal/qs/index.ts +13 -0
  962. package/src/internal/qs/stringify.ts +385 -0
  963. package/src/internal/qs/types.ts +71 -0
  964. package/src/internal/qs/utils.ts +265 -0
  965. package/src/internal/request-options.ts +91 -0
  966. package/src/internal/shim-types.ts +26 -0
  967. package/src/internal/shims.ts +107 -0
  968. package/src/internal/to-file.ts +154 -0
  969. package/src/internal/types.ts +95 -0
  970. package/src/internal/uploads.ts +187 -0
  971. package/src/internal/utils/base64.ts +40 -0
  972. package/src/internal/utils/bytes.ts +32 -0
  973. package/src/internal/utils/env.ts +18 -0
  974. package/src/internal/utils/log.ts +127 -0
  975. package/src/internal/utils/path.ts +88 -0
  976. package/src/internal/utils/sleep.ts +3 -0
  977. package/src/internal/utils/uuid.ts +17 -0
  978. package/src/internal/utils/values.ts +105 -0
  979. package/src/internal/utils.ts +8 -0
  980. package/src/lib/.keep +4 -0
  981. package/src/resource.ts +2 -0
  982. package/src/resources/index.ts +3 -0
  983. package/src/resources/v1/admin/admin.ts +47 -0
  984. package/src/resources/v1/admin/index.ts +6 -0
  985. package/src/resources/v1/admin/models.ts +21 -0
  986. package/src/resources/v1/admin/organization-invites.ts +70 -0
  987. package/src/resources/v1/admin/organizations/index.ts +4 -0
  988. package/src/resources/v1/admin/organizations/models/excluded.ts +39 -0
  989. package/src/resources/v1/admin/organizations/models/index.ts +4 -0
  990. package/src/resources/v1/admin/organizations/models/models.ts +15 -0
  991. package/src/resources/v1/admin/organizations/models.ts +3 -0
  992. package/src/resources/v1/admin/organizations/organizations.ts +31 -0
  993. package/src/resources/v1/admin/organizations.ts +3 -0
  994. package/src/resources/v1/admin.ts +3 -0
  995. package/src/resources/v1/audio-recaps/audio-recaps.ts +79 -0
  996. package/src/resources/v1/audio-recaps/index.ts +4 -0
  997. package/src/resources/v1/audio-recaps/sections.ts +53 -0
  998. package/src/resources/v1/audio-recaps.ts +3 -0
  999. package/src/resources/v1/auth/auth.ts +215 -0
  1000. package/src/resources/v1/auth/index.ts +23 -0
  1001. package/src/resources/v1/auth/login.ts +109 -0
  1002. package/src/resources/v1/auth/number-2fa.ts +133 -0
  1003. package/src/resources/v1/auth/organization-invites.ts +22 -0
  1004. package/src/resources/v1/auth.ts +3 -0
  1005. package/src/resources/v1/chat/chat.ts +233 -0
  1006. package/src/resources/v1/chat/index.ts +10 -0
  1007. package/src/resources/v1/chat/sessions.ts +46 -0
  1008. package/src/resources/v1/chat/test.ts +34 -0
  1009. package/src/resources/v1/chat.ts +3 -0
  1010. package/src/resources/v1/components.ts +372 -0
  1011. package/src/resources/v1/embed/component.ts +74 -0
  1012. package/src/resources/v1/embed/embed.ts +85 -0
  1013. package/src/resources/v1/embed/index.ts +4 -0
  1014. package/src/resources/v1/embed.ts +3 -0
  1015. package/src/resources/v1/explainers.ts +54 -0
  1016. package/src/resources/v1/flashcards.ts +354 -0
  1017. package/src/resources/v1/folders.ts +167 -0
  1018. package/src/resources/v1/index.ts +68 -0
  1019. package/src/resources/v1/materials/bulk.ts +21 -0
  1020. package/src/resources/v1/materials/index.ts +11 -0
  1021. package/src/resources/v1/materials/materials.ts +259 -0
  1022. package/src/resources/v1/materials/test.ts +60 -0
  1023. package/src/resources/v1/materials/upload.ts +114 -0
  1024. package/src/resources/v1/materials.ts +3 -0
  1025. package/src/resources/v1/organizations/api-keys.ts +64 -0
  1026. package/src/resources/v1/organizations/index.ts +15 -0
  1027. package/src/resources/v1/organizations/logo/index.ts +4 -0
  1028. package/src/resources/v1/organizations/logo/logo.ts +31 -0
  1029. package/src/resources/v1/organizations/logo/upload.ts +34 -0
  1030. package/src/resources/v1/organizations/logo.ts +3 -0
  1031. package/src/resources/v1/organizations/organizations.ts +96 -0
  1032. package/src/resources/v1/organizations/profile/index.ts +11 -0
  1033. package/src/resources/v1/organizations/profile/models.ts +21 -0
  1034. package/src/resources/v1/organizations/profile/profile.ts +68 -0
  1035. package/src/resources/v1/organizations/profile/team.ts +110 -0
  1036. package/src/resources/v1/organizations/profile.ts +3 -0
  1037. package/src/resources/v1/organizations/team/index.ts +10 -0
  1038. package/src/resources/v1/organizations/team/invite.ts +44 -0
  1039. package/src/resources/v1/organizations/team/team.ts +129 -0
  1040. package/src/resources/v1/organizations/team.ts +3 -0
  1041. package/src/resources/v1/organizations/theme.ts +34 -0
  1042. package/src/resources/v1/organizations/usage.ts +24 -0
  1043. package/src/resources/v1/organizations.ts +3 -0
  1044. package/src/resources/v1/scenarios/component.ts +66 -0
  1045. package/src/resources/v1/scenarios/index.ts +6 -0
  1046. package/src/resources/v1/scenarios/scenarios.ts +149 -0
  1047. package/src/resources/v1/scenarios/sessions.ts +35 -0
  1048. package/src/resources/v1/scenarios/submissions/index.ts +4 -0
  1049. package/src/resources/v1/scenarios/submissions/submissions.ts +15 -0
  1050. package/src/resources/v1/scenarios/submissions/user.ts +35 -0
  1051. package/src/resources/v1/scenarios/submissions.ts +3 -0
  1052. package/src/resources/v1/scenarios.ts +3 -0
  1053. package/src/resources/v1/tests/component.ts +22 -0
  1054. package/src/resources/v1/tests/index.ts +10 -0
  1055. package/src/resources/v1/tests/tests.ts +179 -0
  1056. package/src/resources/v1/tests.ts +3 -0
  1057. package/src/resources/v1/upload/component.ts +65 -0
  1058. package/src/resources/v1/upload/index.ts +4 -0
  1059. package/src/resources/v1/upload/upload.ts +15 -0
  1060. package/src/resources/v1/upload.ts +3 -0
  1061. package/src/resources/v1/usage.ts +475 -0
  1062. package/src/resources/v1/v1.ts +211 -0
  1063. package/src/resources/v1.ts +3 -0
  1064. package/src/resources.ts +1 -0
  1065. package/src/tsconfig.json +11 -0
  1066. package/src/uploads.ts +2 -0
  1067. package/src/version.ts +1 -0
  1068. package/uploads.d.mts +2 -0
  1069. package/uploads.d.mts.map +1 -0
  1070. package/uploads.d.ts +2 -0
  1071. package/uploads.d.ts.map +1 -0
  1072. package/uploads.js +6 -0
  1073. package/uploads.js.map +1 -0
  1074. package/uploads.mjs +2 -0
  1075. package/uploads.mjs.map +1 -0
  1076. package/version.d.mts +2 -0
  1077. package/version.d.mts.map +1 -0
  1078. package/version.d.ts +2 -0
  1079. package/version.d.ts.map +1 -0
  1080. package/version.js +5 -0
  1081. package/version.js.map +1 -0
  1082. package/version.mjs +2 -0
  1083. package/version.mjs.map +1 -0
@@ -0,0 +1,75 @@
1
+ import { NullableHeaders } from "./headers.mjs";
2
+ import type { BodyInit } from "./builtin-types.mjs";
3
+ import type { HTTPMethod, MergedRequestInit } from "./types.mjs";
4
+ import { type HeadersLike } from "./headers.mjs";
5
+ export type FinalRequestOptions = RequestOptions & {
6
+ method: HTTPMethod;
7
+ path: string;
8
+ };
9
+ export type RequestOptions = {
10
+ /**
11
+ * The HTTP method for the request (e.g., 'get', 'post', 'put', 'delete').
12
+ */
13
+ method?: HTTPMethod;
14
+ /**
15
+ * The URL path for the request.
16
+ *
17
+ * @example "/v1/foo"
18
+ */
19
+ path?: string;
20
+ /**
21
+ * Query parameters to include in the request URL.
22
+ */
23
+ query?: object | undefined | null;
24
+ /**
25
+ * The request body. Can be a string, JSON object, FormData, or other supported types.
26
+ */
27
+ body?: unknown;
28
+ /**
29
+ * HTTP headers to include with the request. Can be a Headers object, plain object, or array of tuples.
30
+ */
31
+ headers?: HeadersLike;
32
+ /**
33
+ * The maximum number of times that the client will retry a request in case of a
34
+ * temporary failure, like a network error or a 5XX error from the server.
35
+ *
36
+ * @default 2
37
+ */
38
+ maxRetries?: number;
39
+ stream?: boolean | undefined;
40
+ /**
41
+ * The maximum amount of time (in milliseconds) that the client should wait for a response
42
+ * from the server before timing out a single request.
43
+ *
44
+ * @unit milliseconds
45
+ */
46
+ timeout?: number;
47
+ /**
48
+ * Additional `RequestInit` options to be passed to the underlying `fetch` call.
49
+ * These options will be merged with the client's default fetch options.
50
+ */
51
+ fetchOptions?: MergedRequestInit;
52
+ /**
53
+ * An AbortSignal that can be used to cancel the request.
54
+ */
55
+ signal?: AbortSignal | undefined | null;
56
+ /**
57
+ * A unique key for this request to enable idempotency.
58
+ */
59
+ idempotencyKey?: string;
60
+ /**
61
+ * Override the default base URL for this specific request.
62
+ */
63
+ defaultBaseURL?: string | undefined;
64
+ __binaryResponse?: boolean | undefined;
65
+ };
66
+ export type EncodedContent = {
67
+ bodyHeaders: HeadersLike;
68
+ body: BodyInit;
69
+ };
70
+ export type RequestEncoder = (request: {
71
+ headers: NullableHeaders;
72
+ body: unknown;
73
+ }) => EncodedContent;
74
+ export declare const FallbackEncoder: RequestEncoder;
75
+ //# sourceMappingURL=request-options.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"request-options.d.mts","sourceRoot":"","sources":["../src/internal/request-options.ts"],"names":[],"mappings":"OAEO,EAAE,eAAe,EAAE;OAEnB,KAAK,EAAE,QAAQ,EAAE;OACjB,KAAK,EAAE,UAAU,EAAE,iBAAiB,EAAE;OACtC,EAAE,KAAK,WAAW,EAAE;AAE3B,MAAM,MAAM,mBAAmB,GAAG,cAAc,GAAG;IAAE,MAAM,EAAE,UAAU,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAExF,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;IAEpB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC;IAElC;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf;;OAEG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IAEtB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAE7B;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,YAAY,CAAC,EAAE,iBAAiB,CAAC;IAEjC;;OAEG;IACH,MAAM,CAAC,EAAE,WAAW,GAAG,SAAS,GAAG,IAAI,CAAC;IAExC;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAEpC,gBAAgB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACxC,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAAE,WAAW,EAAE,WAAW,CAAC;IAAC,IAAI,EAAE,QAAQ,CAAA;CAAE,CAAC;AAC1E,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,EAAE;IAAE,OAAO,EAAE,eAAe,CAAC;IAAC,IAAI,EAAE,OAAO,CAAA;CAAE,KAAK,cAAc,CAAC;AAEtG,eAAO,MAAM,eAAe,EAAE,cAO7B,CAAC"}
@@ -0,0 +1,75 @@
1
+ import { NullableHeaders } from "./headers.js";
2
+ import type { BodyInit } from "./builtin-types.js";
3
+ import type { HTTPMethod, MergedRequestInit } from "./types.js";
4
+ import { type HeadersLike } from "./headers.js";
5
+ export type FinalRequestOptions = RequestOptions & {
6
+ method: HTTPMethod;
7
+ path: string;
8
+ };
9
+ export type RequestOptions = {
10
+ /**
11
+ * The HTTP method for the request (e.g., 'get', 'post', 'put', 'delete').
12
+ */
13
+ method?: HTTPMethod;
14
+ /**
15
+ * The URL path for the request.
16
+ *
17
+ * @example "/v1/foo"
18
+ */
19
+ path?: string;
20
+ /**
21
+ * Query parameters to include in the request URL.
22
+ */
23
+ query?: object | undefined | null;
24
+ /**
25
+ * The request body. Can be a string, JSON object, FormData, or other supported types.
26
+ */
27
+ body?: unknown;
28
+ /**
29
+ * HTTP headers to include with the request. Can be a Headers object, plain object, or array of tuples.
30
+ */
31
+ headers?: HeadersLike;
32
+ /**
33
+ * The maximum number of times that the client will retry a request in case of a
34
+ * temporary failure, like a network error or a 5XX error from the server.
35
+ *
36
+ * @default 2
37
+ */
38
+ maxRetries?: number;
39
+ stream?: boolean | undefined;
40
+ /**
41
+ * The maximum amount of time (in milliseconds) that the client should wait for a response
42
+ * from the server before timing out a single request.
43
+ *
44
+ * @unit milliseconds
45
+ */
46
+ timeout?: number;
47
+ /**
48
+ * Additional `RequestInit` options to be passed to the underlying `fetch` call.
49
+ * These options will be merged with the client's default fetch options.
50
+ */
51
+ fetchOptions?: MergedRequestInit;
52
+ /**
53
+ * An AbortSignal that can be used to cancel the request.
54
+ */
55
+ signal?: AbortSignal | undefined | null;
56
+ /**
57
+ * A unique key for this request to enable idempotency.
58
+ */
59
+ idempotencyKey?: string;
60
+ /**
61
+ * Override the default base URL for this specific request.
62
+ */
63
+ defaultBaseURL?: string | undefined;
64
+ __binaryResponse?: boolean | undefined;
65
+ };
66
+ export type EncodedContent = {
67
+ bodyHeaders: HeadersLike;
68
+ body: BodyInit;
69
+ };
70
+ export type RequestEncoder = (request: {
71
+ headers: NullableHeaders;
72
+ body: unknown;
73
+ }) => EncodedContent;
74
+ export declare const FallbackEncoder: RequestEncoder;
75
+ //# sourceMappingURL=request-options.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"request-options.d.ts","sourceRoot":"","sources":["../src/internal/request-options.ts"],"names":[],"mappings":"OAEO,EAAE,eAAe,EAAE;OAEnB,KAAK,EAAE,QAAQ,EAAE;OACjB,KAAK,EAAE,UAAU,EAAE,iBAAiB,EAAE;OACtC,EAAE,KAAK,WAAW,EAAE;AAE3B,MAAM,MAAM,mBAAmB,GAAG,cAAc,GAAG;IAAE,MAAM,EAAE,UAAU,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAExF,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;IAEpB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC;IAElC;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf;;OAEG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IAEtB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAE7B;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,YAAY,CAAC,EAAE,iBAAiB,CAAC;IAEjC;;OAEG;IACH,MAAM,CAAC,EAAE,WAAW,GAAG,SAAS,GAAG,IAAI,CAAC;IAExC;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAEpC,gBAAgB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACxC,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAAE,WAAW,EAAE,WAAW,CAAC;IAAC,IAAI,EAAE,QAAQ,CAAA;CAAE,CAAC;AAC1E,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,EAAE;IAAE,OAAO,EAAE,eAAe,CAAC;IAAC,IAAI,EAAE,OAAO,CAAA;CAAE,KAAK,cAAc,CAAC;AAEtG,eAAO,MAAM,eAAe,EAAE,cAO7B,CAAC"}
@@ -0,0 +1,14 @@
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
+ exports.FallbackEncoder = void 0;
5
+ const FallbackEncoder = ({ headers, body }) => {
6
+ return {
7
+ bodyHeaders: {
8
+ 'content-type': 'application/json',
9
+ },
10
+ body: JSON.stringify(body),
11
+ };
12
+ };
13
+ exports.FallbackEncoder = FallbackEncoder;
14
+ //# sourceMappingURL=request-options.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"request-options.js","sourceRoot":"","sources":["../src/internal/request-options.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAmF/E,MAAM,eAAe,GAAmB,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE;IACnE,OAAO;QACL,WAAW,EAAE;YACX,cAAc,EAAE,kBAAkB;SACnC;QACD,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;KAC3B,CAAC;AACJ,CAAC,CAAC;AAPW,QAAA,eAAe,mBAO1B"}
@@ -0,0 +1,10 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export const FallbackEncoder = ({ headers, body }) => {
3
+ return {
4
+ bodyHeaders: {
5
+ 'content-type': 'application/json',
6
+ },
7
+ body: JSON.stringify(body),
8
+ };
9
+ };
10
+ //# sourceMappingURL=request-options.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"request-options.mjs","sourceRoot":"","sources":["../src/internal/request-options.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAmFtF,MAAM,CAAC,MAAM,eAAe,GAAmB,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE;IACnE,OAAO;QACL,WAAW,EAAE;YACX,cAAc,EAAE,kBAAkB;SACnC;QACD,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;KAC3B,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Shims for types that we can't always rely on being available globally.
3
+ *
4
+ * Note: these only exist at the type-level, there is no corresponding runtime
5
+ * version for any of these symbols.
6
+ */
7
+ type NeverToAny<T> = T extends never ? any : T;
8
+ /** @ts-ignore */
9
+ type _DOMReadableStream<R = any> = globalThis.ReadableStream<R>;
10
+ /** @ts-ignore */
11
+ type _NodeReadableStream<R = any> = import('stream/web').ReadableStream<R>;
12
+ type _ConditionalNodeReadableStream<R = any> = typeof globalThis extends {
13
+ ReadableStream: any;
14
+ } ? never : _NodeReadableStream<R>;
15
+ type _ReadableStream<R = any> = NeverToAny<([0] extends [1 & _DOMReadableStream<R>] ? never : _DOMReadableStream<R>) | ([0] extends [1 & _ConditionalNodeReadableStream<R>] ? never : _ConditionalNodeReadableStream<R>)>;
16
+ export type { _ReadableStream as ReadableStream };
17
+ //# sourceMappingURL=shim-types.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shim-types.d.mts","sourceRoot":"","sources":["../src/internal/shim-types.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AAEH,KAAK,UAAU,CAAC,CAAC,IAAI,CAAC,SAAS,KAAK,GAAG,GAAG,GAAG,CAAC,CAAC;AAE/C,iBAAiB;AACjB,KAAK,kBAAkB,CAAC,CAAC,GAAG,GAAG,IAAI,UAAU,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC;AAEhE,iBAAiB;AACjB,KAAK,mBAAmB,CAAC,CAAC,GAAG,GAAG,IAAI,OAAO,YAAY,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC;AAE3E,KAAK,8BAA8B,CAAC,CAAC,GAAG,GAAG,IACzC,OAAO,UAAU,SAAS;IAAE,cAAc,EAAE,GAAG,CAAA;CAAE,GAAG,KAAK,GAAG,mBAAmB,CAAC,CAAC,CAAC,CAAC;AAErF,KAAK,eAAe,CAAC,CAAC,GAAG,GAAG,IAAI,UAAU,CACtC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,GAAG,kBAAkB,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,GAAG,kBAAkB,CAAC,CAAC,CAAC,CAAC,GACzE,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,GAAG,8BAA8B,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,GAAG,8BAA8B,CAAC,CAAC,CAAC,CAAC,CACpG,CAAC;AAEF,YAAY,EAAE,eAAe,IAAI,cAAc,EAAE,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Shims for types that we can't always rely on being available globally.
3
+ *
4
+ * Note: these only exist at the type-level, there is no corresponding runtime
5
+ * version for any of these symbols.
6
+ */
7
+ type NeverToAny<T> = T extends never ? any : T;
8
+ /** @ts-ignore */
9
+ type _DOMReadableStream<R = any> = globalThis.ReadableStream<R>;
10
+ /** @ts-ignore */
11
+ type _NodeReadableStream<R = any> = import('stream/web').ReadableStream<R>;
12
+ type _ConditionalNodeReadableStream<R = any> = typeof globalThis extends {
13
+ ReadableStream: any;
14
+ } ? never : _NodeReadableStream<R>;
15
+ type _ReadableStream<R = any> = NeverToAny<([0] extends [1 & _DOMReadableStream<R>] ? never : _DOMReadableStream<R>) | ([0] extends [1 & _ConditionalNodeReadableStream<R>] ? never : _ConditionalNodeReadableStream<R>)>;
16
+ export type { _ReadableStream as ReadableStream };
17
+ //# sourceMappingURL=shim-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shim-types.d.ts","sourceRoot":"","sources":["../src/internal/shim-types.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AAEH,KAAK,UAAU,CAAC,CAAC,IAAI,CAAC,SAAS,KAAK,GAAG,GAAG,GAAG,CAAC,CAAC;AAE/C,iBAAiB;AACjB,KAAK,kBAAkB,CAAC,CAAC,GAAG,GAAG,IAAI,UAAU,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC;AAEhE,iBAAiB;AACjB,KAAK,mBAAmB,CAAC,CAAC,GAAG,GAAG,IAAI,OAAO,YAAY,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC;AAE3E,KAAK,8BAA8B,CAAC,CAAC,GAAG,GAAG,IACzC,OAAO,UAAU,SAAS;IAAE,cAAc,EAAE,GAAG,CAAA;CAAE,GAAG,KAAK,GAAG,mBAAmB,CAAC,CAAC,CAAC,CAAC;AAErF,KAAK,eAAe,CAAC,CAAC,GAAG,GAAG,IAAI,UAAU,CACtC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,GAAG,kBAAkB,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,GAAG,kBAAkB,CAAC,CAAC,CAAC,CAAC,GACzE,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,GAAG,8BAA8B,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,GAAG,8BAA8B,CAAC,CAAC,CAAC,CAAC,CACpG,CAAC;AAEF,YAAY,EAAE,eAAe,IAAI,cAAc,EAAE,CAAC"}
@@ -0,0 +1,4 @@
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
+ //# sourceMappingURL=shim-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shim-types.js","sourceRoot":"","sources":["../src/internal/shim-types.ts"],"names":[],"mappings":";AAAA,sFAAsF"}
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export {};
3
+ //# sourceMappingURL=shim-types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shim-types.mjs","sourceRoot":"","sources":["../src/internal/shim-types.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
@@ -0,0 +1,20 @@
1
+ import type { Fetch } from "./builtin-types.mjs";
2
+ import type { ReadableStream } from "./shim-types.mjs";
3
+ export declare function getDefaultFetch(): Fetch;
4
+ type ReadableStreamArgs = ConstructorParameters<typeof ReadableStream>;
5
+ export declare function makeReadableStream(...args: ReadableStreamArgs): ReadableStream;
6
+ export declare function ReadableStreamFrom<T>(iterable: Iterable<T> | AsyncIterable<T>): ReadableStream<T>;
7
+ /**
8
+ * Most browsers don't yet have async iterable support for ReadableStream,
9
+ * and Node has a very different way of reading bytes from its "ReadableStream".
10
+ *
11
+ * This polyfill was pulled from https://github.com/MattiasBuelens/web-streams-polyfill/pull/122#issuecomment-1627354490
12
+ */
13
+ export declare function ReadableStreamToAsyncIterable<T>(stream: any): AsyncIterableIterator<T>;
14
+ /**
15
+ * Cancels a ReadableStream we don't need to consume.
16
+ * See https://undici.nodejs.org/#/?id=garbage-collection
17
+ */
18
+ export declare function CancelReadableStream(stream: any): Promise<void>;
19
+ export {};
20
+ //# sourceMappingURL=shims.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shims.d.mts","sourceRoot":"","sources":["../src/internal/shims.ts"],"names":[],"mappings":"OASO,KAAK,EAAE,KAAK,EAAE;OACd,KAAK,EAAE,cAAc,EAAE;AAE9B,wBAAgB,eAAe,IAAI,KAAK,CAQvC;AAED,KAAK,kBAAkB,GAAG,qBAAqB,CAAC,OAAO,cAAc,CAAC,CAAC;AAEvE,wBAAgB,kBAAkB,CAAC,GAAG,IAAI,EAAE,kBAAkB,GAAG,cAAc,CAW9E;AAED,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAkBjG;AAED;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAAC,CAAC,EAAE,MAAM,EAAE,GAAG,GAAG,qBAAqB,CAAC,CAAC,CAAC,CAyBtF;AAED;;;GAGG;AACH,wBAAsB,oBAAoB,CAAC,MAAM,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC,CAYrE"}
@@ -0,0 +1,20 @@
1
+ import type { Fetch } from "./builtin-types.js";
2
+ import type { ReadableStream } from "./shim-types.js";
3
+ export declare function getDefaultFetch(): Fetch;
4
+ type ReadableStreamArgs = ConstructorParameters<typeof ReadableStream>;
5
+ export declare function makeReadableStream(...args: ReadableStreamArgs): ReadableStream;
6
+ export declare function ReadableStreamFrom<T>(iterable: Iterable<T> | AsyncIterable<T>): ReadableStream<T>;
7
+ /**
8
+ * Most browsers don't yet have async iterable support for ReadableStream,
9
+ * and Node has a very different way of reading bytes from its "ReadableStream".
10
+ *
11
+ * This polyfill was pulled from https://github.com/MattiasBuelens/web-streams-polyfill/pull/122#issuecomment-1627354490
12
+ */
13
+ export declare function ReadableStreamToAsyncIterable<T>(stream: any): AsyncIterableIterator<T>;
14
+ /**
15
+ * Cancels a ReadableStream we don't need to consume.
16
+ * See https://undici.nodejs.org/#/?id=garbage-collection
17
+ */
18
+ export declare function CancelReadableStream(stream: any): Promise<void>;
19
+ export {};
20
+ //# sourceMappingURL=shims.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shims.d.ts","sourceRoot":"","sources":["../src/internal/shims.ts"],"names":[],"mappings":"OASO,KAAK,EAAE,KAAK,EAAE;OACd,KAAK,EAAE,cAAc,EAAE;AAE9B,wBAAgB,eAAe,IAAI,KAAK,CAQvC;AAED,KAAK,kBAAkB,GAAG,qBAAqB,CAAC,OAAO,cAAc,CAAC,CAAC;AAEvE,wBAAgB,kBAAkB,CAAC,GAAG,IAAI,EAAE,kBAAkB,GAAG,cAAc,CAW9E;AAED,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAkBjG;AAED;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAAC,CAAC,EAAE,MAAM,EAAE,GAAG,GAAG,qBAAqB,CAAC,CAAC,CAAC,CAyBtF;AAED;;;GAGG;AACH,wBAAsB,oBAAoB,CAAC,MAAM,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC,CAYrE"}
@@ -0,0 +1,92 @@
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
+ exports.getDefaultFetch = getDefaultFetch;
5
+ exports.makeReadableStream = makeReadableStream;
6
+ exports.ReadableStreamFrom = ReadableStreamFrom;
7
+ exports.ReadableStreamToAsyncIterable = ReadableStreamToAsyncIterable;
8
+ exports.CancelReadableStream = CancelReadableStream;
9
+ function getDefaultFetch() {
10
+ if (typeof fetch !== 'undefined') {
11
+ return fetch;
12
+ }
13
+ throw new Error('`fetch` is not defined as a global; Either pass `fetch` to the client, `new StudyfetchSDK({ fetch })` or polyfill the global, `globalThis.fetch = fetch`');
14
+ }
15
+ function makeReadableStream(...args) {
16
+ const ReadableStream = globalThis.ReadableStream;
17
+ if (typeof ReadableStream === 'undefined') {
18
+ // Note: All of the platforms / runtimes we officially support already define
19
+ // `ReadableStream` as a global, so this should only ever be hit on unsupported runtimes.
20
+ throw new Error('`ReadableStream` is not defined as a global; You will need to polyfill it, `globalThis.ReadableStream = ReadableStream`');
21
+ }
22
+ return new ReadableStream(...args);
23
+ }
24
+ function ReadableStreamFrom(iterable) {
25
+ let iter = Symbol.asyncIterator in iterable ? iterable[Symbol.asyncIterator]() : iterable[Symbol.iterator]();
26
+ return makeReadableStream({
27
+ start() { },
28
+ async pull(controller) {
29
+ const { done, value } = await iter.next();
30
+ if (done) {
31
+ controller.close();
32
+ }
33
+ else {
34
+ controller.enqueue(value);
35
+ }
36
+ },
37
+ async cancel() {
38
+ await iter.return?.();
39
+ },
40
+ });
41
+ }
42
+ /**
43
+ * Most browsers don't yet have async iterable support for ReadableStream,
44
+ * and Node has a very different way of reading bytes from its "ReadableStream".
45
+ *
46
+ * This polyfill was pulled from https://github.com/MattiasBuelens/web-streams-polyfill/pull/122#issuecomment-1627354490
47
+ */
48
+ function ReadableStreamToAsyncIterable(stream) {
49
+ if (stream[Symbol.asyncIterator])
50
+ return stream;
51
+ const reader = stream.getReader();
52
+ return {
53
+ async next() {
54
+ try {
55
+ const result = await reader.read();
56
+ if (result?.done)
57
+ reader.releaseLock(); // release lock when stream becomes closed
58
+ return result;
59
+ }
60
+ catch (e) {
61
+ reader.releaseLock(); // release lock when stream becomes errored
62
+ throw e;
63
+ }
64
+ },
65
+ async return() {
66
+ const cancelPromise = reader.cancel();
67
+ reader.releaseLock();
68
+ await cancelPromise;
69
+ return { done: true, value: undefined };
70
+ },
71
+ [Symbol.asyncIterator]() {
72
+ return this;
73
+ },
74
+ };
75
+ }
76
+ /**
77
+ * Cancels a ReadableStream we don't need to consume.
78
+ * See https://undici.nodejs.org/#/?id=garbage-collection
79
+ */
80
+ async function CancelReadableStream(stream) {
81
+ if (stream === null || typeof stream !== 'object')
82
+ return;
83
+ if (stream[Symbol.asyncIterator]) {
84
+ await stream[Symbol.asyncIterator]().return?.();
85
+ return;
86
+ }
87
+ const reader = stream.getReader();
88
+ const cancelPromise = reader.cancel();
89
+ reader.releaseLock();
90
+ await cancelPromise;
91
+ }
92
+ //# sourceMappingURL=shims.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shims.js","sourceRoot":"","sources":["../src/internal/shims.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,85 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export function getDefaultFetch() {
3
+ if (typeof fetch !== 'undefined') {
4
+ return fetch;
5
+ }
6
+ throw new Error('`fetch` is not defined as a global; Either pass `fetch` to the client, `new StudyfetchSDK({ fetch })` or polyfill the global, `globalThis.fetch = fetch`');
7
+ }
8
+ export function makeReadableStream(...args) {
9
+ const ReadableStream = globalThis.ReadableStream;
10
+ if (typeof ReadableStream === 'undefined') {
11
+ // Note: All of the platforms / runtimes we officially support already define
12
+ // `ReadableStream` as a global, so this should only ever be hit on unsupported runtimes.
13
+ throw new Error('`ReadableStream` is not defined as a global; You will need to polyfill it, `globalThis.ReadableStream = ReadableStream`');
14
+ }
15
+ return new ReadableStream(...args);
16
+ }
17
+ export function ReadableStreamFrom(iterable) {
18
+ let iter = Symbol.asyncIterator in iterable ? iterable[Symbol.asyncIterator]() : iterable[Symbol.iterator]();
19
+ return makeReadableStream({
20
+ start() { },
21
+ async pull(controller) {
22
+ const { done, value } = await iter.next();
23
+ if (done) {
24
+ controller.close();
25
+ }
26
+ else {
27
+ controller.enqueue(value);
28
+ }
29
+ },
30
+ async cancel() {
31
+ await iter.return?.();
32
+ },
33
+ });
34
+ }
35
+ /**
36
+ * Most browsers don't yet have async iterable support for ReadableStream,
37
+ * and Node has a very different way of reading bytes from its "ReadableStream".
38
+ *
39
+ * This polyfill was pulled from https://github.com/MattiasBuelens/web-streams-polyfill/pull/122#issuecomment-1627354490
40
+ */
41
+ export function ReadableStreamToAsyncIterable(stream) {
42
+ if (stream[Symbol.asyncIterator])
43
+ return stream;
44
+ const reader = stream.getReader();
45
+ return {
46
+ async next() {
47
+ try {
48
+ const result = await reader.read();
49
+ if (result?.done)
50
+ reader.releaseLock(); // release lock when stream becomes closed
51
+ return result;
52
+ }
53
+ catch (e) {
54
+ reader.releaseLock(); // release lock when stream becomes errored
55
+ throw e;
56
+ }
57
+ },
58
+ async return() {
59
+ const cancelPromise = reader.cancel();
60
+ reader.releaseLock();
61
+ await cancelPromise;
62
+ return { done: true, value: undefined };
63
+ },
64
+ [Symbol.asyncIterator]() {
65
+ return this;
66
+ },
67
+ };
68
+ }
69
+ /**
70
+ * Cancels a ReadableStream we don't need to consume.
71
+ * See https://undici.nodejs.org/#/?id=garbage-collection
72
+ */
73
+ export async function CancelReadableStream(stream) {
74
+ if (stream === null || typeof stream !== 'object')
75
+ return;
76
+ if (stream[Symbol.asyncIterator]) {
77
+ await stream[Symbol.asyncIterator]().return?.();
78
+ return;
79
+ }
80
+ const reader = stream.getReader();
81
+ const cancelPromise = reader.cancel();
82
+ reader.releaseLock();
83
+ await cancelPromise;
84
+ }
85
+ //# sourceMappingURL=shims.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shims.mjs","sourceRoot":"","sources":["../src/internal/shims.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,45 @@
1
+ import type { FilePropertyBag } from "./builtin-types.mjs";
2
+ type BlobLikePart = string | ArrayBuffer | ArrayBufferView | BlobLike | DataView;
3
+ /**
4
+ * Intended to match DOM Blob, node-fetch Blob, node:buffer Blob, etc.
5
+ * Don't add arrayBuffer here, node-fetch doesn't have it
6
+ */
7
+ interface BlobLike {
8
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/size) */
9
+ readonly size: number;
10
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/type) */
11
+ readonly type: string;
12
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text) */
13
+ text(): Promise<string>;
14
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/slice) */
15
+ slice(start?: number, end?: number): BlobLike;
16
+ }
17
+ /**
18
+ * Intended to match DOM File, node:buffer File, undici File, etc.
19
+ */
20
+ interface FileLike extends BlobLike {
21
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/lastModified) */
22
+ readonly lastModified: number;
23
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/name) */
24
+ readonly name?: string | undefined;
25
+ }
26
+ /**
27
+ * Intended to match DOM Response, node-fetch Response, undici Response, etc.
28
+ */
29
+ export interface ResponseLike {
30
+ url: string;
31
+ blob(): Promise<BlobLike>;
32
+ }
33
+ export type ToFileInput = FileLike | ResponseLike | Exclude<BlobLikePart, string> | AsyncIterable<BlobLikePart>;
34
+ /**
35
+ * Helper for creating a {@link File} to pass to an SDK upload method from a variety of different data formats
36
+ * @param value the raw content of the file. Can be an {@link Uploadable}, {@link BlobLikePart}, or {@link AsyncIterable} of {@link BlobLikePart}s
37
+ * @param {string=} name the name of the file. If omitted, toFile will try to determine a file name from bits if possible
38
+ * @param {Object=} options additional properties
39
+ * @param {string=} options.type the MIME type of the content
40
+ * @param {number=} options.lastModified the last modified timestamp
41
+ * @returns a {@link File} with the given properties
42
+ */
43
+ export declare function toFile(value: ToFileInput | PromiseLike<ToFileInput>, name?: string | null | undefined, options?: FilePropertyBag | undefined): Promise<File>;
44
+ export {};
45
+ //# sourceMappingURL=to-file.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"to-file.d.mts","sourceRoot":"","sources":["../src/internal/to-file.ts"],"names":[],"mappings":"OACO,KAAK,EAAE,eAAe,EAAE;AAG/B,KAAK,YAAY,GAAG,MAAM,GAAG,WAAW,GAAG,eAAe,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAEjF;;;GAGG;AACH,UAAU,QAAQ;IAChB,4EAA4E;IAC5E,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,4EAA4E;IAC5E,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,4EAA4E;IAC5E,IAAI,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IACxB,6EAA6E;IAC7E,KAAK,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;CAC/C;AAcD;;GAEG;AACH,UAAU,QAAS,SAAQ,QAAQ;IACjC,oFAAoF;IACpF,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,4EAA4E;IAC5E,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACpC;AAYD;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,IAAI,OAAO,CAAC,QAAQ,CAAC,CAAC;CAC3B;AAQD,MAAM,MAAM,WAAW,GACnB,QAAQ,GACR,YAAY,GACZ,OAAO,CAAC,YAAY,EAAE,MAAM,CAAC,GAC7B,aAAa,CAAC,YAAY,CAAC,CAAC;AAEhC;;;;;;;;GAQG;AACH,wBAAsB,MAAM,CAC1B,KAAK,EAAE,WAAW,GAAG,WAAW,CAAC,WAAW,CAAC,EAC7C,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAChC,OAAO,CAAC,EAAE,eAAe,GAAG,SAAS,GACpC,OAAO,CAAC,IAAI,CAAC,CAiCf"}
@@ -0,0 +1,45 @@
1
+ import type { FilePropertyBag } from "./builtin-types.js";
2
+ type BlobLikePart = string | ArrayBuffer | ArrayBufferView | BlobLike | DataView;
3
+ /**
4
+ * Intended to match DOM Blob, node-fetch Blob, node:buffer Blob, etc.
5
+ * Don't add arrayBuffer here, node-fetch doesn't have it
6
+ */
7
+ interface BlobLike {
8
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/size) */
9
+ readonly size: number;
10
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/type) */
11
+ readonly type: string;
12
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text) */
13
+ text(): Promise<string>;
14
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/slice) */
15
+ slice(start?: number, end?: number): BlobLike;
16
+ }
17
+ /**
18
+ * Intended to match DOM File, node:buffer File, undici File, etc.
19
+ */
20
+ interface FileLike extends BlobLike {
21
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/lastModified) */
22
+ readonly lastModified: number;
23
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/name) */
24
+ readonly name?: string | undefined;
25
+ }
26
+ /**
27
+ * Intended to match DOM Response, node-fetch Response, undici Response, etc.
28
+ */
29
+ export interface ResponseLike {
30
+ url: string;
31
+ blob(): Promise<BlobLike>;
32
+ }
33
+ export type ToFileInput = FileLike | ResponseLike | Exclude<BlobLikePart, string> | AsyncIterable<BlobLikePart>;
34
+ /**
35
+ * Helper for creating a {@link File} to pass to an SDK upload method from a variety of different data formats
36
+ * @param value the raw content of the file. Can be an {@link Uploadable}, {@link BlobLikePart}, or {@link AsyncIterable} of {@link BlobLikePart}s
37
+ * @param {string=} name the name of the file. If omitted, toFile will try to determine a file name from bits if possible
38
+ * @param {Object=} options additional properties
39
+ * @param {string=} options.type the MIME type of the content
40
+ * @param {number=} options.lastModified the last modified timestamp
41
+ * @returns a {@link File} with the given properties
42
+ */
43
+ export declare function toFile(value: ToFileInput | PromiseLike<ToFileInput>, name?: string | null | undefined, options?: FilePropertyBag | undefined): Promise<File>;
44
+ export {};
45
+ //# sourceMappingURL=to-file.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"to-file.d.ts","sourceRoot":"","sources":["../src/internal/to-file.ts"],"names":[],"mappings":"OACO,KAAK,EAAE,eAAe,EAAE;AAG/B,KAAK,YAAY,GAAG,MAAM,GAAG,WAAW,GAAG,eAAe,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAEjF;;;GAGG;AACH,UAAU,QAAQ;IAChB,4EAA4E;IAC5E,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,4EAA4E;IAC5E,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,4EAA4E;IAC5E,IAAI,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IACxB,6EAA6E;IAC7E,KAAK,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;CAC/C;AAcD;;GAEG;AACH,UAAU,QAAS,SAAQ,QAAQ;IACjC,oFAAoF;IACpF,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,4EAA4E;IAC5E,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACpC;AAYD;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,IAAI,OAAO,CAAC,QAAQ,CAAC,CAAC;CAC3B;AAQD,MAAM,MAAM,WAAW,GACnB,QAAQ,GACR,YAAY,GACZ,OAAO,CAAC,YAAY,EAAE,MAAM,CAAC,GAC7B,aAAa,CAAC,YAAY,CAAC,CAAC;AAEhC;;;;;;;;GAQG;AACH,wBAAsB,MAAM,CAC1B,KAAK,EAAE,WAAW,GAAG,WAAW,CAAC,WAAW,CAAC,EAC7C,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAChC,OAAO,CAAC,EAAE,eAAe,GAAG,SAAS,GACpC,OAAO,CAAC,IAAI,CAAC,CAiCf"}