@struktoai/mirage-core
Version:
A Unified Virtual Filesystem For AI Agents
30 lines • 1.47 kB
TypeScript
import type { resolveOneDriveConfig } from '../../accessor/onedrive.ts';
import { DriveLoc } from '../msgraph/drive.ts';
/**
* The drive this mount addresses, as a Graph URL prefix.
*
* Exactly one target may be named (the accessor's config enforces it), so
* the arms are alternatives rather than a precedence chain. Naming none
* means the signed-in user's own drive, which is the only form that works
* under delegated auth with no extra identifiers.
*
* Args:
* config: mount config.
*/
export declare function driveBase(config: ReturnType<typeof resolveOneDriveConfig>): string;
/**
* Graph URL of a drive item by its path from the drive root.
*
* Unlike {@link itemUrl}, `full` is not placed under the mount's
* `keyPrefix`: this is how the prefix folders themselves are reached.
*
* Args:
* config: mount config.
* full: path from the drive root; empty for the root itself.
* action: a trailing Graph segment such as `/children`.
*/
export declare function fullItemUrl(config: ReturnType<typeof resolveOneDriveConfig>, full: string, action?: string): string;
export declare function itemUrl(config: ReturnType<typeof resolveOneDriveConfig>, path: string, action?: string): string;
export declare function driveRefPath(config: ReturnType<typeof resolveOneDriveConfig>, folder?: string): string;
export declare function driveLoc(config: ReturnType<typeof resolveOneDriveConfig>, path: string): DriveLoc;
//# sourceMappingURL=client.d.ts.map