From 967070a1dcba41a1e57d11b1d477199af7701613 Mon Sep 17 00:00:00 2001 From: Andrii Balitskyi <10balian10@gmail.com> Date: Thu, 15 May 2025 15:54:43 +0200 Subject: [PATCH 1/2] Generate /webhooks route and all the endpoints --- src/data/paths.yaml | 5 +++++ src/lib/reference.ts | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/data/paths.yaml b/src/data/paths.yaml index 4b9238aaa..2c74eba9f 100644 --- a/src/data/paths.yaml +++ b/src/data/paths.yaml @@ -80,3 +80,8 @@ title: Enrollment Automations resources: - enrollment_automation + +/webhooks: + title: Webhooks + resources: + - webhook diff --git a/src/lib/reference.ts b/src/lib/reference.ts index adae39a57..751349554 100644 --- a/src/lib/reference.ts +++ b/src/lib/reference.ts @@ -57,7 +57,8 @@ export const reference = ( !route.path.startsWith('/acs') && !route.path.startsWith('/thermostats') && !route.path.startsWith('/phones') && - !route.path.startsWith('/user_identities') + !route.path.startsWith('/user_identities') && + !route.path.startsWith('/webhooks') ) { continue } From 3a01524f8f49d6fa713542e9914372eaa791d0f1 Mon Sep 17 00:00:00 2001 From: Seam Bot Date: Thu, 15 May 2025 13:55:48 +0000 Subject: [PATCH 2/2] ci: Generate docs --- docs/api/_report.md | 1 - docs/api/webhooks/README.md | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 docs/api/webhooks/README.md diff --git a/docs/api/_report.md b/docs/api/_report.md index 327adc94d..7edd189ca 100644 --- a/docs/api/_report.md +++ b/docs/api/_report.md @@ -21,7 +21,6 @@ - `/noise_sensors` - `/noise_sensors/noise_thresholds` - `/noise_sensors/simulate` -- `/webhooks` - `/workspaces` ### Endpoints diff --git a/docs/api/webhooks/README.md b/docs/api/webhooks/README.md new file mode 100644 index 000000000..463a22f68 --- /dev/null +++ b/docs/api/webhooks/README.md @@ -0,0 +1,32 @@ +# Webhooks + +## `webhook` + +### `event_types` + +Format: `List` + +Item format: `String` + +--- + +### `secret` + +Format: `String` + +--- + +### `url` + +Format: `String` + +--- + +### `webhook_id` + +Format: `String` + +--- + +## Endpoints +