Skip to content

Commit a1d172f

Browse files
committed
sync loop api types with backend changes
1 parent 61e6e0d commit a1d172f

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

packages/api-client/src/loops.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export namespace LoopSchemas {
3737
| "deduped"
3838
| "overlap_skipped"
3939
| "rate_capped"
40+
| "team_rate_capped"
4041
| "disabled"
4142
| "gate_blocked";
4243
export type LoopRunStatusEnum =
@@ -178,6 +179,10 @@ export namespace LoopSchemas {
178179
repositories: Array<LoopRepositoryEntry>;
179180
sandbox_environment_id: string | null;
180181
enabled: boolean;
182+
/** Why the loop was paused when it wasn't the owner who paused it (e.g.
183+
* "owner_deactivated", "github_integration_disconnected"), or null for a normal pause.
184+
* Cleared when the loop is re-enabled. Read-only. */
185+
disabled_reason: string | null;
181186
overlap_policy: LoopOverlapPolicyEnum;
182187
behaviors: LoopBehaviors;
183188
connectors: LoopConnectors;
@@ -221,6 +226,10 @@ export namespace LoopSchemas {
221226
/** Context to attach this loop to, or null to detach. */
222227
context_target?: LoopContextTargetWrite | null;
223228
triggers?: Array<LoopTriggerWrite>;
229+
/** On a team loop, claim ownership as part of this update so you can edit
230+
* identity-bearing config (instructions, model, triggers, ...) that only the owner may
231+
* change. Ignored on personal loops and on create. Write-only. */
232+
take_ownership?: boolean;
224233
};
225234

226235
export type PatchedLoop = Partial<LoopWrite>;

0 commit comments

Comments
 (0)