import { Endpoints as Gen } from './autogen/endpoint.js'; import { UserDetailed } from './autogen/models.js'; import { AdminRolesCreateRequest, AdminRolesCreateResponse, UsersShowRequest } from './autogen/entities.js'; import { PartialRolePolicyOverride, SigninFlowRequest, SigninFlowResponse, SigninWithPasskeyInitResponse, SigninWithPasskeyRequest, SigninWithPasskeyResponse, SignupPendingRequest, SignupPendingResponse, SignupRequest, SignupResponse } from './entities.js'; type Overwrite = Omit & U; type SwitchCase = { $switch: { $cases: [Condition, Result][]; $default: Result; }; }; type IsNeverType = [T] extends [never] ? true : false; type StrictExtract = Cond extends Union ? Union : never; type IsCaseMatched = Endpoints[E]['res'] extends SwitchCase ? IsNeverType> extends false ? true : false : false; type GetCaseResult = Endpoints[E]['res'] extends SwitchCase ? StrictExtract[1] : never; export type SwitchCaseResponseType = Endpoints[E]['res'] extends SwitchCase ? IsCaseMatched extends true ? GetCaseResult : IsCaseMatched extends true ? GetCaseResult : IsCaseMatched extends true ? GetCaseResult : IsCaseMatched extends true ? GetCaseResult : IsCaseMatched extends true ? GetCaseResult : IsCaseMatched extends true ? GetCaseResult : IsCaseMatched extends true ? GetCaseResult : IsCaseMatched extends true ? GetCaseResult : IsCaseMatched extends true ? GetCaseResult : IsCaseMatched extends true ? GetCaseResult : Endpoints[E]['res']['$switch']['$default'] : Endpoints[E]['res']; export type Endpoints = Overwrite; res: AdminRolesCreateResponse; }; }>; export {}; //# sourceMappingURL=api.types.d.ts.map