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)
- custom_fields: dict[str, Any] | None = None#
Initial values for Ready custom fields on this session.
Each key must be the name of a
CustomFieldthat isReadyfor the caller’s org and theSessionentity type; each value must satisfy the field’s declared type. Names that are undefined or notReady, and values that don’t match the field’s type, are rejected with a structured error.
- description: str | None = None#
Optional description of the Session.
- device_ids: list[str] = None#
- metadata: dict[str, Any] = None#
Key-value metadata to associate with the Session.
Sessions cannot be filtered or sorted by
metadatakeys; for queryable structured attributes, define a custom field on theSessionentity type.
- model_config#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- name: str | None = None#
- tags: list[str] = None#
Tags to associate with the Session.
- 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)
- custom_fields_changeset: roboto.updates.CustomFieldChangeset | None = None#
Changes to apply to Ready custom-field values on this session.
Each referenced field name must be a
Readycustom field for this session’s org and theSessionentity type; eachset_fieldsvalue must satisfy the field’s declared type. Names that are undefined or notReadyare rejected with a structured error. Field names not mentioned by the changeset are left unchanged.
- description: str | roboto.sentinels.NotSetType | None#
New description for the Session. Set to
Noneto clear the description.
- metadata_changeset: roboto.updates.MetadataChangeset | roboto.sentinels.NotSetType#
Tag and metadata changes to merge into the Session (add, update, or remove fields and tags).
- 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.