From d56ba868519c673c59bb7074af0c595f4fe5cb47 Mon Sep 17 00:00:00 2001 From: TomatoCake <60300461+DEVTomatoCake@users.noreply.github.com> Date: Sat, 13 Jul 2024 06:09:07 +0200 Subject: [PATCH] Update schema & add response type --- assets/openapi.json | Bin 581490 -> 582010 bytes assets/schemas.json | Bin 19250985 -> 19384340 bytes .../routes/policies/instance/connections.ts | 2 +- src/util/schemas/responses/TypedResponses.ts | 10 +++++++--- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/assets/openapi.json b/assets/openapi.json index 0a211d3c30e6fecaff7eedb22937a8e90e8364c4..a6f5d962c8e2509102bdfbe40c2127cc106286ad 100644 GIT binary patch delta 168 zcmeygPx;p&<%TVcH*BXXoMcj*?rFy;HhsZ&M#YS~8?duY*HdDYm_FeeBm4Ai z_ZUqkC&)-mpP<9YF}+5Yk#q9mWs=h$*fX-WAFyWxVkRJF24a@&2kco51*ZGCuyRcA z_hsdr?tF{Ie48h$9HX#veqLT`a!F=>UNMlFmYH5!H2uO>j{OAeY(C9 zqxiI)Osvzr?lGE84`^hRnQm~Ck*!_do)L(dfS4JGS+?ujvqlKC{|saWVm2UV-~Ka@ Hqp=?VtNSNr diff --git a/assets/schemas.json b/assets/schemas.json index a77f86b6771c9397acc37934a29a2205f1064d2d..c5a5bedd07b2152b4e838a52b78d7044697bf592 100644 GIT binary patch delta 4680 zcmai%dpOm19LJxp`{9s^ZjPjm+mUqB1yR|e&J#kY#U^T;q!JamRq7kZ&dDXeEh{r3 zD|Snt9OZYmwa3(HE{mRQmPeaRIkTQxql5kM?63OR-{*DS@6YG^d4Dgz%8^1|!I@%S z##M62o5?WU?!(OU9O@{X=c`Y<%;rFsnT1HeIG5|_Gsf0rI^DcW3pVf4wpoC&lw-lU zTsImgf*$KZ&}03}^Dzyke~*zqW0|#@M^$z_P}vzq*3q!3~ese;b<@_wVonmJohm?sI#LU^qgL&be*{bFR;ew|O%r63~sW ztYPD;`2j0YBGg|9q5d{$ZzyykJTyPg7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(9!7$7|`v`a`g>zF3NCX4dqz zrIbyZKrqX>TVlbc?QEPE&qDr7z;eB}xc>CTu`%y0_WYMb!-Hry8Mn>eR3B$!0vojBW^Sh7G}g^hY%_ z?aOb0zWmdXICM(K8A$0ktMa1j0n{d?J(Zo%Q`uF8Yl%Il zLY5o$?j>P&2;&l!9Md*&V)oVdN+)e@u{T++u@!A)m)^EG$Dw`agG}ezVZ3rU|HOdVo}tac>eb z?)~c!PRVQ1|G;a~DP#uCc0UBO-P4azyOr{@3JFa!H^MNZMDynV3wiU83vs%mBA!50 z#8YHW918yj4u!KvQMMO{nq8O`IkU*|?_xAuiz!X%dpTj#~GO z4@F36_{&ZjPH=TlyIeFTdY6kPBpG$ys;|tN68)7~Gt!6Jvg(Bgq5e*&fZX@T)K2YC zE+l$~a!cZZ3R!))--_rD_gj-Fg#MpiMryIpmgvPoj%-3i5h+$*j}sC7^|)n3iNFVl z)fFl`qOVZdlebW1R{MV8K=i&}IFeSJeP0V_9&h17wxaNCSm)?$IIHW0Hiie$)GAkJ zHs&Vq()!1H5echqb92y)MM(7W3Nc9~OFpcF#Oj4tr@p&<1(`+Eg3prGfQ0C+2HZ#x xE{cU4mii?BFI0b0;7MNKQu`p*i|8N3O35q^zoy)q=+~6XNDV^NYO#^9=>OhMP*4B> diff --git a/src/api/routes/policies/instance/connections.ts b/src/api/routes/policies/instance/connections.ts index dc557853..37c20a37 100644 --- a/src/api/routes/policies/instance/connections.ts +++ b/src/api/routes/policies/instance/connections.ts @@ -26,7 +26,7 @@ router.get( route({ responses: { 200: { - body: "APILimitsConfiguration", + body: "APIConnectionsConfiguration", }, }, }), diff --git a/src/util/schemas/responses/TypedResponses.ts b/src/util/schemas/responses/TypedResponses.ts index fa169c25..14067844 100644 --- a/src/util/schemas/responses/TypedResponses.ts +++ b/src/util/schemas/responses/TypedResponses.ts @@ -1,17 +1,17 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -104,3 +104,7 @@ export type APIGuildVoiceRegion = GuildVoiceRegion[]; export type APILimitsConfiguration = LimitsConfiguration; export type APIStickerPackArray = StickerPack[]; + +export type APIConnectionsConfiguration = Record;