Skip to content

Commit

Permalink
change add error definition
Browse files Browse the repository at this point in the history
  • Loading branch information
tatarco committed Dec 18, 2024
1 parent 0439af3 commit 6b0e678
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/funcs/subscribersAuthenticationChatAccessOauthCallBack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export async function subscribersAuthenticationChatAccessOauthCallBack(
options?: RequestOptions,
): Promise<
Result<
operations.SubscribersControllerChatOauthCallbackResponse | undefined,
operations.SubscribersControllerChatOauthCallbackResponse,
| errors.ErrorDto
| errors.ValidationErrorDto
| SDKError
Expand Down Expand Up @@ -140,7 +140,7 @@ export async function subscribersAuthenticationChatAccessOauthCallBack(
};

const [result] = await M.match<
operations.SubscribersControllerChatOauthCallbackResponse | undefined,
operations.SubscribersControllerChatOauthCallbackResponse,
| errors.ErrorDto
| errors.ValidationErrorDto
| SDKError
Expand All @@ -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 }),
Expand Down

0 comments on commit 6b0e678

Please sign in to comment.