Files
talk/src/types/akismet-api.d.ts
T
Wyatt Johnson 4606626ec4 [next] Settings/Tenant (#1758)
* feat: initial support for synced tenants

* fix: cleanup

* fix: logger now respects logging level

* fix: cache now ignores updates issued from itself

* feat: print subscriber count

* fix: support tenant cache for oidc strategy

* fix: replace some constructor initializers with property initializers

* fix: audit

* [next] Comments and Moderation (#1759)

* feat: initial moderation + validation for new comments

* fix: added Promiseable type

* feat: initial actions impl

* feat: more moderation phases

* fix: handle settings inheritence

* fix: moved settings into new file

* fix: defaults and documentation

* fix: replace merge with object spread

* feat: added integration with akismet

* fix: fixed compile

* fix: import ordering

* fix: merge issue causing build to fail
2018-08-02 20:09:55 +00:00

33 lines
895 B
TypeScript

declare module "akismet-api" {
export interface ClientOptions {
key: string;
blog: string;
}
export interface CheckSpamOptions {
user_ip: string;
user_agent: string;
referrer: string;
permalink?: string;
comment_type?: string;
comment_author?: string;
comment_content?: string;
comment_author_url?: string;
comment_author_email?: string;
comment_date_gmt?: string;
comment_post_modified_gmt?: string;
user_role?: string;
is_test?: boolean;
}
export class Client {
constructor(options: ClientOptions)
/**
* checkSpam will check the given comment payload for spam.
*
* @param options used to provide the input for checking spam
*/
checkSpam(options: CheckSpamOptions): Promise<boolean>
}
}