getLinkWithHttpInfo method
Lists your linked accounts and the devices they sit on.
Lists your linked accounts and the devices they sit on. It answers the caller's own links plus a devices projection of the same rows folded per machine — the cross-machine "AI Providers / Accounts" view. A device is a projection, not a stored entity: its labels come from its most-recently-seen account, so there is no device to create and none to garbage-collect. Revoked links are INCLUDED rather than dropped, because a logged-out account keeps its usage history and audit trail. Scoped to the caller: a validated principal and a non-empty org, else 403.
Note: This method returns the HTTP Response.
Implementation
Future<Response> getLinkWithHttpInfo() async {
// ignore: prefer_const_declarations
final path = r'/v1/link';
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}