@layers/amba-react-native 4.0.8 → 4.0.10

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.
package/dist/index.cjs CHANGED
@@ -1817,7 +1817,7 @@ function delay(ms) {
1817
1817
  //#endregion
1818
1818
  //#region src/index.ts
1819
1819
  /** SDK semver — burned in at build time. Bump alongside package.json. */
1820
- const SDK_VERSION = "4.0.8";
1820
+ const SDK_VERSION = "4.0.10";
1821
1821
  /**
1822
1822
  * Default host that serves deployed functions. `Amba.functions.invoke(name)`
1823
1823
  * targets `https://<projectId>.<DEFAULT_FUNCTIONS_HOST>/<name>` unless a
@@ -3022,7 +3022,7 @@ const Amba = {
3022
3022
  return (await getState().http.get(P.friends, { state: "accepted" })).data;
3023
3023
  },
3024
3024
  sendRequest: async (userId) => {
3025
- return (await getState().http.post(`${P.friends}/request`, { user_id: userId })).data;
3025
+ return (await getState().http.post(`${P.friends}/request`, { addressee_id: userId })).data;
3026
3026
  },
3027
3027
  acceptRequest: async (friendshipId) => {
3028
3028
  return (await getState().http.post(`${P.friends}/${encodePathSegment(friendshipId)}/accept`, {})).data;