@medplum/core 5.1.23 → 5.1.24

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.
@@ -213,12 +213,26 @@ export declare interface AgentHeartbeatResponse extends BaseAgentMessage {
213
213
  export declare interface AgentLogsRequest extends BaseAgentRequestMessage {
214
214
  type: 'agent:logs:request';
215
215
  limit?: number;
216
+ /**
217
+ * Opaque pagination cursor. Pass the `nextBefore` value from a previous
218
+ * response to fetch the next (older) page; treat it as an opaque token rather
219
+ * than parsing it. Logs are read across all rotated log files, not just the
220
+ * most recent one.
221
+ */
222
+ before?: string;
216
223
  }
217
224
 
218
225
  export declare interface AgentLogsResponse extends BaseAgentMessage {
219
226
  type: 'agent:logs:response';
220
227
  statusCode: number;
221
228
  logs: LogMessage[];
229
+ /** Whether more (older) log entries exist beyond the ones returned in this page. */
230
+ hasMore: boolean;
231
+ /**
232
+ * Opaque cursor to pass as `before` in a subsequent request to fetch the next
233
+ * older page. Only present when `hasMore` is true.
234
+ */
235
+ nextBefore?: string;
222
236
  }
223
237
 
224
238
  export declare type AgentMessage = AgentRequestMessage | AgentResponseMessage;
@@ -213,12 +213,26 @@ export declare interface AgentHeartbeatResponse extends BaseAgentMessage {
213
213
  export declare interface AgentLogsRequest extends BaseAgentRequestMessage {
214
214
  type: 'agent:logs:request';
215
215
  limit?: number;
216
+ /**
217
+ * Opaque pagination cursor. Pass the `nextBefore` value from a previous
218
+ * response to fetch the next (older) page; treat it as an opaque token rather
219
+ * than parsing it. Logs are read across all rotated log files, not just the
220
+ * most recent one.
221
+ */
222
+ before?: string;
216
223
  }
217
224
 
218
225
  export declare interface AgentLogsResponse extends BaseAgentMessage {
219
226
  type: 'agent:logs:response';
220
227
  statusCode: number;
221
228
  logs: LogMessage[];
229
+ /** Whether more (older) log entries exist beyond the ones returned in this page. */
230
+ hasMore: boolean;
231
+ /**
232
+ * Opaque cursor to pass as `before` in a subsequent request to fetch the next
233
+ * older page. Only present when `hasMore` is true.
234
+ */
235
+ nextBefore?: string;
222
236
  }
223
237
 
224
238
  export declare type AgentMessage = AgentRequestMessage | AgentResponseMessage;