@@ -48,8 +48,13 @@ export class Deployments extends APIResource {
4848 * const response = await client.deployments.follow('id');
4949 * ```
5050 */
51- follow ( id : string , options ?: RequestOptions ) : APIPromise < Stream < DeploymentFollowResponse > > {
51+ follow (
52+ id : string ,
53+ query : DeploymentFollowParams | undefined = { } ,
54+ options ?: RequestOptions ,
55+ ) : APIPromise < Stream < DeploymentFollowResponse > > {
5256 return this . _client . get ( path `/deployments/${ id } /events` , {
57+ query,
5358 ...options ,
5459 headers : buildHeaders ( [ { Accept : 'text/event-stream' } , options ?. headers ] ) ,
5560 stream : true ,
@@ -221,7 +226,8 @@ export type DeploymentFollowResponse =
221226 | Shared . LogEvent
222227 | DeploymentStateEvent
223228 | DeploymentFollowResponse . AppVersionSummaryEvent
224- | Shared . ErrorEvent ;
229+ | Shared . ErrorEvent
230+ | Shared . HeartbeatEvent ;
225231
226232export namespace DeploymentFollowResponse {
227233 /**
@@ -315,12 +321,20 @@ export interface DeploymentCreateParams {
315321 version ?: string ;
316322}
317323
324+ export interface DeploymentFollowParams {
325+ /**
326+ * Show logs since the given time (RFC timestamps or durations like 5m).
327+ */
328+ since ?: string ;
329+ }
330+
318331export declare namespace Deployments {
319332 export {
320333 type DeploymentStateEvent as DeploymentStateEvent ,
321334 type DeploymentCreateResponse as DeploymentCreateResponse ,
322335 type DeploymentRetrieveResponse as DeploymentRetrieveResponse ,
323336 type DeploymentFollowResponse as DeploymentFollowResponse ,
324337 type DeploymentCreateParams as DeploymentCreateParams ,
338+ type DeploymentFollowParams as DeploymentFollowParams ,
325339 } ;
326340}
0 commit comments