From 51bb85e4a284e11fae44c89d4126fcfb550eae0a Mon Sep 17 00:00:00 2001 From: Jimmy Pettersson Date: Thu, 8 Oct 2026 11:40:13 +0200 Subject: [PATCH] feat(feeds): add selector time_budget_ms and degraded_selectors Co-Authored-By: Claude Opus 5.5 --- src/gen/models/index.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/gen/models/index.ts b/src/gen/models/index.ts index 1d22700..d7270b5 100644 --- a/src/gen/models/index.ts +++ b/src/gen/models/index.ts @@ -890,6 +890,10 @@ export interface ActivitySelectorConfig { * Maximum number of candidate activities this selector contributes to a ranked feed (1-1000). Omit to use the default ranking buffer. Only supported on the popular, proximity, interest and query selectors, and ignored on feeds without ranking */ ranking_candidate_limit?: number; + /** + * Maximum time in milliseconds this selector may take (25-5000). A selector that runs over its budget is dropped from that read instead of failing it, and stays out for the rest of that pagination session. The budget can only tighten the default, never extend it. Omit to use the default. Only supported on the popular, proximity, interest, query and follow_suggestion selectors + */ + time_budget_ms?: number; /** * Sort parameters for activity selection */ @@ -930,6 +934,10 @@ export interface ActivitySelectorConfigResponse { * Maximum number of candidate activities this selector contributes to a ranked feed */ ranking_candidate_limit?: number; + /** + * Maximum time in milliseconds this selector may take before it is dropped from the read + */ + time_budget_ms?: number; /** * Sort parameters for activity selection */ @@ -10627,6 +10635,10 @@ export interface GetOrCreateFeedResponse { feed: FeedResponse; next?: string; prev?: string; + /** + * Activity selectors dropped from this read because they exceeded their time budget (see the time_budget_ms selector setting). Their activities are missing from this page, and they stay out for the rest of this pagination session. Omitted when every selector completed + */ + degraded_selectors?: Array; followers_pagination?: PagerResponse; following_pagination?: PagerResponse; member_pagination?: PagerResponse;