import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { AuthType } from "./authtype.js"; import { ConnectionHealth } from "./connectionhealth.js"; import { ConnectionState } from "./connectionstate.js"; /** * Attach your own consumer specific metadata */ export type Metadata = { /** * Normalized identifier of the authorized organization, copied from the connector-specific setting (e.g. Xero tenant_id, QuickBooks realm_id, NetSuite account_id). */ companyId?: string | undefined; additionalProperties?: { [k: string]: any; } | undefined; }; 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?: { [k: string]: any; } | null | undefined; /** * Attach your own consumer specific metadata */ metadata?: Metadata | null | undefined; createdAt?: string | undefined; updatedAt?: string | null | undefined; /** * [Connection state flow](#section/Connection-state) */ state?: ConnectionState | undefined; /** * The operational health status of the connection */ health?: ConnectionHealth | undefined; /** * ISO 8601 timestamp indicating when credentials will be cleared if token refresh continues to fail. Only present when connection health is pending_refresh and a retention window is active. */ credentialsExpireAt?: string | null | undefined; /** * ISO 8601 timestamp of the most recent token refresh failure. Only present when connection has experienced refresh failures. */ lastRefreshFailedAt?: string | null | undefined; }; /** @internal */ export declare const Metadata$inboundSchema: z.ZodType; export declare function metadataFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ConsumerConnection$inboundSchema: z.ZodType; export declare function consumerConnectionFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=consumerconnection.d.ts.map