@@ -400,6 +400,24 @@ export const ExternalBuildData = z.object({
400400
401401export type ExternalBuildData = z . infer < typeof ExternalBuildData > ;
402402
403+ const anyString = z . custom < string & { } > ( ( v ) => typeof v === "string" ) ;
404+
405+ export const DeploymentTriggeredVia = z
406+ . enum ( [ "cli:manual" , "cli:ci" , "cli:github_actions" , "git_integration:github" , "dashboard" ] )
407+ . or ( anyString ) ;
408+
409+ export type DeploymentTriggeredVia = z . infer < typeof DeploymentTriggeredVia > ;
410+
411+ export const BuildServerMetadata = z . object ( {
412+ buildId : z . string ( ) . optional ( ) ,
413+ isNativeBuild : z . boolean ( ) . optional ( ) ,
414+ artifactKey : z . string ( ) . optional ( ) ,
415+ skipPromotion : z . boolean ( ) . optional ( ) ,
416+ configFilePath : z . string ( ) . optional ( ) ,
417+ } ) ;
418+
419+ export type BuildServerMetadata = z . infer < typeof BuildServerMetadata > ;
420+
403421export const UpsertBranchRequestBody = z . object ( {
404422 git : GitMeta . optional ( ) ,
405423 env : z . enum ( [ "preview" ] ) ,
@@ -462,6 +480,8 @@ export const InitializeDeploymentRequestBody = z
462480 type : z . enum ( [ "MANAGED" , "UNMANAGED" , "V1" ] ) . optional ( ) ,
463481 runtime : z . string ( ) . optional ( ) ,
464482 initialStatus : z . enum ( [ "PENDING" , "BUILDING" ] ) . optional ( ) ,
483+ triggeredVia : DeploymentTriggeredVia . optional ( ) ,
484+ buildId : z . string ( ) . optional ( ) ,
465485 } )
466486 . and (
467487 z . preprocess (
@@ -587,8 +607,6 @@ export const DeploymentLogEvent = z.object({
587607 } ) ,
588608} ) ;
589609
590- const anyString = z . custom < string & { } > ( ( v ) => typeof v === "string" ) ;
591-
592610export const DeploymentFinalizedEvent = z . object ( {
593611 type : z . literal ( "finalized" ) ,
594612 data : z . object ( {
0 commit comments