/** * Generated by orval v8.19.0 🍺 * Do not edit manually. * Webitel API * OpenAPI spec version: 24.04.0 */ import * as zod from 'zod'; export const DeleteVideocallFilesParams = zod.object({ call_id: zod.string(), }); export const DeleteVideocallFilesBody = zod.object({ id: zod.array(zod.string()).optional(), }); export const DeleteVideocallFilesResponse = zod.looseObject({}); export const SearchFilesByCallParams = zod.object({ call_id: zod.string(), }); export const SearchFilesByCallQueryParams = zod.object({ page: zod.number().optional(), size: zod.number().optional(), q: zod.string().optional(), sort: zod.string().optional(), fields: zod.array(zod.string()).optional(), id: zod.array(zod.string()).optional(), 'uploadedAt.from': zod.string().optional(), 'uploadedAt.to': zod.string().optional(), referenceId: zod.array(zod.string()).optional(), 'retentionUntil.from': zod.string().optional(), 'retentionUntil.to': zod.string().optional(), channel: zod .array( zod.enum([ 'UnknownChannel', 'ChatChannel', 'MailChannel', 'CallChannel', 'LogChannel', 'MediaChannel', 'KnowledgebaseChannel', 'CasesChannel', 'ScreenRecordingChannel', ]), ) .optional() .describe( ' - ScreenRecordingChannel: ScreenshotChannel = 8; // deprecated', ), }); export const searchFilesByCallResponseItemsItemChannelDefault = `UnknownChannel`; export const SearchFilesByCallResponse = zod.object({ items: zod .array( zod.object({ channel: zod .enum([ 'UnknownChannel', 'ChatChannel', 'MailChannel', 'CallChannel', 'LogChannel', 'MediaChannel', 'KnowledgebaseChannel', 'CasesChannel', 'ScreenRecordingChannel', ]) .default(searchFilesByCallResponseItemsItemChannelDefault), id: zod.string().optional(), mimeType: zod.string().optional(), name: zod.string().optional(), properties: zod .object({ endTime: zod.string().optional(), height: zod.string().optional(), startTime: zod.string().optional(), width: zod.string().optional(), }) .optional(), referenceId: zod.string().optional(), retentionUntil: zod.string().optional(), sha256Sum: zod.string().optional(), size: zod.string().optional(), thumbnail: zod .object({ mimeType: zod.string().optional(), scale: zod.string().optional(), size: zod.string().optional(), }) .optional(), uploadedAt: zod.string().optional(), uploadedBy: zod .object({ id: zod.string().optional(), name: zod.string().optional(), }) .optional(), uuid: zod.string().optional(), viewName: zod.string().optional(), }), ) .optional(), next: zod.boolean().optional(), }); export const SearchScreenRecordingsByAgentParams = zod.object({ agent_id: zod.string(), }); export const searchScreenRecordingsByAgentQueryTypeDefault = `PDF`; export const searchScreenRecordingsByAgentQueryChannelDefault = `SCREENRECORDING`; export const SearchScreenRecordingsByAgentQueryParams = zod.object({ page: zod.number().optional(), size: zod.number().optional(), q: zod.string().optional(), sort: zod.string().optional(), fields: zod.array(zod.string()).optional(), id: zod.array(zod.string()).optional(), 'uploadedAt.from': zod.string().optional(), 'uploadedAt.to': zod.string().optional(), referenceId: zod.array(zod.string()).optional(), 'retentionUntil.from': zod.string().optional(), 'retentionUntil.to': zod.string().optional(), type: zod .enum([ 'PDF', 'SCREENSHOT', 'SCREENSHARING', ]) .default(searchScreenRecordingsByAgentQueryTypeDefault), channel: zod .enum([ 'SCREENRECORDING', 'CALL', ]) .default(searchScreenRecordingsByAgentQueryChannelDefault), }); export const searchScreenRecordingsByAgentResponseItemsItemChannelDefault = `UnknownChannel`; export const SearchScreenRecordingsByAgentResponse = zod.object({ items: zod .array( zod.object({ channel: zod .enum([ 'UnknownChannel', 'ChatChannel', 'MailChannel', 'CallChannel', 'LogChannel', 'MediaChannel', 'KnowledgebaseChannel', 'CasesChannel', 'ScreenRecordingChannel', ]) .default( searchScreenRecordingsByAgentResponseItemsItemChannelDefault, ), id: zod.string().optional(), mimeType: zod.string().optional(), name: zod.string().optional(), properties: zod .object({ endTime: zod.string().optional(), height: zod.string().optional(), startTime: zod.string().optional(), width: zod.string().optional(), }) .optional(), referenceId: zod.string().optional(), retentionUntil: zod.string().optional(), sha256Sum: zod.string().optional(), size: zod.string().optional(), thumbnail: zod .object({ mimeType: zod.string().optional(), scale: zod.string().optional(), size: zod.string().optional(), }) .optional(), uploadedAt: zod.string().optional(), uploadedBy: zod .object({ id: zod.string().optional(), name: zod.string().optional(), }) .optional(), uuid: zod.string().optional(), viewName: zod.string().optional(), }), ) .optional(), next: zod.boolean().optional(), }); export const DeleteScreenRecordingsByAgentParams = zod.object({ agent_id: zod.string(), id: zod.array(zod.string()).min(1), }); export const DeleteScreenRecordingsByAgentBody = zod.looseObject({}); export const DeleteScreenRecordingsByAgentResponse = zod.looseObject({}); export const DeleteFilesBody = zod.object({ id: zod.array(zod.string()).optional(), }); export const DeleteFilesResponse = zod.looseObject({}); export const SearchFilesQueryParams = zod.object({ page: zod.number().optional(), size: zod.number().optional(), q: zod.string().optional(), sort: zod.string().optional(), fields: zod.array(zod.string()).optional(), id: zod.array(zod.string()).optional(), 'uploadedAt.from': zod.string().optional(), 'uploadedAt.to': zod.string().optional(), uploadedBy: zod.array(zod.string()).optional(), referenceId: zod.array(zod.string()).optional(), channel: zod .array( zod.enum([ 'UnknownChannel', 'ChatChannel', 'MailChannel', 'CallChannel', 'LogChannel', 'MediaChannel', 'KnowledgebaseChannel', 'CasesChannel', 'ScreenRecordingChannel', ]), ) .optional() .describe( ' - ScreenRecordingChannel: ScreenshotChannel = 8; // deprecated', ), 'retentionUntil.from': zod.string().optional(), 'retentionUntil.to': zod.string().optional(), }); export const searchFilesResponseItemsItemChannelDefault = `UnknownChannel`; export const SearchFilesResponse = zod.object({ items: zod .array( zod.object({ channel: zod .enum([ 'UnknownChannel', 'ChatChannel', 'MailChannel', 'CallChannel', 'LogChannel', 'MediaChannel', 'KnowledgebaseChannel', 'CasesChannel', 'ScreenRecordingChannel', ]) .default(searchFilesResponseItemsItemChannelDefault), id: zod.string().optional(), mimeType: zod.string().optional(), name: zod.string().optional(), properties: zod .object({ endTime: zod.string().optional(), height: zod.string().optional(), startTime: zod.string().optional(), width: zod.string().optional(), }) .optional(), referenceId: zod.string().optional(), retentionUntil: zod.string().optional(), sha256Sum: zod.string().optional(), size: zod.string().optional(), thumbnail: zod .object({ mimeType: zod.string().optional(), scale: zod.string().optional(), size: zod.string().optional(), }) .optional(), uploadedAt: zod.string().optional(), uploadedBy: zod .object({ id: zod.string().optional(), name: zod.string().optional(), }) .optional(), uuid: zod.string().optional(), viewName: zod.string().optional(), }), ) .optional(), next: zod.boolean().optional(), }); export const DeleteQuarantineFilesBody = zod.object({ id: zod.array(zod.string()).optional(), }); export const DeleteQuarantineFilesResponse = zod.looseObject({}); export const RestoreFilesBody = zod.object({ id: zod.array(zod.string()).optional(), }); export const RestoreFilesResponse = zod.looseObject({}); export const SearchScreenRecordingsParams = zod.object({ user_id: zod.string(), }); export const searchScreenRecordingsQueryTypeDefault = `PDF`; export const searchScreenRecordingsQueryChannelDefault = `SCREENRECORDING`; export const SearchScreenRecordingsQueryParams = zod.object({ page: zod.number().optional(), size: zod.number().optional(), q: zod.string().optional(), sort: zod.string().optional(), fields: zod.array(zod.string()).optional(), id: zod.array(zod.string()).optional(), 'uploadedAt.from': zod.string().optional(), 'uploadedAt.to': zod.string().optional(), referenceId: zod.array(zod.string()).optional(), 'retentionUntil.from': zod.string().optional(), 'retentionUntil.to': zod.string().optional(), type: zod .enum([ 'PDF', 'SCREENSHOT', 'SCREENSHARING', ]) .default(searchScreenRecordingsQueryTypeDefault), channel: zod .enum([ 'SCREENRECORDING', 'CALL', ]) .default(searchScreenRecordingsQueryChannelDefault), }); export const searchScreenRecordingsResponseItemsItemChannelDefault = `UnknownChannel`; export const SearchScreenRecordingsResponse = zod.object({ items: zod .array( zod.object({ channel: zod .enum([ 'UnknownChannel', 'ChatChannel', 'MailChannel', 'CallChannel', 'LogChannel', 'MediaChannel', 'KnowledgebaseChannel', 'CasesChannel', 'ScreenRecordingChannel', ]) .default(searchScreenRecordingsResponseItemsItemChannelDefault), id: zod.string().optional(), mimeType: zod.string().optional(), name: zod.string().optional(), properties: zod .object({ endTime: zod.string().optional(), height: zod.string().optional(), startTime: zod.string().optional(), width: zod.string().optional(), }) .optional(), referenceId: zod.string().optional(), retentionUntil: zod.string().optional(), sha256Sum: zod.string().optional(), size: zod.string().optional(), thumbnail: zod .object({ mimeType: zod.string().optional(), scale: zod.string().optional(), size: zod.string().optional(), }) .optional(), uploadedAt: zod.string().optional(), uploadedBy: zod .object({ id: zod.string().optional(), name: zod.string().optional(), }) .optional(), uuid: zod.string().optional(), viewName: zod.string().optional(), }), ) .optional(), next: zod.boolean().optional(), }); export const DeleteScreenRecordingsParams = zod.object({ user_id: zod.string(), id: zod.array(zod.string()).min(1), }); export const DeleteScreenRecordingsBody = zod.looseObject({}); export const DeleteScreenRecordingsResponse = zod.looseObject({});