import { z, type ZodTypeAny } from "zod"; import { type ActionHttpConfig, type ActionRunContext } from "../../action.js"; import type { ProviderApiRuntime } from "../index.js"; import { type CreateCustomProviderRegistrationActionOptions } from "./custom-provider-registration.js"; export declare function createProviderApiRequestSchema(providerSchema?: ZodTypeAny): z.ZodObject<{ provider: ZodTypeAny>; method: z.ZodDefault>; path: z.ZodString; query: z.ZodOptional; headers: z.ZodOptional>; body: z.ZodOptional; auth: z.ZodDefault>; connectionId: z.ZodOptional; accountId: z.ZodOptional; timeoutMs: z.ZodOptional>; maxBytes: z.ZodOptional>; saveToFile: z.ZodOptional; stageAs: z.ZodOptional; itemsPath: z.ZodOptional; pagination: z.ZodOptional; cursorParam: z.ZodOptional; cursorBodyPath: z.ZodOptional; pageParam: z.ZodOptional; startPage: z.ZodOptional>; offsetParam: z.ZodOptional; pageSize: z.ZodOptional>; maxPages: z.ZodOptional>; }, z.core.$strip>>; fetchAllPages: z.ZodOptional; cursorBodyPath: z.ZodOptional; itemsPath: z.ZodOptional; maxPages: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$strip>; export declare function createProviderApiCatalogSchema(providerSchema?: ZodTypeAny): z.ZodObject<{ provider: z.ZodOptional>>; }, z.core.$strip>; export declare function createProviderApiDocsSchema(providerSchema?: ZodTypeAny): z.ZodObject<{ provider: ZodTypeAny>; url: z.ZodOptional; maxBytes: z.ZodOptional>; maxChars: z.ZodOptional>; responseMode: z.ZodOptional>; extract: z.ZodOptional>; includeLinks: z.ZodOptional>; search: z.ZodOptional]>>; queries: z.ZodOptional>; terms: z.ZodOptional>; regex: z.ZodOptional; regexFlags: z.ZodOptional; source: z.ZodOptional>; maxMatches: z.ZodOptional>; contextChars: z.ZodOptional>; caseSensitive: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$strip>; interface ProviderApiActionBaseOptions { schema?: TSchema; description?: string; http?: ActionHttpConfig | false; toolCallable?: boolean; } export interface CreateProviderApiRequestActionOptions> extends ProviderApiActionBaseOptions { appId?: string; getOwnerEmail?: () => string | null; needsApproval?: boolean | ((args: z.output, ctx?: ActionRunContext) => boolean | Promise); } export declare function createProviderApiRequestAction>(runtime: Pick, options?: CreateProviderApiRequestActionOptions): import("../../action.js").ActionDefinition>; method: z.ZodDefault>; path: z.ZodString; query: z.ZodOptional; headers: z.ZodOptional>; body: z.ZodOptional; auth: z.ZodDefault>; connectionId: z.ZodOptional; accountId: z.ZodOptional; timeoutMs: z.ZodOptional>; maxBytes: z.ZodOptional>; saveToFile: z.ZodOptional; stageAs: z.ZodOptional; itemsPath: z.ZodOptional; pagination: z.ZodOptional; cursorParam: z.ZodOptional; cursorBodyPath: z.ZodOptional; pageParam: z.ZodOptional; startPage: z.ZodOptional>; offsetParam: z.ZodOptional; pageSize: z.ZodOptional>; maxPages: z.ZodOptional>; }, z.core.$strip>>; fetchAllPages: z.ZodOptional; cursorBodyPath: z.ZodOptional; itemsPath: z.ZodOptional; maxPages: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$strip>>, unknown>; export interface CreateProviderApiCatalogActionOptions> extends ProviderApiActionBaseOptions { guidance?: string; } export declare function createProviderApiCatalogAction>(runtime: Pick, options?: CreateProviderApiCatalogActionOptions): import("../../action.js").ActionDefinition>>; }, z.core.$strip>>, { providers: unknown[] | { id: "amplitude" | "apollo" | "bigquery" | "clay" | "commonroom" | "dataforseo" | "figma" | "ga4" | "gcloud" | "github" | "gmail" | "gong" | "google_calendar" | "google_drive" | "google_slides" | "grafana" | "granola" | "hubspot" | "jira" | "mixpanel" | "notion" | "posthog" | "prometheus" | "pylon" | "salesforce" | "sentry" | "slack" | "stripe" | "twitter"; label: string; defaultBaseUrl: string; requiresConnectionId: boolean; baseUrlCredentialKey: string | null; auth: string; credentialKeys: readonly string[]; docsUrls: readonly string[]; specUrls: readonly string[]; allowedHostSuffixes: readonly string[]; placeholders: readonly import("../index.js").ProviderApiPlaceholder[]; defaultHeaders: Record; examples: readonly import("../index.js").ProviderApiExample[]; notes: readonly string[]; accessErrorGuidance: string | null; corpusRecipes: readonly import("../index.js").ProviderApiCorpusRecipe[]; templateUses: readonly import("../../index.js").WorkspaceConnectionTemplateUse[]; }[]; guidance: string; }>; export interface CreateProviderApiDocsActionOptions> extends ProviderApiActionBaseOptions { } export declare function createProviderApiDocsAction>(runtime: Pick, options?: CreateProviderApiDocsActionOptions): import("../../action.js").ActionDefinition>; url: z.ZodOptional; maxBytes: z.ZodOptional>; maxChars: z.ZodOptional>; responseMode: z.ZodOptional>; extract: z.ZodOptional>; includeLinks: z.ZodOptional>; search: z.ZodOptional]>>; queries: z.ZodOptional>; terms: z.ZodOptional>; regex: z.ZodOptional; regexFlags: z.ZodOptional; source: z.ZodOptional>; maxMatches: z.ZodOptional>; contextChars: z.ZodOptional>; caseSensitive: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$strip>>, unknown>; export interface CreateProviderApiActionsOptions { request?: CreateProviderApiRequestActionOptions; catalog?: CreateProviderApiCatalogActionOptions; docs?: CreateProviderApiDocsActionOptions; customProviderRegistration?: boolean; registration?: CreateCustomProviderRegistrationActionOptions; } export declare function createProviderApiActions(runtime: Pick, options?: CreateProviderApiActionsOptions): { request: import("../../action.js").ActionDefinition<{ provider: unknown; method?: "DELETE" | "GET" | "HEAD" | "PATCH" | "POST" | "PUT" | undefined; path: string; query?: unknown; headers?: Record | undefined; body?: unknown; auth?: "default" | "none" | undefined; connectionId?: string | undefined; accountId?: string | undefined; timeoutMs?: unknown; maxBytes?: unknown; saveToFile?: string | undefined; stageAs?: string | undefined; itemsPath?: string | undefined; pagination?: { nextCursorPath?: string | undefined; cursorParam?: string | undefined; cursorBodyPath?: string | undefined; pageParam?: string | undefined; startPage?: unknown; offsetParam?: string | undefined; pageSize?: unknown; maxPages?: unknown; } | undefined; fetchAllPages?: { cursorPath: string; cursorParam?: string | undefined; cursorBodyPath?: string | undefined; itemsPath?: string | undefined; maxPages?: unknown; } | undefined; }, unknown>; catalog: import("../../action.js").ActionDefinition<{ provider?: unknown; }, { providers: unknown[] | { id: "amplitude" | "apollo" | "bigquery" | "clay" | "commonroom" | "dataforseo" | "figma" | "ga4" | "gcloud" | "github" | "gmail" | "gong" | "google_calendar" | "google_drive" | "google_slides" | "grafana" | "granola" | "hubspot" | "jira" | "mixpanel" | "notion" | "posthog" | "prometheus" | "pylon" | "salesforce" | "sentry" | "slack" | "stripe" | "twitter"; label: string; defaultBaseUrl: string; requiresConnectionId: boolean; baseUrlCredentialKey: string | null; auth: string; credentialKeys: readonly string[]; docsUrls: readonly string[]; specUrls: readonly string[]; allowedHostSuffixes: readonly string[]; placeholders: readonly import("../index.js").ProviderApiPlaceholder[]; defaultHeaders: Record; examples: readonly import("../index.js").ProviderApiExample[]; notes: readonly string[]; accessErrorGuidance: string | null; corpusRecipes: readonly import("../index.js").ProviderApiCorpusRecipe[]; templateUses: readonly import("../../index.js").WorkspaceConnectionTemplateUse[]; }[]; guidance: string; }>; docs: import("../../action.js").ActionDefinition<{ provider: unknown; url?: string | undefined; maxBytes?: unknown; maxChars?: unknown; responseMode?: "auto" | "links" | "markdown" | "matches" | "metadata" | "raw" | "text" | undefined; extract?: "all-visible" | "none" | "readability" | undefined; includeLinks?: unknown; search?: { query?: string | string[] | undefined; queries?: string[] | undefined; terms?: string[] | undefined; regex?: string | undefined; regexFlags?: string | undefined; source?: "extracted" | "raw" | undefined; maxMatches?: unknown; contextChars?: unknown; caseSensitive?: unknown; } | undefined; }, unknown>; register: import("../../action.js").ActionDefinition<{ operation?: "delete" | "get" | "list" | "upsert" | undefined; id?: string | undefined; label?: string | undefined; baseUrl?: string | undefined; auth?: { type: "none"; } | { type: "bearer"; credentialKey: string; } | { type: "basic"; usernameKey: string; passwordKey: string; } | { type: "api-key-header"; credentialKey: string; headerName: string; } | undefined; docsUrls?: string[] | undefined; allowedHostSuffixes?: string[] | undefined; defaultHeaders?: Record | undefined; notes?: string | undefined; scope?: "org" | "user" | undefined; }, { message?: undefined; id?: undefined; deleted?: undefined; found?: undefined; providers: { id: string; label: string; baseUrl: string; authType: "api-key-header" | "basic" | "bearer" | "none"; docsUrls: string[]; notes: string; updatedAt: number; }[]; count: number; provider?: undefined; registered?: undefined; label?: undefined; } | { message?: undefined; count?: undefined; id?: undefined; deleted?: undefined; providers?: undefined; found: boolean; provider: import("../custom-registry.js").CustomProviderConfig; registered?: undefined; label?: undefined; } | { message?: undefined; count?: undefined; deleted?: undefined; providers?: undefined; provider?: undefined; found: boolean; id: string; registered?: undefined; label?: undefined; } | { message?: undefined; count?: undefined; found?: undefined; providers?: undefined; provider?: undefined; deleted: boolean; id: string; registered?: undefined; label?: undefined; } | { count?: undefined; deleted?: undefined; found?: undefined; providers?: undefined; provider?: undefined; registered: boolean; id: string; label: string; message: string; }> | undefined; }; export {}; //# sourceMappingURL=provider-api.d.ts.map