You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Events delivered to this endpoint. `change.detected` fires only when a run detects a change; `run.completed` fires on every completed run — including runs that detected no change — and embeds the change when one was detected. Defaults to `["change.detected"]` when omitted.
31
+
*
32
+
* @var list<value-of<Event>>|null $events
33
+
*/
34
+
#[Optional(list: Event::class)]
35
+
public ?array$events;
36
+
26
37
/**
27
38
* Signing secret used to verify webhook authenticity. Each delivery includes an `X-Context-Signature: t=<unix>,v1=<hmac>` header, where the HMAC is SHA-256 over `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time compare and reject stale timestamps to prevent replay. Generated by the API; cannot be set by clients.
28
39
*/
@@ -52,20 +63,26 @@ public function __construct()
52
63
* Construct an instance from the required parameters.
53
64
*
54
65
* You must use named parameters to construct any parameters with a default value.
@@ -75,6 +92,19 @@ public function withURL(string $url): self
75
92
return$self;
76
93
}
77
94
95
+
/**
96
+
* Events delivered to this endpoint. `change.detected` fires only when a run detects a change; `run.completed` fires on every completed run — including runs that detected no change — and embeds the change when one was detected. Defaults to `["change.detected"]` when omitted.
97
+
*
98
+
* @param list<Event|value-of<Event>> $events
99
+
*/
100
+
publicfunctionwithEvents(array$events): self
101
+
{
102
+
$self = clone$this;
103
+
$self['events'] = $events;
104
+
105
+
return$self;
106
+
}
107
+
78
108
/**
79
109
* Signing secret used to verify webhook authenticity. Each delivery includes an `X-Context-Signature: t=<unix>,v1=<hmac>` header, where the HMAC is SHA-256 over `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time compare and reject stale timestamps to prevent replay. Generated by the API; cannot be set by clients.
* Events delivered to this endpoint. `change.detected` fires only when a run detects a change; `run.completed` fires on every completed run — including runs that detected no change — and embeds the change when one was detected. Defaults to `["change.detected"]` when omitted.
31
+
*
32
+
* @var list<value-of<Event>>|null $events
33
+
*/
34
+
#[Optional(list: Event::class)]
35
+
public ?array$events;
36
+
26
37
/**
27
38
* Signing secret used to verify webhook authenticity. Each delivery includes an `X-Context-Signature: t=<unix>,v1=<hmac>` header, where the HMAC is SHA-256 over `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time compare and reject stale timestamps to prevent replay. Generated by the API; cannot be set by clients.
28
39
*/
@@ -52,20 +63,26 @@ public function __construct()
52
63
* Construct an instance from the required parameters.
53
64
*
54
65
* You must use named parameters to construct any parameters with a default value.
@@ -75,6 +92,19 @@ public function withURL(string $url): self
75
92
return$self;
76
93
}
77
94
95
+
/**
96
+
* Events delivered to this endpoint. `change.detected` fires only when a run detects a change; `run.completed` fires on every completed run — including runs that detected no change — and embeds the change when one was detected. Defaults to `["change.detected"]` when omitted.
97
+
*
98
+
* @param list<Event|value-of<Event>> $events
99
+
*/
100
+
publicfunctionwithEvents(array$events): self
101
+
{
102
+
$self = clone$this;
103
+
$self['events'] = $events;
104
+
105
+
return$self;
106
+
}
107
+
78
108
/**
79
109
* Signing secret used to verify webhook authenticity. Each delivery includes an `X-Context-Signature: t=<unix>,v1=<hmac>` header, where the HMAC is SHA-256 over `"{t}.{rawRequestBody}"` keyed by this secret. Recompute it with a constant-time compare and reject stale timestamps to prevent replay. Generated by the API; cannot be set by clients.
@@ -109,7 +112,17 @@ final class Data implements BaseModel
109
112
public ?\DateTimeInterface$startedAt;
110
113
111
114
/**
112
-
* The webhook delivery attempted for a change detected by this run. Omitted when no webhook was attempted, including historical runs created before delivery tracking was added.
115
+
* All webhook deliveries attempted by this run — one per subscribed event that fired. Omitted when no webhook was attempted, including runs created before event selection was added.
* Deprecated: use `webhook_deliveries`, which records every attempt now that a run can deliver multiple events. Omitted when no webhook was attempted, including historical runs created before delivery tracking was added.
@@ -348,7 +364,20 @@ public function withStartedAt(?\DateTimeInterface $startedAt): self
348
364
}
349
365
350
366
/**
351
-
* The webhook delivery attempted for a change detected by this run. Omitted when no webhook was attempted, including historical runs created before delivery tracking was added.
367
+
* All webhook deliveries attempted by this run — one per subscribed event that fired. Omitted when no webhook was attempted, including runs created before event selection was added.
* Deprecated: use `webhook_deliveries`, which records every attempt now that a run can deliver multiple events. Omitted when no webhook was attempted, including historical runs created before delivery tracking was added.
* The webhook delivery attempted for a change detected by this run. Omitted when no webhook was attempted, including historical runs created before delivery tracking was added.
15
+
* Deprecated: use `webhook_deliveries`, which records every attempt now that a run can deliver multiple events. Omitted when no webhook was attempted, including historical runs created before delivery tracking was added.
16
+
*
17
+
* @deprecated
15
18
*
16
19
* @phpstan-import-type ErrorShape from \ContextDev\Monitors\MonitorListAccountRunsResponse\Data\WebhookDelivery\Error
0 commit comments