Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b5a2b06

Browse files
committedMar 13, 2025
feat(api): api update (#3991)
1 parent b4fd763 commit b5a2b06

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
 

‎.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 1571
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-bcf7617272ec0b0db145fbe356f804b8261a42c820975eb2c52c0ce0ae39f2cb.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-7af102e2f912eabbee2bcef5940326458c5568c07e57297f6b2b46c2ea3259a8.yml

‎alerting/destinationwebhook.go

+5
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,10 @@ type Webhooks struct {
152152
// The name of the webhook destination. This will be included in the request body
153153
// when you receive a webhook notification.
154154
Name string `json:"name"`
155+
// Optional secret that will be passed in the `cf-webhook-auth` header when
156+
// dispatching generic webhook notifications or formatted for supported
157+
// destinations. Secrets are not returned in any API response body.
158+
Secret string `json:"secret"`
155159
// Type of webhook endpoint.
156160
Type WebhooksType `json:"type"`
157161
// The POST endpoint to call when dispatching a notification.
@@ -166,6 +170,7 @@ type webhooksJSON struct {
166170
LastFailure apijson.Field
167171
LastSuccess apijson.Field
168172
Name apijson.Field
173+
Secret apijson.Field
169174
Type apijson.Field
170175
URL apijson.Field
171176
raw string

0 commit comments

Comments
 (0)
Please sign in to comment.