diff --git a/src/funcs/subscribersAuthenticationChatAccessOauthCallBack.ts b/src/funcs/subscribersAuthenticationChatAccessOauthCallBack.ts index 2184e85d..287454cf 100644 --- a/src/funcs/subscribersAuthenticationChatAccessOauthCallBack.ts +++ b/src/funcs/subscribersAuthenticationChatAccessOauthCallBack.ts @@ -31,7 +31,7 @@ export async function subscribersAuthenticationChatAccessOauthCallBack( options?: RequestOptions, ): Promise< Result< - operations.SubscribersControllerChatOauthCallbackResponse | undefined, + operations.SubscribersControllerChatOauthCallbackResponse, | errors.ErrorDto | errors.ValidationErrorDto | SDKError @@ -140,7 +140,7 @@ export async function subscribersAuthenticationChatAccessOauthCallBack( }; const [result] = await M.match< - operations.SubscribersControllerChatOauthCallbackResponse | undefined, + operations.SubscribersControllerChatOauthCallbackResponse, | errors.ErrorDto | errors.ValidationErrorDto | SDKError @@ -153,15 +153,13 @@ export async function subscribersAuthenticationChatAccessOauthCallBack( >( M.json( 200, - operations.SubscribersControllerChatOauthCallbackResponse$inboundSchema - .optional(), + operations.SubscribersControllerChatOauthCallbackResponse$inboundSchema, { hdrs: true, key: "Result" }, ), - M.nil( + M.json( 302, - operations.SubscribersControllerChatOauthCallbackResponse$inboundSchema - .optional(), - { hdrs: true }, + operations.SubscribersControllerChatOauthCallbackResponse$inboundSchema, + { hdrs: true, key: "Result" }, ), M.jsonErr([400, 404, 409], errors.ErrorDto$inboundSchema, { hdrs: true }), M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }),