import z from 'zod'; import { SlackEvent } from '../interfaces/slack.event'; export declare const slackTeam: z.ZodObject<{ id: z.ZodString; name: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; name: string; }, { id: string; name: string; }>; export declare const slackAuthedUser: z.ZodObject<{ id: z.ZodString; scope: z.ZodString; accessToken: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; scope: string; accessToken: string; }, { id: string; scope: string; accessToken: string; }>; export declare const slack: z.ZodObject<{ _id: z.ZodString; access_token: z.ZodString; scope: z.ZodString; team: z.ZodObject<{ id: z.ZodString; name: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; name: string; }, { id: string; name: string; }>; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; authedUser: z.ZodObject<{ id: z.ZodString; scope: z.ZodString; accessToken: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; scope: string; accessToken: string; }, { id: string; scope: string; accessToken: string; }>; appId: z.ZodOptional; botId: z.ZodOptional; }, "strip", z.ZodTypeAny, { team: { id: string; name: string; }; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; scope: string; access_token: string; authedUser: { id: string; scope: string; accessToken: string; }; appId?: string | undefined; botId?: string | undefined; }, { team: { id: string; name: string; }; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; scope: string; access_token: string; authedUser: { id: string; scope: string; accessToken: string; }; appId?: string | undefined; botId?: string | undefined; }>; export declare const slackChannel: z.ZodObject<{ _id: z.ZodString; slackId: z.ZodString; name: z.ZodString; channelId: z.ZodString; webhookUrl: z.ZodOptional; configurationUrl: z.ZodOptional; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; botId: z.ZodOptional; }, "strip", z.ZodTypeAny, { _id: string; name: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; slackId: string; channelId: string; webhookUrl?: string | undefined; configurationUrl?: string | undefined; botId?: string | undefined; }, { _id: string; name: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; slackId: string; channelId: string; webhookUrl?: string | undefined; configurationUrl?: string | undefined; botId?: string | undefined; }>; export type Slack = z.infer; export type SlackTeam = z.infer; export type SlackAuthedUser = z.infer; export type SlackChannel = z.infer; export interface SlackService { create(params: CreateSlackRequest): Promise; getByAccessToken(params: GetSlackByAccessTokenRequest): Promise; registerSlackInstall(params: SlackOauthRedirectPayload): Promise; getOauthPayload(code: string): Promise; createChannel(params: CreateSlackChannelRequest): Promise; getSlackChannel(params: GetSlackChannelRequest): Promise; getSlackChannelPayload(params: SlackOauthRedirectPayload): IncomingWebhookPayload; sendWelcomeMessage(params: SlackMessageRequest): Promise; sendSlackMessage(request: SlackMessageRequest): Promise; registerSlackBot(request: SlackRegisterRequest): Promise; processSlackEvent(event: SlackEvent): Promise; } /** ****************************************************************************** * Create Slack ******************************************************************************* */ export declare const createSlackParams: z.ZodObject<{ access_token: z.ZodString; scope: z.ZodString; team: z.ZodObject<{ id: z.ZodString; name: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; name: string; }, { id: string; name: string; }>; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; authedUser: z.ZodObject<{ id: z.ZodString; scope: z.ZodString; accessToken: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; scope: string; accessToken: string; }, { id: string; scope: string; accessToken: string; }>; botId: z.ZodOptional; appId: z.ZodOptional; }, "strip", z.ZodTypeAny, { team: { id: string; name: string; }; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; scope: string; access_token: string; authedUser: { id: string; scope: string; accessToken: string; }; botId?: string | undefined; appId?: string | undefined; }, { team: { id: string; name: string; }; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; scope: string; access_token: string; authedUser: { id: string; scope: string; accessToken: string; }; botId?: string | undefined; appId?: string | undefined; }>; export declare const createSlackRequest: z.ZodObject<{ params: z.ZodObject<{ access_token: z.ZodString; scope: z.ZodString; team: z.ZodObject<{ id: z.ZodString; name: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; name: string; }, { id: string; name: string; }>; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; authedUser: z.ZodObject<{ id: z.ZodString; scope: z.ZodString; accessToken: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; scope: string; accessToken: string; }, { id: string; scope: string; accessToken: string; }>; botId: z.ZodOptional; appId: z.ZodOptional; }, "strip", z.ZodTypeAny, { team: { id: string; name: string; }; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; scope: string; access_token: string; authedUser: { id: string; scope: string; accessToken: string; }; botId?: string | undefined; appId?: string | undefined; }, { team: { id: string; name: string; }; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; scope: string; access_token: string; authedUser: { id: string; scope: string; accessToken: string; }; botId?: string | undefined; appId?: string | undefined; }>; }, "strip", z.ZodTypeAny, { params: { team: { id: string; name: string; }; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; scope: string; access_token: string; authedUser: { id: string; scope: string; accessToken: string; }; botId?: string | undefined; appId?: string | undefined; }; }, { params: { team: { id: string; name: string; }; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; scope: string; access_token: string; authedUser: { id: string; scope: string; accessToken: string; }; botId?: string | undefined; appId?: string | undefined; }; }>; export declare const createSlackResponse: z.ZodObject<{ status: z.ZodEnum<[string, ...string[]]>; error: z.ZodOptional>; }, "strip", z.ZodTypeAny, { message: string; fields?: Record | undefined; }, { message: string; fields?: Record | undefined; }>>; slack: z.ZodOptional; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; authedUser: z.ZodObject<{ id: z.ZodString; scope: z.ZodString; accessToken: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; scope: string; accessToken: string; }, { id: string; scope: string; accessToken: string; }>; appId: z.ZodOptional; botId: z.ZodOptional; }, "strip", z.ZodTypeAny, { team: { id: string; name: string; }; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; scope: string; access_token: string; authedUser: { id: string; scope: string; accessToken: string; }; appId?: string | undefined; botId?: string | undefined; }, { team: { id: string; name: string; }; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; scope: string; access_token: string; authedUser: { id: string; scope: string; accessToken: string; }; appId?: string | undefined; botId?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; slack?: { team: { id: string; name: string; }; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; scope: string; access_token: string; authedUser: { id: string; scope: string; accessToken: string; }; appId?: string | undefined; botId?: string | undefined; } | undefined; }, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; slack?: { team: { id: string; name: string; }; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; scope: string; access_token: string; authedUser: { id: string; scope: string; accessToken: string; }; appId?: string | undefined; botId?: string | undefined; } | undefined; }>; export type CreateSlackParams = z.infer; export type CreateSlackRequest = z.infer; export type CreateSlackResponse = z.infer; /** ****************************************************************************** * Get Slack ******************************************************************************* */ export declare const getSlackParamsByAccessToken: z.ZodObject<{ access_token: z.ZodString; }, "strip", z.ZodTypeAny, { access_token: string; }, { access_token: string; }>; export declare const getSlackByAccessTokenRequest: z.ZodObject<{ params: z.ZodObject<{ access_token: z.ZodString; }, "strip", z.ZodTypeAny, { access_token: string; }, { access_token: string; }>; }, "strip", z.ZodTypeAny, { params: { access_token: string; }; }, { params: { access_token: string; }; }>; export declare const getSlackResponse: z.ZodObject<{ status: z.ZodEnum<[string, ...string[]]>; error: z.ZodOptional>; }, "strip", z.ZodTypeAny, { message: string; fields?: Record | undefined; }, { message: string; fields?: Record | undefined; }>>; slack: z.ZodOptional; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; authedUser: z.ZodObject<{ id: z.ZodString; scope: z.ZodString; accessToken: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; scope: string; accessToken: string; }, { id: string; scope: string; accessToken: string; }>; appId: z.ZodOptional; botId: z.ZodOptional; }, "strip", z.ZodTypeAny, { team: { id: string; name: string; }; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; scope: string; access_token: string; authedUser: { id: string; scope: string; accessToken: string; }; appId?: string | undefined; botId?: string | undefined; }, { team: { id: string; name: string; }; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; scope: string; access_token: string; authedUser: { id: string; scope: string; accessToken: string; }; appId?: string | undefined; botId?: string | undefined; }>>>; }, "strip", z.ZodTypeAny, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; slack?: { team: { id: string; name: string; }; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; scope: string; access_token: string; authedUser: { id: string; scope: string; accessToken: string; }; appId?: string | undefined; botId?: string | undefined; } | null | undefined; }, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; slack?: { team: { id: string; name: string; }; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; scope: string; access_token: string; authedUser: { id: string; scope: string; accessToken: string; }; appId?: string | undefined; botId?: string | undefined; } | null | undefined; }>; export type GetSlackParamsByAccessToken = z.infer; export type GetSlackByAccessTokenRequest = z.infer; export type GetSlackResponse = z.infer; /** ****************************************************************************** * Slack OAuth Redirect ******************************************************************************* */ export declare const enterpriseSchema: z.ZodObject<{ name: z.ZodString; id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; name: string; }, { id: string; name: string; }>; export declare const authedUserSchema: z.ZodObject<{ id: z.ZodString; scope: z.ZodString; access_token: z.ZodString; token_type: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; scope: string; access_token: string; token_type: string; }, { id: string; scope: string; access_token: string; token_type: string; }>; export declare const incomingWebhook: z.ZodObject<{ channel: z.ZodString; channel_id: z.ZodString; configuration_url: z.ZodString; url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; channel: string; channel_id: string; configuration_url: string; }, { url: string; channel: string; channel_id: string; configuration_url: string; }>; export declare const slackOauthRedirectPayload: z.ZodObject<{ ok: z.ZodBoolean; access_token: z.ZodString; token_type: z.ZodString; scope: z.ZodString; bot_user_id: z.ZodString; app_id: z.ZodString; team: z.ZodObject<{ id: z.ZodString; name: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; name: string; }, { id: string; name: string; }>; enterprise: z.ZodObject<{ name: z.ZodString; id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; name: string; }, { id: string; name: string; }>; authed_user: z.ZodObject<{ id: z.ZodString; scope: z.ZodString; access_token: z.ZodString; token_type: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; scope: string; access_token: string; token_type: string; }, { id: string; scope: string; access_token: string; token_type: string; }>; incoming_webhook: z.ZodOptional>; }, "strip", z.ZodTypeAny, { team: { id: string; name: string; }; scope: string; access_token: string; ok: boolean; token_type: string; bot_user_id: string; app_id: string; enterprise: { id: string; name: string; }; authed_user: { id: string; scope: string; access_token: string; token_type: string; }; incoming_webhook?: { url: string; channel: string; channel_id: string; configuration_url: string; } | undefined; }, { team: { id: string; name: string; }; scope: string; access_token: string; ok: boolean; token_type: string; bot_user_id: string; app_id: string; enterprise: { id: string; name: string; }; authed_user: { id: string; scope: string; access_token: string; token_type: string; }; incoming_webhook?: { url: string; channel: string; channel_id: string; configuration_url: string; } | undefined; }>; export type SlackOauthRedirectPayload = z.infer; export type IncomingWebhookPayload = z.infer; /** ****************************************************************************** * Create Slack Channel ******************************************************************************* */ export declare const createSlackChannelParams: z.ZodObject<{ slackId: z.ZodString; name: z.ZodString; channelId: z.ZodString; webhookUrl: z.ZodOptional; configurationUrl: z.ZodOptional; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; }, "strip", z.ZodTypeAny, { name: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; slackId: string; channelId: string; webhookUrl?: string | undefined; configurationUrl?: string | undefined; }, { name: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; slackId: string; channelId: string; webhookUrl?: string | undefined; configurationUrl?: string | undefined; }>; export declare const createSlackChannelRequest: z.ZodObject<{ params: z.ZodObject<{ slackId: z.ZodString; name: z.ZodString; channelId: z.ZodString; webhookUrl: z.ZodOptional; configurationUrl: z.ZodOptional; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; }, "strip", z.ZodTypeAny, { name: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; slackId: string; channelId: string; webhookUrl?: string | undefined; configurationUrl?: string | undefined; }, { name: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; slackId: string; channelId: string; webhookUrl?: string | undefined; configurationUrl?: string | undefined; }>; }, "strip", z.ZodTypeAny, { params: { name: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; slackId: string; channelId: string; webhookUrl?: string | undefined; configurationUrl?: string | undefined; }; }, { params: { name: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; slackId: string; channelId: string; webhookUrl?: string | undefined; configurationUrl?: string | undefined; }; }>; export declare const createSlackChannelResponse: z.ZodObject<{ status: z.ZodEnum<[string, ...string[]]>; error: z.ZodOptional>; }, "strip", z.ZodTypeAny, { message: string; fields?: Record | undefined; }, { message: string; fields?: Record | undefined; }>>; channel: z.ZodOptional; configurationUrl: z.ZodOptional; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; botId: z.ZodOptional; }, "strip", z.ZodTypeAny, { _id: string; name: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; slackId: string; channelId: string; webhookUrl?: string | undefined; configurationUrl?: string | undefined; botId?: string | undefined; }, { _id: string; name: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; slackId: string; channelId: string; webhookUrl?: string | undefined; configurationUrl?: string | undefined; botId?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; channel?: { _id: string; name: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; slackId: string; channelId: string; webhookUrl?: string | undefined; configurationUrl?: string | undefined; botId?: string | undefined; } | undefined; }, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; channel?: { _id: string; name: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; slackId: string; channelId: string; webhookUrl?: string | undefined; configurationUrl?: string | undefined; botId?: string | undefined; } | undefined; }>; export type CreateSlackChannelParams = z.infer; export type CreateSlackChannelRequest = z.infer; export type CreateSlackChannelResponse = z.infer; /** ****************************************************************************** * Get Slack Channel ******************************************************************************* */ export declare const getSlackChannelParams: z.ZodObject<{ channelId: z.ZodOptional; name: z.ZodOptional; }, "strip", z.ZodTypeAny, { channelId?: string | undefined; name?: string | undefined; }, { channelId?: string | undefined; name?: string | undefined; }>; export declare const getSlackChannelRequest: z.ZodObject<{ params: z.ZodObject<{ channelId: z.ZodOptional; name: z.ZodOptional; }, "strip", z.ZodTypeAny, { channelId?: string | undefined; name?: string | undefined; }, { channelId?: string | undefined; name?: string | undefined; }>; }, "strip", z.ZodTypeAny, { params: { channelId?: string | undefined; name?: string | undefined; }; }, { params: { channelId?: string | undefined; name?: string | undefined; }; }>; export declare const getSlackChannelResponse: z.ZodObject<{ status: z.ZodEnum<[string, ...string[]]>; error: z.ZodOptional>; }, "strip", z.ZodTypeAny, { message: string; fields?: Record | undefined; }, { message: string; fields?: Record | undefined; }>>; channel: z.ZodOptional; configurationUrl: z.ZodOptional; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; botId: z.ZodOptional; }, "strip", z.ZodTypeAny, { _id: string; name: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; slackId: string; channelId: string; webhookUrl?: string | undefined; configurationUrl?: string | undefined; botId?: string | undefined; }, { _id: string; name: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; slackId: string; channelId: string; webhookUrl?: string | undefined; configurationUrl?: string | undefined; botId?: string | undefined; }>>>; }, "strip", z.ZodTypeAny, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; channel?: { _id: string; name: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; slackId: string; channelId: string; webhookUrl?: string | undefined; configurationUrl?: string | undefined; botId?: string | undefined; } | null | undefined; }, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; channel?: { _id: string; name: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; slackId: string; channelId: string; webhookUrl?: string | undefined; configurationUrl?: string | undefined; botId?: string | undefined; } | null | undefined; }>; export type GetSlackChannelParams = z.infer; export type GetSlackChannelRequest = z.infer; export type GetSlackChannelResponse = z.infer; /** ****************************************************************************** * Slack Message ******************************************************************************* */ export declare const slackMessageRequest: z.ZodObject<{ channel: z.ZodObject<{ _id: z.ZodString; slackId: z.ZodString; name: z.ZodString; channelId: z.ZodString; webhookUrl: z.ZodOptional; configurationUrl: z.ZodOptional; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; botId: z.ZodOptional; }, "strip", z.ZodTypeAny, { _id: string; name: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; slackId: string; channelId: string; webhookUrl?: string | undefined; configurationUrl?: string | undefined; botId?: string | undefined; }, { _id: string; name: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; slackId: string; channelId: string; webhookUrl?: string | undefined; configurationUrl?: string | undefined; botId?: string | undefined; }>; slack: z.ZodOptional; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; authedUser: z.ZodObject<{ id: z.ZodString; scope: z.ZodString; accessToken: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; scope: string; accessToken: string; }, { id: string; scope: string; accessToken: string; }>; appId: z.ZodOptional; botId: z.ZodOptional; }, "strip", z.ZodTypeAny, { team: { id: string; name: string; }; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; scope: string; access_token: string; authedUser: { id: string; scope: string; accessToken: string; }; appId?: string | undefined; botId?: string | undefined; }, { team: { id: string; name: string; }; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; scope: string; access_token: string; authedUser: { id: string; scope: string; accessToken: string; }; appId?: string | undefined; botId?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { channel: { _id: string; name: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; slackId: string; channelId: string; webhookUrl?: string | undefined; configurationUrl?: string | undefined; botId?: string | undefined; }; slack?: { team: { id: string; name: string; }; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; scope: string; access_token: string; authedUser: { id: string; scope: string; accessToken: string; }; appId?: string | undefined; botId?: string | undefined; } | undefined; }, { channel: { _id: string; name: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; slackId: string; channelId: string; webhookUrl?: string | undefined; configurationUrl?: string | undefined; botId?: string | undefined; }; slack?: { team: { id: string; name: string; }; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; scope: string; access_token: string; authedUser: { id: string; scope: string; accessToken: string; }; appId?: string | undefined; botId?: string | undefined; } | undefined; }>; export declare const slackRegisterRequest: z.ZodObject<{ botId: z.ZodString; channelId: z.ZodString; teamId: z.ZodOptional; }, "strip", z.ZodTypeAny, { botId: string; channelId: string; teamId?: string | undefined; }, { botId: string; channelId: string; teamId?: string | undefined; }>; export declare const slackRegisterResponse: z.ZodObject<{ status: z.ZodEnum<[string, ...string[]]>; error: z.ZodOptional>; }, "strip", z.ZodTypeAny, { message: string; fields?: Record | undefined; }, { message: string; fields?: Record | undefined; }>>; botId: z.ZodOptional>; message: z.ZodOptional; block: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; botId?: string | null | undefined; message?: string | undefined; block?: {} | null | undefined; }, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; botId?: string | null | undefined; message?: string | undefined; block?: {} | null | undefined; }>; export type SlackRegisterResponse = z.infer; export type SlackRegisterRequest = z.infer; export type SlackMessageRequest = z.infer;