Add the picked providers and a Must include group
This commit is contained in:
@@ -896,6 +896,14 @@ function buildServer(): McpServer {
|
||||
.array(z.string())
|
||||
.optional()
|
||||
.describe("Hide these row sources (attachment, sticker, embed)"),
|
||||
includeProviders: z
|
||||
.array(z.string())
|
||||
.optional()
|
||||
.describe("Keep only providers matching these substrings"),
|
||||
includeSources: z
|
||||
.array(z.string())
|
||||
.optional()
|
||||
.describe("Keep only these row sources (attachment, sticker, embed)"),
|
||||
sizeLessThan: z.number().optional().describe("Only items smaller than this many bytes"),
|
||||
sizeGreaterThan: z.number().optional().describe("Only items larger than this many bytes"),
|
||||
lengthLessThan: z.number().optional().describe("Only items shorter than this many seconds"),
|
||||
@@ -931,6 +939,8 @@ function buildServer(): McpServer {
|
||||
excludeExts,
|
||||
excludeProviders,
|
||||
excludeSources,
|
||||
includeProviders,
|
||||
includeSources,
|
||||
sizeLessThan,
|
||||
sizeGreaterThan,
|
||||
lengthLessThan,
|
||||
@@ -957,6 +967,8 @@ function buildServer(): McpServer {
|
||||
excludeExts,
|
||||
excludeProviders,
|
||||
excludeSources,
|
||||
includeProviders,
|
||||
includeSources,
|
||||
sizeLessThan,
|
||||
sizeGreaterThan,
|
||||
lengthLessThan,
|
||||
|
||||
@@ -717,6 +717,8 @@ export class MediaService {
|
||||
excludeExts?: string[];
|
||||
excludeProviders?: string[];
|
||||
excludeSources?: string[];
|
||||
includeProviders?: string[];
|
||||
includeSources?: string[];
|
||||
sizeLessThan?: number;
|
||||
sizeGreaterThan?: number;
|
||||
lengthLessThan?: number;
|
||||
@@ -846,6 +848,8 @@ export class MediaService {
|
||||
excludeExts?: string[];
|
||||
excludeProviders?: string[];
|
||||
excludeSources?: string[];
|
||||
includeProviders?: string[];
|
||||
includeSources?: string[];
|
||||
sizeLessThan?: number;
|
||||
sizeGreaterThan?: number;
|
||||
lengthLessThan?: number;
|
||||
@@ -881,6 +885,8 @@ export class MediaService {
|
||||
excludeExts: options.excludeExts,
|
||||
excludeProviders: options.excludeProviders,
|
||||
excludeSources: options.excludeSources,
|
||||
includeProviders: options.includeProviders,
|
||||
includeSources: options.includeSources,
|
||||
sizeLessThan: options.sizeLessThan,
|
||||
sizeGreaterThan: options.sizeGreaterThan,
|
||||
lengthLessThan: options.lengthLessThan,
|
||||
@@ -941,6 +947,8 @@ export class MediaService {
|
||||
excludeExts?: string[];
|
||||
excludeProviders?: string[];
|
||||
excludeSources?: string[];
|
||||
includeProviders?: string[];
|
||||
includeSources?: string[];
|
||||
sizeLessThan?: number;
|
||||
sizeGreaterThan?: number;
|
||||
lengthLessThan?: number;
|
||||
|
||||
@@ -211,6 +211,8 @@ function parseMediaFilters(query: Record<string, unknown>) {
|
||||
excludeExts: list(query.excludeExt),
|
||||
excludeProviders: list(query.excludeProviders),
|
||||
excludeSources: list(query.excludeSources),
|
||||
includeProviders: list(query.includeProviders),
|
||||
includeSources: list(query.includeSources),
|
||||
sizeLessThan: amount(query.sizeLt),
|
||||
sizeGreaterThan: amount(query.sizeGt),
|
||||
lengthLessThan: amount(query.lenLt),
|
||||
|
||||
Reference in New Issue
Block a user