Files
n8n-nodes-gwezz-changdunovel/node_modules/n8n-workflow/dist/cjs/telemetry-helpers.d.ts
2025-10-26 23:10:15 +08:00

45 lines
2.0 KiB
TypeScript

import type { INode, INodesGraphResult, IWorkflowBase, INodeTypes, IRunData, IRun } from './interfaces';
export declare function getNodeTypeForName(workflow: IWorkflowBase, nodeName: string): INode | undefined;
export declare function isNumber(value: unknown): value is number;
export declare function getDomainBase(raw: string, urlParts?: RegExp): string;
export declare const ANONYMIZATION_CHARACTER = "*";
/**
* Return pathname plus query string from URL, anonymizing IDs in route and query params.
*/
export declare function getDomainPath(raw: string, urlParts?: RegExp): string;
export declare function generateNodesGraph(workflow: Partial<IWorkflowBase>, nodeTypes: INodeTypes, options?: {
sourceInstanceId?: string;
nodeIdMap?: {
[curr: string]: string;
};
isCloudDeployment?: boolean;
runData?: IRunData;
}): INodesGraphResult;
export declare function extractLastExecutedNodeCredentialData(runData: IRun): null | {
credentialId: string;
credentialType: string;
};
export declare const userInInstanceRanOutOfFreeAiCredits: (runData: IRun) => boolean;
export type FromAICount = {
aiNodeCount: number;
aiToolCount: number;
fromAIOverrideCount: number;
fromAIExpressionCount: number;
};
export declare function resolveAIMetrics(nodes: INode[], nodeTypes: INodeTypes): FromAICount | {};
export type VectorStoreMetrics = {
insertedIntoVectorStore: boolean;
queriedDataFromVectorStore: boolean;
};
export declare function resolveVectorStoreMetrics(nodes: INode[], nodeTypes: INodeTypes, run: IRun): VectorStoreMetrics | {};
type AgentNodeStructuredOutputErrorInfo = {
output_parser_fail_reason?: string;
model_name?: string;
num_tools?: number;
};
/**
* Extract additional debug information if the last executed node was an agent node
*/
export declare function extractLastExecutedNodeStructuredOutputErrorInfo(workflow: IWorkflowBase, nodeTypes: INodeTypes, runData: IRun): AgentNodeStructuredOutputErrorInfo;
export {};
//# sourceMappingURL=telemetry-helpers.d.ts.map