import { z } from 'zod'; /** * Zod schema for the SlackInstallation model. * Defines the structure and validation rules for this data type. * This is the shape used in application code - what developers interact with. */ export declare const slackInstallation: z.ZodLazy; expiresIn: z.ZodOptional; id: z.ZodString; refreshToken: z.ZodOptional; scope: z.ZodOptional; tokenType: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: string; scope?: string | undefined; accessToken?: string | undefined; expiresIn?: number | undefined; refreshToken?: string | undefined; tokenType?: string | undefined; }, { id: string; scope?: string | undefined; accessToken?: string | undefined; expiresIn?: number | undefined; refreshToken?: string | undefined; tokenType?: string | undefined; }>>; botUserId: z.ZodOptional; enterprise: z.ZodOptional>>; expiresIn: z.ZodOptional; id: z.ZodOptional; incomingWebhook: z.ZodOptional>>; isEnterpriseInstall: z.ZodOptional; refreshToken: z.ZodOptional; scope: z.ZodOptional; team: z.ZodLazy; }, "strip", z.ZodTypeAny, { id: string; name?: string | undefined; }, { id: string; name?: string | undefined; }>>; tokenType: z.ZodOptional; }, "strip", z.ZodTypeAny, { appId: string; accessToken: string; authedUser: { id: string; scope?: string | undefined; accessToken?: string | undefined; expiresIn?: number | undefined; refreshToken?: string | undefined; tokenType?: string | undefined; }; team: { id: string; name?: string | undefined; }; id?: string | undefined; scope?: string | undefined; expiresIn?: number | undefined; refreshToken?: string | undefined; tokenType?: string | undefined; botUserId?: string | undefined; enterprise?: { id: string; name: string; } | undefined; incomingWebhook?: { channel: string; url: string; configurationUrl: string; } | undefined; isEnterpriseInstall?: boolean | undefined; }, { appId: string; accessToken: string; authedUser: { id: string; scope?: string | undefined; accessToken?: string | undefined; expiresIn?: number | undefined; refreshToken?: string | undefined; tokenType?: string | undefined; }; team: { id: string; name?: string | undefined; }; id?: string | undefined; scope?: string | undefined; expiresIn?: number | undefined; refreshToken?: string | undefined; tokenType?: string | undefined; botUserId?: string | undefined; enterprise?: { id: string; name: string; } | undefined; incomingWebhook?: { channel: string; url: string; configurationUrl: string; } | undefined; isEnterpriseInstall?: boolean | undefined; }>>; /** * * @typedef {SlackInstallation} slackInstallation * @property {string} - Bot token returned from the Slack OAuth exchange. * @property {string} - Slack app identifier for the installed app. * @property {AuthedUser} * @property {string} - Slack user ID of the installed bot. * @property {Enterprise} * @property {number} - Seconds until the bot access token expires. * @property {string} - Unique identifier MagicBell assigns to the Slack installation. * @property {IncomingWebhook} * @property {boolean} - Indicates whether the installation occurred on an enterprise grid. * @property {string} - Refresh token for regenerating the bot access token. * @property {string} - Space-delimited OAuth scopes granted to the bot token. * @property {Team} * @property {string} - Type of bot token returned by Slack. */ export type SlackInstallation = z.infer; /** * Zod schema for mapping API responses to the SlackInstallation application shape. * Handles any property name transformations from the API schema. * If property names match the API schema exactly, this is identical to the application shape. */ export declare const slackInstallationResponse: z.ZodLazy; expires_in: z.ZodOptional; id: z.ZodString; refresh_token: z.ZodOptional; scope: z.ZodOptional; token_type: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: string; scope?: string | undefined; access_token?: string | undefined; expires_in?: number | undefined; refresh_token?: string | undefined; token_type?: string | undefined; }, { id: string; scope?: string | undefined; access_token?: string | undefined; expires_in?: number | undefined; refresh_token?: string | undefined; token_type?: string | undefined; }>, { accessToken: string | undefined; expiresIn: number | undefined; id: string; refreshToken: string | undefined; scope: string | undefined; tokenType: string | undefined; }, { id: string; scope?: string | undefined; access_token?: string | undefined; expires_in?: number | undefined; refresh_token?: string | undefined; token_type?: string | undefined; }>>; bot_user_id: z.ZodOptional; enterprise: z.ZodOptional, { id: string; name: string; }, { id: string; name: string; }>>>; expires_in: z.ZodOptional; id: z.ZodOptional; incoming_webhook: z.ZodOptional, { channel: string; configurationUrl: string; url: string; }, { channel: string; url: string; configuration_url: string; }>>>; is_enterprise_install: z.ZodOptional; refresh_token: z.ZodOptional; scope: z.ZodOptional; team: z.ZodLazy; }, "strip", z.ZodTypeAny, { id: string; name?: string | undefined; }, { id: string; name?: string | undefined; }>, { id: string; name: string | undefined; }, { id: string; name?: string | undefined; }>>; token_type: z.ZodOptional; }, "strip", z.ZodTypeAny, { app_id: string; access_token: string; team: { id: string; name: string | undefined; }; authed_user: { accessToken: string | undefined; expiresIn: number | undefined; id: string; refreshToken: string | undefined; scope: string | undefined; tokenType: string | undefined; }; id?: string | undefined; scope?: string | undefined; expires_in?: number | undefined; refresh_token?: string | undefined; token_type?: string | undefined; enterprise?: { id: string; name: string; } | undefined; bot_user_id?: string | undefined; incoming_webhook?: { channel: string; configurationUrl: string; url: string; } | undefined; is_enterprise_install?: boolean | undefined; }, { app_id: string; access_token: string; team: { id: string; name?: string | undefined; }; authed_user: { id: string; scope?: string | undefined; access_token?: string | undefined; expires_in?: number | undefined; refresh_token?: string | undefined; token_type?: string | undefined; }; id?: string | undefined; scope?: string | undefined; expires_in?: number | undefined; refresh_token?: string | undefined; token_type?: string | undefined; enterprise?: { id: string; name: string; } | undefined; bot_user_id?: string | undefined; incoming_webhook?: { channel: string; url: string; configuration_url: string; } | undefined; is_enterprise_install?: boolean | undefined; }>, { accessToken: string; appId: string; authedUser: { accessToken: string | undefined; expiresIn: number | undefined; id: string; refreshToken: string | undefined; scope: string | undefined; tokenType: string | undefined; }; botUserId: string | undefined; enterprise: { id: string; name: string; } | undefined; expiresIn: number | undefined; id: string | undefined; incomingWebhook: { channel: string; configurationUrl: string; url: string; } | undefined; isEnterpriseInstall: boolean | undefined; refreshToken: string | undefined; scope: string | undefined; team: { id: string; name: string | undefined; }; tokenType: string | undefined; }, { app_id: string; access_token: string; team: { id: string; name?: string | undefined; }; authed_user: { id: string; scope?: string | undefined; access_token?: string | undefined; expires_in?: number | undefined; refresh_token?: string | undefined; token_type?: string | undefined; }; id?: string | undefined; scope?: string | undefined; expires_in?: number | undefined; refresh_token?: string | undefined; token_type?: string | undefined; enterprise?: { id: string; name: string; } | undefined; bot_user_id?: string | undefined; incoming_webhook?: { channel: string; url: string; configuration_url: string; } | undefined; is_enterprise_install?: boolean | undefined; }>>; /** * Zod schema for mapping the SlackInstallation application shape to API requests. * Handles any property name transformations required by the API schema. * If property names match the API schema exactly, this is identical to the application shape. */ export declare const slackInstallationRequest: z.ZodLazy; expiresIn: z.ZodOptional; id: z.ZodString; refreshToken: z.ZodOptional; scope: z.ZodOptional; tokenType: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: string; scope?: string | undefined; accessToken?: string | undefined; expiresIn?: number | undefined; refreshToken?: string | undefined; tokenType?: string | undefined; }, { id: string; scope?: string | undefined; accessToken?: string | undefined; expiresIn?: number | undefined; refreshToken?: string | undefined; tokenType?: string | undefined; }>, { access_token: string | undefined; expires_in: number | undefined; id: string; refresh_token: string | undefined; scope: string | undefined; token_type: string | undefined; }, { id: string; scope?: string | undefined; accessToken?: string | undefined; expiresIn?: number | undefined; refreshToken?: string | undefined; tokenType?: string | undefined; }>>; botUserId: z.ZodOptional; enterprise: z.ZodOptional, { id: string; name: string; }, { id: string; name: string; }>>>; expiresIn: z.ZodOptional; id: z.ZodOptional; incomingWebhook: z.ZodOptional, { channel: string; configuration_url: string; url: string; }, { channel: string; url: string; configurationUrl: string; }>>>; isEnterpriseInstall: z.ZodOptional; refreshToken: z.ZodOptional; scope: z.ZodOptional; team: z.ZodLazy; }, "strip", z.ZodTypeAny, { id: string; name?: string | undefined; }, { id: string; name?: string | undefined; }>, { id: string; name: string | undefined; }, { id: string; name?: string | undefined; }>>; tokenType: z.ZodOptional; }, "strip", z.ZodTypeAny, { appId: string; accessToken: string; authedUser: { access_token: string | undefined; expires_in: number | undefined; id: string; refresh_token: string | undefined; scope: string | undefined; token_type: string | undefined; }; team: { id: string; name: string | undefined; }; id?: string | undefined; scope?: string | undefined; expiresIn?: number | undefined; refreshToken?: string | undefined; tokenType?: string | undefined; botUserId?: string | undefined; enterprise?: { id: string; name: string; } | undefined; incomingWebhook?: { channel: string; configuration_url: string; url: string; } | undefined; isEnterpriseInstall?: boolean | undefined; }, { appId: string; accessToken: string; authedUser: { id: string; scope?: string | undefined; accessToken?: string | undefined; expiresIn?: number | undefined; refreshToken?: string | undefined; tokenType?: string | undefined; }; team: { id: string; name?: string | undefined; }; id?: string | undefined; scope?: string | undefined; expiresIn?: number | undefined; refreshToken?: string | undefined; tokenType?: string | undefined; botUserId?: string | undefined; enterprise?: { id: string; name: string; } | undefined; incomingWebhook?: { channel: string; url: string; configurationUrl: string; } | undefined; isEnterpriseInstall?: boolean | undefined; }>, { access_token: string; app_id: string; authed_user: { access_token: string | undefined; expires_in: number | undefined; id: string; refresh_token: string | undefined; scope: string | undefined; token_type: string | undefined; }; bot_user_id: string | undefined; enterprise: { id: string; name: string; } | undefined; expires_in: number | undefined; id: string | undefined; incoming_webhook: { channel: string; configuration_url: string; url: string; } | undefined; is_enterprise_install: boolean | undefined; refresh_token: string | undefined; scope: string | undefined; team: { id: string; name: string | undefined; }; token_type: string | undefined; }, { appId: string; accessToken: string; authedUser: { id: string; scope?: string | undefined; accessToken?: string | undefined; expiresIn?: number | undefined; refreshToken?: string | undefined; tokenType?: string | undefined; }; team: { id: string; name?: string | undefined; }; id?: string | undefined; scope?: string | undefined; expiresIn?: number | undefined; refreshToken?: string | undefined; tokenType?: string | undefined; botUserId?: string | undefined; enterprise?: { id: string; name: string; } | undefined; incomingWebhook?: { channel: string; url: string; configurationUrl: string; } | undefined; isEnterpriseInstall?: boolean | undefined; }>>; //# sourceMappingURL=slack-installation.d.ts.map