@aurora-interactive/sensei-productivity 1.3.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (361) hide show
  1. package/README.md +15 -0
  2. package/dist/commonjs/funcs/categories-create.d.ts +1 -1
  3. package/dist/commonjs/funcs/categories-create.d.ts.map +1 -1
  4. package/dist/commonjs/funcs/categories-create.js +3 -2
  5. package/dist/commonjs/funcs/categories-create.js.map +1 -1
  6. package/dist/commonjs/funcs/categories-delete.js +2 -2
  7. package/dist/commonjs/funcs/categories-delete.js.map +1 -1
  8. package/dist/commonjs/funcs/categories-get-all.d.ts +1 -1
  9. package/dist/commonjs/funcs/categories-get-all.d.ts.map +1 -1
  10. package/dist/commonjs/funcs/categories-get-all.js +3 -2
  11. package/dist/commonjs/funcs/categories-get-all.js.map +1 -1
  12. package/dist/commonjs/funcs/categories-update.d.ts +1 -1
  13. package/dist/commonjs/funcs/categories-update.d.ts.map +1 -1
  14. package/dist/commonjs/funcs/categories-update.js +3 -2
  15. package/dist/commonjs/funcs/categories-update.js.map +1 -1
  16. package/dist/commonjs/funcs/schools-get-all.js +2 -2
  17. package/dist/commonjs/funcs/schools-get-all.js.map +1 -1
  18. package/dist/commonjs/funcs/schools-get.d.ts +1 -1
  19. package/dist/commonjs/funcs/schools-get.d.ts.map +1 -1
  20. package/dist/commonjs/funcs/schools-get.js +3 -2
  21. package/dist/commonjs/funcs/schools-get.js.map +1 -1
  22. package/dist/commonjs/funcs/users-activities-create.d.ts +1 -1
  23. package/dist/commonjs/funcs/users-activities-create.d.ts.map +1 -1
  24. package/dist/commonjs/funcs/users-activities-create.js +3 -2
  25. package/dist/commonjs/funcs/users-activities-create.js.map +1 -1
  26. package/dist/commonjs/funcs/users-activities-delete.js +2 -2
  27. package/dist/commonjs/funcs/users-activities-delete.js.map +1 -1
  28. package/dist/commonjs/funcs/users-activities-get-all-of-user.d.ts +1 -1
  29. package/dist/commonjs/funcs/users-activities-get-all-of-user.d.ts.map +1 -1
  30. package/dist/commonjs/funcs/users-activities-get-all-of-user.js +3 -2
  31. package/dist/commonjs/funcs/users-activities-get-all-of-user.js.map +1 -1
  32. package/dist/commonjs/funcs/users-activities-get.d.ts +1 -1
  33. package/dist/commonjs/funcs/users-activities-get.d.ts.map +1 -1
  34. package/dist/commonjs/funcs/users-activities-get.js +3 -2
  35. package/dist/commonjs/funcs/users-activities-get.js.map +1 -1
  36. package/dist/commonjs/funcs/users-activities-me.d.ts +1 -1
  37. package/dist/commonjs/funcs/users-activities-me.d.ts.map +1 -1
  38. package/dist/commonjs/funcs/users-activities-me.js +3 -2
  39. package/dist/commonjs/funcs/users-activities-me.js.map +1 -1
  40. package/dist/commonjs/funcs/users-activities-update.d.ts +1 -1
  41. package/dist/commonjs/funcs/users-activities-update.d.ts.map +1 -1
  42. package/dist/commonjs/funcs/users-activities-update.js +3 -2
  43. package/dist/commonjs/funcs/users-activities-update.js.map +1 -1
  44. package/dist/commonjs/funcs/users-delete.js +2 -2
  45. package/dist/commonjs/funcs/users-delete.js.map +1 -1
  46. package/dist/commonjs/funcs/users-friends-accept.d.ts +14 -0
  47. package/dist/commonjs/funcs/users-friends-accept.d.ts.map +1 -0
  48. package/dist/commonjs/funcs/users-friends-accept.js +127 -0
  49. package/dist/commonjs/funcs/users-friends-accept.js.map +1 -0
  50. package/dist/commonjs/funcs/users-friends-list.d.ts +14 -0
  51. package/dist/commonjs/funcs/users-friends-list.d.ts.map +1 -0
  52. package/dist/commonjs/funcs/users-friends-list.js +128 -0
  53. package/dist/commonjs/funcs/users-friends-list.js.map +1 -0
  54. package/dist/commonjs/funcs/users-friends-pending.d.ts +14 -0
  55. package/dist/commonjs/funcs/users-friends-pending.d.ts.map +1 -0
  56. package/dist/commonjs/funcs/users-friends-pending.js +113 -0
  57. package/dist/commonjs/funcs/users-friends-pending.js.map +1 -0
  58. package/dist/commonjs/funcs/users-friends-reject.d.ts +14 -0
  59. package/dist/commonjs/funcs/users-friends-reject.d.ts.map +1 -0
  60. package/dist/commonjs/funcs/users-friends-reject.js +127 -0
  61. package/dist/commonjs/funcs/users-friends-reject.js.map +1 -0
  62. package/dist/commonjs/funcs/users-friends-remove.d.ts +14 -0
  63. package/dist/commonjs/funcs/users-friends-remove.d.ts.map +1 -0
  64. package/dist/commonjs/funcs/users-friends-remove.js +127 -0
  65. package/dist/commonjs/funcs/users-friends-remove.js.map +1 -0
  66. package/dist/commonjs/funcs/users-friends-send-request.d.ts +14 -0
  67. package/dist/commonjs/funcs/users-friends-send-request.d.ts.map +1 -0
  68. package/dist/commonjs/funcs/users-friends-send-request.js +127 -0
  69. package/dist/commonjs/funcs/users-friends-send-request.js.map +1 -0
  70. package/dist/commonjs/funcs/users-get.d.ts +1 -1
  71. package/dist/commonjs/funcs/users-get.d.ts.map +1 -1
  72. package/dist/commonjs/funcs/users-get.js +3 -2
  73. package/dist/commonjs/funcs/users-get.js.map +1 -1
  74. package/dist/commonjs/funcs/users-login.d.ts +1 -1
  75. package/dist/commonjs/funcs/users-login.d.ts.map +1 -1
  76. package/dist/commonjs/funcs/users-login.js +3 -2
  77. package/dist/commonjs/funcs/users-login.js.map +1 -1
  78. package/dist/commonjs/funcs/users-me.d.ts +1 -1
  79. package/dist/commonjs/funcs/users-me.d.ts.map +1 -1
  80. package/dist/commonjs/funcs/users-me.js +3 -2
  81. package/dist/commonjs/funcs/users-me.js.map +1 -1
  82. package/dist/commonjs/funcs/users-posts-delete.js +2 -2
  83. package/dist/commonjs/funcs/users-posts-delete.js.map +1 -1
  84. package/dist/commonjs/funcs/users-posts-feed.d.ts +1 -1
  85. package/dist/commonjs/funcs/users-posts-feed.d.ts.map +1 -1
  86. package/dist/commonjs/funcs/users-posts-feed.js +3 -2
  87. package/dist/commonjs/funcs/users-posts-feed.js.map +1 -1
  88. package/dist/commonjs/funcs/users-posts-get-by-post-id.d.ts +1 -1
  89. package/dist/commonjs/funcs/users-posts-get-by-post-id.d.ts.map +1 -1
  90. package/dist/commonjs/funcs/users-posts-get-by-post-id.js +3 -2
  91. package/dist/commonjs/funcs/users-posts-get-by-post-id.js.map +1 -1
  92. package/dist/commonjs/funcs/users-posts-get-by-user-id.d.ts +1 -1
  93. package/dist/commonjs/funcs/users-posts-get-by-user-id.d.ts.map +1 -1
  94. package/dist/commonjs/funcs/users-posts-get-by-user-id.js +3 -2
  95. package/dist/commonjs/funcs/users-posts-get-by-user-id.js.map +1 -1
  96. package/dist/commonjs/funcs/users-posts-update.d.ts +1 -1
  97. package/dist/commonjs/funcs/users-posts-update.d.ts.map +1 -1
  98. package/dist/commonjs/funcs/users-posts-update.js +3 -2
  99. package/dist/commonjs/funcs/users-posts-update.js.map +1 -1
  100. package/dist/commonjs/funcs/users-signup.d.ts +1 -1
  101. package/dist/commonjs/funcs/users-signup.d.ts.map +1 -1
  102. package/dist/commonjs/funcs/users-signup.js +3 -2
  103. package/dist/commonjs/funcs/users-signup.js.map +1 -1
  104. package/dist/commonjs/funcs/users-update.d.ts +1 -1
  105. package/dist/commonjs/funcs/users-update.d.ts.map +1 -1
  106. package/dist/commonjs/funcs/users-update.js +3 -2
  107. package/dist/commonjs/funcs/users-update.js.map +1 -1
  108. package/dist/commonjs/lib/config.d.ts +3 -3
  109. package/dist/commonjs/lib/config.js +3 -3
  110. package/dist/commonjs/models/operations/accept-friend-request.d.ts +15 -0
  111. package/dist/commonjs/models/operations/accept-friend-request.d.ts.map +1 -0
  112. package/dist/commonjs/models/operations/accept-friend-request.js +49 -0
  113. package/dist/commonjs/models/operations/accept-friend-request.js.map +1 -0
  114. package/dist/commonjs/models/operations/index.d.ts +6 -0
  115. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  116. package/dist/commonjs/models/operations/index.js +6 -0
  117. package/dist/commonjs/models/operations/index.js.map +1 -1
  118. package/dist/commonjs/models/operations/list-friends.d.ts +26 -0
  119. package/dist/commonjs/models/operations/list-friends.d.ts.map +1 -0
  120. package/dist/commonjs/models/operations/list-friends.js +65 -0
  121. package/dist/commonjs/models/operations/list-friends.js.map +1 -0
  122. package/dist/commonjs/models/operations/pending-friend-requests.d.ts +16 -0
  123. package/dist/commonjs/models/operations/pending-friend-requests.d.ts.map +1 -0
  124. package/dist/commonjs/models/operations/pending-friend-requests.js +57 -0
  125. package/dist/commonjs/models/operations/pending-friend-requests.js.map +1 -0
  126. package/dist/commonjs/models/operations/reject-friend-request.d.ts +15 -0
  127. package/dist/commonjs/models/operations/reject-friend-request.d.ts.map +1 -0
  128. package/dist/commonjs/models/operations/reject-friend-request.js +49 -0
  129. package/dist/commonjs/models/operations/reject-friend-request.js.map +1 -0
  130. package/dist/commonjs/models/operations/remove-friend.d.ts +12 -0
  131. package/dist/commonjs/models/operations/remove-friend.d.ts.map +1 -0
  132. package/dist/commonjs/models/operations/remove-friend.js +49 -0
  133. package/dist/commonjs/models/operations/remove-friend.js.map +1 -0
  134. package/dist/commonjs/models/operations/send-friend-request.d.ts +12 -0
  135. package/dist/commonjs/models/operations/send-friend-request.d.ts.map +1 -0
  136. package/dist/commonjs/models/operations/send-friend-request.js +49 -0
  137. package/dist/commonjs/models/operations/send-friend-request.js.map +1 -0
  138. package/dist/commonjs/sdk/activities.d.ts +5 -5
  139. package/dist/commonjs/sdk/activities.d.ts.map +1 -1
  140. package/dist/commonjs/sdk/categories.d.ts +3 -3
  141. package/dist/commonjs/sdk/categories.d.ts.map +1 -1
  142. package/dist/commonjs/sdk/friends.d.ts +29 -0
  143. package/dist/commonjs/sdk/friends.d.ts.map +1 -0
  144. package/dist/commonjs/sdk/friends.js +54 -0
  145. package/dist/commonjs/sdk/friends.js.map +1 -0
  146. package/dist/commonjs/sdk/posts.d.ts +4 -4
  147. package/dist/commonjs/sdk/posts.d.ts.map +1 -1
  148. package/dist/commonjs/sdk/schools.d.ts +1 -1
  149. package/dist/commonjs/sdk/schools.d.ts.map +1 -1
  150. package/dist/commonjs/sdk/users.d.ts +8 -5
  151. package/dist/commonjs/sdk/users.d.ts.map +1 -1
  152. package/dist/commonjs/sdk/users.js +4 -0
  153. package/dist/commonjs/sdk/users.js.map +1 -1
  154. package/dist/esm/funcs/categories-create.d.ts +1 -1
  155. package/dist/esm/funcs/categories-create.d.ts.map +1 -1
  156. package/dist/esm/funcs/categories-create.js +3 -2
  157. package/dist/esm/funcs/categories-create.js.map +1 -1
  158. package/dist/esm/funcs/categories-delete.js +2 -2
  159. package/dist/esm/funcs/categories-delete.js.map +1 -1
  160. package/dist/esm/funcs/categories-get-all.d.ts +1 -1
  161. package/dist/esm/funcs/categories-get-all.d.ts.map +1 -1
  162. package/dist/esm/funcs/categories-get-all.js +3 -2
  163. package/dist/esm/funcs/categories-get-all.js.map +1 -1
  164. package/dist/esm/funcs/categories-update.d.ts +1 -1
  165. package/dist/esm/funcs/categories-update.d.ts.map +1 -1
  166. package/dist/esm/funcs/categories-update.js +3 -2
  167. package/dist/esm/funcs/categories-update.js.map +1 -1
  168. package/dist/esm/funcs/schools-get-all.js +2 -2
  169. package/dist/esm/funcs/schools-get-all.js.map +1 -1
  170. package/dist/esm/funcs/schools-get.d.ts +1 -1
  171. package/dist/esm/funcs/schools-get.d.ts.map +1 -1
  172. package/dist/esm/funcs/schools-get.js +3 -2
  173. package/dist/esm/funcs/schools-get.js.map +1 -1
  174. package/dist/esm/funcs/users-activities-create.d.ts +1 -1
  175. package/dist/esm/funcs/users-activities-create.d.ts.map +1 -1
  176. package/dist/esm/funcs/users-activities-create.js +3 -2
  177. package/dist/esm/funcs/users-activities-create.js.map +1 -1
  178. package/dist/esm/funcs/users-activities-delete.js +2 -2
  179. package/dist/esm/funcs/users-activities-delete.js.map +1 -1
  180. package/dist/esm/funcs/users-activities-get-all-of-user.d.ts +1 -1
  181. package/dist/esm/funcs/users-activities-get-all-of-user.d.ts.map +1 -1
  182. package/dist/esm/funcs/users-activities-get-all-of-user.js +3 -2
  183. package/dist/esm/funcs/users-activities-get-all-of-user.js.map +1 -1
  184. package/dist/esm/funcs/users-activities-get.d.ts +1 -1
  185. package/dist/esm/funcs/users-activities-get.d.ts.map +1 -1
  186. package/dist/esm/funcs/users-activities-get.js +3 -2
  187. package/dist/esm/funcs/users-activities-get.js.map +1 -1
  188. package/dist/esm/funcs/users-activities-me.d.ts +1 -1
  189. package/dist/esm/funcs/users-activities-me.d.ts.map +1 -1
  190. package/dist/esm/funcs/users-activities-me.js +3 -2
  191. package/dist/esm/funcs/users-activities-me.js.map +1 -1
  192. package/dist/esm/funcs/users-activities-update.d.ts +1 -1
  193. package/dist/esm/funcs/users-activities-update.d.ts.map +1 -1
  194. package/dist/esm/funcs/users-activities-update.js +3 -2
  195. package/dist/esm/funcs/users-activities-update.js.map +1 -1
  196. package/dist/esm/funcs/users-delete.js +2 -2
  197. package/dist/esm/funcs/users-delete.js.map +1 -1
  198. package/dist/esm/funcs/users-friends-accept.d.ts +14 -0
  199. package/dist/esm/funcs/users-friends-accept.d.ts.map +1 -0
  200. package/dist/esm/funcs/users-friends-accept.js +91 -0
  201. package/dist/esm/funcs/users-friends-accept.js.map +1 -0
  202. package/dist/esm/funcs/users-friends-list.d.ts +14 -0
  203. package/dist/esm/funcs/users-friends-list.d.ts.map +1 -0
  204. package/dist/esm/funcs/users-friends-list.js +92 -0
  205. package/dist/esm/funcs/users-friends-list.js.map +1 -0
  206. package/dist/esm/funcs/users-friends-pending.d.ts +14 -0
  207. package/dist/esm/funcs/users-friends-pending.d.ts.map +1 -0
  208. package/dist/esm/funcs/users-friends-pending.js +77 -0
  209. package/dist/esm/funcs/users-friends-pending.js.map +1 -0
  210. package/dist/esm/funcs/users-friends-reject.d.ts +14 -0
  211. package/dist/esm/funcs/users-friends-reject.d.ts.map +1 -0
  212. package/dist/esm/funcs/users-friends-reject.js +91 -0
  213. package/dist/esm/funcs/users-friends-reject.js.map +1 -0
  214. package/dist/esm/funcs/users-friends-remove.d.ts +14 -0
  215. package/dist/esm/funcs/users-friends-remove.d.ts.map +1 -0
  216. package/dist/esm/funcs/users-friends-remove.js +91 -0
  217. package/dist/esm/funcs/users-friends-remove.js.map +1 -0
  218. package/dist/esm/funcs/users-friends-send-request.d.ts +14 -0
  219. package/dist/esm/funcs/users-friends-send-request.d.ts.map +1 -0
  220. package/dist/esm/funcs/users-friends-send-request.js +91 -0
  221. package/dist/esm/funcs/users-friends-send-request.js.map +1 -0
  222. package/dist/esm/funcs/users-get.d.ts +1 -1
  223. package/dist/esm/funcs/users-get.d.ts.map +1 -1
  224. package/dist/esm/funcs/users-get.js +3 -2
  225. package/dist/esm/funcs/users-get.js.map +1 -1
  226. package/dist/esm/funcs/users-login.d.ts +1 -1
  227. package/dist/esm/funcs/users-login.d.ts.map +1 -1
  228. package/dist/esm/funcs/users-login.js +3 -2
  229. package/dist/esm/funcs/users-login.js.map +1 -1
  230. package/dist/esm/funcs/users-me.d.ts +1 -1
  231. package/dist/esm/funcs/users-me.d.ts.map +1 -1
  232. package/dist/esm/funcs/users-me.js +3 -2
  233. package/dist/esm/funcs/users-me.js.map +1 -1
  234. package/dist/esm/funcs/users-posts-delete.js +2 -2
  235. package/dist/esm/funcs/users-posts-delete.js.map +1 -1
  236. package/dist/esm/funcs/users-posts-feed.d.ts +1 -1
  237. package/dist/esm/funcs/users-posts-feed.d.ts.map +1 -1
  238. package/dist/esm/funcs/users-posts-feed.js +3 -2
  239. package/dist/esm/funcs/users-posts-feed.js.map +1 -1
  240. package/dist/esm/funcs/users-posts-get-by-post-id.d.ts +1 -1
  241. package/dist/esm/funcs/users-posts-get-by-post-id.d.ts.map +1 -1
  242. package/dist/esm/funcs/users-posts-get-by-post-id.js +3 -2
  243. package/dist/esm/funcs/users-posts-get-by-post-id.js.map +1 -1
  244. package/dist/esm/funcs/users-posts-get-by-user-id.d.ts +1 -1
  245. package/dist/esm/funcs/users-posts-get-by-user-id.d.ts.map +1 -1
  246. package/dist/esm/funcs/users-posts-get-by-user-id.js +3 -2
  247. package/dist/esm/funcs/users-posts-get-by-user-id.js.map +1 -1
  248. package/dist/esm/funcs/users-posts-update.d.ts +1 -1
  249. package/dist/esm/funcs/users-posts-update.d.ts.map +1 -1
  250. package/dist/esm/funcs/users-posts-update.js +3 -2
  251. package/dist/esm/funcs/users-posts-update.js.map +1 -1
  252. package/dist/esm/funcs/users-signup.d.ts +1 -1
  253. package/dist/esm/funcs/users-signup.d.ts.map +1 -1
  254. package/dist/esm/funcs/users-signup.js +3 -2
  255. package/dist/esm/funcs/users-signup.js.map +1 -1
  256. package/dist/esm/funcs/users-update.d.ts +1 -1
  257. package/dist/esm/funcs/users-update.d.ts.map +1 -1
  258. package/dist/esm/funcs/users-update.js +3 -2
  259. package/dist/esm/funcs/users-update.js.map +1 -1
  260. package/dist/esm/lib/config.d.ts +3 -3
  261. package/dist/esm/lib/config.js +3 -3
  262. package/dist/esm/models/operations/accept-friend-request.d.ts +15 -0
  263. package/dist/esm/models/operations/accept-friend-request.d.ts.map +1 -0
  264. package/dist/esm/models/operations/accept-friend-request.js +12 -0
  265. package/dist/esm/models/operations/accept-friend-request.js.map +1 -0
  266. package/dist/esm/models/operations/index.d.ts +6 -0
  267. package/dist/esm/models/operations/index.d.ts.map +1 -1
  268. package/dist/esm/models/operations/index.js +6 -0
  269. package/dist/esm/models/operations/index.js.map +1 -1
  270. package/dist/esm/models/operations/list-friends.d.ts +26 -0
  271. package/dist/esm/models/operations/list-friends.d.ts.map +1 -0
  272. package/dist/esm/models/operations/list-friends.js +27 -0
  273. package/dist/esm/models/operations/list-friends.js.map +1 -0
  274. package/dist/esm/models/operations/pending-friend-requests.d.ts +16 -0
  275. package/dist/esm/models/operations/pending-friend-requests.d.ts.map +1 -0
  276. package/dist/esm/models/operations/pending-friend-requests.js +20 -0
  277. package/dist/esm/models/operations/pending-friend-requests.js.map +1 -0
  278. package/dist/esm/models/operations/reject-friend-request.d.ts +15 -0
  279. package/dist/esm/models/operations/reject-friend-request.d.ts.map +1 -0
  280. package/dist/esm/models/operations/reject-friend-request.js +12 -0
  281. package/dist/esm/models/operations/reject-friend-request.js.map +1 -0
  282. package/dist/esm/models/operations/remove-friend.d.ts +12 -0
  283. package/dist/esm/models/operations/remove-friend.d.ts.map +1 -0
  284. package/dist/esm/models/operations/remove-friend.js +12 -0
  285. package/dist/esm/models/operations/remove-friend.js.map +1 -0
  286. package/dist/esm/models/operations/send-friend-request.d.ts +12 -0
  287. package/dist/esm/models/operations/send-friend-request.d.ts.map +1 -0
  288. package/dist/esm/models/operations/send-friend-request.js +12 -0
  289. package/dist/esm/models/operations/send-friend-request.js.map +1 -0
  290. package/dist/esm/sdk/activities.d.ts +5 -5
  291. package/dist/esm/sdk/activities.d.ts.map +1 -1
  292. package/dist/esm/sdk/categories.d.ts +3 -3
  293. package/dist/esm/sdk/categories.d.ts.map +1 -1
  294. package/dist/esm/sdk/friends.d.ts +29 -0
  295. package/dist/esm/sdk/friends.d.ts.map +1 -0
  296. package/dist/esm/sdk/friends.js +50 -0
  297. package/dist/esm/sdk/friends.js.map +1 -0
  298. package/dist/esm/sdk/posts.d.ts +4 -4
  299. package/dist/esm/sdk/posts.d.ts.map +1 -1
  300. package/dist/esm/sdk/schools.d.ts +1 -1
  301. package/dist/esm/sdk/schools.d.ts.map +1 -1
  302. package/dist/esm/sdk/users.d.ts +8 -5
  303. package/dist/esm/sdk/users.d.ts.map +1 -1
  304. package/dist/esm/sdk/users.js +4 -0
  305. package/dist/esm/sdk/users.js.map +1 -1
  306. package/jsr.json +1 -1
  307. package/package.json +1 -1
  308. package/rest-api/cypress/e2e/friend-endpoints.cy.js +262 -0
  309. package/rest-api/cypress/e2e/{school-endpoints.cy.ts → school-endpoints.cy.js} +1 -1
  310. package/rest-api/cypress.config.ts +45 -2
  311. package/rest-api/index.js +8 -1
  312. package/rest-api/lib/users.js +7 -5
  313. package/rest-api/routes/FriendFunctions.js +266 -0
  314. package/rest-api/routes/UserActivityFunctions.js +1 -1
  315. package/src/funcs/categories-create.ts +14 -6
  316. package/src/funcs/categories-delete.ts +3 -2
  317. package/src/funcs/categories-get-all.ts +14 -6
  318. package/src/funcs/categories-update.ts +14 -6
  319. package/src/funcs/schools-get-all.ts +2 -2
  320. package/src/funcs/schools-get.ts +11 -6
  321. package/src/funcs/users-activities-create.ts +14 -6
  322. package/src/funcs/users-activities-delete.ts +3 -2
  323. package/src/funcs/users-activities-get-all-of-user.ts +18 -6
  324. package/src/funcs/users-activities-get.ts +14 -6
  325. package/src/funcs/users-activities-me.ts +14 -6
  326. package/src/funcs/users-activities-update.ts +14 -6
  327. package/src/funcs/users-delete.ts +3 -2
  328. package/src/funcs/users-friends-accept.ts +176 -0
  329. package/src/funcs/users-friends-list.ts +182 -0
  330. package/src/funcs/users-friends-pending.ts +162 -0
  331. package/src/funcs/users-friends-reject.ts +176 -0
  332. package/src/funcs/users-friends-remove.ts +175 -0
  333. package/src/funcs/users-friends-send-request.ts +176 -0
  334. package/src/funcs/users-get.ts +11 -6
  335. package/src/funcs/users-login.ts +11 -6
  336. package/src/funcs/users-me.ts +14 -6
  337. package/src/funcs/users-posts-delete.ts +3 -2
  338. package/src/funcs/users-posts-feed.ts +8 -6
  339. package/src/funcs/users-posts-get-by-post-id.ts +11 -6
  340. package/src/funcs/users-posts-get-by-user-id.ts +14 -6
  341. package/src/funcs/users-posts-update.ts +11 -6
  342. package/src/funcs/users-signup.ts +8 -6
  343. package/src/funcs/users-update.ts +11 -6
  344. package/src/lib/config.ts +3 -3
  345. package/src/models/operations/accept-friend-request.ts +33 -0
  346. package/src/models/operations/index.ts +6 -0
  347. package/src/models/operations/list-friends.ts +68 -0
  348. package/src/models/operations/pending-friend-requests.ts +43 -0
  349. package/src/models/operations/reject-friend-request.ts +33 -0
  350. package/src/models/operations/remove-friend.ts +30 -0
  351. package/src/models/operations/send-friend-request.ts +30 -0
  352. package/src/sdk/activities.ts +5 -5
  353. package/src/sdk/categories.ts +3 -3
  354. package/src/sdk/friends.ts +97 -0
  355. package/src/sdk/posts.ts +4 -4
  356. package/src/sdk/schools.ts +1 -1
  357. package/src/sdk/users.ts +11 -5
  358. /package/rest-api/cypress/e2e/{activity-post-endpoints.cy.ts → activity-post-endpoints.cy.js} +0 -0
  359. /package/rest-api/cypress/e2e/{category-endpoints.cy.ts → category-endpoints.cy.js} +0 -0
  360. /package/rest-api/cypress/e2e/{user-activity-endpoints.cy.ts → user-activity-endpoints.cy.js} +0 -0
  361. /package/rest-api/cypress/e2e/{user-endpoints.cy.ts → user-endpoints.cy.js} +0 -0
@@ -24,6 +24,7 @@ import { SenseiProductivityError } from "../models/errors/sensei-productivity-er
24
24
  import * as operations from "../models/operations/index.js";
25
25
  import { APICall, APIPromise } from "../types/async.js";
26
26
  import { Result } from "../types/fp.js";
27
+ import * as types$ from "../types/primitives.js";
27
28
 
28
29
  /**
29
30
  * Get a user's posts (respects post visibility)
@@ -34,7 +35,7 @@ export function usersPostsGetByUserId(
34
35
  options?: RequestOptions,
35
36
  ): APIPromise<
36
37
  Result<
37
- Array<operations.GetUserPostsResponse>,
38
+ Array<operations.GetUserPostsResponse> | undefined,
38
39
  | SenseiProductivityError
39
40
  | ResponseValidationError
40
41
  | ConnectionError
@@ -59,7 +60,7 @@ async function $do(
59
60
  ): Promise<
60
61
  [
61
62
  Result<
62
- Array<operations.GetUserPostsResponse>,
63
+ Array<operations.GetUserPostsResponse> | undefined,
63
64
  | SenseiProductivityError
64
65
  | ResponseValidationError
65
66
  | ConnectionError
@@ -142,7 +143,7 @@ async function $do(
142
143
 
143
144
  const doResult = await client._do(req, {
144
145
  context,
145
- errorCodes: ["401", "403", "404", "4XX", "5XX"],
146
+ errorCodes: ["429", "5XX"],
146
147
  retryConfig: context.retryConfig,
147
148
  retryCodes: context.retryCodes,
148
149
  });
@@ -152,7 +153,7 @@ async function $do(
152
153
  const response = doResult.value;
153
154
 
154
155
  const [result] = await M.match<
155
- Array<operations.GetUserPostsResponse>,
156
+ Array<operations.GetUserPostsResponse> | undefined,
156
157
  | SenseiProductivityError
157
158
  | ResponseValidationError
158
159
  | ConnectionError
@@ -162,8 +163,15 @@ async function $do(
162
163
  | UnexpectedClientError
163
164
  | SDKValidationError
164
165
  >(
165
- M.json(200, z.array(operations.GetUserPostsResponse$inboundSchema)),
166
- M.fail([401, 403, 404, "4XX"]),
166
+ M.json(
167
+ 200,
168
+ types$.optional(z.array(operations.GetUserPostsResponse$inboundSchema)),
169
+ ),
170
+ M.nil(
171
+ [401, 403, 404],
172
+ types$.optional(z.array(operations.GetUserPostsResponse$inboundSchema)),
173
+ ),
174
+ M.fail(429),
167
175
  M.fail("5XX"),
168
176
  )(response, req);
169
177
  if (!result.ok) {
@@ -24,6 +24,7 @@ import { SenseiProductivityError } from "../models/errors/sensei-productivity-er
24
24
  import * as operations from "../models/operations/index.js";
25
25
  import { APICall, APIPromise } from "../types/async.js";
26
26
  import { Result } from "../types/fp.js";
27
+ import * as types$ from "../types/primitives.js";
27
28
 
28
29
  /**
29
30
  * Update a post's caption or visibility
@@ -34,7 +35,7 @@ export function usersPostsUpdate(
34
35
  options?: RequestOptions,
35
36
  ): APIPromise<
36
37
  Result<
37
- operations.UpdatePostResponse,
38
+ operations.UpdatePostResponse | undefined,
38
39
  | SenseiProductivityError
39
40
  | ResponseValidationError
40
41
  | ConnectionError
@@ -59,7 +60,7 @@ async function $do(
59
60
  ): Promise<
60
61
  [
61
62
  Result<
62
- operations.UpdatePostResponse,
63
+ operations.UpdatePostResponse | undefined,
63
64
  | SenseiProductivityError
64
65
  | ResponseValidationError
65
66
  | ConnectionError
@@ -143,7 +144,7 @@ async function $do(
143
144
 
144
145
  const doResult = await client._do(req, {
145
146
  context,
146
- errorCodes: ["400", "401", "403", "404", "4XX", "5XX"],
147
+ errorCodes: ["429", "5XX"],
147
148
  retryConfig: context.retryConfig,
148
149
  retryCodes: context.retryCodes,
149
150
  });
@@ -153,7 +154,7 @@ async function $do(
153
154
  const response = doResult.value;
154
155
 
155
156
  const [result] = await M.match<
156
- operations.UpdatePostResponse,
157
+ operations.UpdatePostResponse | undefined,
157
158
  | SenseiProductivityError
158
159
  | ResponseValidationError
159
160
  | ConnectionError
@@ -163,8 +164,12 @@ async function $do(
163
164
  | UnexpectedClientError
164
165
  | SDKValidationError
165
166
  >(
166
- M.json(200, operations.UpdatePostResponse$inboundSchema),
167
- M.fail([400, 401, 403, 404, "4XX"]),
167
+ M.json(200, types$.optional(operations.UpdatePostResponse$inboundSchema)),
168
+ M.nil(
169
+ [400, 401, 403, 404],
170
+ types$.optional(operations.UpdatePostResponse$inboundSchema),
171
+ ),
172
+ M.fail(429),
168
173
  M.fail("5XX"),
169
174
  )(response, req);
170
175
  if (!result.ok) {
@@ -24,6 +24,7 @@ import { SenseiProductivityError } from "../models/errors/sensei-productivity-er
24
24
  import * as operations from "../models/operations/index.js";
25
25
  import { APICall, APIPromise } from "../types/async.js";
26
26
  import { Result } from "../types/fp.js";
27
+ import * as types$ from "../types/primitives.js";
27
28
 
28
29
  /**
29
30
  * Signup the given user
@@ -34,7 +35,7 @@ export function usersSignup(
34
35
  options?: RequestOptions,
35
36
  ): APIPromise<
36
37
  Result<
37
- operations.UserSignupResponse,
38
+ operations.UserSignupResponse | undefined,
38
39
  | SenseiProductivityError
39
40
  | ResponseValidationError
40
41
  | ConnectionError
@@ -59,7 +60,7 @@ async function $do(
59
60
  ): Promise<
60
61
  [
61
62
  Result<
62
- operations.UserSignupResponse,
63
+ operations.UserSignupResponse | undefined,
63
64
  | SenseiProductivityError
64
65
  | ResponseValidationError
65
66
  | ConnectionError
@@ -136,7 +137,7 @@ async function $do(
136
137
 
137
138
  const doResult = await client._do(req, {
138
139
  context,
139
- errorCodes: ["400", "4XX", "5XX"],
140
+ errorCodes: ["429", "5XX"],
140
141
  retryConfig: context.retryConfig,
141
142
  retryCodes: context.retryCodes,
142
143
  });
@@ -146,7 +147,7 @@ async function $do(
146
147
  const response = doResult.value;
147
148
 
148
149
  const [result] = await M.match<
149
- operations.UserSignupResponse,
150
+ operations.UserSignupResponse | undefined,
150
151
  | SenseiProductivityError
151
152
  | ResponseValidationError
152
153
  | ConnectionError
@@ -156,8 +157,9 @@ async function $do(
156
157
  | UnexpectedClientError
157
158
  | SDKValidationError
158
159
  >(
159
- M.json(200, operations.UserSignupResponse$inboundSchema),
160
- M.fail([400, "4XX"]),
160
+ M.json(200, types$.optional(operations.UserSignupResponse$inboundSchema)),
161
+ M.nil(400, types$.optional(operations.UserSignupResponse$inboundSchema)),
162
+ M.fail(429),
161
163
  M.fail("5XX"),
162
164
  )(response, req);
163
165
  if (!result.ok) {
@@ -24,6 +24,7 @@ import { SenseiProductivityError } from "../models/errors/sensei-productivity-er
24
24
  import * as operations from "../models/operations/index.js";
25
25
  import { APICall, APIPromise } from "../types/async.js";
26
26
  import { Result } from "../types/fp.js";
27
+ import * as types$ from "../types/primitives.js";
27
28
 
28
29
  /**
29
30
  * Update a user's profile (own profile only)
@@ -34,7 +35,7 @@ export function usersUpdate(
34
35
  options?: RequestOptions,
35
36
  ): APIPromise<
36
37
  Result<
37
- operations.UpdateUserResponse,
38
+ operations.UpdateUserResponse | undefined,
38
39
  | SenseiProductivityError
39
40
  | ResponseValidationError
40
41
  | ConnectionError
@@ -59,7 +60,7 @@ async function $do(
59
60
  ): Promise<
60
61
  [
61
62
  Result<
62
- operations.UpdateUserResponse,
63
+ operations.UpdateUserResponse | undefined,
63
64
  | SenseiProductivityError
64
65
  | ResponseValidationError
65
66
  | ConnectionError
@@ -143,7 +144,7 @@ async function $do(
143
144
 
144
145
  const doResult = await client._do(req, {
145
146
  context,
146
- errorCodes: ["400", "401", "403", "404", "4XX", "5XX"],
147
+ errorCodes: ["429", "5XX"],
147
148
  retryConfig: context.retryConfig,
148
149
  retryCodes: context.retryCodes,
149
150
  });
@@ -153,7 +154,7 @@ async function $do(
153
154
  const response = doResult.value;
154
155
 
155
156
  const [result] = await M.match<
156
- operations.UpdateUserResponse,
157
+ operations.UpdateUserResponse | undefined,
157
158
  | SenseiProductivityError
158
159
  | ResponseValidationError
159
160
  | ConnectionError
@@ -163,8 +164,12 @@ async function $do(
163
164
  | UnexpectedClientError
164
165
  | SDKValidationError
165
166
  >(
166
- M.json(200, operations.UpdateUserResponse$inboundSchema),
167
- M.fail([400, 401, 403, 404, "4XX"]),
167
+ M.json(200, types$.optional(operations.UpdateUserResponse$inboundSchema)),
168
+ M.nil(
169
+ [400, 401, 403, 404],
170
+ types$.optional(operations.UpdateUserResponse$inboundSchema),
171
+ ),
172
+ M.fail(429),
168
173
  M.fail("5XX"),
169
174
  )(response, req);
170
175
  if (!result.ok) {
package/src/lib/config.ts CHANGED
@@ -60,9 +60,9 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
60
60
 
61
61
  export const SDK_METADATA = {
62
62
  language: "typescript",
63
- openapiDocVersion: "1.3.0",
64
- sdkVersion: "1.3.0",
63
+ openapiDocVersion: "1.4.0",
64
+ sdkVersion: "1.4.0",
65
65
  genVersion: "2.845.15",
66
66
  userAgent:
67
- "speakeasy-sdk/typescript 1.3.0 2.845.15 1.3.0 @aurora-interactive/sensei-productivity",
67
+ "speakeasy-sdk/typescript 1.4.0 2.845.15 1.4.0 @aurora-interactive/sensei-productivity",
68
68
  } as const;
@@ -0,0 +1,33 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+
7
+ export type AcceptFriendRequestRequest = {
8
+ /**
9
+ * The user_id of the user whose request you are accepting
10
+ */
11
+ id: number;
12
+ };
13
+
14
+ /** @internal */
15
+ export type AcceptFriendRequestRequest$Outbound = {
16
+ id: number;
17
+ };
18
+
19
+ /** @internal */
20
+ export const AcceptFriendRequestRequest$outboundSchema: z.ZodMiniType<
21
+ AcceptFriendRequestRequest$Outbound,
22
+ AcceptFriendRequestRequest
23
+ > = z.object({
24
+ id: z.int(),
25
+ });
26
+
27
+ export function acceptFriendRequestRequestToJSON(
28
+ acceptFriendRequestRequest: AcceptFriendRequestRequest,
29
+ ): string {
30
+ return JSON.stringify(
31
+ AcceptFriendRequestRequest$outboundSchema.parse(acceptFriendRequestRequest),
32
+ );
33
+ }
@@ -2,6 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
+ export * from "./accept-friend-request.js";
5
6
  export * from "./create-activity.js";
6
7
  export * from "./create-category.js";
7
8
  export * from "./delete-activity.js";
@@ -18,7 +19,12 @@ export * from "./get-user-by-id.js";
18
19
  export * from "./get-user-posts.js";
19
20
  export * from "./list-activities.js";
20
21
  export * from "./list-categories.js";
22
+ export * from "./list-friends.js";
21
23
  export * from "./list-schools.js";
24
+ export * from "./pending-friend-requests.js";
25
+ export * from "./reject-friend-request.js";
26
+ export * from "./remove-friend.js";
27
+ export * from "./send-friend-request.js";
22
28
  export * from "./update-activity.js";
23
29
  export * from "./update-category.js";
24
30
  export * from "./update-post.js";
@@ -0,0 +1,68 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import * as types from "../../types/primitives.js";
9
+ import { SDKValidationError } from "../errors/sdk-validation-error.js";
10
+
11
+ export type ListFriendsRequest = {
12
+ id: number;
13
+ };
14
+
15
+ export type ListFriendsResponse = {
16
+ userId: number;
17
+ firstName: string;
18
+ lastName: string;
19
+ username: string;
20
+ email: string;
21
+ schoolId: number;
22
+ schoolName: string;
23
+ };
24
+
25
+ /** @internal */
26
+ export type ListFriendsRequest$Outbound = {
27
+ id: number;
28
+ };
29
+
30
+ /** @internal */
31
+ export const ListFriendsRequest$outboundSchema: z.ZodMiniType<
32
+ ListFriendsRequest$Outbound,
33
+ ListFriendsRequest
34
+ > = z.object({
35
+ id: z.int(),
36
+ });
37
+
38
+ export function listFriendsRequestToJSON(
39
+ listFriendsRequest: ListFriendsRequest,
40
+ ): string {
41
+ return JSON.stringify(
42
+ ListFriendsRequest$outboundSchema.parse(listFriendsRequest),
43
+ );
44
+ }
45
+
46
+ /** @internal */
47
+ export const ListFriendsResponse$inboundSchema: z.ZodMiniType<
48
+ ListFriendsResponse,
49
+ unknown
50
+ > = z.object({
51
+ userId: types.number(),
52
+ firstName: types.string(),
53
+ lastName: types.string(),
54
+ username: types.string(),
55
+ email: types.string(),
56
+ schoolId: types.number(),
57
+ schoolName: types.string(),
58
+ });
59
+
60
+ export function listFriendsResponseFromJSON(
61
+ jsonString: string,
62
+ ): SafeParseResult<ListFriendsResponse, SDKValidationError> {
63
+ return safeParse(
64
+ jsonString,
65
+ (x) => ListFriendsResponse$inboundSchema.parse(JSON.parse(x)),
66
+ `Failed to parse 'ListFriendsResponse' from JSON`,
67
+ );
68
+ }
@@ -0,0 +1,43 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import * as types from "../../types/primitives.js";
9
+ import { SDKValidationError } from "../errors/sdk-validation-error.js";
10
+
11
+ export type PendingFriendRequestsResponse = {
12
+ userId: number;
13
+ firstName: string;
14
+ lastName: string;
15
+ username: string;
16
+ email: string;
17
+ schoolId: number;
18
+ schoolName: string;
19
+ };
20
+
21
+ /** @internal */
22
+ export const PendingFriendRequestsResponse$inboundSchema: z.ZodMiniType<
23
+ PendingFriendRequestsResponse,
24
+ unknown
25
+ > = z.object({
26
+ userId: types.number(),
27
+ firstName: types.string(),
28
+ lastName: types.string(),
29
+ username: types.string(),
30
+ email: types.string(),
31
+ schoolId: types.number(),
32
+ schoolName: types.string(),
33
+ });
34
+
35
+ export function pendingFriendRequestsResponseFromJSON(
36
+ jsonString: string,
37
+ ): SafeParseResult<PendingFriendRequestsResponse, SDKValidationError> {
38
+ return safeParse(
39
+ jsonString,
40
+ (x) => PendingFriendRequestsResponse$inboundSchema.parse(JSON.parse(x)),
41
+ `Failed to parse 'PendingFriendRequestsResponse' from JSON`,
42
+ );
43
+ }
@@ -0,0 +1,33 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+
7
+ export type RejectFriendRequestRequest = {
8
+ /**
9
+ * The user_id of the user whose request you are rejecting
10
+ */
11
+ id: number;
12
+ };
13
+
14
+ /** @internal */
15
+ export type RejectFriendRequestRequest$Outbound = {
16
+ id: number;
17
+ };
18
+
19
+ /** @internal */
20
+ export const RejectFriendRequestRequest$outboundSchema: z.ZodMiniType<
21
+ RejectFriendRequestRequest$Outbound,
22
+ RejectFriendRequestRequest
23
+ > = z.object({
24
+ id: z.int(),
25
+ });
26
+
27
+ export function rejectFriendRequestRequestToJSON(
28
+ rejectFriendRequestRequest: RejectFriendRequestRequest,
29
+ ): string {
30
+ return JSON.stringify(
31
+ RejectFriendRequestRequest$outboundSchema.parse(rejectFriendRequestRequest),
32
+ );
33
+ }
@@ -0,0 +1,30 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+
7
+ export type RemoveFriendRequest = {
8
+ friendId: number;
9
+ };
10
+
11
+ /** @internal */
12
+ export type RemoveFriendRequest$Outbound = {
13
+ friendId: number;
14
+ };
15
+
16
+ /** @internal */
17
+ export const RemoveFriendRequest$outboundSchema: z.ZodMiniType<
18
+ RemoveFriendRequest$Outbound,
19
+ RemoveFriendRequest
20
+ > = z.object({
21
+ friendId: z.int(),
22
+ });
23
+
24
+ export function removeFriendRequestToJSON(
25
+ removeFriendRequest: RemoveFriendRequest,
26
+ ): string {
27
+ return JSON.stringify(
28
+ RemoveFriendRequest$outboundSchema.parse(removeFriendRequest),
29
+ );
30
+ }
@@ -0,0 +1,30 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+
7
+ export type SendFriendRequestRequest = {
8
+ id: number;
9
+ };
10
+
11
+ /** @internal */
12
+ export type SendFriendRequestRequest$Outbound = {
13
+ id: number;
14
+ };
15
+
16
+ /** @internal */
17
+ export const SendFriendRequestRequest$outboundSchema: z.ZodMiniType<
18
+ SendFriendRequestRequest$Outbound,
19
+ SendFriendRequestRequest
20
+ > = z.object({
21
+ id: z.int(),
22
+ });
23
+
24
+ export function sendFriendRequestRequestToJSON(
25
+ sendFriendRequestRequest: SendFriendRequestRequest,
26
+ ): string {
27
+ return JSON.stringify(
28
+ SendFriendRequestRequest$outboundSchema.parse(sendFriendRequestRequest),
29
+ );
30
+ }
@@ -19,7 +19,7 @@ export class Activities extends ClientSDK {
19
19
  async getAllOfUser(
20
20
  request: operations.GetUserActivitiesRequest,
21
21
  options?: RequestOptions,
22
- ): Promise<Array<operations.GetUserActivitiesResponse>> {
22
+ ): Promise<Array<operations.GetUserActivitiesResponse> | undefined> {
23
23
  return unwrapAsync(usersActivitiesGetAllOfUser(
24
24
  this,
25
25
  request,
@@ -33,7 +33,7 @@ export class Activities extends ClientSDK {
33
33
  async me(
34
34
  request?: operations.ListActivitiesRequest | undefined,
35
35
  options?: RequestOptions,
36
- ): Promise<Array<operations.ListActivitiesResponse>> {
36
+ ): Promise<Array<operations.ListActivitiesResponse> | undefined> {
37
37
  return unwrapAsync(usersActivitiesMe(
38
38
  this,
39
39
  request,
@@ -47,7 +47,7 @@ export class Activities extends ClientSDK {
47
47
  async create(
48
48
  request: operations.CreateActivityRequest,
49
49
  options?: RequestOptions,
50
- ): Promise<operations.CreateActivityResponse> {
50
+ ): Promise<operations.CreateActivityResponse | undefined> {
51
51
  return unwrapAsync(usersActivitiesCreate(
52
52
  this,
53
53
  request,
@@ -61,7 +61,7 @@ export class Activities extends ClientSDK {
61
61
  async get(
62
62
  request: operations.GetActivityByIdRequest,
63
63
  options?: RequestOptions,
64
- ): Promise<operations.GetActivityByIdResponse> {
64
+ ): Promise<operations.GetActivityByIdResponse | undefined> {
65
65
  return unwrapAsync(usersActivitiesGet(
66
66
  this,
67
67
  request,
@@ -75,7 +75,7 @@ export class Activities extends ClientSDK {
75
75
  async update(
76
76
  request: operations.UpdateActivityRequest,
77
77
  options?: RequestOptions,
78
- ): Promise<operations.UpdateActivityResponse> {
78
+ ): Promise<operations.UpdateActivityResponse | undefined> {
79
79
  return unwrapAsync(usersActivitiesUpdate(
80
80
  this,
81
81
  request,
@@ -16,7 +16,7 @@ export class Categories extends ClientSDK {
16
16
  */
17
17
  async getAll(
18
18
  options?: RequestOptions,
19
- ): Promise<Array<operations.ListCategoriesResponse>> {
19
+ ): Promise<Array<operations.ListCategoriesResponse> | undefined> {
20
20
  return unwrapAsync(categoriesGetAll(
21
21
  this,
22
22
  options,
@@ -29,7 +29,7 @@ export class Categories extends ClientSDK {
29
29
  async create(
30
30
  request: operations.CreateCategoryRequest,
31
31
  options?: RequestOptions,
32
- ): Promise<operations.CreateCategoryResponse> {
32
+ ): Promise<operations.CreateCategoryResponse | undefined> {
33
33
  return unwrapAsync(categoriesCreate(
34
34
  this,
35
35
  request,
@@ -43,7 +43,7 @@ export class Categories extends ClientSDK {
43
43
  async update(
44
44
  request: operations.UpdateCategoryRequest,
45
45
  options?: RequestOptions,
46
- ): Promise<operations.UpdateCategoryResponse> {
46
+ ): Promise<operations.UpdateCategoryResponse | undefined> {
47
47
  return unwrapAsync(categoriesUpdate(
48
48
  this,
49
49
  request,
@@ -0,0 +1,97 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { usersFriendsAccept } from "../funcs/users-friends-accept.js";
6
+ import { usersFriendsList } from "../funcs/users-friends-list.js";
7
+ import { usersFriendsPending } from "../funcs/users-friends-pending.js";
8
+ import { usersFriendsReject } from "../funcs/users-friends-reject.js";
9
+ import { usersFriendsRemove } from "../funcs/users-friends-remove.js";
10
+ import { usersFriendsSendRequest } from "../funcs/users-friends-send-request.js";
11
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
12
+ import * as operations from "../models/operations/index.js";
13
+ import { unwrapAsync } from "../types/fp.js";
14
+
15
+ export class Friends extends ClientSDK {
16
+ /**
17
+ * List a user's friends
18
+ */
19
+ async list(
20
+ request: operations.ListFriendsRequest,
21
+ options?: RequestOptions,
22
+ ): Promise<Array<operations.ListFriendsResponse> | undefined> {
23
+ return unwrapAsync(usersFriendsList(
24
+ this,
25
+ request,
26
+ options,
27
+ ));
28
+ }
29
+
30
+ /**
31
+ * Get all pending friend requests
32
+ */
33
+ async pending(
34
+ options?: RequestOptions,
35
+ ): Promise<Array<operations.PendingFriendRequestsResponse> | undefined> {
36
+ return unwrapAsync(usersFriendsPending(
37
+ this,
38
+ options,
39
+ ));
40
+ }
41
+
42
+ /**
43
+ * Send a friend request to a user
44
+ */
45
+ async sendRequest(
46
+ request: operations.SendFriendRequestRequest,
47
+ options?: RequestOptions,
48
+ ): Promise<void> {
49
+ return unwrapAsync(usersFriendsSendRequest(
50
+ this,
51
+ request,
52
+ options,
53
+ ));
54
+ }
55
+
56
+ /**
57
+ * Accept a pending friend request
58
+ */
59
+ async accept(
60
+ request: operations.AcceptFriendRequestRequest,
61
+ options?: RequestOptions,
62
+ ): Promise<void> {
63
+ return unwrapAsync(usersFriendsAccept(
64
+ this,
65
+ request,
66
+ options,
67
+ ));
68
+ }
69
+
70
+ /**
71
+ * Reject a pending friend request
72
+ */
73
+ async reject(
74
+ request: operations.RejectFriendRequestRequest,
75
+ options?: RequestOptions,
76
+ ): Promise<void> {
77
+ return unwrapAsync(usersFriendsReject(
78
+ this,
79
+ request,
80
+ options,
81
+ ));
82
+ }
83
+
84
+ /**
85
+ * Remove a friend
86
+ */
87
+ async remove(
88
+ request: operations.RemoveFriendRequest,
89
+ options?: RequestOptions,
90
+ ): Promise<void> {
91
+ return unwrapAsync(usersFriendsRemove(
92
+ this,
93
+ request,
94
+ options,
95
+ ));
96
+ }
97
+ }