import * as z from "zod"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { AuthType } from "./authtype.js"; import { ConnectionState } from "./connectionstate.js"; /** * Connection settings. Values will persist to `form_fields` with corresponding id */ export type Settings = {}; export type ConsumerConnection = { id?: string | undefined; name?: string | undefined; icon?: string | undefined; logo?: string | undefined; website?: string | undefined; tagLine?: string | undefined; serviceId?: string | undefined; unifiedApi?: string | undefined; consumerId?: string | undefined; /** * Type of authorization used by the connector */ authType?: AuthType | undefined; enabled?: boolean | undefined; /** * Connection settings. Values will persist to `form_fields` with corresponding id */ settings?: Settings | null | undefined; /** * Attach your own consumer specific metadata */ metadata?: { [k: string]: any; } | null | undefined; createdAt?: string | undefined; updatedAt?: string | null | undefined; /** * [Connection state flow](#section/Connection-state) */ state?: ConnectionState | undefined; }; /** @internal */ export declare const Settings$inboundSchema: z.ZodType; /** @internal */ export type Settings$Outbound = {}; /** @internal */ export declare const Settings$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace Settings$ { /** @deprecated use `Settings$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Settings$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Settings$Outbound` instead. */ type Outbound = Settings$Outbound; } export declare function settingsToJSON(settings: Settings): string; export declare function settingsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ConsumerConnection$inboundSchema: z.ZodType; /** @internal */ export type ConsumerConnection$Outbound = { id?: string | undefined; name?: string | undefined; icon?: string | undefined; logo?: string | undefined; website?: string | undefined; tag_line?: string | undefined; service_id?: string | undefined; unified_api?: string | undefined; consumer_id?: string | undefined; auth_type?: string | undefined; enabled?: boolean | undefined; settings?: Settings$Outbound | null | undefined; metadata?: { [k: string]: any; } | null | undefined; created_at?: string | undefined; updated_at?: string | null | undefined; state?: string | undefined; }; /** @internal */ export declare const ConsumerConnection$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace ConsumerConnection$ { /** @deprecated use `ConsumerConnection$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `ConsumerConnection$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `ConsumerConnection$Outbound` instead. */ type Outbound = ConsumerConnection$Outbound; } export declare function consumerConnectionToJSON(consumerConnection: ConsumerConnection): string; export declare function consumerConnectionFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=consumerconnection.d.ts.map