import { type JsonValue } from 'type-fest'; import { type ExpressiveJSONSchema } from 'ya-json-schema-types'; import { type OpenAPI, type OpenAPIExtension, type OpenAPIOperation, type OpenAPIParameter, type OpenAPIPathItem, type OpenAPIHeader, type OpenAPIRequestBody, type OpenAPIResponse, type OpenAPIReference, type OpenAPICallback, OpenAPIMethod } from 'ya-open-api-types'; export interface WhookOpenAPIOperation extends Omit, 'operationId'> { operationId: string; } export interface WhookOpenAPI extends OpenAPI { paths?: Record<`/${string}`, Omit, OpenAPIMethod> & Partial>>; } export type WhookSupportedParameter = Extract, { schema: ExpressiveJSONSchema | OpenAPIReference; }>; export interface WhookAPISchemaDefinition { name: string; schema: ExpressiveJSONSchema; example?: T; examples?: Record; } export interface WhookAPIParameterDefinition { name: string; parameter: OpenAPIParameter; example?: T; examples?: Record; } export interface WhookAPIExampleDefinition { name: string; example: T; } export interface WhookAPIHeaderDefinition { name: string; header: OpenAPIHeader | OpenAPIReference>; } export interface WhookAPIResponseDefinition { name: string; response: OpenAPIResponse | OpenAPIReference>; } export interface WhookAPIRequestBodyDefinition { name: string; requestBody: OpenAPIRequestBody | OpenAPIReference>; } export interface WhookAPICallbackDefinition { name: string; callback: OpenAPICallback | OpenAPIReference>; } export declare function isValidWhookOpenAPI(api: WhookOpenAPI | OpenAPI): api is WhookOpenAPI;