Path: blob/master/src/packages/next/lib/api/schema/accounts/sign-out.ts
1451 views
import { z } from "../../framework";12import {3FailedAPIOperationSchema,4SuccessfulAPIOperationSchema,5} from "../common";67// OpenAPI spec8//9export const AccountSignOutInputSchema = z10.object({11all: z12.boolean()13.nullable()14.describe("If `true`, all sessions for the user will be signed out."),15})16.describe(17`Sign out of the current session or all sessions. This invalidates 1 or more "Remember18Me" cookies for the account that is making the API request.`,19);2021export const AccountSignOutOutputSchema = z.union([22FailedAPIOperationSchema,23SuccessfulAPIOperationSchema,24]);2526export type AccountSignOutInput = z.infer<typeof AccountSignOutInputSchema>;27export type AccountSignOutOutput = z.infer<typeof AccountSignOutOutputSchema>;282930