import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { ConnectorSource } from "./connectorsource.js"; import { MediaModeParam, MediaModeParam$Outbound } from "./mediamodeparam.js"; export type OAuthUrlCreateMetadata = string | number | number | boolean | Array; export declare const OAuthUrlCreateMode1: { readonly HiRes: "hi_res"; readonly Fast: "fast"; }; export type OAuthUrlCreateMode1 = ClosedEnum; export type OAuthUrlCreateMode = OAuthUrlCreateMode1 | MediaModeParam; export declare const Theme: { readonly Light: "light"; readonly Dark: "dark"; readonly System: "system"; }; export type Theme = ClosedEnum; export type OAuthUrlCreate = { redirectUri: string; partition?: string | null | undefined; sourceType?: ConnectorSource | undefined; /** * Metadata for the document. Keys must be strings. Values may be strings, numbers, booleans, or lists of strings. Numbers may be integers or floating point and will be converted to 64 bit floating point. 1000 total values are allowed. Each item in an array counts towards the total. The following keys are reserved for internal use: `document_id`, `document_type`, `document_source`, `document_name`, `document_uploaded_at`, `start_time`, `end_time`, `chunk_content_type`. */ metadata?: { [k: string]: string | number | number | boolean | Array; } | undefined; mode?: OAuthUrlCreateMode1 | MediaModeParam | null | undefined; /** * Sets the theme of the Ragie Web UI when the user lands there. Can be light, dark, or system to use whatever the system value is. If omitted, system is used. */ theme?: Theme | null | undefined; /** * The maximum number of pages a connection will sync. The connection will be disabled after this limit is reached. Some in progress documents may continue processing after the limit is reached. The limit will be enforced at the start of the next document sync. Remove the limit by setting to null. */ pageLimit?: number | null | undefined; /** * Optional config per connector */ config?: { [k: string]: any; } | undefined; authenticatorId?: string | null | undefined; }; /** @internal */ export declare const OAuthUrlCreateMetadata$inboundSchema: z.ZodType; /** @internal */ export type OAuthUrlCreateMetadata$Outbound = string | number | number | boolean | Array; /** @internal */ export declare const OAuthUrlCreateMetadata$outboundSchema: z.ZodType; export declare function oAuthUrlCreateMetadataToJSON(oAuthUrlCreateMetadata: OAuthUrlCreateMetadata): string; export declare function oAuthUrlCreateMetadataFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const OAuthUrlCreateMode1$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const OAuthUrlCreateMode1$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const OAuthUrlCreateMode$inboundSchema: z.ZodType; /** @internal */ export type OAuthUrlCreateMode$Outbound = string | MediaModeParam$Outbound; /** @internal */ export declare const OAuthUrlCreateMode$outboundSchema: z.ZodType; export declare function oAuthUrlCreateModeToJSON(oAuthUrlCreateMode: OAuthUrlCreateMode): string; export declare function oAuthUrlCreateModeFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Theme$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const Theme$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const OAuthUrlCreate$inboundSchema: z.ZodType; /** @internal */ export type OAuthUrlCreate$Outbound = { redirect_uri: string; partition?: string | null | undefined; source_type?: string | undefined; metadata?: { [k: string]: string | number | number | boolean | Array; } | undefined; mode?: string | MediaModeParam$Outbound | null | undefined; theme?: string | null | undefined; page_limit?: number | null | undefined; config?: { [k: string]: any; } | undefined; authenticator_id?: string | null | undefined; }; /** @internal */ export declare const OAuthUrlCreate$outboundSchema: z.ZodType; export declare function oAuthUrlCreateToJSON(oAuthUrlCreate: OAuthUrlCreate): string; export declare function oAuthUrlCreateFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=oauthurlcreate.d.ts.map