import * as openapi_client_axios from 'openapi-client-axios'; import { Document } from 'openapi-client-axios'; import { AxiosInstance, InternalAxiosRequestConfig, AxiosResponse } from 'axios'; import { T as TokenArg, H as HeadersConfig, A as ApiHandle } from './types-ChU9Acbv.js'; export { I as Interceptor, O as OverridesConfig, a as authorize } from './types-ChU9Acbv.js'; import { C as Client } from './access-token.d-CegaQmrK.js'; import { C as Client$1 } from './address.d-CwAPOVxa.js'; import { C as Client$2 } from './address-suggestions.d-_YwTOR-9.js'; import { C as Client$3 } from './ai-agents.d-D-7bTH-9.js'; import { C as Client$4 } from './app.d-BOR23dso.js'; import { C as Client$5 } from './audit-logs.d-BRToFqeX.js'; import { C as Client$6 } from './automation.d-DS_YXDE8.js'; import { C as Client$7 } from './billing.d-Bs8Ku9qE.js'; import { C as Client$8 } from './blueprint-manifest.d-2-TORV8o.js'; import { C as Client$9 } from './calendar.d-BEjLDagH.js'; import { C as Client$a } from './configuration-hub.d-CbSJDa7k.js'; import { C as Client$b } from './consent.d-C2PROHhX.js'; import { C as Client$c } from './customer-portal.d-BRwiQehb.js'; import { C as Client$d } from './dashboard.d-CsGcA74I.js'; import { C as Client$e } from './data-governance.d-BbZ466j5.js'; import { C as Client$f } from './deduplication.d-D5GYddVu.js'; import { C as Client$g } from './design.d-DzSDu8cy.js'; import { C as Client$h } from './document.d-DN37pjdx.js'; import { C as Client$i } from './email-settings.d-UJ0C3jPI.js'; import { C as Client$j } from './email-template.d-gtQkdaXM.js'; import { C as Client$k } from './entity.d-fospShiN.js'; import { C as Client$l } from './entity-mapping.d-DKSW3sfy.js'; import { C as Client$m } from './environments.d-BvqvN-PD.js'; import { C as Client$n } from './event-catalog.d-CXbUn8T1.js'; import { C as Client$o } from './file.d-BN417xok.js'; import { C as Client$p } from './iban.d-BwdiGbxi.js'; import { C as Client$q } from './integration-toolkit.d-BVe_MBBi.js'; import { C as Client$r } from './journey.d-B1sOeMHw.js'; import { C as Client$s } from './kanban.d-BHnSRCYW.js'; import { C as Client$t } from './message.d-B5UuSqgw.js'; import { C as Client$u } from './metering.d-CUICZDiL.js'; import { C as Client$v } from './notes.d-rbcyHfiB.js'; import { C as Client$w } from './notification.d-BfBL3lga.js'; import { C as Client$x } from './organization.d-DqwnNxMg.js'; import { C as Client$y } from './partner-directory.d-BCIjHoGs.js'; import { C as Client$z } from './permissions.d-l6AT8SYP.js'; import { C as Client$A } from './pricing.d-gPt5L7wp.js'; import { C as Client$B } from './pricing-tier.d-Cg0jl6n_.js'; import { C as Client$C } from './purpose.d-CbIYfTua.js'; import { C as Client$D } from './query.d-Cmp78IhZ.js'; import { C as Client$E } from './sandbox.d-BdbOFzDu.js'; import { C as Client$F } from './sharing.d-sOXq-gtz.js'; import { C as Client$G } from './snapshot.d-CqefmvuB.js'; import { C as Client$H } from './submission.d-BamwfhXw.js'; import { C as Client$I } from './targeting.d-Bq3onSes.js'; import { C as Client$J } from './template-variables.d-Ble9TSBa.js'; import { C as Client$K } from './user.d-L-C7_K84.js'; import { C as Client$L } from './validation-rules.d-Db5c5zTf.js'; import { C as Client$M } from './webhooks.d-DKZOMj1P.js'; import { C as Client$N } from './workflow.d-eFv0ecBi.js'; import { C as Client$O } from './workflow-definition.d-DOeb0KVV.js'; type SDKClientMap = { accessToken: Client; address: Client$1; addressSuggestions: Client$2; aiAgents: Client$3; app: Client$4; auditLogs: Client$5; automation: Client$6; billing: Client$7; blueprintManifest: Client$8; calendar: Client$9; configurationHub: Client$a; consent: Client$b; customerPortal: Client$c; dashboard: Client$d; dataGovernance: Client$e; deduplication: Client$f; design: Client$g; document: Client$h; emailSettings: Client$i; emailTemplate: Client$j; entity: Client$k; entityMapping: Client$l; environments: Client$m; eventCatalog: Client$n; file: Client$o; iban: Client$p; integrationToolkit: Client$q; journey: Client$r; kanban: Client$s; message: Client$t; metering: Client$u; notes: Client$v; notification: Client$w; organization: Client$x; partnerDirectory: Client$y; permissions: Client$z; pricing: Client$A; pricingTier: Client$B; purpose: Client$C; query: Client$D; sandbox: Client$E; sharing: Client$F; snapshot: Client$G; submission: Client$H; targeting: Client$I; templateVariables: Client$J; user: Client$K; validationRules: Client$L; webhooks: Client$M; workflow: Client$N; workflowDefinition: Client$O; }; type LargeResponseConfig = { /** Enable large response handling. Default: true */ enabled?: boolean; }; declare const applyLargeResponseInterceptor: (params: { client: AxiosInstance; config: LargeResponseConfig; }) => void; type RetryConfig = { /** Maximum number of retries for 429 responses. Set to 0 to disable. Default: 3 */ maxRetries?: number; /** Default delay in ms when Retry-After header is missing. Default: 1000 */ defaultDelayMs?: number; }; declare const applyRetryInterceptor: (params: { client: AxiosInstance; config: RetryConfig; }) => void; type InterceptorUse = { request: (fulfilled: (config: InternalAxiosRequestConfig) => InternalAxiosRequestConfig | Promise, rejected?: (error: unknown) => unknown) => void; response: (fulfilled: (response: AxiosResponse) => AxiosResponse | Promise, rejected?: (error: unknown) => unknown) => void; }; type EpilotSDK = { /** Set a Bearer token (static string or async function) for all clients */ authorize: (token: TokenArg) => void; /** Set global default headers applied to all clients (e.g. x-epilot-org-id) */ headers: (headers: HeadersConfig) => void; /** Register global axios interceptors applied to all clients */ interceptors: InterceptorUse; /** Configure retry behavior for 429 Too Many Requests responses */ retry: (config: RetryConfig) => void; /** Configure large response handling for S3-backed payloads */ largeResponse: (config: LargeResponseConfig) => void; /** Get markdown docs. No args = general SDK help, with API name = API-specific docs */ help: (apiName?: string) => Promise; /** Get the full OpenAPI specification for an API (lazy-loaded) */ openapi: (apiName: string) => Promise; } & { [K in keyof SDKClientMap]: ApiHandle; } & Record>; declare const createSDK: () => EpilotSDK; /** * Lazy-loaded help system — returns markdown docs for SDK APIs. * Each doc is loaded via dynamic import() so only the requested doc affects bundle size. */ /** * Get help for a specific API or general SDK help. * * @example * await help() // general SDK docs * await help('entity') // entity API docs */ declare const help: (apiName?: string) => Promise; /** * Lazy-loaded OpenAPI spec — returns the full OpenAPI JSON document for an API. * Each spec is loaded via dynamic import() so only the requested spec affects bundle size. */ /** * Get the full OpenAPI specification for an API. * * @example * await openapi('entity') // full entity OpenAPI spec */ declare const openapi: (apiName: string) => Promise; declare const epilot: EpilotSDK; export { ApiHandle, type EpilotSDK, HeadersConfig, type InterceptorUse, type LargeResponseConfig, type RetryConfig, TokenArg, applyLargeResponseInterceptor, applyRetryInterceptor, createSDK, epilot, help, openapi };