MCPcopy Create free account
hub / github.com/LaunchPlatform/beanhub-cli / sync

Function sync

beanhub_cli/internal_api/api/auth/create_auth_session.py:94–115  ·  view source on GitHub ↗

Create auth session Args: body (AuthSessionRequest): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request takes longer than Client.timeout. Retur

(
    *,
    client: Union[AuthenticatedClient, Client],
    body: AuthSessionRequest,
)

Source from the content-addressed store, hash-verified

92
93
94def sync(
95 *,
96 client: Union[AuthenticatedClient, Client],
97 body: AuthSessionRequest,
98) -> Optional[Union[AuthSessionResponse, HTTPValidationError]]:
99 """Create auth session
100
101 Args:
102 body (AuthSessionRequest):
103
104 Raises:
105 errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
106 httpx.TimeoutException: If the request takes longer than Client.timeout.
107
108 Returns:
109 Union[AuthSessionResponse, HTTPValidationError]
110 """
111
112 return sync_detailed(
113 client=client,
114 body=body,
115 ).parsed
116
117
118async def asyncio_detailed(

Callers

nothing calls this directly

Calls 1

sync_detailedFunction · 0.70

Tested by

no test coverage detected