@oxyhq/core 3.4.19 → 3.5.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.
@@ -331,6 +331,25 @@ function OxyServicesUserMixin(Base) {
331
331
  throw this.handleError(error);
332
332
  }
333
333
  }
334
+ /**
335
+ * Follow multiple users in a single request.
336
+ *
337
+ * POSTs `/users/follow/bulk` with `{ userIds }` (server caps the batch at
338
+ * 200). Returns the per-user outcomes and the count of users newly
339
+ * followed. An empty `userIds` array resolves immediately with an empty
340
+ * result and performs no network call.
341
+ */
342
+ async followUsers(userIds) {
343
+ if (userIds.length === 0) {
344
+ return { results: [], followedCount: 0 };
345
+ }
346
+ try {
347
+ return await this.makeRequest('POST', '/users/follow/bulk', { userIds }, { cache: false });
348
+ }
349
+ catch (error) {
350
+ throw this.handleError(error);
351
+ }
352
+ }
334
353
  /**
335
354
  * Unfollow a user
336
355
  */