@@ -83,8 +83,13 @@ export class Invocations extends APIResource {
8383 * const response = await client.invocations.follow('id');
8484 * ```
8585 */
86- follow ( id : string , options ?: RequestOptions ) : APIPromise < Stream < InvocationFollowResponse > > {
86+ follow (
87+ id : string ,
88+ query : InvocationFollowParams | undefined = { } ,
89+ options ?: RequestOptions ,
90+ ) : APIPromise < Stream < InvocationFollowResponse > > {
8791 return this . _client . get ( path `/invocations/${ id } /events` , {
92+ query,
8893 ...options ,
8994 headers : buildHeaders ( [ { Accept : 'text/event-stream' } , options ?. headers ] ) ,
9095 stream : true ,
@@ -335,6 +340,13 @@ export interface InvocationUpdateParams {
335340 output ?: string ;
336341}
337342
343+ export interface InvocationFollowParams {
344+ /**
345+ * Show logs since the given time (RFC timestamps or durations like 5m).
346+ */
347+ since ?: string ;
348+ }
349+
338350export declare namespace Invocations {
339351 export {
340352 type InvocationStateEvent as InvocationStateEvent ,
@@ -344,5 +356,6 @@ export declare namespace Invocations {
344356 type InvocationFollowResponse as InvocationFollowResponse ,
345357 type InvocationCreateParams as InvocationCreateParams ,
346358 type InvocationUpdateParams as InvocationUpdateParams ,
359+ type InvocationFollowParams as InvocationFollowParams ,
347360 } ;
348361}
0 commit comments