import * as z from "zod"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type Credentials = { /** * The refresh token can be used to obtain a new access token. */ refreshToken?: string | null | undefined; /** * Access token */ accessToken?: string | undefined; /** * The datetime at which the token was issued. If omitted the token will be queued for refresh. */ issuedAt?: Date | null | undefined; /** * The number of seconds until the token expires. If omitted the token will be queued for refresh. */ expiresIn?: number | null | undefined; }; /** * Connection settings. Values will persist to `form_fields` with corresponding id */ export type ConnectionImportDataSettings = {}; export type ConnectionImportData = { credentials?: Credentials | undefined; /** * Connection settings. Values will persist to `form_fields` with corresponding id */ settings?: ConnectionImportDataSettings | null | undefined; /** * Attach your own consumer specific metadata */ metadata?: { [k: string]: any; } | null | undefined; }; /** @internal */ export declare const Credentials$inboundSchema: z.ZodType; /** @internal */ export type Credentials$Outbound = { refresh_token?: string | null | undefined; access_token?: string | undefined; issued_at?: string | null | undefined; expires_in?: number | null | undefined; }; /** @internal */ export declare const Credentials$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 Credentials$ { /** @deprecated use `Credentials$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Credentials$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Credentials$Outbound` instead. */ type Outbound = Credentials$Outbound; } export declare function credentialsToJSON(credentials: Credentials): string; export declare function credentialsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ConnectionImportDataSettings$inboundSchema: z.ZodType; /** @internal */ export type ConnectionImportDataSettings$Outbound = {}; /** @internal */ export declare const ConnectionImportDataSettings$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 ConnectionImportDataSettings$ { /** @deprecated use `ConnectionImportDataSettings$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `ConnectionImportDataSettings$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `ConnectionImportDataSettings$Outbound` instead. */ type Outbound = ConnectionImportDataSettings$Outbound; } export declare function connectionImportDataSettingsToJSON(connectionImportDataSettings: ConnectionImportDataSettings): string; export declare function connectionImportDataSettingsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ConnectionImportData$inboundSchema: z.ZodType; /** @internal */ export type ConnectionImportData$Outbound = { credentials?: Credentials$Outbound | undefined; settings?: ConnectionImportDataSettings$Outbound | null | undefined; metadata?: { [k: string]: any; } | null | undefined; }; /** @internal */ export declare const ConnectionImportData$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 ConnectionImportData$ { /** @deprecated use `ConnectionImportData$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `ConnectionImportData$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `ConnectionImportData$Outbound` instead. */ type Outbound = ConnectionImportData$Outbound; } export declare function connectionImportDataToJSON(connectionImportData: ConnectionImportData): string; export declare function connectionImportDataFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=connectionimportdata.d.ts.map