Retrieves an access token for the personal storage service.
A user-provided identifier (usually a user ID) that is associated with the token.
A promise that resolves with the access token and expiration time.
Indexes a document or folder for AI processing.
The ID of the document or folder to be indexed.
A user-provided identifier (usually a user ID) that will be associated with the document.
The agent ID for the AI processing configuration.
Optional
metadata: AiContextMetadataMetadata to include with the index
A promise that resolves when the document or folder is successfully indexed.
Lists all documents or folders that have been indexed for AI processing.
A user-provided identifier (usually a user ID) associated with the indexed documents.
The AI agent ID used when indexing the documents.
Optional
type: PsDocumentType(Optional) The type of items to list: 'file'
or 'folder'
. If omitted, returns both.
A promise that resolves with an array of indexed documents or folders.
Saves an authentication token for the personal storage service.
The authorization code obtained from the OAuth flow for the personal storage service.
A user-provided identifier (usually a user ID) that will be associated with the token.
A promise that resolves with the access token and expiration time.
Unindexes a previously indexed document, removing it from AI processing.
The ID of the document to be unindexed.
A user-provided identifier (usually a user ID) that was associated with the document.
The agent ID for the AI processing configuration.
A promise that resolves when the document is successfully unindexed.
Client to handle personal storage integrations such as Google Drive or Microsoft OneDrive. Provides methods for saving authentication tokens, indexing documents or folders for AI processing, and unindexing documents from AI processing.