basalt / drives/src / DriveSession
Interface: DriveSession
Defined in: drives/src/provider.ts:187
What the engine hands an adapter for one call. Scoped, short-lived, minimal.
Properties
accessToken
> readonly accessToken: string
Defined in: drives/src/provider.ts:189
Short-lived access token, already refreshed if it was close to expiry.
connectionId
> readonly connectionId: string
Defined in: drives/src/provider.ts:191
The connection this call belongs to — for adapter-side logging and per-connection state.
fetch
> readonly fetch: GuardedFetch
Defined in: drives/src/provider.ts:196
The ONLY way an adapter may talk to the network.
rootId?
> readonly optional rootId?: string
Defined in: drives/src/provider.ts:194
Folder the connection is confined to, when one was chosen at connect time.
signal?
> readonly optional signal?: AbortSignal
Defined in: drives/src/provider.ts:198
Cancels in-flight work when the caller aborts (request closed, job cancelled).
tenantId
> readonly tenantId: string
Defined in: drives/src/provider.ts:192