roboto.domain.sessions.operations#
Module Contents#
- class roboto.domain.sessions.operations.AddFilesRequest(/, **data)#
Bases:
pydantic.BaseModelRequest body for
POST /v1/sessions/id/<session_id>/files.Adds one or more files as contributions to the session.
- Parameters:
data (Any)
- files: list[SessionFile]#
- model_config#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class roboto.domain.sessions.operations.AttachToDeviceRequest(/, **data)#
Bases:
pydantic.BaseModelRequest body for
POST /v1/sessions/id/<session_id>/devices.Attaches a device as a subject of the session.
- Parameters:
data (Any)
- device_id: str#
- model_config#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class roboto.domain.sessions.operations.CreateSessionRequest(/, **data)#
Bases:
pydantic.BaseModelRequest body for
POST /v1/sessions.Creates a new session with zero, one, or many devices attached as subjects.
- Parameters:
data (Any)
- device_ids: list[str] = None#
- model_config#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- name: str | None = None#
- class roboto.domain.sessions.operations.DetachFromDeviceRequest(/, **data)#
Bases:
pydantic.BaseModelRequest body for
DELETE /v1/sessions/id/<session_id>/devices.Detaches a device from the session; the session itself is not deleted.
- Parameters:
data (Any)
- device_id: str#
- model_config#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class roboto.domain.sessions.operations.RemoveFilesRequest(/, **data)#
Bases:
pydantic.BaseModelRequest body for
DELETE /v1/sessions/id/<session_id>/files.Removes the listed files’ contributions from the session.
- Parameters:
data (Any)
- file_ids: list[str]#
- model_config#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class roboto.domain.sessions.operations.SessionFile(/, **data)#
Bases:
pydantic.BaseModelA file’s contribution to a session, optionally narrowed to a time range.
range_min_timestamp_nsandrange_max_timestamp_nsare absolute nanoseconds since the Unix epoch, the same coordinate system in which the session’s aggregate bounds are expressed. Leaving both bounds asNonecontributes the whole file’s time window. Both bounds must be set together or both omitted; half-open windows are rejected.- Parameters:
data (Any)
- file_id: str#
- model_config#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- range_max_timestamp_ns: int | None = None#
- range_min_timestamp_ns: int | None = None#
- class roboto.domain.sessions.operations.SessionUpdate(/, **data)#
Bases:
pydantic.BaseModelPartial update for a session.
Fields left at
NotSetare not modified.- Parameters:
data (Any)
- model_config#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- name: Annotated[str, pydantic.StringConstraints(max_length=120)] | roboto.sentinels.NotSetType | None#
New name for the Session (max 120 characters). Set to
Noneto clear the name.