Skip to content

Commit e9d0c05

Browse files
committed
fix: regenerate openapi.json
Signed-off-by: Jana Peper <[email protected]>
1 parent f05eef6 commit e9d0c05

File tree

4 files changed

+113
-21
lines changed

4 files changed

+113
-21
lines changed

apps/webhook_listeners/lib/Controller/WebhooksController.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,11 @@ public function show(int $id): DataResponse {
112112
* @param ?array<string,string> $headers Array of headers to send
113113
* @param "none"|"header"|null $authMethod Authentication method to use
114114
* @param ?array<string,mixed> $authData Array of data for authentication
115-
* @param ?array{user_ids?:array<string,string>,user_roles?:array<string,string>} $tokenNeeded
116-
* List of user ids for which to include auth tokens in the event.
117-
* Has two fields: "user_ids" list of user uids for which tokens are needed, "user_roles" list of roles (users not defined by their ID but by the role they have in the webhook event) for which tokens can be included.
118-
* Possible roles: "owner" for the user creating the webhook, "trigger" for the user triggering the webhook call.
119-
* Requested auth tokens are valid for 1 hour after receiving them in the event call request.
115+
* @param ?array{user_ids?:list<string>,user_roles?:list<string>} $tokenNeeded
116+
* List of user ids for which to include auth tokens in the event.
117+
* Has two fields: "user_ids" list of user uids for which tokens are needed, "user_roles" list of roles (users not defined by their ID but by the role they have in the webhook event) for which tokens can be included.
118+
* Possible roles: "owner" for the user creating the webhook, "trigger" for the user triggering the webhook call.
119+
* Requested auth tokens are valid for 1 hour after receiving them in the event call request.
120120
*
121121
* @return DataResponse<Http::STATUS_OK, WebhookListenersWebhookInfo, array{}>
122122
*
@@ -187,11 +187,11 @@ public function create(
187187
* @param ?array<string,string> $headers Array of headers to send
188188
* @param "none"|"header"|null $authMethod Authentication method to use
189189
* @param ?array<string,mixed> $authData Array of data for authentication
190-
* @param ?array{user_ids?:array<string,string>,user_roles?:array<string,string>} $tokenNeeded
191-
* List of user ids for which to include auth tokens in the event.
192-
* Has two fields: "user_ids" list of user uids for which tokens are needed, "user_roles" list of roles (users not defined by their ID but by the role they have in the webhook event) for which tokens can be included.
193-
* Possible roles: "owner" for the user creating the webhook, "trigger" for the user triggering the webhook call.
194-
* Requested auth tokens are valid for 1 hour after receiving them in the event call request.
190+
* @param ?array{user_ids?:list<string>,user_roles?:list<string>} $tokenNeeded
191+
* List of user ids for which to include auth tokens in the event.
192+
* Has two fields: "user_ids" list of user uids for which tokens are needed, "user_roles" list of roles (users not defined by their ID but by the role they have in the webhook event) for which tokens can be included.
193+
* Possible roles: "owner" for the user creating the webhook, "trigger" for the user triggering the webhook call.
194+
* Requested auth tokens are valid for 1 hour after receiving them in the event call request.
195195
*
196196
* @return DataResponse<Http::STATUS_OK, WebhookListenersWebhookInfo, array{}>
197197
*

apps/webhook_listeners/lib/Db/EphemeralTokenMapper.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function __construct(
3939
/**
4040
* @throws DoesNotExistException
4141
* @throws MultipleObjectsReturnedException
42-
* @throws \Exception
42+
* @throws Exception
4343
*/
4444
public function getById(int $id): EphemeralToken {
4545
$qb = $this->db->getQueryBuilder();
@@ -75,7 +75,7 @@ public function getOlderThan($olderThan): array {
7575
}
7676

7777
/**
78-
* @throws \Exception
78+
* @throws Exception
7979
*/
8080
public function addEphemeralToken(
8181
int $tokenId,
@@ -93,7 +93,7 @@ public function addEphemeralToken(
9393
}
9494

9595
/**
96-
* @throws \Exception
96+
* @throws Exception
9797
*/
9898
public function deleteByTokenId(int $tokenId): bool {
9999
$qb = $this->db->getQueryBuilder();

apps/webhook_listeners/openapi.json

Lines changed: 42 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,20 @@
9595
},
9696
"tokenNeeded": {
9797
"type": "object",
98-
"additionalProperties": {
99-
"type": "object"
98+
"nullable": true,
99+
"properties": {
100+
"user_ids": {
101+
"type": "object",
102+
"additionalProperties": {
103+
"type": "string"
104+
}
105+
},
106+
"user_roles": {
107+
"type": "object",
108+
"additionalProperties": {
109+
"type": "string"
110+
}
111+
}
100112
}
101113
}
102114
}
@@ -315,9 +327,20 @@
315327
"type": "object",
316328
"nullable": true,
317329
"default": null,
318-
"description": "List of user ids for which to include auth tokens in the event. Has two fields: \"users\" list of user uids for which tokens are needed, \"functions\" list of functions for which tokens can be included. Possible functions: \"owner\" for the user creating the webhook, \"trigger\" for the user triggering the webhook call",
319-
"additionalProperties": {
320-
"type": "object"
330+
"description": "List of user ids for which to include auth tokens in the event. Has two fields: \"user_ids\" list of user uids for which tokens are needed, \"user_roles\" list of roles (users not defined by their ID but by the role they have in the webhook event) for which tokens can be included. Possible roles: \"owner\" for the user creating the webhook, \"trigger\" for the user triggering the webhook call. Requested auth tokens are valid for 1 hour after receiving them in the event call request.",
331+
"properties": {
332+
"user_ids": {
333+
"type": "array",
334+
"items": {
335+
"type": "string"
336+
}
337+
},
338+
"user_roles": {
339+
"type": "array",
340+
"items": {
341+
"type": "string"
342+
}
343+
}
321344
}
322345
}
323346
}
@@ -723,9 +746,20 @@
723746
"type": "object",
724747
"nullable": true,
725748
"default": null,
726-
"description": "List of user ids for which to include auth tokens in the event. Has two fields: \"users\" list of user uids for which tokens are needed, \"functions\" list of functions for which tokens can be included. Possible functions: \"owner\" for the user creating the webhook, \"trigger\" for the user triggering the webhook call",
727-
"additionalProperties": {
728-
"type": "object"
749+
"description": "List of user ids for which to include auth tokens in the event. Has two fields: \"user_ids\" list of user uids for which tokens are needed, \"user_roles\" list of roles (users not defined by their ID but by the role they have in the webhook event) for which tokens can be included. Possible roles: \"owner\" for the user creating the webhook, \"trigger\" for the user triggering the webhook call. Requested auth tokens are valid for 1 hour after receiving them in the event call request.",
750+
"properties": {
751+
"user_ids": {
752+
"type": "array",
753+
"items": {
754+
"type": "string"
755+
}
756+
},
757+
"user_roles": {
758+
"type": "array",
759+
"items": {
760+
"type": "string"
761+
}
762+
}
729763
}
730764
}
731765
}

openapi.json

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4687,6 +4687,24 @@
46874687
"additionalProperties": {
46884688
"type": "object"
46894689
}
4690+
},
4691+
"tokenNeeded": {
4692+
"type": "object",
4693+
"nullable": true,
4694+
"properties": {
4695+
"user_ids": {
4696+
"type": "object",
4697+
"additionalProperties": {
4698+
"type": "string"
4699+
}
4700+
},
4701+
"user_roles": {
4702+
"type": "object",
4703+
"additionalProperties": {
4704+
"type": "string"
4705+
}
4706+
}
4707+
}
46904708
}
46914709
}
46924710
}
@@ -37590,6 +37608,26 @@
3759037608
"additionalProperties": {
3759137609
"type": "object"
3759237610
}
37611+
},
37612+
"tokenNeeded": {
37613+
"type": "object",
37614+
"nullable": true,
37615+
"default": null,
37616+
"description": "List of user ids for which to include auth tokens in the event. Has two fields: \"user_ids\" list of user uids for which tokens are needed, \"user_roles\" list of roles (users not defined by their ID but by the role they have in the webhook event) for which tokens can be included. Possible roles: \"owner\" for the user creating the webhook, \"trigger\" for the user triggering the webhook call. Requested auth tokens are valid for 1 hour after receiving them in the event call request.",
37617+
"properties": {
37618+
"user_ids": {
37619+
"type": "array",
37620+
"items": {
37621+
"type": "string"
37622+
}
37623+
},
37624+
"user_roles": {
37625+
"type": "array",
37626+
"items": {
37627+
"type": "string"
37628+
}
37629+
}
37630+
}
3759337631
}
3759437632
}
3759537633
}
@@ -37989,6 +38027,26 @@
3798938027
"additionalProperties": {
3799038028
"type": "object"
3799138029
}
38030+
},
38031+
"tokenNeeded": {
38032+
"type": "object",
38033+
"nullable": true,
38034+
"default": null,
38035+
"description": "List of user ids for which to include auth tokens in the event. Has two fields: \"user_ids\" list of user uids for which tokens are needed, \"user_roles\" list of roles (users not defined by their ID but by the role they have in the webhook event) for which tokens can be included. Possible roles: \"owner\" for the user creating the webhook, \"trigger\" for the user triggering the webhook call. Requested auth tokens are valid for 1 hour after receiving them in the event call request.",
38036+
"properties": {
38037+
"user_ids": {
38038+
"type": "array",
38039+
"items": {
38040+
"type": "string"
38041+
}
38042+
},
38043+
"user_roles": {
38044+
"type": "array",
38045+
"items": {
38046+
"type": "string"
38047+
}
38048+
}
38049+
}
3799238050
}
3799338051
}
3799438052
}

0 commit comments

Comments
 (0)