@valtown/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 (347) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/LICENSE +7 -0
  3. package/README.md +288 -0
  4. package/_shims/MultipartBody.d.ts +9 -0
  5. package/_shims/MultipartBody.d.ts.map +1 -0
  6. package/_shims/MultipartBody.js +16 -0
  7. package/_shims/MultipartBody.js.map +1 -0
  8. package/_shims/MultipartBody.mjs +12 -0
  9. package/_shims/MultipartBody.mjs.map +1 -0
  10. package/_shims/README.md +46 -0
  11. package/_shims/auto/runtime-bun.d.ts +5 -0
  12. package/_shims/auto/runtime-bun.d.ts.map +1 -0
  13. package/_shims/auto/runtime-bun.js +21 -0
  14. package/_shims/auto/runtime-bun.js.map +1 -0
  15. package/_shims/auto/runtime-bun.mjs +2 -0
  16. package/_shims/auto/runtime-bun.mjs.map +1 -0
  17. package/_shims/auto/runtime-node.d.ts +5 -0
  18. package/_shims/auto/runtime-node.d.ts.map +1 -0
  19. package/_shims/auto/runtime-node.js +21 -0
  20. package/_shims/auto/runtime-node.js.map +1 -0
  21. package/_shims/auto/runtime-node.mjs +2 -0
  22. package/_shims/auto/runtime-node.mjs.map +1 -0
  23. package/_shims/auto/runtime.d.ts +5 -0
  24. package/_shims/auto/runtime.d.ts.map +1 -0
  25. package/_shims/auto/runtime.js +21 -0
  26. package/_shims/auto/runtime.js.map +1 -0
  27. package/_shims/auto/runtime.mjs +2 -0
  28. package/_shims/auto/runtime.mjs.map +1 -0
  29. package/_shims/auto/types-node.d.ts +5 -0
  30. package/_shims/auto/types-node.d.ts.map +1 -0
  31. package/_shims/auto/types-node.js +21 -0
  32. package/_shims/auto/types-node.js.map +1 -0
  33. package/_shims/auto/types-node.mjs +2 -0
  34. package/_shims/auto/types-node.mjs.map +1 -0
  35. package/_shims/auto/types.d.ts +101 -0
  36. package/_shims/auto/types.js +3 -0
  37. package/_shims/auto/types.mjs +3 -0
  38. package/_shims/bun-runtime.d.ts +6 -0
  39. package/_shims/bun-runtime.d.ts.map +1 -0
  40. package/_shims/bun-runtime.js +14 -0
  41. package/_shims/bun-runtime.js.map +1 -0
  42. package/_shims/bun-runtime.mjs +10 -0
  43. package/_shims/bun-runtime.mjs.map +1 -0
  44. package/_shims/index.d.ts +81 -0
  45. package/_shims/index.js +13 -0
  46. package/_shims/index.mjs +7 -0
  47. package/_shims/manual-types.d.ts +12 -0
  48. package/_shims/manual-types.js +3 -0
  49. package/_shims/manual-types.mjs +3 -0
  50. package/_shims/node-runtime.d.ts +3 -0
  51. package/_shims/node-runtime.d.ts.map +1 -0
  52. package/_shims/node-runtime.js +90 -0
  53. package/_shims/node-runtime.js.map +1 -0
  54. package/_shims/node-runtime.mjs +56 -0
  55. package/_shims/node-runtime.mjs.map +1 -0
  56. package/_shims/node-types.d.ts +42 -0
  57. package/_shims/node-types.js +3 -0
  58. package/_shims/node-types.mjs +3 -0
  59. package/_shims/registry.d.ts +37 -0
  60. package/_shims/registry.d.ts.map +1 -0
  61. package/_shims/registry.js +41 -0
  62. package/_shims/registry.js.map +1 -0
  63. package/_shims/registry.mjs +37 -0
  64. package/_shims/registry.mjs.map +1 -0
  65. package/_shims/web-runtime.d.ts +5 -0
  66. package/_shims/web-runtime.d.ts.map +1 -0
  67. package/_shims/web-runtime.js +78 -0
  68. package/_shims/web-runtime.js.map +1 -0
  69. package/_shims/web-runtime.mjs +71 -0
  70. package/_shims/web-runtime.mjs.map +1 -0
  71. package/_shims/web-types.d.ts +83 -0
  72. package/_shims/web-types.js +3 -0
  73. package/_shims/web-types.mjs +3 -0
  74. package/core.d.ts +239 -0
  75. package/core.d.ts.map +1 -0
  76. package/core.js +881 -0
  77. package/core.js.map +1 -0
  78. package/core.mjs +850 -0
  79. package/core.mjs.map +1 -0
  80. package/error.d.ts +53 -0
  81. package/error.d.ts.map +1 -0
  82. package/error.js +143 -0
  83. package/error.js.map +1 -0
  84. package/error.mjs +127 -0
  85. package/error.mjs.map +1 -0
  86. package/index.d.mts +143 -0
  87. package/index.d.ts +143 -0
  88. package/index.d.ts.map +1 -0
  89. package/index.js +124 -0
  90. package/index.js.map +1 -0
  91. package/index.mjs +96 -0
  92. package/index.mjs.map +1 -0
  93. package/package.json +104 -0
  94. package/pagination.d.ts +24 -0
  95. package/pagination.d.ts.map +1 -0
  96. package/pagination.js +35 -0
  97. package/pagination.js.map +1 -0
  98. package/pagination.mjs +31 -0
  99. package/pagination.mjs.map +1 -0
  100. package/resource.d.ts +6 -0
  101. package/resource.d.ts.map +1 -0
  102. package/resource.js +11 -0
  103. package/resource.js.map +1 -0
  104. package/resource.mjs +7 -0
  105. package/resource.mjs.map +1 -0
  106. package/resources/alias/alias.d.ts +9 -0
  107. package/resources/alias/alias.d.ts.map +1 -0
  108. package/resources/alias/alias.js +40 -0
  109. package/resources/alias/alias.js.map +1 -0
  110. package/resources/alias/alias.mjs +13 -0
  111. package/resources/alias/alias.mjs.map +1 -0
  112. package/resources/alias/index.d.ts +3 -0
  113. package/resources/alias/index.d.ts.map +1 -0
  114. package/resources/alias/index.js +9 -0
  115. package/resources/alias/index.js.map +1 -0
  116. package/resources/alias/index.mjs +4 -0
  117. package/resources/alias/index.mjs.map +1 -0
  118. package/resources/alias/username/index.d.ts +3 -0
  119. package/resources/alias/username/index.d.ts.map +1 -0
  120. package/resources/alias/username/index.js +9 -0
  121. package/resources/alias/username/index.js.map +1 -0
  122. package/resources/alias/username/index.mjs +4 -0
  123. package/resources/alias/username/index.mjs.map +1 -0
  124. package/resources/alias/username/username.d.ts +16 -0
  125. package/resources/alias/username/username.d.ts.map +1 -0
  126. package/resources/alias/username/username.js +46 -0
  127. package/resources/alias/username/username.js.map +1 -0
  128. package/resources/alias/username/username.mjs +19 -0
  129. package/resources/alias/username/username.mjs.map +1 -0
  130. package/resources/alias/username/val-name.d.ts +42 -0
  131. package/resources/alias/username/val-name.d.ts.map +1 -0
  132. package/resources/alias/username/val-name.js +17 -0
  133. package/resources/alias/username/val-name.js.map +1 -0
  134. package/resources/alias/username/val-name.mjs +13 -0
  135. package/resources/alias/username/val-name.mjs.map +1 -0
  136. package/resources/blobs.d.ts +13 -0
  137. package/resources/blobs.d.ts.map +1 -0
  138. package/resources/blobs.js +27 -0
  139. package/resources/blobs.js.map +1 -0
  140. package/resources/blobs.mjs +23 -0
  141. package/resources/blobs.mjs.map +1 -0
  142. package/resources/emails.d.ts +77 -0
  143. package/resources/emails.d.ts.map +1 -0
  144. package/resources/emails.js +18 -0
  145. package/resources/emails.js.map +1 -0
  146. package/resources/emails.mjs +14 -0
  147. package/resources/emails.mjs.map +1 -0
  148. package/resources/evals.d.ts +19 -0
  149. package/resources/evals.d.ts.map +1 -0
  150. package/resources/evals.js +18 -0
  151. package/resources/evals.js.map +1 -0
  152. package/resources/evals.mjs +14 -0
  153. package/resources/evals.mjs.map +1 -0
  154. package/resources/index.d.ts +11 -0
  155. package/resources/index.d.ts.map +1 -0
  156. package/resources/index.js +38 -0
  157. package/resources/index.js.map +1 -0
  158. package/resources/index.mjs +12 -0
  159. package/resources/index.mjs.map +1 -0
  160. package/resources/me/comments.d.ts +55 -0
  161. package/resources/me/comments.d.ts.map +1 -0
  162. package/resources/me/comments.js +49 -0
  163. package/resources/me/comments.js.map +1 -0
  164. package/resources/me/comments.mjs +21 -0
  165. package/resources/me/comments.mjs.map +1 -0
  166. package/resources/me/index.d.ts +6 -0
  167. package/resources/me/index.d.ts.map +1 -0
  168. package/resources/me/index.js +18 -0
  169. package/resources/me/index.js.map +1 -0
  170. package/resources/me/index.mjs +7 -0
  171. package/resources/me/index.mjs.map +1 -0
  172. package/resources/me/likes.d.ts +46 -0
  173. package/resources/me/likes.d.ts.map +1 -0
  174. package/resources/me/likes.js +46 -0
  175. package/resources/me/likes.js.map +1 -0
  176. package/resources/me/likes.mjs +18 -0
  177. package/resources/me/likes.mjs.map +1 -0
  178. package/resources/me/me.d.ts +28 -0
  179. package/resources/me/me.d.ts.map +1 -0
  180. package/resources/me/me.js +52 -0
  181. package/resources/me/me.js.map +1 -0
  182. package/resources/me/me.mjs +25 -0
  183. package/resources/me/me.mjs.map +1 -0
  184. package/resources/me/profile.d.ts +32 -0
  185. package/resources/me/profile.d.ts.map +1 -0
  186. package/resources/me/profile.js +17 -0
  187. package/resources/me/profile.js.map +1 -0
  188. package/resources/me/profile.mjs +13 -0
  189. package/resources/me/profile.mjs.map +1 -0
  190. package/resources/me/references.d.ts +41 -0
  191. package/resources/me/references.d.ts.map +1 -0
  192. package/resources/me/references.js +49 -0
  193. package/resources/me/references.js.map +1 -0
  194. package/resources/me/references.mjs +21 -0
  195. package/resources/me/references.mjs.map +1 -0
  196. package/resources/search/index.d.ts +3 -0
  197. package/resources/search/index.d.ts.map +1 -0
  198. package/resources/search/index.js +10 -0
  199. package/resources/search/index.js.map +1 -0
  200. package/resources/search/index.mjs +4 -0
  201. package/resources/search/index.mjs.map +1 -0
  202. package/resources/search/search.d.ts +12 -0
  203. package/resources/search/search.d.ts.map +1 -0
  204. package/resources/search/search.js +41 -0
  205. package/resources/search/search.js.map +1 -0
  206. package/resources/search/search.mjs +14 -0
  207. package/resources/search/search.mjs.map +1 -0
  208. package/resources/search/vals.d.ts +51 -0
  209. package/resources/search/vals.d.ts.map +1 -0
  210. package/resources/search/vals.js +46 -0
  211. package/resources/search/vals.js.map +1 -0
  212. package/resources/search/vals.mjs +18 -0
  213. package/resources/search/vals.mjs.map +1 -0
  214. package/resources/shared.d.ts +19 -0
  215. package/resources/shared.d.ts.map +1 -0
  216. package/resources/shared.js +4 -0
  217. package/resources/shared.js.map +1 -0
  218. package/resources/shared.mjs +3 -0
  219. package/resources/shared.mjs.map +1 -0
  220. package/resources/sqlite.d.ts +54 -0
  221. package/resources/sqlite.d.ts.map +1 -0
  222. package/resources/sqlite.js +25 -0
  223. package/resources/sqlite.js.map +1 -0
  224. package/resources/sqlite.mjs +21 -0
  225. package/resources/sqlite.mjs.map +1 -0
  226. package/resources/users/index.d.ts +3 -0
  227. package/resources/users/index.d.ts.map +1 -0
  228. package/resources/users/index.js +10 -0
  229. package/resources/users/index.js.map +1 -0
  230. package/resources/users/index.mjs +4 -0
  231. package/resources/users/index.mjs.map +1 -0
  232. package/resources/users/users.d.ts +18 -0
  233. package/resources/users/users.d.ts.map +1 -0
  234. package/resources/users/users.js +47 -0
  235. package/resources/users/users.js.map +1 -0
  236. package/resources/users/users.mjs +20 -0
  237. package/resources/users/users.mjs.map +1 -0
  238. package/resources/users/vals.d.ts +46 -0
  239. package/resources/users/vals.d.ts.map +1 -0
  240. package/resources/users/vals.js +49 -0
  241. package/resources/users/vals.js.map +1 -0
  242. package/resources/users/vals.mjs +21 -0
  243. package/resources/users/vals.mjs.map +1 -0
  244. package/resources/vals/index.d.ts +3 -0
  245. package/resources/vals/index.d.ts.map +1 -0
  246. package/resources/vals/index.js +10 -0
  247. package/resources/vals/index.js.map +1 -0
  248. package/resources/vals/index.mjs +4 -0
  249. package/resources/vals/index.mjs.map +1 -0
  250. package/resources/vals/vals.d.ts +150 -0
  251. package/resources/vals/vals.d.ts.map +1 -0
  252. package/resources/vals/vals.js +109 -0
  253. package/resources/vals/vals.js.map +1 -0
  254. package/resources/vals/vals.mjs +82 -0
  255. package/resources/vals/vals.mjs.map +1 -0
  256. package/resources/vals/versions.d.ts +110 -0
  257. package/resources/vals/versions.d.ts.map +1 -0
  258. package/resources/vals/versions.js +70 -0
  259. package/resources/vals/versions.js.map +1 -0
  260. package/resources/vals/versions.mjs +42 -0
  261. package/resources/vals/versions.mjs.map +1 -0
  262. package/shims/node.d.ts +29 -0
  263. package/shims/node.d.ts.map +1 -0
  264. package/shims/node.js +31 -0
  265. package/shims/node.js.map +1 -0
  266. package/shims/node.mjs +5 -0
  267. package/shims/node.mjs.map +1 -0
  268. package/shims/web.d.ts +26 -0
  269. package/shims/web.d.ts.map +1 -0
  270. package/shims/web.js +31 -0
  271. package/shims/web.js.map +1 -0
  272. package/shims/web.mjs +5 -0
  273. package/shims/web.mjs.map +1 -0
  274. package/src/_shims/MultipartBody.ts +9 -0
  275. package/src/_shims/README.md +46 -0
  276. package/src/_shims/auto/runtime-bun.ts +4 -0
  277. package/src/_shims/auto/runtime-node.ts +4 -0
  278. package/src/_shims/auto/runtime.ts +4 -0
  279. package/src/_shims/auto/types-node.ts +4 -0
  280. package/src/_shims/auto/types.d.ts +101 -0
  281. package/src/_shims/auto/types.js +3 -0
  282. package/src/_shims/auto/types.mjs +3 -0
  283. package/src/_shims/bun-runtime.ts +14 -0
  284. package/src/_shims/index.d.ts +81 -0
  285. package/src/_shims/index.js +13 -0
  286. package/src/_shims/index.mjs +7 -0
  287. package/src/_shims/manual-types.d.ts +12 -0
  288. package/src/_shims/manual-types.js +3 -0
  289. package/src/_shims/manual-types.mjs +3 -0
  290. package/src/_shims/node-runtime.ts +83 -0
  291. package/src/_shims/node-types.d.ts +42 -0
  292. package/src/_shims/node-types.js +3 -0
  293. package/src/_shims/node-types.mjs +3 -0
  294. package/src/_shims/registry.ts +67 -0
  295. package/src/_shims/web-runtime.ts +103 -0
  296. package/src/_shims/web-types.d.ts +83 -0
  297. package/src/_shims/web-types.js +3 -0
  298. package/src/_shims/web-types.mjs +3 -0
  299. package/src/core.ts +1165 -0
  300. package/src/error.ts +146 -0
  301. package/src/index.ts +227 -0
  302. package/src/lib/.keep +4 -0
  303. package/src/pagination.ts +62 -0
  304. package/src/resource.ts +11 -0
  305. package/src/resources/alias/alias.ts +12 -0
  306. package/src/resources/alias/index.ts +4 -0
  307. package/src/resources/alias/username/index.ts +4 -0
  308. package/src/resources/alias/username/username.ts +22 -0
  309. package/src/resources/alias/username/val-name.ts +65 -0
  310. package/src/resources/blobs.ts +26 -0
  311. package/src/resources/emails.ts +123 -0
  312. package/src/resources/evals.ts +39 -0
  313. package/src/resources/index.ts +23 -0
  314. package/src/resources/me/comments.ts +83 -0
  315. package/src/resources/me/index.ts +17 -0
  316. package/src/resources/me/likes.ts +65 -0
  317. package/src/resources/me/me.ts +31 -0
  318. package/src/resources/me/profile.ts +42 -0
  319. package/src/resources/me/references.ts +65 -0
  320. package/src/resources/search/index.ts +4 -0
  321. package/src/resources/search/search.ts +15 -0
  322. package/src/resources/search/vals.ts +72 -0
  323. package/src/resources/shared.ts +23 -0
  324. package/src/resources/sqlite.ts +77 -0
  325. package/src/resources/users/index.ts +4 -0
  326. package/src/resources/users/users.ts +24 -0
  327. package/src/resources/users/vals.ts +69 -0
  328. package/src/resources/vals/index.ts +24 -0
  329. package/src/resources/vals/vals.ts +267 -0
  330. package/src/resources/vals/versions.ts +181 -0
  331. package/src/shims/node.ts +50 -0
  332. package/src/shims/web.ts +50 -0
  333. package/src/tsconfig.json +11 -0
  334. package/src/uploads.ts +248 -0
  335. package/src/version.ts +1 -0
  336. package/uploads.d.ts +75 -0
  337. package/uploads.d.ts.map +1 -0
  338. package/uploads.js +165 -0
  339. package/uploads.js.map +1 -0
  340. package/uploads.mjs +152 -0
  341. package/uploads.mjs.map +1 -0
  342. package/version.d.ts +2 -0
  343. package/version.d.ts.map +1 -0
  344. package/version.js +5 -0
  345. package/version.js.map +1 -0
  346. package/version.mjs +2 -0
  347. package/version.mjs.map +1 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,39 @@
1
+ # Changelog
2
+
3
+ ## 0.1.0-alpha.1 (2024-06-20)
4
+
5
+ Full Changelog: [v0.0.1-alpha.0...v0.1.0-alpha.1](https://github.com/val-town/sdk/compare/v0.0.1-alpha.0...v0.1.0-alpha.1)
6
+
7
+ ### Features
8
+
9
+ * **api:** OpenAPI spec update via Stainless API ([8497c6c](https://github.com/val-town/sdk/commit/8497c6c8f713b68d363fd5b4330e5e12e0c8450f))
10
+ * **api:** OpenAPI spec update via Stainless API ([e97c5dc](https://github.com/val-town/sdk/commit/e97c5dc37a6d186e59c91b9d459be75464116632))
11
+ * **api:** OpenAPI spec update via Stainless API ([7aad407](https://github.com/val-town/sdk/commit/7aad40774a401a27521ea07246cb2a2503026ff7))
12
+ * **api:** OpenAPI spec update via Stainless API ([1ceab6d](https://github.com/val-town/sdk/commit/1ceab6de0532cde9fc366f9cb8cbcc20ed35934b))
13
+ * **api:** OpenAPI spec update via Stainless API ([421f88d](https://github.com/val-town/sdk/commit/421f88df6df256fe0dda855d0efc5dcc033ef962))
14
+ * **api:** OpenAPI spec update via Stainless API ([a5e931a](https://github.com/val-town/sdk/commit/a5e931a5d59f5d083ce3bfc2b60560a730601a5a))
15
+ * **api:** OpenAPI spec update via Stainless API ([9293e2c](https://github.com/val-town/sdk/commit/9293e2c164b7c1136a61b8a704db89b75d402e54))
16
+ * **api:** OpenAPI spec update via Stainless API ([1e7468a](https://github.com/val-town/sdk/commit/1e7468aded226735ffaa5a7c6ea98fe878eaf72c))
17
+ * **api:** OpenAPI spec update via Stainless API ([c1ed179](https://github.com/val-town/sdk/commit/c1ed17929ca9477e4de2c5670b8a532b8b0f171a))
18
+ * **api:** OpenAPI spec update via Stainless API ([42215ac](https://github.com/val-town/sdk/commit/42215ac45d26c959d325105ff263418991a6f90e))
19
+ * **api:** OpenAPI spec update via Stainless API ([fa69847](https://github.com/val-town/sdk/commit/fa69847f83bf5515af46150f514b90f36f4314f4))
20
+ * **api:** OpenAPI spec update via Stainless API ([381b881](https://github.com/val-town/sdk/commit/381b881ebc133cd8841b1b21f768a72dbc4d083e))
21
+ * **api:** OpenAPI spec update via Stainless API ([#5](https://github.com/val-town/sdk/issues/5)) ([da8e31a](https://github.com/val-town/sdk/commit/da8e31a39c675b37decdce3329a96b9528499522))
22
+ * **api:** update via SDK Studio ([c6bdbb9](https://github.com/val-town/sdk/commit/c6bdbb93c99633be70bd822835717b7a2570f6c3))
23
+ * **api:** update via SDK Studio ([b8d66d1](https://github.com/val-town/sdk/commit/b8d66d152bfbf63861d08d4528a8f08e7ac7d4b8))
24
+ * **api:** update via SDK Studio ([7e93ac6](https://github.com/val-town/sdk/commit/7e93ac6263187a56dd8d2a2d7b1ef4c2e774ef81))
25
+ * **api:** update via SDK Studio ([c7874c1](https://github.com/val-town/sdk/commit/c7874c1319e6f71291670749ff12c96207264441))
26
+ * **api:** update via SDK Studio ([827af7c](https://github.com/val-town/sdk/commit/827af7cad90a983d8fd73e92d983f7b747c53c6d))
27
+ * **api:** update via SDK Studio ([2b78f03](https://github.com/val-town/sdk/commit/2b78f0336bb7fba9fd23c67e99b168d77385586f))
28
+ * **api:** update via SDK Studio ([7a30449](https://github.com/val-town/sdk/commit/7a30449d5693fbeb303d65ba095a555f1fe066af))
29
+ * **api:** update via SDK Studio ([#3](https://github.com/val-town/sdk/issues/3)) ([72fdd44](https://github.com/val-town/sdk/commit/72fdd44ab1c2c7675e865f6199ba50d9737ca9fb))
30
+ * **api:** update via SDK Studio ([#4](https://github.com/val-town/sdk/issues/4)) ([a42e9c6](https://github.com/val-town/sdk/commit/a42e9c6d5c657a126ffd88568edb4fcc7ace696f))
31
+ * **api:** update via SDK Studio ([#6](https://github.com/val-town/sdk/issues/6)) ([d21437a](https://github.com/val-town/sdk/commit/d21437aad15c8ab8f7efee25a7617240e1614916))
32
+
33
+
34
+ ### Chores
35
+
36
+ * go live ([#2](https://github.com/val-town/sdk/issues/2)) ([f4c3e39](https://github.com/val-town/sdk/commit/f4c3e393484943aaf0abf096abdaa29328de89a9))
37
+ * update SDK settings ([43e98c6](https://github.com/val-town/sdk/commit/43e98c68e939706647dda914c91831afc10ac501))
38
+ * update SDK settings ([834d7b5](https://github.com/val-town/sdk/commit/834d7b5ff1435f14bceabe66c5fcecbb9e431632))
39
+ * update SDK settings ([3f2a17d](https://github.com/val-town/sdk/commit/3f2a17d0546c3e6985fdfa7ae3f914b806efe9f5))
package/LICENSE ADDED
@@ -0,0 +1,7 @@
1
+ Copyright 2024 val-town
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+
5
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,288 @@
1
+ # Val Town Node API Library
2
+
3
+ [![NPM version](https://img.shields.io/npm/v/@valtown/sdk.svg)](https://npmjs.org/package/@valtown/sdk) ![npm bundle size](https://img.shields.io/bundlephobia/minzip/@valtown/sdk)
4
+
5
+ This library provides convenient access to the Val Town REST API from server-side TypeScript or JavaScript.
6
+
7
+ The REST API documentation can be found [on docs.val.town](https://docs.val.town). The full API of this library can be found in [api.md](api.md).
8
+
9
+ It is generated with [Stainless](https://www.stainlessapi.com/).
10
+
11
+ ## Installation
12
+
13
+ ```sh
14
+ npm install @valtown/sdk
15
+ ```
16
+
17
+ ## Usage
18
+
19
+ The full API of this library can be found in [api.md](api.md).
20
+
21
+ <!-- prettier-ignore -->
22
+ ```js
23
+ import ValTown from '@valtown/sdk';
24
+
25
+ const valTown = new ValTown();
26
+
27
+ async function main() {
28
+ const emailSendResponse = await valTown.emails.send();
29
+
30
+ console.log(emailSendResponse.message);
31
+ }
32
+
33
+ main();
34
+ ```
35
+
36
+ ### Request & Response types
37
+
38
+ This library includes TypeScript definitions for all request params and response fields. You may import and use them like so:
39
+
40
+ <!-- prettier-ignore -->
41
+ ```ts
42
+ import ValTown from '@valtown/sdk';
43
+
44
+ const valTown = new ValTown();
45
+
46
+ async function main() {
47
+ const emailSendResponse: ValTown.EmailSendResponse = await valTown.emails.send();
48
+ }
49
+
50
+ main();
51
+ ```
52
+
53
+ Documentation for each method, request param, and response field are available in docstrings and will appear on hover in most modern editors.
54
+
55
+ ## Handling errors
56
+
57
+ When the library is unable to connect to the API,
58
+ or if the API returns a non-success status code (i.e., 4xx or 5xx response),
59
+ a subclass of `APIError` will be thrown:
60
+
61
+ <!-- prettier-ignore -->
62
+ ```ts
63
+ async function main() {
64
+ const emailSendResponse = await valTown.emails.send().catch(async (err) => {
65
+ if (err instanceof ValTown.APIError) {
66
+ console.log(err.status); // 400
67
+ console.log(err.name); // BadRequestError
68
+ console.log(err.headers); // {server: 'nginx', ...}
69
+ } else {
70
+ throw err;
71
+ }
72
+ });
73
+ }
74
+
75
+ main();
76
+ ```
77
+
78
+ Error codes are as followed:
79
+
80
+ | Status Code | Error Type |
81
+ | ----------- | -------------------------- |
82
+ | 400 | `BadRequestError` |
83
+ | 401 | `AuthenticationError` |
84
+ | 403 | `PermissionDeniedError` |
85
+ | 404 | `NotFoundError` |
86
+ | 422 | `UnprocessableEntityError` |
87
+ | 429 | `RateLimitError` |
88
+ | >=500 | `InternalServerError` |
89
+ | N/A | `APIConnectionError` |
90
+
91
+ ### Retries
92
+
93
+ Certain errors will be automatically retried 2 times by default, with a short exponential backoff.
94
+ Connection errors (for example, due to a network connectivity problem), 408 Request Timeout, 409 Conflict,
95
+ 429 Rate Limit, and >=500 Internal errors will all be retried by default.
96
+
97
+ You can use the `maxRetries` option to configure or disable this:
98
+
99
+ <!-- prettier-ignore -->
100
+ ```js
101
+ // Configure the default for all requests:
102
+ const valTown = new ValTown({
103
+ maxRetries: 0, // default is 2
104
+ });
105
+
106
+ // Or, configure per-request:
107
+ await valTown.emails.send({
108
+ maxRetries: 5,
109
+ });
110
+ ```
111
+
112
+ ### Timeouts
113
+
114
+ Requests time out after 1 minute by default. You can configure this with a `timeout` option:
115
+
116
+ <!-- prettier-ignore -->
117
+ ```ts
118
+ // Configure the default for all requests:
119
+ const valTown = new ValTown({
120
+ timeout: 20 * 1000, // 20 seconds (default is 1 minute)
121
+ });
122
+
123
+ // Override per-request:
124
+ await valTown.emails.send({
125
+ timeout: 5 * 1000,
126
+ });
127
+ ```
128
+
129
+ On timeout, an `APIConnectionTimeoutError` is thrown.
130
+
131
+ Note that requests which time out will be [retried twice by default](#retries).
132
+
133
+ ## Advanced Usage
134
+
135
+ ### Accessing raw Response data (e.g., headers)
136
+
137
+ The "raw" `Response` returned by `fetch()` can be accessed through the `.asResponse()` method on the `APIPromise` type that all methods return.
138
+
139
+ You can also use the `.withResponse()` method to get the raw `Response` along with the parsed data.
140
+
141
+ <!-- prettier-ignore -->
142
+ ```ts
143
+ const valTown = new ValTown();
144
+
145
+ const response = await valTown.emails.send().asResponse();
146
+ console.log(response.headers.get('X-My-Header'));
147
+ console.log(response.statusText); // access the underlying Response object
148
+
149
+ const { data: emailSendResponse, response: raw } = await valTown.emails.send().withResponse();
150
+ console.log(raw.headers.get('X-My-Header'));
151
+ console.log(emailSendResponse.message);
152
+ ```
153
+
154
+ ### Making custom/undocumented requests
155
+
156
+ This library is typed for convenient access to the documented API. If you need to access undocumented
157
+ endpoints, params, or response properties, the library can still be used.
158
+
159
+ #### Undocumented endpoints
160
+
161
+ To make requests to undocumented endpoints, you can use `client.get`, `client.post`, and other HTTP verbs.
162
+ Options on the client, such as retries, will be respected when making these requests.
163
+
164
+ ```ts
165
+ await client.post('/some/path', {
166
+ body: { some_prop: 'foo' },
167
+ query: { some_query_arg: 'bar' },
168
+ });
169
+ ```
170
+
171
+ #### Undocumented request params
172
+
173
+ To make requests using undocumented parameters, you may use `// @ts-expect-error` on the undocumented
174
+ parameter. This library doesn't validate at runtime that the request matches the type, so any extra values you
175
+ send will be sent as-is.
176
+
177
+ ```ts
178
+ client.foo.create({
179
+ foo: 'my_param',
180
+ bar: 12,
181
+ // @ts-expect-error baz is not yet public
182
+ baz: 'undocumented option',
183
+ });
184
+ ```
185
+
186
+ For requests with the `GET` verb, any extra params will be in the query, all other requests will send the
187
+ extra param in the body.
188
+
189
+ If you want to explicitly send an extra argument, you can do so with the `query`, `body`, and `headers` request
190
+ options.
191
+
192
+ #### Undocumented response properties
193
+
194
+ To access undocumented response properties, you may access the response object with `// @ts-expect-error` on
195
+ the response object, or cast the response object to the requisite type. Like the request params, we do not
196
+ validate or strip extra properties from the response from the API.
197
+
198
+ ### Customizing the fetch client
199
+
200
+ By default, this library uses `node-fetch` in Node, and expects a global `fetch` function in other environments.
201
+
202
+ If you would prefer to use a global, web-standards-compliant `fetch` function even in a Node environment,
203
+ (for example, if you are running Node with `--experimental-fetch` or using NextJS which polyfills with `undici`),
204
+ add the following import before your first import `from "ValTown"`:
205
+
206
+ ```ts
207
+ // Tell TypeScript and the package to use the global web fetch instead of node-fetch.
208
+ // Note, despite the name, this does not add any polyfills, but expects them to be provided if needed.
209
+ import '@valtown/sdk/shims/web';
210
+ import ValTown from '@valtown/sdk';
211
+ ```
212
+
213
+ To do the inverse, add `import "@valtown/sdk/shims/node"` (which does import polyfills).
214
+ This can also be useful if you are getting the wrong TypeScript types for `Response` ([more details](https://github.com/val-town/sdk/tree/main/src/_shims#readme)).
215
+
216
+ ### Logging and middleware
217
+
218
+ You may also provide a custom `fetch` function when instantiating the client,
219
+ which can be used to inspect or alter the `Request` or `Response` before/after each request:
220
+
221
+ ```ts
222
+ import { fetch } from 'undici'; // as one example
223
+ import ValTown from '@valtown/sdk';
224
+
225
+ const client = new ValTown({
226
+ fetch: async (url: RequestInfo, init?: RequestInit): Promise<Response> => {
227
+ console.log('About to make a request', url, init);
228
+ const response = await fetch(url, init);
229
+ console.log('Got response', response);
230
+ return response;
231
+ },
232
+ });
233
+ ```
234
+
235
+ Note that if given a `DEBUG=true` environment variable, this library will log all requests and responses automatically.
236
+ This is intended for debugging purposes only and may change in the future without notice.
237
+
238
+ ### Configuring an HTTP(S) Agent (e.g., for proxies)
239
+
240
+ By default, this library uses a stable agent for all http/https requests to reuse TCP connections, eliminating many TCP & TLS handshakes and shaving around 100ms off most requests.
241
+
242
+ If you would like to disable or customize this behavior, for example to use the API behind a proxy, you can pass an `httpAgent` which is used for all requests (be they http or https), for example:
243
+
244
+ <!-- prettier-ignore -->
245
+ ```ts
246
+ import http from 'http';
247
+ import { HttpsProxyAgent } from 'https-proxy-agent';
248
+
249
+ // Configure the default for all requests:
250
+ const valTown = new ValTown({
251
+ httpAgent: new HttpsProxyAgent(process.env.PROXY_URL),
252
+ });
253
+
254
+ // Override per-request:
255
+ await valTown.emails.send({
256
+ httpAgent: new http.Agent({ keepAlive: false }),
257
+ });
258
+ ```
259
+
260
+ ## Semantic versioning
261
+
262
+ This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) conventions, though certain backwards-incompatible changes may be released as minor versions:
263
+
264
+ 1. Changes that only affect static types, without breaking runtime behavior.
265
+ 2. Changes to library internals which are technically public but not intended or documented for external use. _(Please open a GitHub issue to let us know if you are relying on such internals)_.
266
+ 3. Changes that we do not expect to impact the vast majority of users in practice.
267
+
268
+ We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.
269
+
270
+ We are keen for your feedback; please open an [issue](https://www.github.com/val-town/sdk/issues) with questions, bugs, or suggestions.
271
+
272
+ ## Requirements
273
+
274
+ TypeScript >= 4.5 is supported.
275
+
276
+ The following runtimes are supported:
277
+
278
+ - Node.js 18 LTS or later ([non-EOL](https://endoflife.date/nodejs)) versions.
279
+ - Deno v1.28.0 or higher, using `import ValTown from "npm:@valtown/sdk"`.
280
+ - Bun 1.0 or later.
281
+ - Cloudflare Workers.
282
+ - Vercel Edge Runtime.
283
+ - Jest 28 or greater with the `"node"` environment (`"jsdom"` is not supported at this time).
284
+ - Nitro v2.6 or greater.
285
+
286
+ Note that React Native is not supported at this time.
287
+
288
+ If you are interested in other runtime environments, please open or upvote an issue on GitHub.
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Disclaimer: modules in _shims aren't intended to be imported by SDK users.
3
+ */
4
+ export declare class MultipartBody {
5
+ body: any;
6
+ constructor(body: any);
7
+ get [Symbol.toStringTag](): string;
8
+ }
9
+ //# sourceMappingURL=MultipartBody.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MultipartBody.d.ts","sourceRoot":"","sources":["../src/_shims/MultipartBody.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,aAAa;IACL,IAAI,EAAE,GAAG;gBAAT,IAAI,EAAE,GAAG;IAC5B,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,MAAM,CAEjC;CACF"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MultipartBody = void 0;
4
+ /**
5
+ * Disclaimer: modules in _shims aren't intended to be imported by SDK users.
6
+ */
7
+ class MultipartBody {
8
+ constructor(body) {
9
+ this.body = body;
10
+ }
11
+ get [Symbol.toStringTag]() {
12
+ return 'MultipartBody';
13
+ }
14
+ }
15
+ exports.MultipartBody = MultipartBody;
16
+ //# sourceMappingURL=MultipartBody.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MultipartBody.js","sourceRoot":"","sources":["../src/_shims/MultipartBody.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,MAAa,aAAa;IACxB,YAAmB,IAAS;QAAT,SAAI,GAAJ,IAAI,CAAK;IAAG,CAAC;IAChC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC;QACtB,OAAO,eAAe,CAAC;IACzB,CAAC;CACF;AALD,sCAKC"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Disclaimer: modules in _shims aren't intended to be imported by SDK users.
3
+ */
4
+ export class MultipartBody {
5
+ constructor(body) {
6
+ this.body = body;
7
+ }
8
+ get [Symbol.toStringTag]() {
9
+ return 'MultipartBody';
10
+ }
11
+ }
12
+ //# sourceMappingURL=MultipartBody.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MultipartBody.mjs","sourceRoot":"","sources":["../src/_shims/MultipartBody.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,OAAO,aAAa;IACxB,YAAmB,IAAS;QAAT,SAAI,GAAJ,IAAI,CAAK;IAAG,CAAC;IAChC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC;QACtB,OAAO,eAAe,CAAC;IACzB,CAAC;CACF"}
@@ -0,0 +1,46 @@
1
+ # 👋 Wondering what everything in here does?
2
+
3
+ `@valtown/sdk` supports a wide variety of runtime environments like Node.js, Deno, Bun, browsers, and various
4
+ edge runtimes, as well as both CommonJS (CJS) and EcmaScript Modules (ESM).
5
+
6
+ To do this, `@valtown/sdk` provides shims for either using `node-fetch` when in Node (because `fetch` is still experimental there) or the global `fetch` API built into the environment when not in Node.
7
+
8
+ It uses [conditional exports](https://nodejs.org/api/packages.html#conditional-exports) to
9
+ automatically select the correct shims for each environment. However, conditional exports are a fairly new
10
+ feature and not supported everywhere. For instance, the TypeScript `"moduleResolution": "node"`
11
+
12
+ setting doesn't consult the `exports` map, compared to `"moduleResolution": "nodeNext"`, which does.
13
+ Unfortunately that's still the default setting, and it can result in errors like
14
+ getting the wrong raw `Response` type from `.asResponse()`, for example.
15
+
16
+ The user can work around these issues by manually importing one of:
17
+
18
+ - `import '@valtown/sdk/shims/node'`
19
+ - `import '@valtown/sdk/shims/web'`
20
+
21
+ All of the code here in `_shims` handles selecting the automatic default shims or manual overrides.
22
+
23
+ ### How it works - Runtime
24
+
25
+ Runtime shims get installed by calling `setShims` exported by `@valtown/sdk/_shims/registry`.
26
+
27
+ Manually importing `@valtown/sdk/shims/node` or `@valtown/sdk/shims/web`, calls `setShims` with the respective runtime shims.
28
+
29
+ All client code imports shims from `@valtown/sdk/_shims/index`, which:
30
+
31
+ - checks if shims have been set manually
32
+ - if not, calls `setShims` with the shims from `@valtown/sdk/_shims/auto/runtime`
33
+ - re-exports the installed shims from `@valtown/sdk/_shims/registry`.
34
+
35
+ `@valtown/sdk/_shims/auto/runtime` exports web runtime shims.
36
+ If the `node` export condition is set, the export map replaces it with `@valtown/sdk/_shims/auto/runtime-node`.
37
+
38
+ ### How it works - Type time
39
+
40
+ All client code imports shim types from `@valtown/sdk/_shims/index`, which selects the manual types from `@valtown/sdk/_shims/manual-types` if they have been declared, otherwise it exports the auto types from `@valtown/sdk/_shims/auto/types`.
41
+
42
+ `@valtown/sdk/_shims/manual-types` exports an empty namespace.
43
+ Manually importing `@valtown/sdk/shims/node` or `@valtown/sdk/shims/web` merges declarations into this empty namespace, so they get picked up by `@valtown/sdk/_shims/index`.
44
+
45
+ `@valtown/sdk/_shims/auto/types` exports web type definitions.
46
+ If the `node` export condition is set, the export map replaces it with `@valtown/sdk/_shims/auto/types-node`, though TS only picks this up if `"moduleResolution": "nodenext"` or `"moduleResolution": "bundler"`.
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Disclaimer: modules in _shims aren't intended to be imported by SDK users.
3
+ */
4
+ export * from "../bun-runtime.js";
5
+ //# sourceMappingURL=runtime-bun.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime-bun.d.ts","sourceRoot":"","sources":["../../src/_shims/auto/runtime-bun.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,gBAAgB,CAAC"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ /**
18
+ * Disclaimer: modules in _shims aren't intended to be imported by SDK users.
19
+ */
20
+ __exportStar(require("../bun-runtime.js"), exports);
21
+ //# sourceMappingURL=runtime-bun.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime-bun.js","sourceRoot":"","sources":["../../src/_shims/auto/runtime-bun.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,oDAA+B"}
@@ -0,0 +1,2 @@
1
+ export * from "../bun-runtime.mjs";
2
+ //# sourceMappingURL=runtime-bun.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime-bun.mjs","sourceRoot":"","sources":["../../src/_shims/auto/runtime-bun.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Disclaimer: modules in _shims aren't intended to be imported by SDK users.
3
+ */
4
+ export * from "../node-runtime.js";
5
+ //# sourceMappingURL=runtime-node.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime-node.d.ts","sourceRoot":"","sources":["../../src/_shims/auto/runtime-node.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ /**
18
+ * Disclaimer: modules in _shims aren't intended to be imported by SDK users.
19
+ */
20
+ __exportStar(require("../node-runtime.js"), exports);
21
+ //# sourceMappingURL=runtime-node.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime-node.js","sourceRoot":"","sources":["../../src/_shims/auto/runtime-node.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,qDAAgC"}
@@ -0,0 +1,2 @@
1
+ export * from "../node-runtime.mjs";
2
+ //# sourceMappingURL=runtime-node.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime-node.mjs","sourceRoot":"","sources":["../../src/_shims/auto/runtime-node.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Disclaimer: modules in _shims aren't intended to be imported by SDK users.
3
+ */
4
+ export * from "../web-runtime.js";
5
+ //# sourceMappingURL=runtime.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../src/_shims/auto/runtime.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,gBAAgB,CAAC"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ /**
18
+ * Disclaimer: modules in _shims aren't intended to be imported by SDK users.
19
+ */
20
+ __exportStar(require("../web-runtime.js"), exports);
21
+ //# sourceMappingURL=runtime.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../src/_shims/auto/runtime.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,oDAA+B"}
@@ -0,0 +1,2 @@
1
+ export * from "../web-runtime.mjs";
2
+ //# sourceMappingURL=runtime.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime.mjs","sourceRoot":"","sources":["../../src/_shims/auto/runtime.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Disclaimer: modules in _shims aren't intended to be imported by SDK users.
3
+ */
4
+ export * from "../node-types.js";
5
+ //# sourceMappingURL=types-node.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types-node.d.ts","sourceRoot":"","sources":["../../src/_shims/auto/types-node.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,eAAe,CAAC"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ /**
18
+ * Disclaimer: modules in _shims aren't intended to be imported by SDK users.
19
+ */
20
+ __exportStar(require("../node-types.js"), exports);
21
+ //# sourceMappingURL=types-node.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types-node.js","sourceRoot":"","sources":["../../src/_shims/auto/types-node.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,mDAA8B"}
@@ -0,0 +1,2 @@
1
+ export * from "../node-types.mjs";
2
+ //# sourceMappingURL=types-node.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types-node.mjs","sourceRoot":"","sources":["../../src/_shims/auto/types-node.ts"],"names":[],"mappings":""}