Class AsyncSessionsClient
- java.lang.Object
-
- com.chrt.api.resources.tracking.sessions.AsyncSessionsClient
-
public class AsyncSessionsClient extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientOptionsclientOptions
-
Constructor Summary
Constructors Constructor Description AsyncSessionsClient(ClientOptions clientOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<java.lang.Boolean>addFlightV1(SessionAddFlightReq1 request)Adds a flight number and FA flight IDs to an existing session.java.util.concurrent.CompletableFuture<java.lang.Boolean>addFlightV1(SessionAddFlightReq1 request, RequestOptions requestOptions)Adds a flight number and FA flight IDs to an existing session.java.util.concurrent.CompletableFuture<java.lang.String>createSessionV1(SessionClientCreate1 request)Creates a new tracking session for a device and automatically starts recording data points.java.util.concurrent.CompletableFuture<java.lang.String>createSessionV1(SessionClientCreate1 request, RequestOptions requestOptions)Creates a new tracking session for a device and automatically starts recording data points.java.util.concurrent.CompletableFuture<Session1>getV1(SessionsGetV1Request request)Retrieves a single session by its ID.java.util.concurrent.CompletableFuture<Session1>getV1(SessionsGetV1Request request, RequestOptions requestOptions)Retrieves a single session by its ID.java.util.concurrent.CompletableFuture<SessionListRes>listV1()Lists sessions with filtering, sorting, and pagination.java.util.concurrent.CompletableFuture<SessionListRes>listV1(SessionsListV1Request request)Lists sessions with filtering, sorting, and pagination.java.util.concurrent.CompletableFuture<SessionListRes>listV1(SessionsListV1Request request, RequestOptions requestOptions)Lists sessions with filtering, sorting, and pagination.java.util.concurrent.CompletableFuture<java.lang.Boolean>removeFlightV1(SessionRemoveFlightReq1 request)Removes a flight number and FA flight IDs from a session.java.util.concurrent.CompletableFuture<java.lang.Boolean>removeFlightV1(SessionRemoveFlightReq1 request, RequestOptions requestOptions)Removes a flight number and FA flight IDs from a session.java.util.concurrent.CompletableFuture<SessionSearchRes>searchV1(SessionsSearchV1Request request)Search across session comments, device_mac_address, flight_numbers, and off_chrt_reference_id.java.util.concurrent.CompletableFuture<SessionSearchRes>searchV1(SessionsSearchV1Request request, RequestOptions requestOptions)Search across session comments, device_mac_address, flight_numbers, and off_chrt_reference_id.java.util.concurrent.CompletableFuture<java.lang.Boolean>syncFlightStatusV1(SessionsSyncFlightStatusV1Request request)Fetches current OOOI timestamps from FlightAware for each fa_flight_id on the session and updates flight_status_by_fa_flight_id.java.util.concurrent.CompletableFuture<java.lang.Boolean>syncFlightStatusV1(SessionsSyncFlightStatusV1Request request, RequestOptions requestOptions)Fetches current OOOI timestamps from FlightAware for each fa_flight_id on the session and updates flight_status_by_fa_flight_id.java.util.concurrent.CompletableFuture<java.lang.Boolean>terminateV1(SessionsTerminateV1Request request)Terminates a session.java.util.concurrent.CompletableFuture<java.lang.Boolean>terminateV1(SessionsTerminateV1Request request, RequestOptions requestOptions)Terminates a session.java.util.concurrent.CompletableFuture<java.util.List<TrackingTypeaheadResult>>typeaheadV1(SessionsTypeaheadV1Request request)Returns distinct device_mac_address and off_chrt_reference_id values matching the query via case-insensitive regex, searching sessions.java.util.concurrent.CompletableFuture<java.util.List<TrackingTypeaheadResult>>typeaheadV1(SessionsTypeaheadV1Request request, RequestOptions requestOptions)Returns distinct device_mac_address and off_chrt_reference_id values matching the query via case-insensitive regex, searching sessions.java.util.concurrent.CompletableFuture<java.lang.Boolean>updateSharedOrgsV1(SessionsUpdateSharedOrgsReq1 request)Adds and/or removes org_ids from a session's shared_with_org_ids list.java.util.concurrent.CompletableFuture<java.lang.Boolean>updateSharedOrgsV1(SessionsUpdateSharedOrgsReq1 request, RequestOptions requestOptions)Adds and/or removes org_ids from a session's shared_with_org_ids list.java.util.concurrent.CompletableFuture<java.lang.Boolean>updateV1(SessionClientUpdate1 request)Updates a session's metadata.java.util.concurrent.CompletableFuture<java.lang.Boolean>updateV1(SessionClientUpdate1 request, RequestOptions requestOptions)Updates a session's metadata.AsyncRawSessionsClientwithRawResponse()Get responses with HTTP metadata like headers
-
-
-
Field Detail
-
clientOptions
protected final ClientOptions clientOptions
-
-
Constructor Detail
-
AsyncSessionsClient
public AsyncSessionsClient(ClientOptions clientOptions)
-
-
Method Detail
-
withRawResponse
public AsyncRawSessionsClient withRawResponse()
Get responses with HTTP metadata like headers
-
listV1
public java.util.concurrent.CompletableFuture<SessionListRes> listV1()
Lists sessions with filtering, sorting, and pagination. Use org_scope to restrict to owned, shared, or both (default). | authz: min_org_role=operator | () -> (SessionListRes)
-
listV1
public java.util.concurrent.CompletableFuture<SessionListRes> listV1(SessionsListV1Request request)
Lists sessions with filtering, sorting, and pagination. Use org_scope to restrict to owned, shared, or both (default). | authz: min_org_role=operator | () -> (SessionListRes)
-
listV1
public java.util.concurrent.CompletableFuture<SessionListRes> listV1(SessionsListV1Request request, RequestOptions requestOptions)
Lists sessions with filtering, sorting, and pagination. Use org_scope to restrict to owned, shared, or both (default). | authz: min_org_role=operator | () -> (SessionListRes)
-
getV1
public java.util.concurrent.CompletableFuture<Session1> getV1(SessionsGetV1Request request)
Retrieves a single session by its ID. Access restricted to the caller's organization or shared organizations. | authz: min_org_role=operator | () -> (Session1)
-
getV1
public java.util.concurrent.CompletableFuture<Session1> getV1(SessionsGetV1Request request, RequestOptions requestOptions)
Retrieves a single session by its ID. Access restricted to the caller's organization or shared organizations. | authz: min_org_role=operator | () -> (Session1)
-
typeaheadV1
public java.util.concurrent.CompletableFuture<java.util.List<TrackingTypeaheadResult>> typeaheadV1(SessionsTypeaheadV1Request request)
Returns distinct device_mac_address and off_chrt_reference_id values matching the query via case-insensitive regex, searching sessions. Use org_scope to restrict to owned, shared, or both (default). | authz: min_org_role=operator | () -> (list[TrackingTypeaheadResult])
-
typeaheadV1
public java.util.concurrent.CompletableFuture<java.util.List<TrackingTypeaheadResult>> typeaheadV1(SessionsTypeaheadV1Request request, RequestOptions requestOptions)
Returns distinct device_mac_address and off_chrt_reference_id values matching the query via case-insensitive regex, searching sessions. Use org_scope to restrict to owned, shared, or both (default). | authz: min_org_role=operator | () -> (list[TrackingTypeaheadResult])
-
searchV1
public java.util.concurrent.CompletableFuture<SessionSearchRes> searchV1(SessionsSearchV1Request request)
Search across session comments, device_mac_address, flight_numbers, and off_chrt_reference_id. Handles both partial and full matches. Use org_scope to restrict to owned, shared, or both (default). | authz: min_org_role=operator | () -> (SessionSearchRes)
-
searchV1
public java.util.concurrent.CompletableFuture<SessionSearchRes> searchV1(SessionsSearchV1Request request, RequestOptions requestOptions)
Search across session comments, device_mac_address, flight_numbers, and off_chrt_reference_id. Handles both partial and full matches. Use org_scope to restrict to owned, shared, or both (default). | authz: min_org_role=operator | () -> (SessionSearchRes)
-
createSessionV1
public java.util.concurrent.CompletableFuture<java.lang.String> createSessionV1(SessionClientCreate1 request)
Creates a new tracking session for a device and automatically starts recording data points. The caller must be the device owner or belong to an org the device is shared with. The device owner remains the session owner (org_id). The device's shared_with_org_ids are copied to the session. The device must not have an active session. Auto-termination is scheduled for ~3 days out at 8 PM PT. Prevent auto termination withno_auto_termination=True| (SessionClientCreate1) -> (PydanticObjectId)
-
createSessionV1
public java.util.concurrent.CompletableFuture<java.lang.String> createSessionV1(SessionClientCreate1 request, RequestOptions requestOptions)
Creates a new tracking session for a device and automatically starts recording data points. The caller must be the device owner or belong to an org the device is shared with. The device owner remains the session owner (org_id). The device's shared_with_org_ids are copied to the session. The device must not have an active session. Auto-termination is scheduled for ~3 days out at 8 PM PT. Prevent auto termination withno_auto_termination=True| (SessionClientCreate1) -> (PydanticObjectId)
-
updateV1
public java.util.concurrent.CompletableFuture<java.lang.Boolean> updateV1(SessionClientUpdate1 request)
Updates a session's metadata. | (SessionClientUpdate1) -> (bool)
-
updateV1
public java.util.concurrent.CompletableFuture<java.lang.Boolean> updateV1(SessionClientUpdate1 request, RequestOptions requestOptions)
Updates a session's metadata. | (SessionClientUpdate1) -> (bool)
-
updateSharedOrgsV1
public java.util.concurrent.CompletableFuture<java.lang.Boolean> updateSharedOrgsV1(SessionsUpdateSharedOrgsReq1 request)
Adds and/or removes org_ids from a session's shared_with_org_ids list. Only the owning org may modify sharing. Removal overrides addition. | (SessionsUpdateSharedOrgsReq1) -> (bool)
-
updateSharedOrgsV1
public java.util.concurrent.CompletableFuture<java.lang.Boolean> updateSharedOrgsV1(SessionsUpdateSharedOrgsReq1 request, RequestOptions requestOptions)
Adds and/or removes org_ids from a session's shared_with_org_ids list. Only the owning org may modify sharing. Removal overrides addition. | (SessionsUpdateSharedOrgsReq1) -> (bool)
-
terminateV1
public java.util.concurrent.CompletableFuture<java.lang.Boolean> terminateV1(SessionsTerminateV1Request request)
Terminates a session. Moves device.active_session_id to device.past_session_ids. | () -> (bool)
-
terminateV1
public java.util.concurrent.CompletableFuture<java.lang.Boolean> terminateV1(SessionsTerminateV1Request request, RequestOptions requestOptions)
Terminates a session. Moves device.active_session_id to device.past_session_ids. | () -> (bool)
-
addFlightV1
public java.util.concurrent.CompletableFuture<java.lang.Boolean> addFlightV1(SessionAddFlightReq1 request)
Adds a flight number and FA flight IDs to an existing session. Creates or reuses a FlightAware alert. | authz: min_org_role=operator | (SessionAddFlightReq1) -> (bool)
-
addFlightV1
public java.util.concurrent.CompletableFuture<java.lang.Boolean> addFlightV1(SessionAddFlightReq1 request, RequestOptions requestOptions)
Adds a flight number and FA flight IDs to an existing session. Creates or reuses a FlightAware alert. | authz: min_org_role=operator | (SessionAddFlightReq1) -> (bool)
-
removeFlightV1
public java.util.concurrent.CompletableFuture<java.lang.Boolean> removeFlightV1(SessionRemoveFlightReq1 request)
Removes a flight number and FA flight IDs from a session. Runs the shared-aware FlightAware unsubscribe cycle before removing. | authz: min_org_role=operator | (SessionRemoveFlightReq1) -> (bool)
-
removeFlightV1
public java.util.concurrent.CompletableFuture<java.lang.Boolean> removeFlightV1(SessionRemoveFlightReq1 request, RequestOptions requestOptions)
Removes a flight number and FA flight IDs from a session. Runs the shared-aware FlightAware unsubscribe cycle before removing. | authz: min_org_role=operator | (SessionRemoveFlightReq1) -> (bool)
-
syncFlightStatusV1
public java.util.concurrent.CompletableFuture<java.lang.Boolean> syncFlightStatusV1(SessionsSyncFlightStatusV1Request request)
Fetches current OOOI timestamps from FlightAware for each fa_flight_id on the session and updates flight_status_by_fa_flight_id. Use when the webhook may have left state out of sync. | authz: min_org_role=operator | () -> (bool)
-
syncFlightStatusV1
public java.util.concurrent.CompletableFuture<java.lang.Boolean> syncFlightStatusV1(SessionsSyncFlightStatusV1Request request, RequestOptions requestOptions)
Fetches current OOOI timestamps from FlightAware for each fa_flight_id on the session and updates flight_status_by_fa_flight_id. Use when the webhook may have left state out of sync. | authz: min_org_role=operator | () -> (bool)
-
-