@@ -1213,19 +1213,34 @@ public function createFeedsBatch(GeneratedModels\CreateFeedsBatchRequest $reques
12131213 return StreamResponse::fromJson ($ this ->makeRequest ('POST ' , $ path , $ queryParams , $ requestData ), GeneratedModels \CreateFeedsBatchResponse::class);
12141214 }
12151215 /**
1216- * Retrieves capabilities for multiple feeds in a single request. Useful for batch processing when activities are added to feeds .
1216+ * Delete multiple feeds by their IDs. All feeds must exist. This endpoint is server-side only .
12171217 *
12181218 *
1219- * @param GeneratedModels\OwnCapabilitiesBatchRequest $requestData
1220- * @return StreamResponse<GeneratedModels\OwnCapabilitiesBatchResponse >
1219+ * @param GeneratedModels\DeleteFeedsBatchRequest $requestData
1220+ * @return StreamResponse<GeneratedModels\DeleteFeedsBatchResponse >
12211221 * @throws StreamException
12221222 */
1223- public function ownCapabilitiesBatch (GeneratedModels \OwnCapabilitiesBatchRequest $ requestData ): StreamResponse {
1224- $ path = '/api/v2/feeds/feeds/own_capabilities/batch ' ;
1223+ public function deleteFeedsBatch (GeneratedModels \DeleteFeedsBatchRequest $ requestData ): StreamResponse {
1224+ $ path = '/api/v2/feeds/feeds/delete ' ;
12251225
12261226 $ queryParams = [];
12271227 // Use the provided request data array directly
1228- return StreamResponse::fromJson ($ this ->makeRequest ('POST ' , $ path , $ queryParams , $ requestData ), GeneratedModels \OwnCapabilitiesBatchResponse::class);
1228+ return StreamResponse::fromJson ($ this ->makeRequest ('POST ' , $ path , $ queryParams , $ requestData ), GeneratedModels \DeleteFeedsBatchResponse::class);
1229+ }
1230+ /**
1231+ * Retrieves own_follows, own_capabilities, and/or own_membership for multiple feeds in a single request. If fields are not specified, all three fields are returned.
1232+ *
1233+ *
1234+ * @param GeneratedModels\OwnBatchRequest $requestData
1235+ * @return StreamResponse<GeneratedModels\OwnBatchResponse>
1236+ * @throws StreamException
1237+ */
1238+ public function ownBatch (GeneratedModels \OwnBatchRequest $ requestData ): StreamResponse {
1239+ $ path = '/api/v2/feeds/feeds/own/batch ' ;
1240+
1241+ $ queryParams = [];
1242+ // Use the provided request data array directly
1243+ return StreamResponse::fromJson ($ this ->makeRequest ('POST ' , $ path , $ queryParams , $ requestData ), GeneratedModels \OwnBatchResponse::class);
12291244 }
12301245 /**
12311246 * Query feeds with filter query
@@ -1337,6 +1352,21 @@ public function followBatch(GeneratedModels\FollowBatchRequest $requestData): St
13371352 // Use the provided request data array directly
13381353 return StreamResponse::fromJson ($ this ->makeRequest ('POST ' , $ path , $ queryParams , $ requestData ), GeneratedModels \FollowBatchResponse::class);
13391354 }
1355+ /**
1356+ * Creates or updates multiple follows at once. Does not return an error if follows already exist. Broadcasts FollowAddedEvent only for newly created follows.
1357+ *
1358+ *
1359+ * @param GeneratedModels\FollowBatchRequest $requestData
1360+ * @return StreamResponse<GeneratedModels\FollowBatchResponse>
1361+ * @throws StreamException
1362+ */
1363+ public function getOrCreateFollows (GeneratedModels \FollowBatchRequest $ requestData ): StreamResponse {
1364+ $ path = '/api/v2/feeds/follows/batch/upsert ' ;
1365+
1366+ $ queryParams = [];
1367+ // Use the provided request data array directly
1368+ return StreamResponse::fromJson ($ this ->makeRequest ('POST ' , $ path , $ queryParams , $ requestData ), GeneratedModels \FollowBatchResponse::class);
1369+ }
13401370 /**
13411371 * Query follows based on filters with pagination and sorting options
13421372 *
@@ -1481,20 +1511,36 @@ public function unfollowBatch(GeneratedModels\UnfollowBatchRequest $requestData)
14811511 return StreamResponse::fromJson ($ this ->makeRequest ('POST ' , $ path , $ queryParams , $ requestData ), GeneratedModels \UnfollowBatchResponse::class);
14821512 }
14831513 /**
1484- * Delete all activities, reactions, comments, and bookmarks for a user
1514+ * Removes multiple follows and broadcasts FollowRemovedEvent for each. Does not return an error if follows don't exist.
1515+ *
1516+ *
1517+ * @param GeneratedModels\UnfollowBatchRequest $requestData
1518+ * @return StreamResponse<GeneratedModels\UnfollowBatchResponse>
1519+ * @throws StreamException
1520+ */
1521+ public function getOrCreateUnfollows (GeneratedModels \UnfollowBatchRequest $ requestData ): StreamResponse {
1522+ $ path = '/api/v2/feeds/unfollow/batch/upsert ' ;
1523+
1524+ $ queryParams = [];
1525+ // Use the provided request data array directly
1526+ return StreamResponse::fromJson ($ this ->makeRequest ('POST ' , $ path , $ queryParams , $ requestData ), GeneratedModels \UnfollowBatchResponse::class);
1527+ }
1528+ /**
1529+ * Delete all feed data for a user including: feeds, activities, follows, comments, feed reactions, bookmark folders, bookmarks, and collections owned by the user
14851530 *
14861531 *
14871532 * @param string $userID
1533+ * @param GeneratedModels\DeleteFeedUserDataRequest $requestData
14881534 * @return StreamResponse<GeneratedModels\DeleteFeedUserDataResponse>
14891535 * @throws StreamException
14901536 */
1491- public function deleteFeedUserData (string $ userID ): StreamResponse {
1537+ public function deleteFeedUserData (string $ userID, GeneratedModels \ DeleteFeedUserDataRequest $ requestData ): StreamResponse {
14921538 $ path = '/api/v2/feeds/users/{user_id}/delete ' ;
14931539 $ path = str_replace ('{user_id} ' , (string ) $ userID , $ path );
14941540
14951541 $ queryParams = [];
1496- $ requestData = null ;
1497- return StreamResponse::fromJson ($ this ->makeRequest ('DELETE ' , $ path , $ queryParams , $ requestData ), GeneratedModels \DeleteFeedUserDataResponse::class);
1542+ // Use the provided request data array directly
1543+ return StreamResponse::fromJson ($ this ->makeRequest ('POST ' , $ path , $ queryParams , $ requestData ), GeneratedModels \DeleteFeedUserDataResponse::class);
14981544 }
14991545 /**
15001546 * Export all feed data for a user including: user profile, feeds, activities, follows, comments, feed reactions, bookmark folders, bookmarks, and collections owned by the user
0 commit comments