fastcomments-sdk
Version:
FastComments API Client - A SDK for interacting with the FastComments API
41 lines • 1.83 kB
TypeScript
export * from './generated/src/apis';
export * from './generated/src/models';
export { Configuration } from './generated/src/runtime';
export { DefaultApi, PublicApi } from './generated/src/apis';
export { createURLQueryString, isAPIError, debounce, makeRequest } from './live/utils';
export { default as subscribeToChanges } from './live/subscribe-to-changes';
export type { SubscribeToChangesResult, SubscribeToChangesConfig } from './live/subscribe-to-changes';
export { subscribeToUserFeed } from './live/user-feed';
export type { UserFeedConfig } from './live/user-feed';
export type { LiveEvent, LiveEventType, EventLogEntry, PubSubComment, PubSubVote, FeedPost, UserNotification } from './generated/src/index';
export type * from './sso/types';
import { DefaultApi, PublicApi, ModerationApi } from './generated/src/apis';
export interface FastCommentsBrowserSDKConfig {
apiKey?: string;
basePath?: string;
}
export declare class FastCommentsBrowserSDK {
private config;
private _defaultApi;
private _publicApi;
private _moderationApi;
constructor(config?: FastCommentsBrowserSDKConfig);
private getConfiguration;
get defaultApi(): DefaultApi;
get publicApi(): PublicApi;
/**
* Moderator dashboard endpoints (comment moderation, bans, badges, trust factor, search).
* Authenticated by the moderator's session, or the `sso` param for SSO-authenticated moderators.
*/
get moderationApi(): ModerationApi;
/**
* Update the API key for authenticated requests
*/
setApiKey(apiKey: string): void;
/**
* Update the base path for API requests
*/
setBasePath(basePath: string): void;
}
export declare function createFastCommentsBrowserSDK(config?: FastCommentsBrowserSDKConfig): FastCommentsBrowserSDK;
//# sourceMappingURL=browser.d.ts.map