/** Connector provider catalog and connection lifecycle schemas. */ import { z } from 'zod'; export declare const subServiceView: z.ZodObject<{ id: z.ZodString; display_name: z.ZodString; description: z.ZodString; scopes: z.ZodArray; }, z.core.$strip>; export declare const configFieldView: z.ZodObject<{ key: z.ZodString; label: z.ZodString; target: z.ZodEnum<{ env: "env"; header: "header"; }>; required: z.ZodBoolean; secret: z.ZodBoolean; }, z.core.$strip>; export declare const providerView: z.ZodObject<{ id: z.ZodString; display_name: z.ZodString; description: z.ZodString; icon_url: z.ZodURL; kind: z.ZodEnum<{ none: "none"; oauth: "oauth"; }>; origin: z.ZodEnum<{ system: "system"; community: "community"; }>; category: z.ZodString; sub_services: z.ZodArray; }, z.core.$strip>>; config_fields: z.ZodArray; required: z.ZodBoolean; secret: z.ZodBoolean; }, z.core.$strip>>; }, z.core.$strip>; export type ProviderView = z.infer; /** * One `connector_category` grouping row served alongside the catalog: the UI's * label and sort key for the providers it groups, so the list can group, order, * and label providers by category without a second read. */ export declare const connectorCategoryView: z.ZodObject<{ id: z.ZodString; display_name: z.ZodString; sort_order: z.ZodNumber; }, z.core.$strip>; export type ConnectorCategoryView = z.infer; /** * `GET /api/connectors/providers` — the provider catalog: the providers plus the * category groupings the UI arranges them under. Reshaped from a bare provider * array so the category label/order surface rides the same read. */ export declare const providers: z.ZodObject<{ providers: z.ZodArray; origin: z.ZodEnum<{ system: "system"; community: "community"; }>; category: z.ZodString; sub_services: z.ZodArray; }, z.core.$strip>>; config_fields: z.ZodArray; required: z.ZodBoolean; secret: z.ZodBoolean; }, z.core.$strip>>; }, z.core.$strip>>; categories: z.ZodArray>; }, z.core.$strip>; export type ProviderCatalogResponse = z.infer; export declare const connectionView: z.ZodObject<{ connection_id: z.ZodString; provider_id: z.ZodString; alias: z.ZodString; kind: z.ZodEnum<{ none: "none"; oauth: "oauth"; }>; account_identity: z.ZodNullable; enabled_sub_services: z.ZodArray; granted_scopes: z.ZodArray; unreachable_sub_services: z.ZodDefault>; auth_health_state: z.ZodEnum<{ healthy: "healthy"; reconnect_required: "reconnect_required"; refresh_failing: "refresh_failing"; }>; created_at: z.ZodString; }, z.core.$strip>; export type ConnectionView = z.infer; export declare const connectionsList: z.ZodObject<{ items: z.ZodArray; account_identity: z.ZodNullable; enabled_sub_services: z.ZodArray; granted_scopes: z.ZodArray; unreachable_sub_services: z.ZodDefault>; auth_health_state: z.ZodEnum<{ healthy: "healthy"; reconnect_required: "reconnect_required"; refresh_failing: "refresh_failing"; }>; created_at: z.ZodString; }, z.core.$strip>>; total: z.ZodNumber; unhealthy: z.ZodOptional; }, z.core.$strip>; export declare const startConnectResult: z.ZodUnion, z.ZodObject<{ connection_id: z.ZodString; added_manifest_entries: z.ZodArray; fanout: z.ZodNullable; note: z.ZodString; }, z.core.$strip>, z.ZodObject<{ op: z.ZodString; reachable: z.ZodBoolean; local_only: z.ZodBoolean; results: z.ZodArray; payload: z.ZodType>; error: z.ZodNullable; detail: z.ZodNullable; }, z.core.$strip>>; error: z.ZodNullable; mode: z.ZodLiteral<"fleet">; }, z.core.$strip>, z.ZodObject<{ op: z.ZodString; reachable: z.ZodBoolean; local_only: z.ZodBoolean; results: z.ZodArray; payload: z.ZodType>; error: z.ZodNullable; detail: z.ZodNullable; }, z.core.$strip>>; error: z.ZodNullable; mode: z.ZodLiteral<"unreachable">; }, z.core.$strip>], "mode">>; }, z.core.$strip>]>; export declare const reconnectResult: z.ZodObject<{ flow_id: z.ZodString; authorize_url: z.ZodString; }, z.core.$strip>; export declare const disconnectResult: z.ZodObject<{ connection_id: z.ZodString; upstream_revoke_outcome: z.ZodEnum<{ success: "success"; failed: "failed"; skipped: "skipped"; }>; upstream_revoke_status: z.ZodNullable; removed_manifest_entries: z.ZodArray; fanout: z.ZodNullable; note: z.ZodString; }, z.core.$strip>, z.ZodObject<{ op: z.ZodString; reachable: z.ZodBoolean; local_only: z.ZodBoolean; results: z.ZodArray; payload: z.ZodType>; error: z.ZodNullable; detail: z.ZodNullable; }, z.core.$strip>>; error: z.ZodNullable; mode: z.ZodLiteral<"fleet">; }, z.core.$strip>, z.ZodObject<{ op: z.ZodString; reachable: z.ZodBoolean; local_only: z.ZodBoolean; results: z.ZodArray; payload: z.ZodType>; error: z.ZodNullable; detail: z.ZodNullable; }, z.core.$strip>>; error: z.ZodNullable; mode: z.ZodLiteral<"unreachable">; }, z.core.$strip>], "mode">>; }, z.core.$strip>; export declare const patchSubServicesResult: z.ZodObject<{ connection_id: z.ZodString; enabled_sub_services: z.ZodArray; consent_required: z.ZodBoolean; flow_id: z.ZodNullable; authorize_url: z.ZodNullable; added_manifest_entries: z.ZodArray; removed_manifest_entries: z.ZodArray; fanout: z.ZodNullable; note: z.ZodString; }, z.core.$strip>, z.ZodObject<{ op: z.ZodString; reachable: z.ZodBoolean; local_only: z.ZodBoolean; results: z.ZodArray; payload: z.ZodType>; error: z.ZodNullable; detail: z.ZodNullable; }, z.core.$strip>>; error: z.ZodNullable; mode: z.ZodLiteral<"fleet">; }, z.core.$strip>, z.ZodObject<{ op: z.ZodString; reachable: z.ZodBoolean; local_only: z.ZodBoolean; results: z.ZodArray; payload: z.ZodType>; error: z.ZodNullable; detail: z.ZodNullable; }, z.core.$strip>>; error: z.ZodNullable; mode: z.ZodLiteral<"unreachable">; }, z.core.$strip>], "mode">>; }, z.core.$strip>; export declare const oauthCompleteResult: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"success">; connection_id: z.ZodString; return_url: z.ZodString; fanout: z.ZodNullable; note: z.ZodString; }, z.core.$strip>, z.ZodObject<{ op: z.ZodString; reachable: z.ZodBoolean; local_only: z.ZodBoolean; results: z.ZodArray; payload: z.ZodType>; error: z.ZodNullable; detail: z.ZodNullable; }, z.core.$strip>>; error: z.ZodNullable; mode: z.ZodLiteral<"fleet">; }, z.core.$strip>, z.ZodObject<{ op: z.ZodString; reachable: z.ZodBoolean; local_only: z.ZodBoolean; results: z.ZodArray; payload: z.ZodType>; error: z.ZodNullable; detail: z.ZodNullable; }, z.core.$strip>>; error: z.ZodNullable; mode: z.ZodLiteral<"unreachable">; }, z.core.$strip>], "mode">>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"failed">; reason: z.ZodString; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"cancelled">; message: z.ZodString; }, z.core.$strip>], "kind">; export type OAuthCompleteResult = z.infer; //# sourceMappingURL=connectors.d.ts.map