@aurora-interactive/fankare-api-sdk 0.0.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 (513) hide show
  1. package/FUNCTIONS.md +90 -0
  2. package/README.md +455 -0
  3. package/RUNTIMES.md +48 -0
  4. package/esm/core.d.ts +10 -0
  5. package/esm/core.d.ts.map +1 -0
  6. package/esm/core.js +13 -0
  7. package/esm/core.js.map +1 -0
  8. package/esm/funcs/authentication-login-user.d.ts +15 -0
  9. package/esm/funcs/authentication-login-user.d.ts.map +1 -0
  10. package/esm/funcs/authentication-login-user.js +78 -0
  11. package/esm/funcs/authentication-login-user.js.map +1 -0
  12. package/esm/funcs/authentication-register-user.d.ts +14 -0
  13. package/esm/funcs/authentication-register-user.d.ts.map +1 -0
  14. package/esm/funcs/authentication-register-user.js +77 -0
  15. package/esm/funcs/authentication-register-user.js.map +1 -0
  16. package/esm/funcs/custom-lists-add-list-member.d.ts +14 -0
  17. package/esm/funcs/custom-lists-add-list-member.d.ts.map +1 -0
  18. package/esm/funcs/custom-lists-add-list-member.js +87 -0
  19. package/esm/funcs/custom-lists-add-list-member.js.map +1 -0
  20. package/esm/funcs/custom-lists-create-list.d.ts +15 -0
  21. package/esm/funcs/custom-lists-create-list.d.ts.map +1 -0
  22. package/esm/funcs/custom-lists-create-list.js +78 -0
  23. package/esm/funcs/custom-lists-create-list.js.map +1 -0
  24. package/esm/funcs/custom-lists-get-list-members.d.ts +14 -0
  25. package/esm/funcs/custom-lists-get-list-members.d.ts.map +1 -0
  26. package/esm/funcs/custom-lists-get-list-members.js +86 -0
  27. package/esm/funcs/custom-lists-get-list-members.js.map +1 -0
  28. package/esm/funcs/custom-lists-get-lists.d.ts +14 -0
  29. package/esm/funcs/custom-lists-get-lists.d.ts.map +1 -0
  30. package/esm/funcs/custom-lists-get-lists.js +67 -0
  31. package/esm/funcs/custom-lists-get-lists.js.map +1 -0
  32. package/esm/funcs/custom-lists-remove-list-member.d.ts +13 -0
  33. package/esm/funcs/custom-lists-remove-list-member.d.ts.map +1 -0
  34. package/esm/funcs/custom-lists-remove-list-member.js +90 -0
  35. package/esm/funcs/custom-lists-remove-list-member.js.map +1 -0
  36. package/esm/funcs/posts-create-post.d.ts +18 -0
  37. package/esm/funcs/posts-create-post.d.ts.map +1 -0
  38. package/esm/funcs/posts-create-post.js +81 -0
  39. package/esm/funcs/posts-create-post.js.map +1 -0
  40. package/esm/funcs/posts-get-feed.d.ts +17 -0
  41. package/esm/funcs/posts-get-feed.d.ts.map +1 -0
  42. package/esm/funcs/posts-get-feed.js +88 -0
  43. package/esm/funcs/posts-get-feed.js.map +1 -0
  44. package/esm/funcs/posts-get-list-feed.d.ts +14 -0
  45. package/esm/funcs/posts-get-list-feed.d.ts.map +1 -0
  46. package/esm/funcs/posts-get-list-feed.js +91 -0
  47. package/esm/funcs/posts-get-list-feed.js.map +1 -0
  48. package/esm/funcs/subscriptions-subscribe-to-user.d.ts +13 -0
  49. package/esm/funcs/subscriptions-subscribe-to-user.d.ts.map +1 -0
  50. package/esm/funcs/subscriptions-subscribe-to-user.js +85 -0
  51. package/esm/funcs/subscriptions-subscribe-to-user.js.map +1 -0
  52. package/esm/funcs/subscriptions-unsubscribe-from-user.d.ts +13 -0
  53. package/esm/funcs/subscriptions-unsubscribe-from-user.d.ts.map +1 -0
  54. package/esm/funcs/subscriptions-unsubscribe-from-user.js +85 -0
  55. package/esm/funcs/subscriptions-unsubscribe-from-user.js.map +1 -0
  56. package/esm/hooks/hooks.d.ts +25 -0
  57. package/esm/hooks/hooks.d.ts.map +1 -0
  58. package/esm/hooks/hooks.js +80 -0
  59. package/esm/hooks/hooks.js.map +1 -0
  60. package/esm/hooks/index.d.ts +3 -0
  61. package/esm/hooks/index.d.ts.map +1 -0
  62. package/esm/hooks/index.js +6 -0
  63. package/esm/hooks/index.js.map +1 -0
  64. package/esm/hooks/types.d.ts +77 -0
  65. package/esm/hooks/types.d.ts.map +1 -0
  66. package/esm/hooks/types.js +5 -0
  67. package/esm/hooks/types.js.map +1 -0
  68. package/esm/index.d.ts +6 -0
  69. package/esm/index.d.ts.map +1 -0
  70. package/esm/index.js +8 -0
  71. package/esm/index.js.map +1 -0
  72. package/esm/lib/base64.d.ts +10 -0
  73. package/esm/lib/base64.d.ts.map +1 -0
  74. package/esm/lib/base64.js +31 -0
  75. package/esm/lib/base64.js.map +1 -0
  76. package/esm/lib/config.d.ts +38 -0
  77. package/esm/lib/config.d.ts.map +1 -0
  78. package/esm/lib/config.js +34 -0
  79. package/esm/lib/config.js.map +1 -0
  80. package/esm/lib/encodings.d.ts +54 -0
  81. package/esm/lib/encodings.d.ts.map +1 -0
  82. package/esm/lib/encodings.js +391 -0
  83. package/esm/lib/encodings.js.map +1 -0
  84. package/esm/lib/files.d.ts +26 -0
  85. package/esm/lib/files.d.ts.map +1 -0
  86. package/esm/lib/files.js +91 -0
  87. package/esm/lib/files.js.map +1 -0
  88. package/esm/lib/http.d.ts +67 -0
  89. package/esm/lib/http.d.ts.map +1 -0
  90. package/esm/lib/http.js +209 -0
  91. package/esm/lib/http.js.map +1 -0
  92. package/esm/lib/logger.d.ts +6 -0
  93. package/esm/lib/logger.d.ts.map +1 -0
  94. package/esm/lib/logger.js +5 -0
  95. package/esm/lib/logger.js.map +1 -0
  96. package/esm/lib/matchers.d.ts +59 -0
  97. package/esm/lib/matchers.d.ts.map +1 -0
  98. package/esm/lib/matchers.js +202 -0
  99. package/esm/lib/matchers.js.map +1 -0
  100. package/esm/lib/primitives.d.ts +27 -0
  101. package/esm/lib/primitives.d.ts.map +1 -0
  102. package/esm/lib/primitives.js +120 -0
  103. package/esm/lib/primitives.js.map +1 -0
  104. package/esm/lib/retries.d.ts +38 -0
  105. package/esm/lib/retries.d.ts.map +1 -0
  106. package/esm/lib/retries.js +157 -0
  107. package/esm/lib/retries.js.map +1 -0
  108. package/esm/lib/schemas.d.ts +21 -0
  109. package/esm/lib/schemas.d.ts.map +1 -0
  110. package/esm/lib/schemas.js +57 -0
  111. package/esm/lib/schemas.js.map +1 -0
  112. package/esm/lib/sdks.d.ts +63 -0
  113. package/esm/lib/sdks.d.ts.map +1 -0
  114. package/esm/lib/sdks.js +290 -0
  115. package/esm/lib/sdks.js.map +1 -0
  116. package/esm/lib/security.d.ts +83 -0
  117. package/esm/lib/security.d.ts.map +1 -0
  118. package/esm/lib/security.js +148 -0
  119. package/esm/lib/security.js.map +1 -0
  120. package/esm/lib/url.d.ts +5 -0
  121. package/esm/lib/url.d.ts.map +1 -0
  122. package/esm/lib/url.js +24 -0
  123. package/esm/lib/url.js.map +1 -0
  124. package/esm/models/create-post-request.d.ts +22 -0
  125. package/esm/models/create-post-request.d.ts.map +1 -0
  126. package/esm/models/create-post-request.js +19 -0
  127. package/esm/models/create-post-request.js.map +1 -0
  128. package/esm/models/custom-list.d.ts +12 -0
  129. package/esm/models/custom-list.d.ts.map +1 -0
  130. package/esm/models/custom-list.js +17 -0
  131. package/esm/models/custom-list.js.map +1 -0
  132. package/esm/models/errors/fankare-sdk-default-error.d.ts +10 -0
  133. package/esm/models/errors/fankare-sdk-default-error.d.ts.map +1 -0
  134. package/esm/models/errors/fankare-sdk-default-error.js +30 -0
  135. package/esm/models/errors/fankare-sdk-default-error.js.map +1 -0
  136. package/esm/models/errors/fankare-sdk-error.d.ts +19 -0
  137. package/esm/models/errors/fankare-sdk-error.d.ts.map +1 -0
  138. package/esm/models/errors/fankare-sdk-error.js +26 -0
  139. package/esm/models/errors/fankare-sdk-error.js.map +1 -0
  140. package/esm/models/errors/http-client-errors.d.ts +44 -0
  141. package/esm/models/errors/http-client-errors.d.ts.map +1 -0
  142. package/esm/models/errors/http-client-errors.js +56 -0
  143. package/esm/models/errors/http-client-errors.js.map +1 -0
  144. package/esm/models/errors/index.d.ts +6 -0
  145. package/esm/models/errors/index.d.ts.map +1 -0
  146. package/esm/models/errors/index.js +9 -0
  147. package/esm/models/errors/index.js.map +1 -0
  148. package/esm/models/errors/response-validation-error.d.ts +26 -0
  149. package/esm/models/errors/response-validation-error.d.ts.map +1 -0
  150. package/esm/models/errors/response-validation-error.js +37 -0
  151. package/esm/models/errors/response-validation-error.js.map +1 -0
  152. package/esm/models/errors/sdk-validation-error.d.ts +21 -0
  153. package/esm/models/errors/sdk-validation-error.d.ts.map +1 -0
  154. package/esm/models/errors/sdk-validation-error.js +52 -0
  155. package/esm/models/errors/sdk-validation-error.js.map +1 -0
  156. package/esm/models/index.d.ts +8 -0
  157. package/esm/models/index.d.ts.map +1 -0
  158. package/esm/models/index.js +11 -0
  159. package/esm/models/index.js.map +1 -0
  160. package/esm/models/login-request.d.ts +14 -0
  161. package/esm/models/login-request.d.ts.map +1 -0
  162. package/esm/models/login-request.js +13 -0
  163. package/esm/models/login-request.js.map +1 -0
  164. package/esm/models/operations/add-list-member.d.ts +24 -0
  165. package/esm/models/operations/add-list-member.d.ts.map +1 -0
  166. package/esm/models/operations/add-list-member.js +20 -0
  167. package/esm/models/operations/add-list-member.js.map +1 -0
  168. package/esm/models/operations/create-list.d.ts +12 -0
  169. package/esm/models/operations/create-list.d.ts.map +1 -0
  170. package/esm/models/operations/create-list.js +12 -0
  171. package/esm/models/operations/create-list.js.map +1 -0
  172. package/esm/models/operations/create-post.d.ts +17 -0
  173. package/esm/models/operations/create-post.d.ts.map +1 -0
  174. package/esm/models/operations/create-post.js +15 -0
  175. package/esm/models/operations/create-post.js.map +1 -0
  176. package/esm/models/operations/get-feed.d.ts +30 -0
  177. package/esm/models/operations/get-feed.d.ts.map +1 -0
  178. package/esm/models/operations/get-feed.js +24 -0
  179. package/esm/models/operations/get-feed.js.map +1 -0
  180. package/esm/models/operations/get-list-feed.d.ts +14 -0
  181. package/esm/models/operations/get-list-feed.d.ts.map +1 -0
  182. package/esm/models/operations/get-list-feed.js +13 -0
  183. package/esm/models/operations/get-list-feed.js.map +1 -0
  184. package/esm/models/operations/get-list-members.d.ts +12 -0
  185. package/esm/models/operations/get-list-members.d.ts.map +1 -0
  186. package/esm/models/operations/get-list-members.js +12 -0
  187. package/esm/models/operations/get-list-members.js.map +1 -0
  188. package/esm/models/operations/index.d.ts +11 -0
  189. package/esm/models/operations/index.d.ts.map +1 -0
  190. package/esm/models/operations/index.js +14 -0
  191. package/esm/models/operations/index.js.map +1 -0
  192. package/esm/models/operations/login-user.d.ts +18 -0
  193. package/esm/models/operations/login-user.d.ts.map +1 -0
  194. package/esm/models/operations/login-user.js +16 -0
  195. package/esm/models/operations/login-user.js.map +1 -0
  196. package/esm/models/operations/remove-list-member.d.ts +17 -0
  197. package/esm/models/operations/remove-list-member.d.ts.map +1 -0
  198. package/esm/models/operations/remove-list-member.js +13 -0
  199. package/esm/models/operations/remove-list-member.js.map +1 -0
  200. package/esm/models/operations/subscribe-to-user.d.ts +15 -0
  201. package/esm/models/operations/subscribe-to-user.d.ts.map +1 -0
  202. package/esm/models/operations/subscribe-to-user.js +12 -0
  203. package/esm/models/operations/subscribe-to-user.js.map +1 -0
  204. package/esm/models/operations/unsubscribe-from-user.d.ts +15 -0
  205. package/esm/models/operations/unsubscribe-from-user.d.ts.map +1 -0
  206. package/esm/models/operations/unsubscribe-from-user.js +12 -0
  207. package/esm/models/operations/unsubscribe-from-user.js.map +1 -0
  208. package/esm/models/post.d.ts +44 -0
  209. package/esm/models/post.d.ts.map +1 -0
  210. package/esm/models/post.js +38 -0
  211. package/esm/models/post.js.map +1 -0
  212. package/esm/models/register-request.d.ts +16 -0
  213. package/esm/models/register-request.d.ts.map +1 -0
  214. package/esm/models/register-request.js +14 -0
  215. package/esm/models/register-request.js.map +1 -0
  216. package/esm/models/security.d.ts +12 -0
  217. package/esm/models/security.d.ts.map +1 -0
  218. package/esm/models/security.js +17 -0
  219. package/esm/models/security.js.map +1 -0
  220. package/esm/models/user.d.ts +13 -0
  221. package/esm/models/user.d.ts.map +1 -0
  222. package/esm/models/user.js +17 -0
  223. package/esm/models/user.js.map +1 -0
  224. package/esm/sdk/authentication.d.ts +14 -0
  225. package/esm/sdk/authentication.d.ts.map +1 -0
  226. package/esm/sdk/authentication.js +22 -0
  227. package/esm/sdk/authentication.js.map +1 -0
  228. package/esm/sdk/custom-lists.d.ts +26 -0
  229. package/esm/sdk/custom-lists.d.ts.map +1 -0
  230. package/esm/sdk/custom-lists.js +43 -0
  231. package/esm/sdk/custom-lists.js.map +1 -0
  232. package/esm/sdk/index.d.ts +2 -0
  233. package/esm/sdk/index.d.ts.map +1 -0
  234. package/esm/sdk/index.js +5 -0
  235. package/esm/sdk/index.js.map +1 -0
  236. package/esm/sdk/posts.d.ts +24 -0
  237. package/esm/sdk/posts.d.ts.map +1 -0
  238. package/esm/sdk/posts.js +35 -0
  239. package/esm/sdk/posts.js.map +1 -0
  240. package/esm/sdk/sdk.d.ts +16 -0
  241. package/esm/sdk/sdk.d.ts.map +1 -0
  242. package/esm/sdk/sdk.js +27 -0
  243. package/esm/sdk/sdk.js.map +1 -0
  244. package/esm/sdk/subscriptions.d.ts +12 -0
  245. package/esm/sdk/subscriptions.d.ts.map +1 -0
  246. package/esm/sdk/subscriptions.js +22 -0
  247. package/esm/sdk/subscriptions.js.map +1 -0
  248. package/esm/types/async.d.ts +23 -0
  249. package/esm/types/async.d.ts.map +1 -0
  250. package/esm/types/async.js +28 -0
  251. package/esm/types/async.js.map +1 -0
  252. package/esm/types/blobs.d.ts +4 -0
  253. package/esm/types/blobs.d.ts.map +1 -0
  254. package/esm/types/blobs.js +25 -0
  255. package/esm/types/blobs.js.map +1 -0
  256. package/esm/types/const-date-time.d.ts +3 -0
  257. package/esm/types/const-date-time.d.ts.map +1 -0
  258. package/esm/types/const-date-time.js +10 -0
  259. package/esm/types/const-date-time.js.map +1 -0
  260. package/esm/types/default-to-zero-value.d.ts +12 -0
  261. package/esm/types/default-to-zero-value.d.ts.map +1 -0
  262. package/esm/types/default-to-zero-value.js +31 -0
  263. package/esm/types/default-to-zero-value.js.map +1 -0
  264. package/esm/types/enums.d.ts +9 -0
  265. package/esm/types/enums.d.ts.map +1 -0
  266. package/esm/types/enums.js +27 -0
  267. package/esm/types/enums.js.map +1 -0
  268. package/esm/types/fp.d.ts +31 -0
  269. package/esm/types/fp.d.ts.map +1 -0
  270. package/esm/types/fp.js +31 -0
  271. package/esm/types/fp.js.map +1 -0
  272. package/esm/types/index.d.ts +10 -0
  273. package/esm/types/index.d.ts.map +1 -0
  274. package/esm/types/index.js +10 -0
  275. package/esm/types/index.js.map +1 -0
  276. package/esm/types/operations.d.ts +27 -0
  277. package/esm/types/operations.d.ts.map +1 -0
  278. package/esm/types/operations.js +77 -0
  279. package/esm/types/operations.js.map +1 -0
  280. package/esm/types/primitives.d.ts +9 -0
  281. package/esm/types/primitives.d.ts.map +1 -0
  282. package/esm/types/primitives.js +109 -0
  283. package/esm/types/primitives.js.map +1 -0
  284. package/esm/types/rfcdate.d.ts +21 -0
  285. package/esm/types/rfcdate.d.ts.map +1 -0
  286. package/esm/types/rfcdate.js +43 -0
  287. package/esm/types/rfcdate.js.map +1 -0
  288. package/esm/types/smart-union.d.ts +7 -0
  289. package/esm/types/smart-union.d.ts.map +1 -0
  290. package/esm/types/smart-union.js +117 -0
  291. package/esm/types/smart-union.js.map +1 -0
  292. package/esm/types/streams.d.ts +2 -0
  293. package/esm/types/streams.d.ts.map +1 -0
  294. package/esm/types/streams.js +15 -0
  295. package/esm/types/streams.js.map +1 -0
  296. package/esm/types/unrecognized.d.ts +16 -0
  297. package/esm/types/unrecognized.d.ts.map +1 -0
  298. package/esm/types/unrecognized.js +31 -0
  299. package/esm/types/unrecognized.js.map +1 -0
  300. package/examples/authenticationRegisterUser.example.ts +29 -0
  301. package/examples/node_modules/@types/node/assert/strict.d.ts +8 -0
  302. package/examples/node_modules/@types/node/assert.d.ts +1062 -0
  303. package/examples/node_modules/@types/node/async_hooks.d.ts +605 -0
  304. package/examples/node_modules/@types/node/buffer.buffer.d.ts +471 -0
  305. package/examples/node_modules/@types/node/buffer.d.ts +1936 -0
  306. package/examples/node_modules/@types/node/child_process.d.ts +1475 -0
  307. package/examples/node_modules/@types/node/cluster.d.ts +577 -0
  308. package/examples/node_modules/@types/node/compatibility/disposable.d.ts +16 -0
  309. package/examples/node_modules/@types/node/compatibility/index.d.ts +9 -0
  310. package/examples/node_modules/@types/node/compatibility/indexable.d.ts +20 -0
  311. package/examples/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
  312. package/examples/node_modules/@types/node/console.d.ts +452 -0
  313. package/examples/node_modules/@types/node/constants.d.ts +21 -0
  314. package/examples/node_modules/@types/node/crypto.d.ts +4590 -0
  315. package/examples/node_modules/@types/node/dgram.d.ts +597 -0
  316. package/examples/node_modules/@types/node/diagnostics_channel.d.ts +578 -0
  317. package/examples/node_modules/@types/node/dns/promises.d.ts +479 -0
  318. package/examples/node_modules/@types/node/dns.d.ts +871 -0
  319. package/examples/node_modules/@types/node/domain.d.ts +170 -0
  320. package/examples/node_modules/@types/node/events.d.ts +977 -0
  321. package/examples/node_modules/@types/node/fs/promises.d.ts +1270 -0
  322. package/examples/node_modules/@types/node/fs.d.ts +4375 -0
  323. package/examples/node_modules/@types/node/globals.d.ts +172 -0
  324. package/examples/node_modules/@types/node/globals.typedarray.d.ts +38 -0
  325. package/examples/node_modules/@types/node/http.d.ts +2049 -0
  326. package/examples/node_modules/@types/node/http2.d.ts +2712 -0
  327. package/examples/node_modules/@types/node/https.d.ts +578 -0
  328. package/examples/node_modules/@types/node/index.d.ts +93 -0
  329. package/examples/node_modules/@types/node/inspector.generated.d.ts +3966 -0
  330. package/examples/node_modules/@types/node/module.d.ts +539 -0
  331. package/examples/node_modules/@types/node/net.d.ts +1031 -0
  332. package/examples/node_modules/@types/node/os.d.ts +506 -0
  333. package/examples/node_modules/@types/node/path.d.ts +200 -0
  334. package/examples/node_modules/@types/node/perf_hooks.d.ts +961 -0
  335. package/examples/node_modules/@types/node/process.d.ts +1961 -0
  336. package/examples/node_modules/@types/node/punycode.d.ts +117 -0
  337. package/examples/node_modules/@types/node/querystring.d.ts +152 -0
  338. package/examples/node_modules/@types/node/readline/promises.d.ts +162 -0
  339. package/examples/node_modules/@types/node/readline.d.ts +589 -0
  340. package/examples/node_modules/@types/node/repl.d.ts +430 -0
  341. package/examples/node_modules/@types/node/sea.d.ts +153 -0
  342. package/examples/node_modules/@types/node/stream/consumers.d.ts +38 -0
  343. package/examples/node_modules/@types/node/stream/promises.d.ts +90 -0
  344. package/examples/node_modules/@types/node/stream/web.d.ts +533 -0
  345. package/examples/node_modules/@types/node/stream.d.ts +1698 -0
  346. package/examples/node_modules/@types/node/string_decoder.d.ts +67 -0
  347. package/examples/node_modules/@types/node/test.d.ts +1787 -0
  348. package/examples/node_modules/@types/node/timers/promises.d.ts +108 -0
  349. package/examples/node_modules/@types/node/timers.d.ts +286 -0
  350. package/examples/node_modules/@types/node/tls.d.ts +1259 -0
  351. package/examples/node_modules/@types/node/trace_events.d.ts +197 -0
  352. package/examples/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +468 -0
  353. package/examples/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +34 -0
  354. package/examples/node_modules/@types/node/ts5.6/index.d.ts +93 -0
  355. package/examples/node_modules/@types/node/tty.d.ts +208 -0
  356. package/examples/node_modules/@types/node/url.d.ts +964 -0
  357. package/examples/node_modules/@types/node/util.d.ts +2331 -0
  358. package/examples/node_modules/@types/node/v8.d.ts +809 -0
  359. package/examples/node_modules/@types/node/vm.d.ts +1001 -0
  360. package/examples/node_modules/@types/node/wasi.d.ts +181 -0
  361. package/examples/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
  362. package/examples/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
  363. package/examples/node_modules/@types/node/web-globals/events.d.ts +97 -0
  364. package/examples/node_modules/@types/node/web-globals/fetch.d.ts +55 -0
  365. package/examples/node_modules/@types/node/worker_threads.d.ts +715 -0
  366. package/examples/node_modules/@types/node/zlib.d.ts +598 -0
  367. package/examples/node_modules/dotenv/config.d.ts +1 -0
  368. package/examples/node_modules/dotenv/config.js +9 -0
  369. package/examples/node_modules/dotenv/lib/cli-options.js +17 -0
  370. package/examples/node_modules/dotenv/lib/env-options.js +28 -0
  371. package/examples/node_modules/dotenv/lib/main.d.ts +162 -0
  372. package/examples/node_modules/dotenv/lib/main.js +386 -0
  373. package/examples/node_modules/esbuild/install.js +300 -0
  374. package/examples/node_modules/esbuild/lib/main.d.ts +716 -0
  375. package/examples/node_modules/esbuild/lib/main.js +2532 -0
  376. package/examples/node_modules/fsevents/fsevents.d.ts +46 -0
  377. package/examples/node_modules/fsevents/fsevents.js +83 -0
  378. package/examples/node_modules/tsx/dist/cjs/api/index.mjs +1 -0
  379. package/examples/node_modules/tsx/dist/cjs/index.mjs +1 -0
  380. package/examples/node_modules/tsx/dist/cli.mjs +55 -0
  381. package/examples/node_modules/tsx/dist/client-D_mPDF5S.mjs +1 -0
  382. package/examples/node_modules/tsx/dist/esm/api/index.mjs +1 -0
  383. package/examples/node_modules/tsx/dist/esm/index.mjs +1 -0
  384. package/examples/node_modules/tsx/dist/get-pipe-path-_tAJyU_v.mjs +1 -0
  385. package/examples/node_modules/tsx/dist/index-XurvG3JN.mjs +14 -0
  386. package/examples/node_modules/tsx/dist/index-gbaejti9.mjs +1 -0
  387. package/examples/node_modules/tsx/dist/lexer-DQCqS3nf.mjs +3 -0
  388. package/examples/node_modules/tsx/dist/loader.mjs +1 -0
  389. package/examples/node_modules/tsx/dist/node-features-B9BBLzwu.mjs +1 -0
  390. package/examples/node_modules/tsx/dist/package-Bj47PlGH.mjs +1 -0
  391. package/examples/node_modules/tsx/dist/patch-repl.mjs +1 -0
  392. package/examples/node_modules/tsx/dist/preflight.mjs +1 -0
  393. package/examples/node_modules/tsx/dist/register-BnTWPeIB.mjs +10 -0
  394. package/examples/node_modules/tsx/dist/register-CqMfTiWi.mjs +2 -0
  395. package/examples/node_modules/tsx/dist/repl.mjs +3 -0
  396. package/examples/node_modules/tsx/dist/require-DzmC1hVr.mjs +1 -0
  397. package/examples/node_modules/tsx/dist/suppress-warnings.mjs +1 -0
  398. package/examples/node_modules/tsx/dist/temporary-directory-BDDVQOvU.mjs +1 -0
  399. package/examples/node_modules/tsx/dist/types-Cxp8y2TL.d.ts +5 -0
  400. package/examples/node_modules/undici-types/agent.d.ts +31 -0
  401. package/examples/node_modules/undici-types/api.d.ts +43 -0
  402. package/examples/node_modules/undici-types/balanced-pool.d.ts +29 -0
  403. package/examples/node_modules/undici-types/cache.d.ts +36 -0
  404. package/examples/node_modules/undici-types/client.d.ts +108 -0
  405. package/examples/node_modules/undici-types/connector.d.ts +34 -0
  406. package/examples/node_modules/undici-types/content-type.d.ts +21 -0
  407. package/examples/node_modules/undici-types/cookies.d.ts +28 -0
  408. package/examples/node_modules/undici-types/diagnostics-channel.d.ts +66 -0
  409. package/examples/node_modules/undici-types/dispatcher.d.ts +256 -0
  410. package/examples/node_modules/undici-types/env-http-proxy-agent.d.ts +21 -0
  411. package/examples/node_modules/undici-types/errors.d.ts +149 -0
  412. package/examples/node_modules/undici-types/eventsource.d.ts +61 -0
  413. package/examples/node_modules/undici-types/fetch.d.ts +209 -0
  414. package/examples/node_modules/undici-types/file.d.ts +39 -0
  415. package/examples/node_modules/undici-types/filereader.d.ts +54 -0
  416. package/examples/node_modules/undici-types/formdata.d.ts +108 -0
  417. package/examples/node_modules/undici-types/global-dispatcher.d.ts +9 -0
  418. package/examples/node_modules/undici-types/global-origin.d.ts +7 -0
  419. package/examples/node_modules/undici-types/handlers.d.ts +15 -0
  420. package/examples/node_modules/undici-types/header.d.ts +4 -0
  421. package/examples/node_modules/undici-types/index.d.ts +71 -0
  422. package/examples/node_modules/undici-types/interceptors.d.ts +17 -0
  423. package/examples/node_modules/undici-types/mock-agent.d.ts +50 -0
  424. package/examples/node_modules/undici-types/mock-client.d.ts +25 -0
  425. package/examples/node_modules/undici-types/mock-errors.d.ts +12 -0
  426. package/examples/node_modules/undici-types/mock-interceptor.d.ts +93 -0
  427. package/examples/node_modules/undici-types/mock-pool.d.ts +25 -0
  428. package/examples/node_modules/undici-types/patch.d.ts +33 -0
  429. package/examples/node_modules/undici-types/pool-stats.d.ts +19 -0
  430. package/examples/node_modules/undici-types/pool.d.ts +39 -0
  431. package/examples/node_modules/undici-types/proxy-agent.d.ts +28 -0
  432. package/examples/node_modules/undici-types/readable.d.ts +65 -0
  433. package/examples/node_modules/undici-types/retry-agent.d.ts +8 -0
  434. package/examples/node_modules/undici-types/retry-handler.d.ts +116 -0
  435. package/examples/node_modules/undici-types/util.d.ts +18 -0
  436. package/examples/node_modules/undici-types/webidl.d.ts +228 -0
  437. package/examples/node_modules/undici-types/websocket.d.ts +150 -0
  438. package/jsr.json +27 -0
  439. package/package.json +62 -0
  440. package/src/core.ts +13 -0
  441. package/src/funcs/authentication-login-user.ts +161 -0
  442. package/src/funcs/authentication-register-user.ts +160 -0
  443. package/src/funcs/custom-lists-add-list-member.ts +174 -0
  444. package/src/funcs/custom-lists-create-list.ts +161 -0
  445. package/src/funcs/custom-lists-get-list-members.ts +170 -0
  446. package/src/funcs/custom-lists-get-lists.ts +142 -0
  447. package/src/funcs/custom-lists-remove-list-member.ts +179 -0
  448. package/src/funcs/posts-create-post.ts +164 -0
  449. package/src/funcs/posts-get-feed.ts +177 -0
  450. package/src/funcs/posts-get-list-feed.ts +179 -0
  451. package/src/funcs/subscriptions-subscribe-to-user.ts +169 -0
  452. package/src/funcs/subscriptions-unsubscribe-from-user.ts +170 -0
  453. package/src/hooks/hooks.ts +129 -0
  454. package/src/hooks/index.ts +6 -0
  455. package/src/hooks/types.ts +108 -0
  456. package/src/index.ts +9 -0
  457. package/src/lib/base64.ts +39 -0
  458. package/src/lib/config.ts +67 -0
  459. package/src/lib/encodings.ts +529 -0
  460. package/src/lib/files.ts +104 -0
  461. package/src/lib/http.ts +323 -0
  462. package/src/lib/logger.ts +9 -0
  463. package/src/lib/matchers.ts +353 -0
  464. package/src/lib/primitives.ts +166 -0
  465. package/src/lib/retries.ts +226 -0
  466. package/src/lib/schemas.ts +94 -0
  467. package/src/lib/sdks.ts +438 -0
  468. package/src/lib/security.ts +274 -0
  469. package/src/lib/url.ts +35 -0
  470. package/src/models/create-post-request.ts +47 -0
  471. package/src/models/custom-list.ts +33 -0
  472. package/src/models/errors/fankare-sdk-default-error.ts +40 -0
  473. package/src/models/errors/fankare-sdk-error.ts +35 -0
  474. package/src/models/errors/http-client-errors.ts +62 -0
  475. package/src/models/errors/index.ts +9 -0
  476. package/src/models/errors/response-validation-error.ts +50 -0
  477. package/src/models/errors/sdk-validation-error.ts +54 -0
  478. package/src/models/index.ts +11 -0
  479. package/src/models/login-request.ts +29 -0
  480. package/src/models/operations/add-list-member.ts +58 -0
  481. package/src/models/operations/create-list.ts +30 -0
  482. package/src/models/operations/create-post.ts +39 -0
  483. package/src/models/operations/get-feed.ts +64 -0
  484. package/src/models/operations/get-list-feed.ts +33 -0
  485. package/src/models/operations/get-list-members.ts +30 -0
  486. package/src/models/operations/index.ts +14 -0
  487. package/src/models/operations/login-user.ts +40 -0
  488. package/src/models/operations/remove-list-member.ts +36 -0
  489. package/src/models/operations/subscribe-to-user.ts +33 -0
  490. package/src/models/operations/unsubscribe-from-user.ts +33 -0
  491. package/src/models/post.ts +77 -0
  492. package/src/models/register-request.ts +34 -0
  493. package/src/models/security.ts +34 -0
  494. package/src/models/user.ts +34 -0
  495. package/src/sdk/authentication.ts +40 -0
  496. package/src/sdk/custom-lists.ts +87 -0
  497. package/src/sdk/index.ts +5 -0
  498. package/src/sdk/posts.ts +65 -0
  499. package/src/sdk/sdk.ts +31 -0
  500. package/src/sdk/subscriptions.ts +38 -0
  501. package/src/types/async.ts +69 -0
  502. package/src/types/blobs.ts +33 -0
  503. package/src/types/const-date-time.ts +15 -0
  504. package/src/types/default-to-zero-value.ts +33 -0
  505. package/src/types/enums.ts +45 -0
  506. package/src/types/fp.ts +50 -0
  507. package/src/types/index.ts +13 -0
  508. package/src/types/operations.ts +105 -0
  509. package/src/types/primitives.ts +140 -0
  510. package/src/types/rfcdate.ts +54 -0
  511. package/src/types/smart-union.ts +153 -0
  512. package/src/types/streams.ts +21 -0
  513. package/src/types/unrecognized.ts +35 -0
@@ -0,0 +1,22 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import { authenticationLoginUser } from "../funcs/authentication-login-user.js";
5
+ import { authenticationRegisterUser } from "../funcs/authentication-register-user.js";
6
+ import { ClientSDK } from "../lib/sdks.js";
7
+ import { unwrapAsync } from "../types/fp.js";
8
+ export class Authentication extends ClientSDK {
9
+ /**
10
+ * Register a new user
11
+ */
12
+ async registerUser(request, options) {
13
+ return unwrapAsync(authenticationRegisterUser(this, request, options));
14
+ }
15
+ /**
16
+ * Authenticate user and receive a token
17
+ */
18
+ async loginUser(request, options) {
19
+ return unwrapAsync(authenticationLoginUser(this, request, options));
20
+ }
21
+ }
22
+ //# sourceMappingURL=authentication.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authentication.js","sourceRoot":"","sources":["../../src/sdk/authentication.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,0BAA0B,EAAE,MAAM,0CAA0C,CAAC;AACtF,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAG3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,cAAe,SAAQ,SAAS;IAC3C;;OAEG;IACH,KAAK,CAAC,YAAY,CAChB,OAA+B,EAC/B,OAAwB,EACF;QACtB,OAAO,WAAW,CAAC,0BAA0B,CAC3C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;IAED;;OAEG;IACH,KAAK,CAAC,SAAS,CACb,OAA4B,EAC5B,OAAwB,EACe;QACvC,OAAO,WAAW,CAAC,uBAAuB,CACxC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;CACF"}
@@ -0,0 +1,26 @@
1
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
2
+ import * as models from "../models/index.js";
3
+ import * as operations from "../models/operations/index.js";
4
+ export declare class CustomLists extends ClientSDK {
5
+ /**
6
+ * Get all custom lists created by the user
7
+ */
8
+ getLists(options?: RequestOptions): Promise<Array<models.CustomList>>;
9
+ /**
10
+ * Create a new custom grouping list
11
+ */
12
+ createList(request: operations.CreateListRequest, options?: RequestOptions): Promise<models.CustomList>;
13
+ /**
14
+ * Get all members belonging to a custom list
15
+ */
16
+ getListMembers(listId: number, options?: RequestOptions): Promise<Array<models.User>>;
17
+ /**
18
+ * Add a user to a custom list
19
+ */
20
+ addListMember(listId: number, body: operations.AddListMemberRequestBody, options?: RequestOptions): Promise<void>;
21
+ /**
22
+ * Remove a user from a custom list
23
+ */
24
+ removeListMember(listId: number, userId: number, options?: RequestOptions): Promise<void>;
25
+ }
26
+ //# sourceMappingURL=custom-lists.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"custom-lists.d.ts","sourceRoot":"","sources":["../../src/sdk/custom-lists.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,WAAY,SAAQ,SAAS;IACxC;;OAEG;IACG,QAAQ,CACZ,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAKnC;IAED;;OAEG;IACG,UAAU,CACd,OAAO,EAAE,UAAU,CAAC,iBAAiB,EACrC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC,CAM5B;IAED;;OAEG;IACG,cAAc,CAClB,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAM7B;IAED;;OAEG;IACG,aAAa,CACjB,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,UAAU,CAAC,wBAAwB,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,IAAI,CAAC,CAOf;IAED;;OAEG;IACG,gBAAgB,CACpB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,IAAI,CAAC,CAOf;CACF"}
@@ -0,0 +1,43 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import { customListsAddListMember } from "../funcs/custom-lists-add-list-member.js";
5
+ import { customListsCreateList } from "../funcs/custom-lists-create-list.js";
6
+ import { customListsGetListMembers } from "../funcs/custom-lists-get-list-members.js";
7
+ import { customListsGetLists } from "../funcs/custom-lists-get-lists.js";
8
+ import { customListsRemoveListMember } from "../funcs/custom-lists-remove-list-member.js";
9
+ import { ClientSDK } from "../lib/sdks.js";
10
+ import { unwrapAsync } from "../types/fp.js";
11
+ export class CustomLists extends ClientSDK {
12
+ /**
13
+ * Get all custom lists created by the user
14
+ */
15
+ async getLists(options) {
16
+ return unwrapAsync(customListsGetLists(this, options));
17
+ }
18
+ /**
19
+ * Create a new custom grouping list
20
+ */
21
+ async createList(request, options) {
22
+ return unwrapAsync(customListsCreateList(this, request, options));
23
+ }
24
+ /**
25
+ * Get all members belonging to a custom list
26
+ */
27
+ async getListMembers(listId, options) {
28
+ return unwrapAsync(customListsGetListMembers(this, listId, options));
29
+ }
30
+ /**
31
+ * Add a user to a custom list
32
+ */
33
+ async addListMember(listId, body, options) {
34
+ return unwrapAsync(customListsAddListMember(this, listId, body, options));
35
+ }
36
+ /**
37
+ * Remove a user from a custom list
38
+ */
39
+ async removeListMember(listId, userId, options) {
40
+ return unwrapAsync(customListsRemoveListMember(this, listId, userId, options));
41
+ }
42
+ }
43
+ //# sourceMappingURL=custom-lists.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"custom-lists.js","sourceRoot":"","sources":["../../src/sdk/custom-lists.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AACpF,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AACtF,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,2BAA2B,EAAE,MAAM,6CAA6C,CAAC;AAC1F,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAG3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,WAAY,SAAQ,SAAS;IACxC;;OAEG;IACH,KAAK,CAAC,QAAQ,CACZ,OAAwB,EACW;QACnC,OAAO,WAAW,CAAC,mBAAmB,CACpC,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;IAED;;OAEG;IACH,KAAK,CAAC,UAAU,CACd,OAAqC,EACrC,OAAwB,EACI;QAC5B,OAAO,WAAW,CAAC,qBAAqB,CACtC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;IAED;;OAEG;IACH,KAAK,CAAC,cAAc,CAClB,MAAc,EACd,OAAwB,EACK;QAC7B,OAAO,WAAW,CAAC,yBAAyB,CAC1C,IAAI,EACJ,MAAM,EACN,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;IAED;;OAEG;IACH,KAAK,CAAC,aAAa,CACjB,MAAc,EACd,IAAyC,EACzC,OAAwB,EACT;QACf,OAAO,WAAW,CAAC,wBAAwB,CACzC,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;IAED;;OAEG;IACH,KAAK,CAAC,gBAAgB,CACpB,MAAc,EACd,MAAc,EACd,OAAwB,EACT;QACf,OAAO,WAAW,CAAC,2BAA2B,CAC5C,IAAI,EACJ,MAAM,EACN,MAAM,EACN,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;CACF"}
@@ -0,0 +1,2 @@
1
+ export * from "./sdk.js";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sdk/index.ts"],"names":[],"mappings":"AAIA,cAAc,UAAU,CAAC"}
@@ -0,0 +1,5 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ export * from "./sdk.js";
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/sdk/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,UAAU,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
2
+ import * as models from "../models/index.js";
3
+ import * as operations from "../models/operations/index.js";
4
+ export declare class Posts extends ClientSDK {
5
+ /**
6
+ * Get the consolidated timeline feed
7
+ *
8
+ * @remarks
9
+ * Retrieves posts from users the current authenticated user is subscribed to.
10
+ */
11
+ getFeed(limit?: number | undefined, cursor?: string | undefined, options?: RequestOptions): Promise<operations.GetFeedResponse>;
12
+ /**
13
+ * Create a placeholder post meta and request an upload slot
14
+ *
15
+ * @remarks
16
+ * Returns a destination URL to upload the raw multimedia asset directly to SeaweedFS via presigned routing.
17
+ */
18
+ createPost(request: models.CreatePostRequest, options?: RequestOptions): Promise<operations.CreatePostResponse>;
19
+ /**
20
+ * Get a timeline filtered strictly by members of this list
21
+ */
22
+ getListFeed(listId: number, limit?: number | undefined, options?: RequestOptions): Promise<Array<models.Post>>;
23
+ }
24
+ //# sourceMappingURL=posts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"posts.d.ts","sourceRoot":"","sources":["../../src/sdk/posts.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,KAAM,SAAQ,SAAS;IAClC;;;;;OAKG;IACG,OAAO,CACX,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,EAC1B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,EAC3B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,eAAe,CAAC,CAOrC;IAED;;;;;OAKG;IACG,UAAU,CACd,OAAO,EAAE,MAAM,CAAC,iBAAiB,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC,CAMxC;IAED;;OAEG;IACG,WAAW,CACf,MAAM,EAAE,MAAM,EACd,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,EAC1B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAO7B;CACF"}
@@ -0,0 +1,35 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import { postsCreatePost } from "../funcs/posts-create-post.js";
5
+ import { postsGetFeed } from "../funcs/posts-get-feed.js";
6
+ import { postsGetListFeed } from "../funcs/posts-get-list-feed.js";
7
+ import { ClientSDK } from "../lib/sdks.js";
8
+ import { unwrapAsync } from "../types/fp.js";
9
+ export class Posts extends ClientSDK {
10
+ /**
11
+ * Get the consolidated timeline feed
12
+ *
13
+ * @remarks
14
+ * Retrieves posts from users the current authenticated user is subscribed to.
15
+ */
16
+ async getFeed(limit, cursor, options) {
17
+ return unwrapAsync(postsGetFeed(this, limit, cursor, options));
18
+ }
19
+ /**
20
+ * Create a placeholder post meta and request an upload slot
21
+ *
22
+ * @remarks
23
+ * Returns a destination URL to upload the raw multimedia asset directly to SeaweedFS via presigned routing.
24
+ */
25
+ async createPost(request, options) {
26
+ return unwrapAsync(postsCreatePost(this, request, options));
27
+ }
28
+ /**
29
+ * Get a timeline filtered strictly by members of this list
30
+ */
31
+ async getListFeed(listId, limit, options) {
32
+ return unwrapAsync(postsGetListFeed(this, listId, limit, options));
33
+ }
34
+ }
35
+ //# sourceMappingURL=posts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"posts.js","sourceRoot":"","sources":["../../src/sdk/posts.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAG3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,KAAM,SAAQ,SAAS;IAClC;;;;;OAKG;IACH,KAAK,CAAC,OAAO,CACX,KAA0B,EAC1B,MAA2B,EAC3B,OAAwB,EACa;QACrC,OAAO,WAAW,CAAC,YAAY,CAC7B,IAAI,EACJ,KAAK,EACL,MAAM,EACN,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;IAED;;;;;OAKG;IACH,KAAK,CAAC,UAAU,CACd,OAAiC,EACjC,OAAwB,EACgB;QACxC,OAAO,WAAW,CAAC,eAAe,CAChC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;IAED;;OAEG;IACH,KAAK,CAAC,WAAW,CACf,MAAc,EACd,KAA0B,EAC1B,OAAwB,EACK;QAC7B,OAAO,WAAW,CAAC,gBAAgB,CACjC,IAAI,EACJ,MAAM,EACN,KAAK,EACL,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;CACF"}
@@ -0,0 +1,16 @@
1
+ import { ClientSDK } from "../lib/sdks.js";
2
+ import { Authentication } from "./authentication.js";
3
+ import { CustomLists } from "./custom-lists.js";
4
+ import { Posts } from "./posts.js";
5
+ import { Subscriptions } from "./subscriptions.js";
6
+ export declare class FankareSDK extends ClientSDK {
7
+ private _authentication?;
8
+ get authentication(): Authentication;
9
+ private _subscriptions?;
10
+ get subscriptions(): Subscriptions;
11
+ private _posts?;
12
+ get posts(): Posts;
13
+ private _customLists?;
14
+ get customLists(): CustomLists;
15
+ }
16
+ //# sourceMappingURL=sdk.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../../src/sdk/sdk.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,qBAAa,UAAW,SAAQ,SAAS;IACvC,OAAO,CAAC,eAAe,CAAC,CAAiB;IACzC,IAAI,cAAc,IAAI,cAAc,CAEnC;IAED,OAAO,CAAC,cAAc,CAAC,CAAgB;IACvC,IAAI,aAAa,IAAI,aAAa,CAEjC;IAED,OAAO,CAAC,MAAM,CAAC,CAAQ;IACvB,IAAI,KAAK,IAAI,KAAK,CAEjB;IAED,OAAO,CAAC,YAAY,CAAC,CAAc;IACnC,IAAI,WAAW,IAAI,WAAW,CAE7B;CACF"}
package/esm/sdk/sdk.js ADDED
@@ -0,0 +1,27 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import { ClientSDK } from "../lib/sdks.js";
5
+ import { Authentication } from "./authentication.js";
6
+ import { CustomLists } from "./custom-lists.js";
7
+ import { Posts } from "./posts.js";
8
+ import { Subscriptions } from "./subscriptions.js";
9
+ export class FankareSDK extends ClientSDK {
10
+ _authentication;
11
+ get authentication() {
12
+ return (this._authentication ?? (this._authentication = new Authentication(this._options)));
13
+ }
14
+ _subscriptions;
15
+ get subscriptions() {
16
+ return (this._subscriptions ?? (this._subscriptions = new Subscriptions(this._options)));
17
+ }
18
+ _posts;
19
+ get posts() {
20
+ return (this._posts ?? (this._posts = new Posts(this._options)));
21
+ }
22
+ _customLists;
23
+ get customLists() {
24
+ return (this._customLists ?? (this._customLists = new CustomLists(this._options)));
25
+ }
26
+ }
27
+ //# sourceMappingURL=sdk.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sdk.js","sourceRoot":"","sources":["../../src/sdk/sdk.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,MAAM,OAAO,UAAW,SAAQ,SAAS;IAC/B,eAAe,CAAkB;IACzC,IAAI,cAAc,GAAmB;QACnC,OAAO,CAAC,IAAI,CAAC,eAAe,KAApB,IAAI,CAAC,eAAe,GAAK,IAAI,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAAA,CACrE;IAEO,cAAc,CAAiB;IACvC,IAAI,aAAa,GAAkB;QACjC,OAAO,CAAC,IAAI,CAAC,cAAc,KAAnB,IAAI,CAAC,cAAc,GAAK,IAAI,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAAA,CACnE;IAEO,MAAM,CAAS;IACvB,IAAI,KAAK,GAAU;QACjB,OAAO,CAAC,IAAI,CAAC,MAAM,KAAX,IAAI,CAAC,MAAM,GAAK,IAAI,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAAA,CACnD;IAEO,YAAY,CAAe;IACnC,IAAI,WAAW,GAAgB;QAC7B,OAAO,CAAC,IAAI,CAAC,YAAY,KAAjB,IAAI,CAAC,YAAY,GAAK,IAAI,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAAA,CAC/D;CACF"}
@@ -0,0 +1,12 @@
1
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
2
+ export declare class Subscriptions extends ClientSDK {
3
+ /**
4
+ * Subscribe to a user's feed
5
+ */
6
+ subscribeToUser(userId: number, options?: RequestOptions): Promise<void>;
7
+ /**
8
+ * Unsubscribe from a user's feed
9
+ */
10
+ unsubscribeFromUser(userId: number, options?: RequestOptions): Promise<void>;
11
+ }
12
+ //# sourceMappingURL=subscriptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscriptions.d.ts","sourceRoot":"","sources":["../../src/sdk/subscriptions.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAG3D,qBAAa,aAAc,SAAQ,SAAS;IAC1C;;OAEG;IACG,eAAe,CACnB,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,IAAI,CAAC,CAMf;IAED;;OAEG;IACG,mBAAmB,CACvB,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,IAAI,CAAC,CAMf;CACF"}
@@ -0,0 +1,22 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import { subscriptionsSubscribeToUser } from "../funcs/subscriptions-subscribe-to-user.js";
5
+ import { subscriptionsUnsubscribeFromUser } from "../funcs/subscriptions-unsubscribe-from-user.js";
6
+ import { ClientSDK } from "../lib/sdks.js";
7
+ import { unwrapAsync } from "../types/fp.js";
8
+ export class Subscriptions extends ClientSDK {
9
+ /**
10
+ * Subscribe to a user's feed
11
+ */
12
+ async subscribeToUser(userId, options) {
13
+ return unwrapAsync(subscriptionsSubscribeToUser(this, userId, options));
14
+ }
15
+ /**
16
+ * Unsubscribe from a user's feed
17
+ */
18
+ async unsubscribeFromUser(userId, options) {
19
+ return unwrapAsync(subscriptionsUnsubscribeFromUser(this, userId, options));
20
+ }
21
+ }
22
+ //# sourceMappingURL=subscriptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscriptions.js","sourceRoot":"","sources":["../../src/sdk/subscriptions.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,4BAA4B,EAAE,MAAM,6CAA6C,CAAC;AAC3F,OAAO,EAAE,gCAAgC,EAAE,MAAM,iDAAiD,CAAC;AACnG,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,aAAc,SAAQ,SAAS;IAC1C;;OAEG;IACH,KAAK,CAAC,eAAe,CACnB,MAAc,EACd,OAAwB,EACT;QACf,OAAO,WAAW,CAAC,4BAA4B,CAC7C,IAAI,EACJ,MAAM,EACN,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;IAED;;OAEG;IACH,KAAK,CAAC,mBAAmB,CACvB,MAAc,EACd,OAAwB,EACT;QACf,OAAO,WAAW,CAAC,gCAAgC,CACjD,IAAI,EACJ,MAAM,EACN,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;CACF"}
@@ -0,0 +1,23 @@
1
+ export type APICall = {
2
+ status: "complete";
3
+ request: Request;
4
+ response: Response;
5
+ } | {
6
+ status: "request-error";
7
+ request: Request;
8
+ response?: undefined;
9
+ } | {
10
+ status: "invalid";
11
+ request?: undefined;
12
+ response?: undefined;
13
+ };
14
+ export declare class APIPromise<T> implements Promise<T> {
15
+ #private;
16
+ readonly [Symbol.toStringTag] = "APIPromise";
17
+ constructor(p: [T, APICall] | Promise<[T, APICall]>);
18
+ then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null | undefined): Promise<TResult1 | TResult2>;
19
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null | undefined): Promise<T | TResult>;
20
+ finally(onfinally?: (() => void) | null | undefined): Promise<T>;
21
+ $inspect(): Promise<[T, APICall]>;
22
+ }
23
+ //# sourceMappingURL=async.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"async.d.ts","sourceRoot":"","sources":["../../src/types/async.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,OAAO,GACf;IACE,MAAM,EAAE,UAAU,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,QAAQ,CAAC;CACpB,GACD;IACE,MAAM,EAAE,eAAe,CAAC;IACxB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,GACD;IACE,MAAM,EAAE,SAAS,CAAC;IAClB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAEN,qBAAa,UAAU,CAAC,CAAC,CAAE,YAAW,OAAO,CAAC,CAAC,CAAC;;IAI9C,QAAQ,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,gBAAgB;IAE7C,YAAY,CAAC,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,EAGlD;IAMD,IAAI,CAAC,QAAQ,GAAG,CAAC,EAAE,QAAQ,GAAG,KAAK,EACjC,WAAW,CAAC,EACR,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,QAAQ,GAAG,WAAW,CAAC,QAAQ,CAAC,CAAC,GAChD,IAAI,GACJ,SAAS,EACb,UAAU,CAAC,EACP,CAAC,CAAC,MAAM,EAAE,GAAG,KAAK,QAAQ,GAAG,WAAW,CAAC,QAAQ,CAAC,CAAC,GACnD,IAAI,GACJ,SAAS,GACZ,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC,CAK9B;IAED,KAAK,CAAC,OAAO,GAAG,KAAK,EACnB,UAAU,CAAC,EACP,CAAC,CAAC,MAAM,EAAE,GAAG,KAAK,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC,GACjD,IAAI,GACJ,SAAS,GACZ,OAAO,CAAC,CAAC,GAAG,OAAO,CAAC,CAEtB;IAED,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAAC,CAAC,CAAC,CAE/D;IAED,QAAQ,IAAI,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAEhC;CACF"}
@@ -0,0 +1,28 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ export class APIPromise {
5
+ #promise;
6
+ #unwrapped;
7
+ [Symbol.toStringTag] = "APIPromise";
8
+ constructor(p) {
9
+ this.#promise = p instanceof Promise ? p : Promise.resolve(p);
10
+ this.#unwrapped = p instanceof Promise ? null : Promise.resolve(p[0]);
11
+ }
12
+ #getUnwrapped() {
13
+ return (this.#unwrapped ?? (this.#unwrapped = this.#promise.then(([value]) => value)));
14
+ }
15
+ then(onfulfilled, onrejected) {
16
+ return this.#promise.then(onfulfilled ? ([value]) => onfulfilled(value) : void 0, onrejected);
17
+ }
18
+ catch(onrejected) {
19
+ return this.#getUnwrapped().catch(onrejected);
20
+ }
21
+ finally(onfinally) {
22
+ return this.#getUnwrapped().finally(onfinally);
23
+ }
24
+ $inspect() {
25
+ return this.#promise;
26
+ }
27
+ }
28
+ //# sourceMappingURL=async.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"async.js","sourceRoot":"","sources":["../../src/types/async.ts"],"names":[],"mappings":"AAAA;;GAEG;AAmBH,MAAM,OAAO,UAAU;IACZ,QAAQ,CAAwB;IACzC,UAAU,CAAoB;IAErB,CAAC,MAAM,CAAC,WAAW,CAAC,GAAG,YAAY,CAAC;IAE7C,YAAY,CAAuC,EAAE;QACnD,IAAI,CAAC,QAAQ,GAAG,CAAC,YAAY,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QAC9D,IAAI,CAAC,UAAU,GAAG,CAAC,YAAY,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAAA,CACvE;IAED,aAAa,GAAe;QAC1B,OAAO,CAAC,IAAI,CAAC,UAAU,KAAf,IAAI,CAAC,UAAU,GAAK,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,EAAC,CAAC;IAAA,CACrE;IAED,IAAI,CACF,WAGa,EACb,UAGa,EACiB;QAC9B,OAAO,IAAI,CAAC,QAAQ,CAAC,IAAI,CACvB,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,EACtD,UAAU,CACX,CAAC;IAAA,CACH;IAED,KAAK,CACH,UAGa,EACS;QACtB,OAAO,IAAI,CAAC,aAAa,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;IAAA,CAC/C;IAED,OAAO,CAAC,SAA2C,EAAc;QAC/D,OAAO,IAAI,CAAC,aAAa,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAAA,CAChD;IAED,QAAQ,GAA0B;QAChC,OAAO,IAAI,CAAC,QAAQ,CAAC;IAAA,CACtB;CACF"}
@@ -0,0 +1,4 @@
1
+ import * as z from "zod/v4-mini";
2
+ export declare const blobLikeSchema: z.ZodMiniType<Blob, Blob>;
3
+ export declare function isBlobLike(val: unknown): val is Blob;
4
+ //# sourceMappingURL=blobs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"blobs.d.ts","sourceRoot":"","sources":["../../src/types/blobs.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,eAAO,MAAM,cAAc,EAAE,CAAC,CAAC,WAAW,CAAC,IAAI,EAAE,IAAI,CAMpD,CAAC;AAEF,wBAAgB,UAAU,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,IAAI,CAkBpD"}
@@ -0,0 +1,25 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod/v4-mini";
5
+ export const blobLikeSchema = z.custom(isBlobLike, {
6
+ message: "expected a Blob, File or Blob-like object",
7
+ abort: true,
8
+ });
9
+ export function isBlobLike(val) {
10
+ if (val instanceof Blob) {
11
+ return true;
12
+ }
13
+ if (typeof val !== "object" || val == null || !(Symbol.toStringTag in val)) {
14
+ return false;
15
+ }
16
+ const name = val[Symbol.toStringTag];
17
+ if (typeof name !== "string") {
18
+ return false;
19
+ }
20
+ if (name !== "Blob" && name !== "File") {
21
+ return false;
22
+ }
23
+ return "stream" in val && typeof val.stream === "function";
24
+ }
25
+ //# sourceMappingURL=blobs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"blobs.js","sourceRoot":"","sources":["../../src/types/blobs.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,MAAM,CAAC,MAAM,cAAc,GAA8B,CAAC,CAAC,MAAM,CAC/D,UAAU,EACV;IACE,OAAO,EAAE,2CAA2C;IACpD,KAAK,EAAE,IAAI;CACZ,CACF,CAAC;AAEF,MAAM,UAAU,UAAU,CAAC,GAAY,EAAe;IACpD,IAAI,GAAG,YAAY,IAAI,EAAE,CAAC;QACxB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,GAAG,IAAI,IAAI,IAAI,CAAC,CAAC,MAAM,CAAC,WAAW,IAAI,GAAG,CAAC,EAAE,CAAC;QAC3E,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,IAAI,GAAG,GAAG,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;IACrC,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;QAC7B,OAAO,KAAK,CAAC;IACf,CAAC;IACD,IAAI,IAAI,KAAK,MAAM,IAAI,IAAI,KAAK,MAAM,EAAE,CAAC;QACvC,OAAO,KAAK,CAAC;IACf,CAAC;IAED,OAAO,QAAQ,IAAI,GAAG,IAAI,OAAO,GAAG,CAAC,MAAM,KAAK,UAAU,CAAC;AAAA,CAC5D"}
@@ -0,0 +1,3 @@
1
+ import * as z from "zod/v4-mini";
2
+ export declare function constDateTime(val: string): z.ZodMiniType<string, unknown>;
3
+ //# sourceMappingURL=const-date-time.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"const-date-time.d.ts","sourceRoot":"","sources":["../../src/types/const-date-time.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,wBAAgB,aAAa,CAC3B,GAAG,EAAE,MAAM,GACV,CAAC,CAAC,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,CAMhC"}
@@ -0,0 +1,10 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod/v4-mini";
5
+ export function constDateTime(val) {
6
+ return z.custom((v) => {
7
+ return (typeof v === "string" && new Date(v).getTime() === new Date(val).getTime());
8
+ }, `Value must be equivalent to ${val}`);
9
+ }
10
+ //# sourceMappingURL=const-date-time.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"const-date-time.js","sourceRoot":"","sources":["../../src/types/const-date-time.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,MAAM,UAAU,aAAa,CAC3B,GAAW,EACqB;IAChC,OAAO,CAAC,CAAC,MAAM,CAAS,CAAC,CAAC,EAAE,EAAE,CAAC;QAC7B,OAAO,CACL,OAAO,CAAC,KAAK,QAAQ,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,KAAK,IAAI,IAAI,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,CAC3E,CAAC;IAAA,CACH,EAAE,+BAA+B,GAAG,EAAE,CAAC,CAAC;AAAA,CAC1C"}
@@ -0,0 +1,12 @@
1
+ import { type Unrecognized } from "./unrecognized.js";
2
+ export declare function defaultToZeroValue<T>(value: T): Unrecognized<T>;
3
+ export declare function startCountingDefaultToZeroValue(): {
4
+ /**
5
+ * Ends counting and returns the delta.
6
+ * @param delta - If provided, only this amount is added to the parent counter
7
+ * (used for nested unions where we only want to record the winning option's count).
8
+ * If not provided, records all counts since start().
9
+ */
10
+ end: (delta?: number | undefined) => number;
11
+ };
12
+ //# sourceMappingURL=default-to-zero-value.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"default-to-zero-value.d.ts","sourceRoot":"","sources":["../../src/types/default-to-zero-value.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,YAAY,EAAgB,MAAM,mBAAmB,CAAC;AAKpE,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,YAAY,CAAC,CAAC,CAAC,CAG/D;AAED,wBAAgB,+BAA+B;IAI3C;;;;;OAKG;;EASN"}
@@ -0,0 +1,31 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import { unrecognized } from "./unrecognized.js";
5
+ let globalCount = 0;
6
+ let refCount = 0;
7
+ export function defaultToZeroValue(value) {
8
+ globalCount++;
9
+ return unrecognized(value);
10
+ }
11
+ export function startCountingDefaultToZeroValue() {
12
+ refCount++;
13
+ const start = globalCount;
14
+ return {
15
+ /**
16
+ * Ends counting and returns the delta.
17
+ * @param delta - If provided, only this amount is added to the parent counter
18
+ * (used for nested unions where we only want to record the winning option's count).
19
+ * If not provided, records all counts since start().
20
+ */
21
+ end: (delta) => {
22
+ const count = globalCount - start;
23
+ // Reset globalCount back to start, then add only the specified delta
24
+ globalCount = start + (delta ?? count);
25
+ if (--refCount === 0)
26
+ globalCount = 0;
27
+ return count;
28
+ },
29
+ };
30
+ }
31
+ //# sourceMappingURL=default-to-zero-value.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"default-to-zero-value.js","sourceRoot":"","sources":["../../src/types/default-to-zero-value.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAqB,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEpE,IAAI,WAAW,GAAG,CAAC,CAAC;AACpB,IAAI,QAAQ,GAAG,CAAC,CAAC;AAEjB,MAAM,UAAU,kBAAkB,CAAI,KAAQ,EAAmB;IAC/D,WAAW,EAAE,CAAC;IACd,OAAO,YAAY,CAAC,KAAK,CAAC,CAAC;AAAA,CAC5B;AAED,MAAM,UAAU,+BAA+B,GAAG;IAChD,QAAQ,EAAE,CAAC;IACX,MAAM,KAAK,GAAG,WAAW,CAAC;IAC1B,OAAO;QACL;;;;;WAKG;QACH,GAAG,EAAE,CAAC,KAAc,EAAE,EAAE,CAAC;YACvB,MAAM,KAAK,GAAG,WAAW,GAAG,KAAK,CAAC;YAClC,qEAAqE;YACrE,WAAW,GAAG,KAAK,GAAG,CAAC,KAAK,IAAI,KAAK,CAAC,CAAC;YACvC,IAAI,EAAE,QAAQ,KAAK,CAAC;gBAAE,WAAW,GAAG,CAAC,CAAC;YACtC,OAAO,KAAK,CAAC;QAAA,CACd;KACF,CAAC;AAAA,CACH"}
@@ -0,0 +1,9 @@
1
+ import * as z from "zod/v4-mini";
2
+ import { Unrecognized } from "./unrecognized.js";
3
+ export type ClosedEnum<T extends Readonly<Record<string, string | number>>> = T[keyof T];
4
+ export type OpenEnum<T extends Readonly<Record<string, string | number>>> = T[keyof T] | Unrecognized<T[keyof T] extends number ? number : string>;
5
+ export declare function inboundSchema<T extends Record<string, string>>(enumObj: T): z.ZodMiniType<OpenEnum<T>, unknown>;
6
+ export declare function inboundSchemaInt<T extends Record<string, number | string>>(enumObj: T): z.ZodMiniType<OpenEnum<T>, unknown>;
7
+ export declare function outboundSchema<T extends Record<string, string>>(_: T): z.ZodMiniType<string, OpenEnum<T>>;
8
+ export declare function outboundSchemaInt<T extends Record<string, number | string>>(_: T): z.ZodMiniType<number, OpenEnum<T>>;
9
+ //# sourceMappingURL=enums.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../src/types/enums.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,YAAY,EAAgB,MAAM,mBAAmB,CAAC;AAE/D,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,IACxE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AACb,MAAM,MAAM,QAAQ,CAAC,CAAC,SAAS,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,IACpE,CAAC,CAAC,MAAM,CAAC,CAAC,GACV,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,CAAC;AAE9D,wBAAgB,aAAa,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC5D,OAAO,EAAE,CAAC,GACT,CAAC,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAMrC;AAED,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,EACxE,OAAO,EAAE,CAAC,GACT,CAAC,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAOrC;AAED,wBAAgB,cAAc,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC7D,CAAC,EAAE,CAAC,GACH,CAAC,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAEpC;AAED,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,EACzE,CAAC,EAAE,CAAC,GACH,CAAC,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAEpC"}
@@ -0,0 +1,27 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod/v4-mini";
5
+ import { unrecognized } from "./unrecognized.js";
6
+ export function inboundSchema(enumObj) {
7
+ const options = Object.values(enumObj);
8
+ return z.union([
9
+ ...options.map(x => z.literal(x)),
10
+ z.pipe(z.string(), z.transform(x => unrecognized(x))),
11
+ ]);
12
+ }
13
+ export function inboundSchemaInt(enumObj) {
14
+ // For numeric enums, Object.values returns both numbers and string keys
15
+ const options = Object.values(enumObj).filter(v => typeof v === "number");
16
+ return z.union([
17
+ ...options.map(x => z.literal(x)),
18
+ z.pipe(z.int(), z.transform(x => unrecognized(x))),
19
+ ]);
20
+ }
21
+ export function outboundSchema(_) {
22
+ return z.string();
23
+ }
24
+ export function outboundSchemaInt(_) {
25
+ return z.int();
26
+ }
27
+ //# sourceMappingURL=enums.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enums.js","sourceRoot":"","sources":["../../src/types/enums.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAgB,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAQ/D,MAAM,UAAU,aAAa,CAC3B,OAAU,EAC2B;IACrC,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IACvC,OAAO,CAAC,CAAC,KAAK,CAAC;QACb,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QACjC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;KAC/C,CAAC,CAAC;AAAA,CACX;AAED,MAAM,UAAU,gBAAgB,CAC9B,OAAU,EAC2B;IACrC,wEAAwE;IACxE,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,QAAQ,CAAC,CAAC;IAC1E,OAAO,CAAC,CAAC,KAAK,CAAC;QACb,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QACjC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;KAC5C,CAAC,CAAC;AAAA,CACX;AAED,MAAM,UAAU,cAAc,CAC5B,CAAI,EACgC;IACpC,OAAO,CAAC,CAAC,MAAM,EAAS,CAAC;AAAA,CAC1B;AAED,MAAM,UAAU,iBAAiB,CAC/B,CAAI,EACgC;IACpC,OAAO,CAAC,CAAC,GAAG,EAAS,CAAC;AAAA,CACvB"}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * A monad that captures the result of a function call or an error if it was not
3
+ * successful. Railway programming, enabled by this type, can be a nicer
4
+ * alternative to traditional exception throwing because it allows functions to
5
+ * declare all _known_ errors with static types and then check for them
6
+ * exhaustively in application code. Thrown exception have a type of `unknown`
7
+ * and break out of regular control flow of programs making them harder to
8
+ * inspect and more verbose work with due to try-catch blocks.
9
+ */
10
+ export type Result<T, E = unknown> = {
11
+ ok: true;
12
+ value: T;
13
+ error?: never;
14
+ } | {
15
+ ok: false;
16
+ value?: never;
17
+ error: E;
18
+ };
19
+ export declare function OK<V>(value: V): Result<V, never>;
20
+ export declare function ERR<E>(error: E): Result<never, E>;
21
+ /**
22
+ * unwrap is a convenience function for extracting a value from a result or
23
+ * throwing if there was an error.
24
+ */
25
+ export declare function unwrap<T>(r: Result<T, unknown>): T;
26
+ /**
27
+ * unwrapAsync is a convenience function for resolving a value from a Promise
28
+ * of a result or rejecting if an error occurred.
29
+ */
30
+ export declare function unwrapAsync<T>(pr: Promise<Result<T, unknown>>): Promise<T>;
31
+ //# sourceMappingURL=fp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fp.d.ts","sourceRoot":"","sources":["../../src/types/fp.ts"],"names":[],"mappings":"AAIA;;;;;;;;GAQG;AACH,MAAM,MAAM,MAAM,CAAC,CAAC,EAAE,CAAC,GAAG,OAAO,IAC7B;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,KAAK,EAAE,CAAC,CAAC;IAAC,KAAK,CAAC,EAAE,KAAK,CAAA;CAAE,GACrC;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,KAAK,CAAC,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,CAAC,CAAA;CAAE,CAAC;AAE3C,wBAAgB,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,MAAM,CAAC,CAAC,EAAE,KAAK,CAAC,CAEhD;AAED,wBAAgB,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAEjD;AAED;;;GAGG;AACH,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC,CAAC,EAAE,OAAO,CAAC,GAAG,CAAC,CAKlD;AAED;;;GAGG;AACH,wBAAsB,WAAW,CAAC,CAAC,EACjC,EAAE,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,GAC9B,OAAO,CAAC,CAAC,CAAC,CAOZ"}
@@ -0,0 +1,31 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ export function OK(value) {
5
+ return { ok: true, value };
6
+ }
7
+ export function ERR(error) {
8
+ return { ok: false, error };
9
+ }
10
+ /**
11
+ * unwrap is a convenience function for extracting a value from a result or
12
+ * throwing if there was an error.
13
+ */
14
+ export function unwrap(r) {
15
+ if (!r.ok) {
16
+ throw r.error;
17
+ }
18
+ return r.value;
19
+ }
20
+ /**
21
+ * unwrapAsync is a convenience function for resolving a value from a Promise
22
+ * of a result or rejecting if an error occurred.
23
+ */
24
+ export async function unwrapAsync(pr) {
25
+ const r = await pr;
26
+ if (!r.ok) {
27
+ throw r.error;
28
+ }
29
+ return r.value;
30
+ }
31
+ //# sourceMappingURL=fp.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fp.js","sourceRoot":"","sources":["../../src/types/fp.ts"],"names":[],"mappings":"AAAA;;GAEG;AAeH,MAAM,UAAU,EAAE,CAAI,KAAQ,EAAoB;IAChD,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;AAAA,CAC5B;AAED,MAAM,UAAU,GAAG,CAAI,KAAQ,EAAoB;IACjD,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC;AAAA,CAC7B;AAED;;;GAGG;AACH,MAAM,UAAU,MAAM,CAAI,CAAqB,EAAK;IAClD,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;QACV,MAAM,CAAC,CAAC,KAAK,CAAC;IAChB,CAAC;IACD,OAAO,CAAC,CAAC,KAAK,CAAC;AAAA,CAChB;AAED;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,WAAW,CAC/B,EAA+B,EACnB;IACZ,MAAM,CAAC,GAAG,MAAM,EAAE,CAAC;IACnB,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;QACV,MAAM,CAAC,CAAC,KAAK,CAAC;IAChB,CAAC;IAED,OAAO,CAAC,CAAC,KAAK,CAAC;AAAA,CAChB"}
@@ -0,0 +1,10 @@
1
+ export { blobLikeSchema, isBlobLike } from "./blobs.js";
2
+ export * from "./default-to-zero-value.js";
3
+ export type { ClosedEnum, OpenEnum } from "./enums.js";
4
+ export type { Result } from "./fp.js";
5
+ export type { PageIterator, Paginator } from "./operations.js";
6
+ export { createPageIterator } from "./operations.js";
7
+ export * from "./primitives.js";
8
+ export { RFCDate } from "./rfcdate.js";
9
+ export * from "./unrecognized.js";
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxD,cAAc,4BAA4B,CAAC;AAC3C,YAAY,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACvD,YAAY,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACtC,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,cAAc,mBAAmB,CAAC"}