auth_get_session

Retrieve current user session

Functions

async pydelfini.delfini_core.api.auth.auth_get_session.asyncio(*, client)[source]

Retrieve current user session

Raises:
  • errors.UnexpectedStatus – If the server returns a status code greater than or equal to 300.

  • httpx.TimeoutException – If the request takes longer than Client.timeout.

Returns:

Union[Any, AuthGetSessionResponse200]

Parameters:

client (AuthenticatedClient | Client)

Return type:

Any | AuthGetSessionResponse200

async pydelfini.delfini_core.api.auth.auth_get_session.asyncio_detailed(*, client)[source]

Retrieve current user session

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.

Returns:

Response[Union[Any, AuthGetSessionResponse200, ServerError]]

Parameters:

client (AuthenticatedClient | Client)

Return type:

Response[Any | AuthGetSessionResponse200 | ServerError]

pydelfini.delfini_core.api.auth.auth_get_session.sync(*, client)[source]

Retrieve current user session

Raises:
  • errors.UnexpectedStatus – If the server returns a status code greater than or equal to 300.

  • httpx.TimeoutException – If the request takes longer than Client.timeout.

Returns:

Union[Any, AuthGetSessionResponse200]

Parameters:

client (AuthenticatedClient | Client)

Return type:

Any | AuthGetSessionResponse200

pydelfini.delfini_core.api.auth.auth_get_session.sync_detailed(*, client)[source]

Retrieve current user session

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.

Returns:

Response[Union[Any, AuthGetSessionResponse200, ServerError]]

Parameters:

client (AuthenticatedClient | Client)

Return type:

Response[Any | AuthGetSessionResponse200 | ServerError]