@@ -40,10 +40,7 @@ class ActVersion(BaseModel):
4040 extra = 'allow' ,
4141 populate_by_name = True ,
4242 )
43- source_type : Annotated [str | None , Field (alias = 'sourceType' , examples = ['SOURCE_FILES' ])] = None
44- """
45- The source type of the Actor version (e.g. SOURCE_FILES, GIT_REPO, TARBALL, GITHUB_GIST).
46- """
43+ source_type : Annotated [VersionSourceType | None , Field (alias = 'sourceType' )] = None
4744 build_tag : Annotated [str | None , Field (alias = 'buildTag' , examples = ['experimental' ])] = None
4845 version_number : Annotated [str | None , Field (alias = 'versionNumber' , examples = ['0.0' ])] = None
4946 git_repo_url : Annotated [
@@ -3629,20 +3626,6 @@ class Webhook(BaseModel):
36293626 stats : WebhookStats | None = None
36303627
36313628
3632- @docs_group ('Models' )
3633- class Webhook1 (BaseModel ):
3634- """A summary of the webhook that triggered this dispatch."""
3635-
3636- model_config = ConfigDict (
3637- extra = 'allow' ,
3638- populate_by_name = True ,
3639- )
3640- action_type : Annotated [str | None , Field (alias = 'actionType' , examples = ['HTTP_REQUEST' ])] = None
3641- condition : WebhookCondition | None = None
3642- request_url : Annotated [AnyUrl | None , Field (alias = 'requestUrl' , examples = ['https://example.com/webhook' ])] = None
3643- is_ad_hoc : Annotated [bool | None , Field (alias = 'isAdHoc' , examples = [False ])] = None
3644-
3645-
36463629@docs_group ('Models' )
36473630class WebhookCondition (BaseModel ):
36483631 model_config = ConfigDict (
@@ -3690,10 +3673,7 @@ class WebhookDispatch(BaseModel):
36903673 status : WebhookDispatchStatus
36913674 event_type : Annotated [WebhookEventType , Field (alias = 'eventType' )]
36923675 event_data : Annotated [EventData | None , Field (alias = 'eventData' , title = 'eventData' )] = None
3693- webhook : Annotated [Webhook1 | None , Field (title = 'WebhookDispatchWebhookSummary' )] = None
3694- """
3695- A summary of the webhook that triggered this dispatch.
3696- """
3676+ webhook : WebhookDispatchWebhookSummary | None = None
36973677 calls : Annotated [list [Call ] | None , Field (title = 'calls' )] = None
36983678
36993679
@@ -3702,6 +3682,20 @@ class WebhookDispatchResponse(TestWebhookResponse):
37023682 pass
37033683
37043684
3685+ @docs_group ('Models' )
3686+ class WebhookDispatchWebhookSummary (BaseModel ):
3687+ """A summary of the webhook that triggered this dispatch."""
3688+
3689+ model_config = ConfigDict (
3690+ extra = 'allow' ,
3691+ populate_by_name = True ,
3692+ )
3693+ action_type : Annotated [str | None , Field (alias = 'actionType' , examples = ['HTTP_REQUEST' ])] = None
3694+ condition : WebhookCondition | None = None
3695+ request_url : Annotated [AnyUrl | None , Field (alias = 'requestUrl' , examples = ['https://example.com/webhook' ])] = None
3696+ is_ad_hoc : Annotated [bool | None , Field (alias = 'isAdHoc' , examples = [False ])] = None
3697+
3698+
37053699@docs_group ('Models' )
37063700class WebhookRepresentation (BaseModel ):
37073701 """Minimal representation of an ad-hoc webhook attached to a single Actor run or build via the
0 commit comments