@anthropic-ai/claude-agent-sdk 0.3.302 → 0.3.304

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/browser-sdk.d.ts CHANGED
@@ -182,3 +182,20 @@ export declare function getCcrEvent(query: Query, message: SDKMessage): {
182
182
  created_at?: string;
183
183
  source?: string;
184
184
  } | undefined;
185
+ /**
186
+ * Closes the event stream of an `sse` query without ending the query. The
187
+ * stream reopens on `resumeSseStream()` or on the query's next send, its own
188
+ * answers to earlier requests included. It then replays the durable events
189
+ * sent meanwhile (or `onCatchUpTruncated` fires). Until then, requests from
190
+ * the remote session, such as permission prompts, wait unanswered. So do the
191
+ * query's own requests in flight and sends still waiting for the first
192
+ * connection. Ephemeral frames and delivery updates sent meanwhile are lost.
193
+ * Returns false for a WebSocket, closed or suspended query.
194
+ */
195
+ export declare function suspendSseStream(query: Query): boolean;
196
+ /**
197
+ * Reopens the event stream that `suspendSseStream()` closed, resuming after
198
+ * the last event received. Returns false unless `query` is suspended and
199
+ * still open.
200
+ */
201
+ export declare function resumeSseStream(query: Query): boolean;