import type { Endpoint } from '../api.js'; export interface AsyncActionResponse { id: string; statusUrl: string; } export type GetAsyncActionResult = Endpoint<{ Method: 'GET'; Path: `/action/:id`; Params: { id: string; }; Success: Record; }>; export type PostPublicTriggerAction = Endpoint<{ Method: 'POST'; Path: '/action/trigger'; Body: { action_name: string; input: unknown; }; Headers: { 'provider-config-key': string; 'connection-id': string; 'x-async'?: boolean; 'x-max-retries'?: number; }; Success: any; }>; /** @deprecated Use POST /action/trigger to trigger actions and GET /records to fetch sync records instead. */ export type GetPublicV1 = Endpoint<{ Method: 'GET'; Path: `/v1/:path`; Params: any; Body: any; Querystring: any; Headers: { 'provider-config-key': string; 'connection-id': string; }; Success: any; }>;