@@ -21,34 +21,38 @@ export interface CreateFilterParams {
2121 /** Integer. How many seconds from now should the filter expire? */
2222 readonly expiresIn ?: number | null ;
2323
24- readonly keywordsAttributes ?: {
25- /** String. A keyword to be added to the newly-created filter group. */
26- readonly keyword ?: string | null ;
27- /** Boolean. Whether the keyword should consider word boundaries. */
28- readonly wholeWord ?: boolean | null ;
29- } [ ] ;
24+ readonly keywordsAttributes ?:
25+ | {
26+ /** String. A keyword to be added to the newly-created filter group. */
27+ readonly keyword ?: string | null ;
28+ /** Boolean. Whether the keyword should consider word boundaries. */
29+ readonly wholeWord ?: boolean | null ;
30+ } [ ]
31+ | null ;
3032}
3133
3234export interface UpdateFilterParams {
3335 /** String. The name of the filter group. */
34- readonly title ?: string ;
36+ readonly title ?: string | null ;
3537 /** Array of String. Where the filter should be applied. Specify at least one of home, notifications, public, thread, account. */
3638 readonly context ?: readonly FilterContext [ ] | null ;
3739 /** String. The policy to be applied when the filter is matched. Specify warn or hide. */
3840 readonly filterAction ?: FilterAction | null ;
3941 /** Integer. How many seconds from now should the filter expire? */
4042 readonly expiresIn ?: number | null ;
4143
42- readonly keywordsAttributes ?: readonly {
43- /** String. Provide the ID of an existing keyword to modify it, instead of creating a new keyword. */
44- readonly id ?: string | null ;
45- /** String. A keyword to be added to the newly-created filter group. */
46- readonly keyword ?: string | null ;
47- /** Boolean. Whether the keyword should consider word boundaries. */
48- readonly wholeWord ?: boolean | null ;
49- /** Boolean. If true, will remove the keyword with the given ID */
50- readonly _destroy ?: boolean | null ;
51- } [ ] ;
44+ readonly keywordsAttributes ?:
45+ | readonly {
46+ /** String. Provide the ID of an existing keyword to modify it, instead of creating a new keyword. */
47+ readonly id ?: string | null ;
48+ /** String. A keyword to be added to the newly-created filter group. */
49+ readonly keyword ?: string | null ;
50+ /** Boolean. Whether the keyword should consider word boundaries. */
51+ readonly wholeWord ?: boolean | null ;
52+ /** Boolean. If true, will remove the keyword with the given ID */
53+ readonly _destroy ?: boolean | null ;
54+ } [ ]
55+ | null ;
5256}
5357
5458export interface CreateFilterKeywordParams {
0 commit comments