import { z } from 'zod'; /** * Base Connection schema matching the API response * (internally uses the same v4 authentications API) */ declare const ConnectionSchema: z.ZodObject<{ id: z.ZodNumber; date: z.ZodString; lastchanged: z.ZodOptional; account_id: z.ZodNumber; customuser_id: z.ZodOptional; selected_api: z.ZodString; slug: z.ZodOptional>; destination_selected_api: z.ZodOptional>; is_invite_only: z.ZodBoolean; is_private: z.ZodBoolean; shared_with_all: z.ZodBoolean; is_stale: z.ZodOptional; is_shared: z.ZodOptional; marked_stale_at: z.ZodOptional>; label: z.ZodOptional>; identifier: z.ZodOptional>; title: z.ZodOptional>; url: z.ZodOptional; groups: z.ZodOptional>>; members: z.ZodOptional; permissions: z.ZodOptional>; public_id: z.ZodOptional; account_public_id: z.ZodOptional; customuser_public_id: z.ZodOptional; }, z.core.$strip>; /** * Normalized connection item returned by getConnection handler * * Transforms API response fields: * - selected_api → implementation_id * - customuser_id → profile_id * - is_stale → is_expired (preserved as is_stale too) * - marked_stale_at → expired_at (preserved as marked_stale_at too) * * Adds computed fields: * - app_key: Extracted from selected_api (e.g., "SlackCLIAPI@1.0.0" → "SlackCLIAPI") * - app_version: Extracted from selected_api (e.g., "SlackCLIAPI@1.0.0" → "1.0.0") */ declare const ConnectionItemSchema: z.ZodObject<{ title: z.ZodOptional>; date: z.ZodString; is_invite_only: z.ZodBoolean; slug: z.ZodOptional>; lastchanged: z.ZodOptional; destination_selected_api: z.ZodOptional>; is_private: z.ZodBoolean; shared_with_all: z.ZodBoolean; is_stale: z.ZodOptional; is_shared: z.ZodOptional; marked_stale_at: z.ZodOptional>; label: z.ZodOptional>; identifier: z.ZodOptional>; url: z.ZodOptional; groups: z.ZodOptional>>; members: z.ZodOptional; permissions: z.ZodOptional>; public_id: z.ZodOptional; account_public_id: z.ZodOptional; customuser_public_id: z.ZodOptional; id: z.ZodString; account_id: z.ZodString; implementation_id: z.ZodOptional; profile_id: z.ZodOptional; is_expired: z.ZodOptional; expired_at: z.ZodOptional>; app_key: z.ZodOptional; app_version: z.ZodOptional; }, z.core.$strip>; declare const ConnectionsResponseSchema: z.ZodObject<{ count: z.ZodNumber; next: z.ZodOptional>; previous: z.ZodOptional>; results: z.ZodArray; account_id: z.ZodNumber; customuser_id: z.ZodOptional; selected_api: z.ZodString; slug: z.ZodOptional>; destination_selected_api: z.ZodOptional>; is_invite_only: z.ZodBoolean; is_private: z.ZodBoolean; shared_with_all: z.ZodBoolean; is_stale: z.ZodOptional; is_shared: z.ZodOptional; marked_stale_at: z.ZodOptional>; label: z.ZodOptional>; identifier: z.ZodOptional>; title: z.ZodOptional>; url: z.ZodOptional; groups: z.ZodOptional>>; members: z.ZodOptional; permissions: z.ZodOptional>; public_id: z.ZodOptional; account_public_id: z.ZodOptional; customuser_public_id: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; type Connection = z.infer; type ConnectionItem = z.infer; type ConnectionsResponse = z.infer; /** * Path parameters schema for getConnection endpoint. */ declare const GetConnectionParamSchema: z.ZodObject<{ connectionId: z.ZodString; }, z.core.$strip>; type GetConnectionParam = z.infer; /** * Response type for getConnection endpoint. * Wraps ConnectionItem in the standard API response envelope. */ type GetConnectionResponse = { data: ConnectionItem; }; /** * Query parameters for listing connections */ declare const ListConnectionsQuerySchema: z.ZodObject<{ app_key: z.ZodOptional; connection_ids: z.ZodOptional; search: z.ZodOptional; title: z.ZodOptional; account_id: z.ZodOptional; owner: z.ZodOptional; is_expired: z.ZodOptional; page_size: z.ZodOptional; offset: z.ZodOptional; }, z.core.$strip>; /** * Response schema for listConnections */ declare const ListConnectionsResponseSchema: z.ZodObject<{ data: z.ZodArray>; date: z.ZodString; is_invite_only: z.ZodBoolean; slug: z.ZodOptional>; lastchanged: z.ZodOptional; destination_selected_api: z.ZodOptional>; is_private: z.ZodBoolean; shared_with_all: z.ZodBoolean; is_stale: z.ZodOptional; is_shared: z.ZodOptional; marked_stale_at: z.ZodOptional>; label: z.ZodOptional>; identifier: z.ZodOptional>; url: z.ZodOptional; groups: z.ZodOptional>>; members: z.ZodOptional; permissions: z.ZodOptional>; public_id: z.ZodOptional; account_public_id: z.ZodOptional; customuser_public_id: z.ZodOptional; id: z.ZodString; account_id: z.ZodString; implementation_id: z.ZodOptional; profile_id: z.ZodOptional; is_expired: z.ZodOptional; expired_at: z.ZodOptional>; app_key: z.ZodOptional; app_version: z.ZodOptional; }, z.core.$strip>>; links: z.ZodObject<{ next: z.ZodOptional>; }, z.core.$strip>; meta: z.ZodObject<{ count: z.ZodNumber; limit: z.ZodNumber; offset: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>; /** * TypeScript types for request and response */ type ListConnectionsQuery = z.infer; type ListConnectionsResponse = z.infer; export { type Connection, type ConnectionItem, ConnectionItemSchema, ConnectionSchema, type ConnectionsResponse, ConnectionsResponseSchema, type GetConnectionParam, GetConnectionParamSchema, type GetConnectionResponse, type ListConnectionsQuery, ListConnectionsQuerySchema, type ListConnectionsResponse, ListConnectionsResponseSchema };