import { IAppAction, IAppFolders } from "../types/appBuilder.types"; export interface IFoldersAndActions { actions: Array; folders: Array; } export interface IActionTriggerInput { name?: string; description?: string; action_id: string; input: unknown; env_slug: string; } export declare enum ReturnTypes { ALL = "all", SINGLE = "single" } export interface ImportPostmanCollectionPayload { app_id?: string; public_key: string; user_id: string; token: string; collectionJSON: PostmanCollectionV21; workspace_id: string; type: CollectionJSONTypes; } export declare enum CollectionJSONTypes { v2 = "v2", v21 = "v2.1" } export declare enum ImportDocsTypes { postmanV21 = "PostmanV2.1", openApiV30 = "OpenApiV3.0" } export interface PostmanCollectionV21 { info?: { name: string; description: string; }; item: Array; } export interface PostmanFoldersV21 { name?: string; item?: Array; request?: PostmanRequestV21; response?: Array; description?: string; } export interface PostmanRequestV21 { method: string; auth: any; description?: string; header: KeyValuePair[]; body: PostmanBodyV21; url: PostmanURLV21; } export interface PostmanResponseV21 { name: string; originalRequest: PostmanRequestV21; status: string; code: number; _postman_previewlanguage: string; header: Array; cookie: Array; body: string; } export interface PostmanURLV21 { raw: string; host: [string]; path: [string]; query?: Array; variable?: Array; } export interface PostmanOptionsV21 { raw: { language: string; }; } export interface PostmanBodyV21 { mode: string; raw: string; header?: Array; formdata?: Array; urlencoded?: Array; options: PostmanOptionsV21; url: PostmanURLV21; description: string; } export interface KeyValuePair { key: string; value: string | number | unknown; description?: string; type?: string; } export declare enum EntityTypes { ACTION = "action", FOLDER = "folder", APP = "app" } export declare enum Formats { JSON = "json" } export declare enum Modes { RAW = "raw" } export interface OpenAPIV3Document { openapi: string; info: OpenAPIV3Info; servers?: OpenAPIV3Server[]; paths: OpenAPIV3Paths; components?: OpenAPIV3Components; security?: OpenAPIV3SecurityRequirement[]; tags?: OpenAPIV3Tag[]; externalDocs?: OpenAPIV3ExternalDocumentation; } export interface OpenAPIV3Info { title: string; description?: string; termsOfService?: string; contact?: OpenAPIV3Contact; license?: OpenAPIV3License; version: string; } export interface OpenAPIV3Contact { name?: string; url?: string; email?: string; } export interface OpenAPIV3License { name: string; url?: string; } export interface OpenAPIV3Server { url: string; description?: string; variables?: Record; } export interface OpenAPIV3ServerVariable { enum?: string[]; default: string; description?: string; } export interface OpenAPIV3Paths { [path: string]: OpenAPIV3PathItem; } export interface OpenAPIV3PathItem { $ref?: string; summary?: string; description?: string; get?: OpenAPIV3Operation; put?: OpenAPIV3Operation; post?: OpenAPIV3Operation; delete?: OpenAPIV3Operation; options?: OpenAPIV3Operation; head?: OpenAPIV3Operation; patch?: OpenAPIV3Operation; trace?: OpenAPIV3Operation; servers?: OpenAPIV3Server[]; parameters?: (OpenAPIV3Parameter | OpenAPIV3Reference)[]; } export interface OpenAPIV3Operation { tags?: string[]; summary?: string; description?: string; externalDocs?: OpenAPIV3ExternalDocumentation; operationId?: string; parameters?: (OpenAPIV3Parameter | OpenAPIV3Reference)[]; requestBody?: OpenAPIV3RequestBody | OpenAPIV3Reference; responses: OpenAPIV3Responses; callbacks?: Record; deprecated?: boolean; security?: OpenAPIV3SecurityRequirement[]; servers?: OpenAPIV3Server[]; } export interface OpenAPIV3Parameter { name: string; in: 'query' | 'header' | 'path' | 'cookie'; description?: string; required?: boolean; deprecated?: boolean; allowEmptyValue?: boolean; style?: string; explode?: boolean; allowReserved?: boolean; schema?: OpenAPIV3Schema | OpenAPIV3Reference; example?: any; examples?: Record; content?: Record; } export interface OpenAPIV3RequestBody { description?: string; content: Record; required?: boolean; } export interface OpenAPIV3MediaType { schema?: OpenAPIV3Schema | OpenAPIV3Reference; example?: any; examples?: Record; encoding?: Record; } export interface OpenAPIV3Encoding { contentType?: string; headers?: Record; style?: string; explode?: boolean; allowReserved?: boolean; } export interface OpenAPIV3Responses { default?: OpenAPIV3Response | OpenAPIV3Reference; [statusCode: string]: OpenAPIV3Response | OpenAPIV3Reference | undefined; } export interface OpenAPIV3Response { description: string; headers?: Record; content?: Record; links?: Record; } export interface OpenAPIV3Header { description?: string; required?: boolean; deprecated?: boolean; allowEmptyValue?: boolean; style?: string; explode?: boolean; allowReserved?: boolean; schema?: OpenAPIV3Schema | OpenAPIV3Reference; example?: any; examples?: Record; content?: Record; } export interface OpenAPIV3Callback { [expression: string]: OpenAPIV3PathItem; } export interface OpenAPIV3Example { summary?: string; description?: string; value?: any; externalValue?: string; } export interface OpenAPIV3Link { operationRef?: string; operationId?: string; parameters?: Record; requestBody?: any; description?: string; server?: OpenAPIV3Server; } export interface OpenAPIV3Schema { title?: string; multipleOf?: number; maximum?: number; exclusiveMaximum?: boolean; minimum?: number; exclusiveMinimum?: boolean; maxLength?: number; minLength?: number; pattern?: string; maxItems?: number; minItems?: number; uniqueItems?: boolean; maxProperties?: number; minProperties?: number; required?: string[]; enum?: any[]; type?: 'string' | 'number' | 'integer' | 'boolean' | 'array' | 'object' | ('string' | 'number' | 'integer' | 'boolean' | 'array' | 'object')[]; not?: OpenAPIV3Schema | OpenAPIV3Reference; allOf?: (OpenAPIV3Schema | OpenAPIV3Reference)[]; oneOf?: (OpenAPIV3Schema | OpenAPIV3Reference)[]; anyOf?: (OpenAPIV3Schema | OpenAPIV3Reference)[]; items?: OpenAPIV3Schema | OpenAPIV3Reference; properties?: Record; additionalProperties?: boolean | OpenAPIV3Schema | OpenAPIV3Reference; description?: string; format?: string; default?: any; nullable?: boolean; discriminator?: OpenAPIV3Discriminator; readOnly?: boolean; writeOnly?: boolean; xml?: OpenAPIV3XML; externalDocs?: OpenAPIV3ExternalDocumentation; example?: any; deprecated?: boolean; } export interface OpenAPIV3Discriminator { propertyName: string; mapping?: Record; } export interface OpenAPIV3XML { name?: string; namespace?: string; prefix?: string; attribute?: boolean; wrapped?: boolean; } export interface OpenAPIV3SecurityRequirement { [name: string]: string[]; } export interface OpenAPIV3Components { schemas?: Record; responses?: Record; parameters?: Record; examples?: Record; requestBodies?: Record; headers?: Record; securitySchemes?: Record; links?: Record; callbacks?: Record; } export interface OpenAPIV3SecurityScheme { type: 'apiKey' | 'http' | 'oauth2' | 'openIdConnect'; description?: string; name?: string; in?: 'query' | 'header' | 'cookie'; scheme?: string; bearerFormat?: string; flows?: OpenAPIV3OAuthFlows; openIdConnectUrl?: string; } export interface OpenAPIV3OAuthFlows { implicit?: OpenAPIV3OAuthFlow; password?: OpenAPIV3OAuthFlow; clientCredentials?: OpenAPIV3OAuthFlow; authorizationCode?: OpenAPIV3OAuthFlow; } export interface OpenAPIV3OAuthFlow { authorizationUrl?: string; tokenUrl?: string; refreshUrl?: string; scopes: Record; } export interface OpenAPIV3Tag { name: string; description?: string; externalDocs?: OpenAPIV3ExternalDocumentation; } export interface OpenAPIV3ExternalDocumentation { description?: string; url: string; } export interface OpenAPIV3Reference { $ref: string; } export interface ParsedImportFile { item?: any[]; [key: string]: any; } export interface ImportFileInput { buffer: Buffer; originalname: string; }