@coretext-ai/qa-gsuite-f47ac10b-58cc-4372-a567-0e02b2c3d479
Version:
MCP server with GSuite (Contacts, Drive, Gmail, Calendar) integration
100 lines • 2.45 kB
TypeScript
export declare class GoogleCalendarClient {
private oauthClient;
private sessionId;
private baseUrl;
constructor();
/**
* Get the session ID for this client instance
*/
getSessionId(): string;
/**
* Enhanced debug logging with session context
*/
private logDebug;
/**
* Initialize the API client
*/
initialize(): Promise<void>;
/**
* Make authenticated API request
*/
makeRequest(config: RequestConfig): Promise<any>;
/**
* Returns the calendars on the user's calendar list
*/
listCalendars(args?: any): Promise<any>;
/**
* Returns metadata for a calendar
*/
getCalendar(args?: any): Promise<any>;
/**
* Creates a secondary calendar
*/
createCalendar(args?: any): Promise<any>;
/**
* Updates metadata for a calendar
*/
updateCalendar(args?: any): Promise<any>;
/**
* Deletes a secondary calendar
*/
deleteCalendar(args?: any): Promise<any>;
/**
* Returns events on the specified calendar
*/
listEvents(args?: any): Promise<any>;
/**
* Returns an event
*/
getEvent(args?: any): Promise<any>;
/**
* Creates an event
*/
createEvent(args?: any): Promise<any>;
/**
* Updates an event
*/
updateEvent(args?: any): Promise<any>;
/**
* Deletes an event
*/
deleteEvent(args?: any): Promise<any>;
/**
* Creates an event based on a simple text string
*/
quickAdd(args?: any): Promise<any>;
/**
* Returns free/busy information for a set of calendars
*/
getFreeBusy(args?: any): Promise<any>;
/**
* Returns the rules in the access control list for the calendar
*/
listAcl(args?: any): Promise<any>;
/**
* Creates an access control rule
*/
createAcl(args?: any): Promise<any>;
/**
* Build URL with path parameters and query string
*/
private buildUrl;
/**
* Check if client is authenticated
*/
isAuthenticated(): Promise<boolean>;
/**
* Revoke authentication tokens
*/
revokeAuthentication(): Promise<void>;
}
interface RequestConfig {
method: string;
path: string;
pathParams?: Record<string, any>;
queryParams?: Record<string, any>;
body?: any;
headers?: Record<string, string>;
}
export {};
//# sourceMappingURL=google-calendar-client.d.ts.map