@n8n/api-types 1.22.2 → 1.23.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/dist/agents/agent-json-config.schema.d.ts +219 -4
  2. package/dist/agents/agent-json-config.schema.js +19 -0
  3. package/dist/agents/agent-json-config.schema.js.map +1 -1
  4. package/dist/agents/dto.d.ts +14 -0
  5. package/dist/agents/dto.js +11 -1
  6. package/dist/agents/dto.js.map +1 -1
  7. package/dist/agents/types.d.ts +46 -7
  8. package/dist/agents/types.js +1 -1
  9. package/dist/agents/types.js.map +1 -1
  10. package/dist/build.tsbuildinfo +1 -1
  11. package/dist/dto/ai/ai-build-request.dto.d.ts +3 -3
  12. package/dist/dto/api-keys/update-api-key-request.dto.js +9 -2
  13. package/dist/dto/api-keys/update-api-key-request.dto.js.map +1 -1
  14. package/dist/dto/credential-resolver/list-credential-resolvers-query.dto.d.ts +8 -0
  15. package/dist/dto/credential-resolver/list-credential-resolvers-query.dto.js +11 -0
  16. package/dist/dto/credential-resolver/list-credential-resolvers-query.dto.js.map +1 -0
  17. package/dist/dto/credentials/credential-connection-status.d.ts +3 -0
  18. package/dist/dto/credentials/credential-connection-status.js +3 -0
  19. package/dist/dto/credentials/credential-connection-status.js.map +1 -0
  20. package/dist/dto/data-table/create-data-table.dto.d.ts +1 -1
  21. package/dist/dto/data-table/public-api-create-data-table.dto.d.ts +1 -1
  22. package/dist/dto/data-table/update-data-table.dto.d.ts +1 -1
  23. package/dist/dto/index.d.ts +3 -1
  24. package/dist/dto/index.js +7 -7
  25. package/dist/dto/index.js.map +1 -1
  26. package/dist/dto/instance-ai/instance-ai-confirm-request.dto.d.ts +6 -0
  27. package/dist/dto/instance-ai/instance-ai-confirm-request.dto.js +4 -0
  28. package/dist/dto/instance-ai/instance-ai-confirm-request.dto.js.map +1 -1
  29. package/dist/dto/packages/export-workflows-request.dto.d.ts +9 -0
  30. package/dist/dto/packages/export-workflows-request.dto.js +11 -0
  31. package/dist/dto/packages/export-workflows-request.dto.js.map +1 -0
  32. package/dist/dto/security-settings/security-settings.dto.d.ts +20 -0
  33. package/dist/dto/security-settings/security-settings.dto.js +6 -0
  34. package/dist/dto/security-settings/security-settings.dto.js.map +1 -1
  35. package/dist/dto/source-control/push-work-folder-request.dto.d.ts +3 -3
  36. package/dist/dto/user/user-update-request.dto.js +9 -2
  37. package/dist/dto/user/user-update-request.dto.js.map +1 -1
  38. package/dist/dto/workflows/base-workflow.dto.d.ts +28 -2
  39. package/dist/dto/workflows/base-workflow.dto.js +9 -4
  40. package/dist/dto/workflows/base-workflow.dto.js.map +1 -1
  41. package/dist/dto/workflows/create-workflow.dto.d.ts +19 -1
  42. package/dist/dto/workflows/get-resource-dependencies.dto.d.ts +1 -1
  43. package/dist/dto/workflows/get-resource-dependency-counts.dto.d.ts +1 -1
  44. package/dist/dto/workflows/update-workflow.dto.d.ts +19 -1
  45. package/dist/index.d.ts +4 -3
  46. package/dist/index.js +10 -3
  47. package/dist/index.js.map +1 -1
  48. package/dist/redaction-enforcement-floor.d.ts +3 -0
  49. package/dist/redaction-enforcement-floor.js +6 -0
  50. package/dist/redaction-enforcement-floor.js.map +1 -0
  51. package/dist/schemas/data-table.schema.d.ts +2 -2
  52. package/dist/schemas/data-table.schema.js +1 -7
  53. package/dist/schemas/data-table.schema.js.map +1 -1
  54. package/dist/schemas/eval-collections.schema.d.ts +1 -1
  55. package/dist/schemas/eval-collections.schema.js +1 -1
  56. package/dist/schemas/eval-collections.schema.js.map +1 -1
  57. package/dist/schemas/eval-insights.schema.d.ts +286 -0
  58. package/dist/schemas/eval-insights.schema.js +52 -0
  59. package/dist/schemas/eval-insights.schema.js.map +1 -0
  60. package/dist/schemas/instance-ai.schema.d.ts +32 -28
  61. package/dist/schemas/instance-ai.schema.js +11 -16
  62. package/dist/schemas/instance-ai.schema.js.map +1 -1
  63. package/dist/schemas/source-controlled-file.schema.d.ts +2 -2
  64. package/package.json +7 -7
  65. package/dist/dto/redaction-enforcement/redaction-enforcement.dto.d.ts +0 -22
  66. package/dist/dto/redaction-enforcement/redaction-enforcement.dto.js +0 -19
  67. package/dist/dto/redaction-enforcement/redaction-enforcement.dto.js.map +0 -1
  68. package/dist/utils/xss-check.d.ts +0 -1
  69. package/dist/utils/xss-check.js +0 -10
  70. package/dist/utils/xss-check.js.map +0 -1
@@ -11,6 +11,11 @@ declare const CreateWorkflowDto_base: import("../../zod-class").ZodClass<{
11
11
  staticData?: import("n8n-workflow").IDataObject | null | undefined;
12
12
  pinData?: import("n8n-workflow").IPinData | null | undefined;
13
13
  meta?: Record<string, unknown> | null | undefined;
14
+ nodeGroups?: {
15
+ id: string;
16
+ name: string;
17
+ nodeIds: string[];
18
+ }[] | undefined;
14
19
  uiContext?: string | undefined;
15
20
  tags?: string[] | undefined;
16
21
  parentFolderId?: string | undefined;
@@ -25,7 +30,7 @@ declare const CreateWorkflowDto_base: import("../../zod-class").ZodClass<{
25
30
  }, {
26
31
  id: z.ZodOptional<z.ZodString>;
27
32
  projectId: z.ZodOptional<z.ZodString>;
28
- name: z.ZodEffects<z.ZodString, string, string>;
33
+ name: z.ZodString;
29
34
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
35
  nodes: z.ZodType<import("n8n-workflow").INode[], z.ZodTypeDef, import("n8n-workflow").INode[]>;
31
36
  connections: z.ZodType<import("n8n-workflow").IConnections, z.ZodTypeDef, import("n8n-workflow").IConnections>;
@@ -33,6 +38,19 @@ declare const CreateWorkflowDto_base: import("../../zod-class").ZodClass<{
33
38
  staticData: z.ZodOptional<z.ZodEffects<z.ZodType<import("n8n-workflow").IDataObject | null, z.ZodTypeDef, import("n8n-workflow").IDataObject | null>, import("n8n-workflow").IDataObject | null, unknown>>;
34
39
  meta: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
35
40
  pinData: z.ZodOptional<z.ZodType<import("n8n-workflow").IPinData | null, z.ZodTypeDef, import("n8n-workflow").IPinData | null>>;
41
+ nodeGroups: z.ZodOptional<z.ZodArray<z.ZodObject<{
42
+ id: z.ZodString;
43
+ name: z.ZodString;
44
+ nodeIds: z.ZodArray<z.ZodString, "many">;
45
+ }, "strip", z.ZodTypeAny, {
46
+ id: string;
47
+ name: string;
48
+ nodeIds: string[];
49
+ }, {
50
+ id: string;
51
+ name: string;
52
+ nodeIds: string[];
53
+ }>, "many">>;
36
54
  hash: z.ZodOptional<z.ZodString>;
37
55
  parentFolderId: z.ZodOptional<z.ZodString>;
38
56
  parentFolder: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  declare const GetResourceDependenciesDto_base: import("../../zod-class").ZodClass<{
3
3
  resourceIds: string[];
4
- resourceType: "workflow" | "credential" | "dataTable";
4
+ resourceType: "credential" | "workflow" | "dataTable";
5
5
  }, {
6
6
  resourceIds: z.ZodArray<z.ZodString, "many">;
7
7
  resourceType: z.ZodEnum<["workflow", "credential", "dataTable"]>;
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  declare const GetResourceDependencyCountsDto_base: import("../../zod-class").ZodClass<{
3
3
  resourceIds: string[];
4
- resourceType: "workflow" | "credential" | "dataTable";
4
+ resourceType: "credential" | "workflow" | "dataTable";
5
5
  }, {
6
6
  resourceIds: z.ZodArray<z.ZodString, "many">;
7
7
  resourceType: z.ZodEnum<["workflow", "credential", "dataTable"]>;
@@ -8,6 +8,11 @@ declare const UpdateWorkflowDto_base: import("../../zod-class").ZodClass<{
8
8
  staticData?: import("n8n-workflow").IDataObject | null | undefined;
9
9
  pinData?: import("n8n-workflow").IPinData | null | undefined;
10
10
  meta?: Record<string, unknown> | null | undefined;
11
+ nodeGroups?: {
12
+ id: string;
13
+ name: string;
14
+ nodeIds: string[];
15
+ }[] | undefined;
11
16
  uiContext?: string | undefined;
12
17
  tags?: string[] | undefined;
13
18
  parentFolderId?: string | undefined;
@@ -20,7 +25,7 @@ declare const UpdateWorkflowDto_base: import("../../zod-class").ZodClass<{
20
25
  expectedChecksum?: string | undefined;
21
26
  autosaved?: boolean | undefined;
22
27
  }, {
23
- readonly name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
28
+ readonly name: z.ZodOptional<z.ZodString>;
24
29
  readonly description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
25
30
  readonly nodes: z.ZodOptional<z.ZodType<import("n8n-workflow").INode[], z.ZodTypeDef, import("n8n-workflow").INode[]>>;
26
31
  readonly connections: z.ZodOptional<z.ZodType<import("n8n-workflow").IConnections, z.ZodTypeDef, import("n8n-workflow").IConnections>>;
@@ -28,6 +33,19 @@ declare const UpdateWorkflowDto_base: import("../../zod-class").ZodClass<{
28
33
  readonly staticData: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodType<import("n8n-workflow").IDataObject | null, z.ZodTypeDef, import("n8n-workflow").IDataObject | null>, import("n8n-workflow").IDataObject | null, unknown>>>;
29
34
  readonly meta: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
30
35
  readonly pinData: z.ZodOptional<z.ZodOptional<z.ZodType<import("n8n-workflow").IPinData | null, z.ZodTypeDef, import("n8n-workflow").IPinData | null>>>;
36
+ readonly nodeGroups: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
37
+ id: z.ZodString;
38
+ name: z.ZodString;
39
+ nodeIds: z.ZodArray<z.ZodString, "many">;
40
+ }, "strip", z.ZodTypeAny, {
41
+ id: string;
42
+ name: string;
43
+ nodeIds: string[];
44
+ }, {
45
+ id: string;
46
+ name: string;
47
+ nodeIds: string[];
48
+ }>, "many">>>;
31
49
  readonly hash: z.ZodOptional<z.ZodOptional<z.ZodString>>;
32
50
  readonly parentFolderId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
33
51
  readonly parentFolder: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
package/dist/index.d.ts CHANGED
@@ -11,6 +11,7 @@ export type * from './quick-connect';
11
11
  export * from './agents/index';
12
12
  export * from './instance-registry-types';
13
13
  export * from './redaction-enforcement';
14
+ export * from './redaction-enforcement-floor';
14
15
  export { chatHubConversationModelSchema, type ChatModelDto, type ChatModelMetadataDto, type ChatHubOpenAIModel, type ChatHubAnthropicModel, type ChatHubGoogleModel, type ChatHubBaseLLMModel, type ChatHubN8nModel, type ChatHubCustomAgentModel, type ChatHubConversationModel, type ChatHubModuleSettings, chatHubProviderSchema, chatHubLLMProviderSchema, chatHubSessionTypeSchema, type ChatHubProvider, type ChatHubLLMProvider, type ChatHubSessionType, type ChatHubMessageType, type ChatHubMessageStatus, PROVIDER_CREDENTIAL_TYPE_MAP, chatModelsRequestSchema, emptyChatModelsResponse, type ChatModelsRequest, type ChatModelsResponse, chatAttachmentSchema, type ChatAttachment, ChatHubSendMessageRequest, ChatHubManualSendMessageRequest, ChatHubRegenerateMessageRequest, ChatHubManualRegenerateMessageRequest, ChatHubEditMessageRequest, ChatHubManualEditMessageRequest, ChatHubUpdateConversationRequest, ChatHubConversationsRequest, type ChatMessageId, type ChatSessionId, type ChatHubMessageDto, type ChatHubSessionDto, type ChatHubConversationDto, type ChatHubConversationResponse, type ChatHubConversationsResponse, type ChatHubAgentDto, type ChatHubAgentKnowledgeItem, type ChatHubAgentKnowledgeItemStatus, ChatHubCreateAgentRequest, ChatHubUpdateAgentRequest, type AgentIconOrEmoji, agentIconOrEmojiSchema, type SuggestedPrompt, suggestedPromptsSchema, type MessageChunk, UpdateChatSettingsRequest, ChatHubSemanticSearchSettings, type ChatProviderSettingsDto, type ChatSendMessageResponse, type ChatReconnectResponse, ChatReconnectRequest, type ChatArtifact, type ChatArtifactCreateCommand, type ChatArtifactEditCommand, type ChatMessageContentChunk, type ChatHubMessageButton, chatHubMessageWithButtonsSchema, type ChatHubMessageWithButtons, type ChatHubToolDto, ChatHubCreateToolRequest, ChatHubUpdateToolRequest, ALWAYS_BLOCKED_CHAT_HUB_TOOL_TYPES, CHAT_USER_BLOCKED_CHAT_HUB_TOOL_TYPES, chatHubVectorStoreProviderSchema, type ChatHubVectorStoreProvider, VECTOR_STORE_PROVIDER_CREDENTIAL_TYPE_MAP, } from './chat-hub';
15
16
  export { isValidTimeZone, StrictTimeZoneSchema, TimeZoneSchema } from './schemas/timezone.schema';
16
17
  export type { ChatHubPushMessage, ChatHubStreamEvent, ChatHubStreamBegin, ChatHubStreamChunk, ChatHubStreamEnd, ChatHubStreamError, ChatHubStreamMetadata, ChatHubExecutionEvent, ChatHubExecutionBegin, ChatHubExecutionEnd, ChatHubHumanMessageCreated, ChatHubMessageEdited, ChatHubAttachmentInfo, } from './push/chat-hub';
@@ -43,13 +44,13 @@ export type { SecretsProviderType, SecretsProviderState, SecretsProviderConnecti
43
44
  export { SECRETS_PROVIDER_KEY_PATTERN, SECRETS_PROVIDER_KEY_REGEX, testSecretProviderConnectionResponseSchema, reloadSecretProviderConnectionResponseSchema, } from './schemas/secrets-provider.schema';
44
45
  export { communityPackageResponseSchema, type CommunityPackageResponse, } from './schemas/community-package.schema';
45
46
  export { publicApiCredentialResponseSchema, type PublicApiCredentialResponse, } from './schemas/credential-response.schema';
46
- export { instanceAiEventTypeSchema, instanceAiRunStatusSchema, instanceAiConfirmationSeveritySchema, instanceAiAgentStatusSchema, instanceAiAgentKindSchema, instanceAiEventSchema, taskItemSchema, taskListSchema, plannedTaskArgSchema, runStartPayloadSchema, runFinishPayloadSchema, agentSpawnedPayloadSchema, agentCompletedPayloadSchema, textDeltaPayloadSchema, reasoningDeltaPayloadSchema, toolCallPayloadSchema, toolResultPayloadSchema, toolErrorPayloadSchema, confirmationRequestPayloadSchema, confirmationInputTypeSchema, credentialRequestSchema, workflowSetupNodeSchema, errorPayloadSchema, filesystemRequestPayloadSchema, mcpToolSchema, mcpToolCallRequestSchema, mcpToolCallResultSchema, getRenderHint, isDisplayableConfirmationRequest, isSafeObjectKey, DEFAULT_INSTANCE_AI_PERMISSIONS, UNLIMITED_CREDITS, domainAccessActionSchema, domainAccessMetaSchema, webSearchMetaSchema, credentialFlowSchema, gatewayConfirmationRequiredWirePayloadSchema, gatewayConfirmationRequiredPayloadSchema, instanceGatewayResourceDecisionSchema, GATEWAY_CONFIRMATION_REQUIRED_PREFIX, InstanceAiSendMessageRequest, InstanceAiEvalExecutionRequest, InstanceAiEvalSubAgentRequest, instanceAiGatewayKeySchema, InstanceAiGatewayEventsQuery, InstanceAiEventsQuery, InstanceAiCorrectTaskRequest, InstanceAiEnsureThreadRequest, InstanceAiThreadMessagesQuery, InstanceAiAdminSettingsUpdateRequest, InstanceAiUserPreferencesUpdateRequest, InstanceAiGatewayCapabilitiesDto, InstanceAiGatewayCreateCredentialDto, InstanceAiFilesystemResponseDto, applyBranchReadOnlyOverrides, } from './schemas/instance-ai.schema';
47
- export type { RunId, AgentId, ThreadId, ToolCallId, InstanceAiEventType, InstanceAiRunStatus, InstanceAiConfirmation, InstanceAiConfirmationInputType, InstanceAiConfirmationRequestPayload, InstanceAiConfirmationSeverity, InstanceAiCredentialRequest, InstanceAiAgentStatus, InstanceAiAgentKind, TaskItem, TaskList, InstanceAiRunStartEvent, InstanceAiRunFinishEvent, InstanceAiAgentSpawnedEvent, InstanceAiAgentCompletedEvent, InstanceAiTextDeltaEvent, InstanceAiReasoningDeltaEvent, InstanceAiToolCallEvent, InstanceAiToolResultEvent, InstanceAiToolErrorEvent, InstanceAiConfirmationRequestEvent, InstanceAiErrorEvent, InstanceAiFilesystemRequestEvent, InstanceAiFilesystemResponse, InstanceAiGatewayCapabilities, McpTool, McpToolAnnotations, McpToolCallRequest, McpToolCallResult, InstanceAiEvent, InstanceAiAttachment, InstanceAiSendMessageResponse, InstanceAiToolCallState, InstanceAiAgentNode, InstanceAiTimelineEntry, InstanceAiMessage, InstanceAiThreadSummary, InstanceAiSSEConnectionState, InstanceAiThreadInfo, InstanceAiThreadListResponse, InstanceAiEnsureThreadResponse, InstanceAiStoredMessage, InstanceAiThreadMessagesResponse, InstanceAiRichMessagesResponse, InstanceAiThreadStatusResponse, InstanceAiAdminSettingsResponse, InstanceAiUserPreferencesResponse, InstanceAiModelCredential, InstanceAiPermissionMode, InstanceAiPermissions, InstanceAiTargetResource, DomainAccessAction, DomainAccessMeta, WebSearchMeta, InstanceAiCredentialFlow, GatewayConfirmationRequiredWirePayload, GatewayConfirmationRequiredPayload, InstanceGatewayResourceDecision, ToolCategory, InstanceAiWorkflowSetupNode, PlannedTaskArg, InstanceAiEvalNodeExecutionMode, InstanceAiEvalInterceptedRequest, InstanceAiEvalNodeResult, InstanceAiEvalMockHints, InstanceAiEvalMockedCredential, InstanceAiEvalExecutionResult, InstanceAiEvalToolCall, InstanceAiEvalToolResult, InstanceAiEvalSubAgentResponse, } from './schemas/instance-ai.schema';
47
+ export { instanceAiEventTypeSchema, instanceAiRunStatusSchema, instanceAiConfirmationSeveritySchema, instanceAiAgentStatusSchema, instanceAiAgentKindSchema, instanceAiEventSchema, taskItemSchema, taskListSchema, plannedTaskArgSchema, runStartPayloadSchema, runFinishPayloadSchema, agentSpawnedPayloadSchema, agentCompletedPayloadSchema, textDeltaPayloadSchema, reasoningDeltaPayloadSchema, toolCallPayloadSchema, toolResultPayloadSchema, toolErrorPayloadSchema, confirmationRequestPayloadSchema, confirmationInputTypeSchema, credentialRequestSchema, workflowSetupNodeSchema, errorPayloadSchema, filesystemRequestPayloadSchema, mcpToolSchema, mcpToolCallRequestSchema, mcpToolCallResultSchema, getRenderHint, isDisplayableConfirmationRequest, isSafeObjectKey, DEFAULT_INSTANCE_AI_PERMISSIONS, UNLIMITED_CREDITS, EVAL_VENDOR_SDK_INTERCEPTION_FLAG, domainAccessActionSchema, domainAccessMetaSchema, webSearchMetaSchema, credentialFlowSchema, gatewayConfirmationRequiredWirePayloadSchema, gatewayConfirmationRequiredPayloadSchema, instanceGatewayResourceDecisionSchema, GATEWAY_CONFIRMATION_REQUIRED_PREFIX, InstanceAiSendMessageRequest, InstanceAiEvalExecutionRequest, InstanceAiEvalSubAgentRequest, instanceAiGatewayKeySchema, InstanceAiGatewayEventsQuery, InstanceAiEventsQuery, InstanceAiCorrectTaskRequest, InstanceAiEnsureThreadRequest, InstanceAiThreadMessagesQuery, InstanceAiAdminSettingsUpdateRequest, InstanceAiUserPreferencesUpdateRequest, InstanceAiGatewayCapabilitiesDto, InstanceAiGatewayCreateCredentialDto, InstanceAiFilesystemResponseDto, applyBranchReadOnlyOverrides, } from './schemas/instance-ai.schema';
48
+ export type { RunId, AgentId, ThreadId, ToolCallId, InstanceAiEventType, InstanceAiRunStatus, InstanceAiConfirmation, InstanceAiConfirmationInputType, InstanceAiConfirmationRequestPayload, InstanceAiConfirmationSeverity, InstanceAiCredentialRequest, InstanceAiAgentStatus, InstanceAiAgentKind, TaskItem, TaskList, InstanceAiRunStartEvent, InstanceAiRunFinishEvent, InstanceAiAgentSpawnedEvent, InstanceAiAgentCompletedEvent, InstanceAiTextDeltaEvent, InstanceAiReasoningDeltaEvent, InstanceAiToolCallEvent, InstanceAiToolResultEvent, InstanceAiToolErrorEvent, InstanceAiConfirmationRequestEvent, InstanceAiErrorEvent, InstanceAiFilesystemRequestEvent, InstanceAiFilesystemResponse, InstanceAiGatewayCapabilities, McpTool, McpToolAnnotations, McpToolCallRequest, McpToolCallResult, InstanceAiEvent, InstanceAiAttachment, InstanceAiSendMessageResponse, InstanceAiToolCallState, InstanceAiAgentNode, InstanceAiTimelineEntry, InstanceAiMessage, InstanceAiThreadSummary, InstanceAiSSEConnectionState, InstanceAiThreadInfo, InstanceAiThreadListResponse, InstanceAiEnsureThreadResponse, InstanceAiStoredMessage, InstanceAiThreadMessagesResponse, InstanceAiRichMessagesResponse, InstanceAiThreadStatusResponse, InstanceAiAdminSettingsResponse, InstanceAiUserPreferencesResponse, InstanceAiModelCredential, InstanceAiPermissionMode, InstanceAiPermissions, InstanceAiTargetResource, DomainAccessAction, DomainAccessMeta, WebSearchMeta, InstanceAiCredentialFlow, GatewayConfirmationRequiredWirePayload, GatewayConfirmationRequiredPayload, InstanceGatewayResourceDecision, ToolCategory, InstanceAiWorkflowSetupNode, PlannedTaskArg, InstanceAiEvalNodeExecutionMode, InstanceAiEvalInterceptedRequest, InstanceAiEvalNodeResult, InstanceAiEvalMockHints, InstanceAiEvalMockedCredential, InstanceAiEvalRewrittenCredential, InstanceAiEvalExecutionResult, InstanceAiEvalToolCall, InstanceAiEvalToolResult, InstanceAiEvalSubAgentResponse, } from './schemas/instance-ai.schema';
48
49
  export { createInitialState, reduceEvent, findAgent, toAgentTree, } from './schemas/agent-run-reducer';
49
50
  export type { AgentRunState, AgentNode } from './schemas/agent-run-reducer';
50
51
  export { startTestRunPayloadSchema, StartTestRunRequestDto, type StartTestRunPayload, } from './schemas/evaluations.schema';
51
52
  export { EVAL_COLLECTIONS_FLAG, evalCollectionVersionEntrySchema, createEvaluationCollectionSchema, CreateEvaluationCollectionDto, updateEvaluationCollectionSchema, UpdateEvaluationCollectionDto, addRunToCollectionSchema, AddRunToCollectionDto, type EvalCollectionVersionEntry, type CreateEvaluationCollectionPayload, type UpdateEvaluationCollectionPayload, type AddRunToCollectionPayload, type EvalCollectionRunStatus, type EvaluationCollectionRecord, type EvaluationCollectionRunSummary, type EvaluationCollectionDetail, type EvalVersionEntry, type EvalVersionsResponse, } from './schemas/eval-collections.schema';
53
+ export { aiInsightsStatusSchema, aiInsightsPayloadSchema, aiInsightsResponseSchema, generateInsightsSchema, GenerateInsightsDto, type AiInsightsStatus, type AiInsightsWinner, type AiInsightsRegression, type AiInsightsSuggestedNext, type AiInsightsPayload, type AiInsightsResponse, type GenerateInsightsPayload, } from './schemas/eval-insights.schema';
52
54
  export { ALLOWED_DOMAINS, isAllowedDomain } from './utils/allowed-domains';
53
- export { xssCheck } from './utils/xss-check';
54
55
  export type { PublishTimelineEvent } from './schemas/workflow-publish-timeline.schema';
55
56
  export { X_N8N_FEATURE_HEADER, X_N8N_VERSION_HEADER, N8N_PROXY_FEATURES, buildProxyHeaders, type N8nProxyFeature, type ProxyHeaderInput, } from './constants/proxy-feature';
package/dist/index.js CHANGED
@@ -16,13 +16,15 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  exports.SOURCE_CONTROL_FILE_STATUS = exports.SOURCE_CONTROL_FILE_LOCATION = exports.isSourceControlledFileStatus = exports.WORKFLOW_VERSION_DESCRIPTION_MAX_LENGTH = exports.WORKFLOW_VERSION_NAME_MAX_LENGTH = exports.credentialResolverAffectedWorkflowsSchema = exports.credentialResolverTypesSchema = exports.credentialResolverTypeSchema = exports.credentialResolversSchema = exports.credentialResolverSchema = exports.createPasswordSchema = exports.passwordSchema = exports.ViewableMimeTypes = exports.FAVORITE_RESOURCE_TYPES = exports.heartbeatMessageSchema = exports.createHeartbeatMessage = exports.TimeZoneSchema = exports.StrictTimeZoneSchema = exports.isValidTimeZone = exports.VECTOR_STORE_PROVIDER_CREDENTIAL_TYPE_MAP = exports.chatHubVectorStoreProviderSchema = exports.CHAT_USER_BLOCKED_CHAT_HUB_TOOL_TYPES = exports.ALWAYS_BLOCKED_CHAT_HUB_TOOL_TYPES = exports.ChatHubUpdateToolRequest = exports.ChatHubCreateToolRequest = exports.chatHubMessageWithButtonsSchema = exports.ChatReconnectRequest = exports.ChatHubSemanticSearchSettings = exports.UpdateChatSettingsRequest = exports.suggestedPromptsSchema = exports.agentIconOrEmojiSchema = exports.ChatHubUpdateAgentRequest = exports.ChatHubCreateAgentRequest = exports.ChatHubConversationsRequest = exports.ChatHubUpdateConversationRequest = exports.ChatHubManualEditMessageRequest = exports.ChatHubEditMessageRequest = exports.ChatHubManualRegenerateMessageRequest = exports.ChatHubRegenerateMessageRequest = exports.ChatHubManualSendMessageRequest = exports.ChatHubSendMessageRequest = exports.chatAttachmentSchema = exports.emptyChatModelsResponse = exports.chatModelsRequestSchema = exports.PROVIDER_CREDENTIAL_TYPE_MAP = exports.chatHubSessionTypeSchema = exports.chatHubLLMProviderSchema = exports.chatHubProviderSchema = exports.chatHubConversationModelSchema = exports.Z = void 0;
18
18
  exports.getRenderHint = exports.mcpToolCallResultSchema = exports.mcpToolCallRequestSchema = exports.mcpToolSchema = exports.filesystemRequestPayloadSchema = exports.errorPayloadSchema = exports.workflowSetupNodeSchema = exports.credentialRequestSchema = exports.confirmationInputTypeSchema = exports.confirmationRequestPayloadSchema = exports.toolErrorPayloadSchema = exports.toolResultPayloadSchema = exports.toolCallPayloadSchema = exports.reasoningDeltaPayloadSchema = exports.textDeltaPayloadSchema = exports.agentCompletedPayloadSchema = exports.agentSpawnedPayloadSchema = exports.runFinishPayloadSchema = exports.runStartPayloadSchema = exports.plannedTaskArgSchema = exports.taskListSchema = exports.taskItemSchema = exports.instanceAiEventSchema = exports.instanceAiAgentKindSchema = exports.instanceAiAgentStatusSchema = exports.instanceAiConfirmationSeveritySchema = exports.instanceAiRunStatusSchema = exports.instanceAiEventTypeSchema = exports.publicApiCredentialResponseSchema = exports.communityPackageResponseSchema = exports.reloadSecretProviderConnectionResponseSchema = exports.testSecretProviderConnectionResponseSchema = exports.SECRETS_PROVIDER_KEY_REGEX = exports.SECRETS_PROVIDER_KEY_PATTERN = exports.MIGRATION_REPORT_TARGET_VERSION = exports.WorkflowExecutionStatusSchema = exports.dataTableIdSchema = exports.dataTableColumnNameSchema = exports.dateTimeSchema = exports.DATA_TABLE_COLUMN_ERROR_MESSAGE = exports.DATA_TABLE_COLUMN_MAX_LENGTH = exports.DATA_TABLE_COLUMN_REGEX = exports.encryptionKeysListSchema = exports.encryptionKeySchema = exports.userDetailSchema = exports.userBaseSchema = exports.usersListSchema = exports.ROLE = exports.insightsSummarySchema = exports.SOURCE_CONTROL_FILE_TYPE = void 0;
19
- exports.buildProxyHeaders = exports.N8N_PROXY_FEATURES = exports.X_N8N_VERSION_HEADER = exports.X_N8N_FEATURE_HEADER = exports.xssCheck = exports.isAllowedDomain = exports.ALLOWED_DOMAINS = exports.AddRunToCollectionDto = exports.addRunToCollectionSchema = exports.UpdateEvaluationCollectionDto = exports.updateEvaluationCollectionSchema = exports.CreateEvaluationCollectionDto = exports.createEvaluationCollectionSchema = exports.evalCollectionVersionEntrySchema = exports.EVAL_COLLECTIONS_FLAG = exports.StartTestRunRequestDto = exports.startTestRunPayloadSchema = exports.toAgentTree = exports.findAgent = exports.reduceEvent = exports.createInitialState = exports.applyBranchReadOnlyOverrides = exports.InstanceAiFilesystemResponseDto = exports.InstanceAiGatewayCreateCredentialDto = exports.InstanceAiGatewayCapabilitiesDto = exports.InstanceAiUserPreferencesUpdateRequest = exports.InstanceAiAdminSettingsUpdateRequest = exports.InstanceAiThreadMessagesQuery = exports.InstanceAiEnsureThreadRequest = exports.InstanceAiCorrectTaskRequest = exports.InstanceAiEventsQuery = exports.InstanceAiGatewayEventsQuery = exports.instanceAiGatewayKeySchema = exports.InstanceAiEvalSubAgentRequest = exports.InstanceAiEvalExecutionRequest = exports.InstanceAiSendMessageRequest = exports.GATEWAY_CONFIRMATION_REQUIRED_PREFIX = exports.instanceGatewayResourceDecisionSchema = exports.gatewayConfirmationRequiredPayloadSchema = exports.gatewayConfirmationRequiredWirePayloadSchema = exports.credentialFlowSchema = exports.webSearchMetaSchema = exports.domainAccessMetaSchema = exports.domainAccessActionSchema = exports.UNLIMITED_CREDITS = exports.DEFAULT_INSTANCE_AI_PERMISSIONS = exports.isSafeObjectKey = exports.isDisplayableConfirmationRequest = void 0;
19
+ exports.X_N8N_FEATURE_HEADER = exports.isAllowedDomain = exports.ALLOWED_DOMAINS = exports.GenerateInsightsDto = exports.generateInsightsSchema = exports.aiInsightsResponseSchema = exports.aiInsightsPayloadSchema = exports.aiInsightsStatusSchema = exports.AddRunToCollectionDto = exports.addRunToCollectionSchema = exports.UpdateEvaluationCollectionDto = exports.updateEvaluationCollectionSchema = exports.CreateEvaluationCollectionDto = exports.createEvaluationCollectionSchema = exports.evalCollectionVersionEntrySchema = exports.EVAL_COLLECTIONS_FLAG = exports.StartTestRunRequestDto = exports.startTestRunPayloadSchema = exports.toAgentTree = exports.findAgent = exports.reduceEvent = exports.createInitialState = exports.applyBranchReadOnlyOverrides = exports.InstanceAiFilesystemResponseDto = exports.InstanceAiGatewayCreateCredentialDto = exports.InstanceAiGatewayCapabilitiesDto = exports.InstanceAiUserPreferencesUpdateRequest = exports.InstanceAiAdminSettingsUpdateRequest = exports.InstanceAiThreadMessagesQuery = exports.InstanceAiEnsureThreadRequest = exports.InstanceAiCorrectTaskRequest = exports.InstanceAiEventsQuery = exports.InstanceAiGatewayEventsQuery = exports.instanceAiGatewayKeySchema = exports.InstanceAiEvalSubAgentRequest = exports.InstanceAiEvalExecutionRequest = exports.InstanceAiSendMessageRequest = exports.GATEWAY_CONFIRMATION_REQUIRED_PREFIX = exports.instanceGatewayResourceDecisionSchema = exports.gatewayConfirmationRequiredPayloadSchema = exports.gatewayConfirmationRequiredWirePayloadSchema = exports.credentialFlowSchema = exports.webSearchMetaSchema = exports.domainAccessMetaSchema = exports.domainAccessActionSchema = exports.EVAL_VENDOR_SDK_INTERCEPTION_FLAG = exports.UNLIMITED_CREDITS = exports.DEFAULT_INSTANCE_AI_PERMISSIONS = exports.isSafeObjectKey = exports.isDisplayableConfirmationRequest = void 0;
20
+ exports.buildProxyHeaders = exports.N8N_PROXY_FEATURES = exports.X_N8N_VERSION_HEADER = void 0;
20
21
  var zod_class_1 = require("./zod-class");
21
22
  Object.defineProperty(exports, "Z", { enumerable: true, get: function () { return zod_class_1.Z; } });
22
23
  __exportStar(require("./dto"), exports);
23
24
  __exportStar(require("./agents/index"), exports);
24
25
  __exportStar(require("./instance-registry-types"), exports);
25
26
  __exportStar(require("./redaction-enforcement"), exports);
27
+ __exportStar(require("./redaction-enforcement-floor"), exports);
26
28
  var chat_hub_1 = require("./chat-hub");
27
29
  Object.defineProperty(exports, "chatHubConversationModelSchema", { enumerable: true, get: function () { return chat_hub_1.chatHubConversationModelSchema; } });
28
30
  Object.defineProperty(exports, "chatHubProviderSchema", { enumerable: true, get: function () { return chat_hub_1.chatHubProviderSchema; } });
@@ -145,6 +147,7 @@ Object.defineProperty(exports, "isDisplayableConfirmationRequest", { enumerable:
145
147
  Object.defineProperty(exports, "isSafeObjectKey", { enumerable: true, get: function () { return instance_ai_schema_1.isSafeObjectKey; } });
146
148
  Object.defineProperty(exports, "DEFAULT_INSTANCE_AI_PERMISSIONS", { enumerable: true, get: function () { return instance_ai_schema_1.DEFAULT_INSTANCE_AI_PERMISSIONS; } });
147
149
  Object.defineProperty(exports, "UNLIMITED_CREDITS", { enumerable: true, get: function () { return instance_ai_schema_1.UNLIMITED_CREDITS; } });
150
+ Object.defineProperty(exports, "EVAL_VENDOR_SDK_INTERCEPTION_FLAG", { enumerable: true, get: function () { return instance_ai_schema_1.EVAL_VENDOR_SDK_INTERCEPTION_FLAG; } });
148
151
  Object.defineProperty(exports, "domainAccessActionSchema", { enumerable: true, get: function () { return instance_ai_schema_1.domainAccessActionSchema; } });
149
152
  Object.defineProperty(exports, "domainAccessMetaSchema", { enumerable: true, get: function () { return instance_ai_schema_1.domainAccessMetaSchema; } });
150
153
  Object.defineProperty(exports, "webSearchMetaSchema", { enumerable: true, get: function () { return instance_ai_schema_1.webSearchMetaSchema; } });
@@ -185,11 +188,15 @@ Object.defineProperty(exports, "updateEvaluationCollectionSchema", { enumerable:
185
188
  Object.defineProperty(exports, "UpdateEvaluationCollectionDto", { enumerable: true, get: function () { return eval_collections_schema_1.UpdateEvaluationCollectionDto; } });
186
189
  Object.defineProperty(exports, "addRunToCollectionSchema", { enumerable: true, get: function () { return eval_collections_schema_1.addRunToCollectionSchema; } });
187
190
  Object.defineProperty(exports, "AddRunToCollectionDto", { enumerable: true, get: function () { return eval_collections_schema_1.AddRunToCollectionDto; } });
191
+ var eval_insights_schema_1 = require("./schemas/eval-insights.schema");
192
+ Object.defineProperty(exports, "aiInsightsStatusSchema", { enumerable: true, get: function () { return eval_insights_schema_1.aiInsightsStatusSchema; } });
193
+ Object.defineProperty(exports, "aiInsightsPayloadSchema", { enumerable: true, get: function () { return eval_insights_schema_1.aiInsightsPayloadSchema; } });
194
+ Object.defineProperty(exports, "aiInsightsResponseSchema", { enumerable: true, get: function () { return eval_insights_schema_1.aiInsightsResponseSchema; } });
195
+ Object.defineProperty(exports, "generateInsightsSchema", { enumerable: true, get: function () { return eval_insights_schema_1.generateInsightsSchema; } });
196
+ Object.defineProperty(exports, "GenerateInsightsDto", { enumerable: true, get: function () { return eval_insights_schema_1.GenerateInsightsDto; } });
188
197
  var allowed_domains_1 = require("./utils/allowed-domains");
189
198
  Object.defineProperty(exports, "ALLOWED_DOMAINS", { enumerable: true, get: function () { return allowed_domains_1.ALLOWED_DOMAINS; } });
190
199
  Object.defineProperty(exports, "isAllowedDomain", { enumerable: true, get: function () { return allowed_domains_1.isAllowedDomain; } });
191
- var xss_check_1 = require("./utils/xss-check");
192
- Object.defineProperty(exports, "xssCheck", { enumerable: true, get: function () { return xss_check_1.xssCheck; } });
193
200
  var proxy_feature_1 = require("./constants/proxy-feature");
194
201
  Object.defineProperty(exports, "X_N8N_FEATURE_HEADER", { enumerable: true, get: function () { return proxy_feature_1.X_N8N_FEATURE_HEADER; } });
195
202
  Object.defineProperty(exports, "X_N8N_VERSION_HEADER", { enumerable: true, get: function () { return proxy_feature_1.X_N8N_VERSION_HEADER; } });
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,yCAA+C;AAAtC,8FAAA,CAAC,OAAA;AAEV,wCAAsB;AAQtB,iDAA+B;AAC/B,4DAA0C;AAC1C,0DAAwC;AACxC,uCAyEoB;AAxEnB,0HAAA,8BAA8B,OAAA;AAW9B,iHAAA,qBAAqB,OAAA;AACrB,oHAAA,wBAAwB,OAAA;AACxB,oHAAA,wBAAwB,OAAA;AAMxB,wHAAA,4BAA4B,OAAA;AAC5B,mHAAA,uBAAuB,OAAA;AACvB,mHAAA,uBAAuB,OAAA;AAG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,OAAA;AAChC,wIAAA,6BAA6B,OAAA;AAC7B,2IAAA,gCAAgC,OAAA;AAChC,wIAAA,6BAA6B,OAAA;AAC7B,mIAAA,wBAAwB,OAAA;AACxB,gIAAA,qBAAqB,OAAA;AAatB,uEAawC;AAZvC,8HAAA,sBAAsB,OAAA;AACtB,+HAAA,uBAAuB,OAAA;AACvB,gIAAA,wBAAwB,OAAA;AACxB,8HAAA,sBAAsB,OAAA;AACtB,2HAAA,mBAAmB,OAAA;AAUpB,2DAA2E;AAAlE,kHAAA,eAAe,OAAA;AAAE,kHAAA,eAAe,OAAA;AAGzC,2DAOmC;AANlC,qHAAA,oBAAoB,OAAA;AACpB,qHAAA,oBAAoB,OAAA;AACpB,mHAAA,kBAAkB,OAAA;AAClB,kHAAA,iBAAiB,OAAA"}
@@ -0,0 +1,3 @@
1
+ import { z } from 'zod';
2
+ export declare const redactionFloorSchema: z.ZodEnum<["off", "production", "all"]>;
3
+ export type RedactionFloor = z.infer<typeof redactionFloorSchema>;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.redactionFloorSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.redactionFloorSchema = zod_1.z.enum(['off', 'production', 'all']);
6
+ //# sourceMappingURL=redaction-enforcement-floor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"redaction-enforcement-floor.js","sourceRoot":"","sources":["../src/redaction-enforcement-floor.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,oBAAoB,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,YAAY,EAAE,KAAK,CAAC,CAAC,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  import type { ListDataTableQueryDto } from '../dto';
3
3
  export declare const insertRowReturnType: z.ZodUnion<[z.ZodLiteral<"all">, z.ZodLiteral<"count">, z.ZodLiteral<"id">]>;
4
- export declare const dataTableNameSchema: z.ZodEffects<z.ZodString, string, string>;
4
+ export declare const dataTableNameSchema: z.ZodString;
5
5
  export declare const dataTableIdSchema: z.ZodString;
6
6
  export declare const DATA_TABLE_COLUMN_REGEX: RegExp;
7
7
  export declare const DATA_TABLE_COLUMN_MAX_LENGTH = 63;
@@ -41,7 +41,7 @@ export declare const dataTableColumnSchema: z.ZodObject<{
41
41
  }>;
42
42
  export declare const dataTableSchema: z.ZodObject<{
43
43
  id: z.ZodString;
44
- name: z.ZodEffects<z.ZodString, string, string>;
44
+ name: z.ZodString;
45
45
  columns: z.ZodArray<z.ZodObject<{
46
46
  name: z.ZodString;
47
47
  type: z.ZodEnum<["string", "number", "boolean", "date"]>;
@@ -2,14 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.dataTableColumnValueSchema = exports.dateTimeSchema = exports.dataTableSchema = exports.dataTableColumnSchema = exports.dataTableCreateColumnSchema = exports.dataTableColumnTypeSchema = exports.dataTableColumnNameSchema = exports.DATA_TABLE_COLUMN_ERROR_MESSAGE = exports.DATA_TABLE_COLUMN_MAX_LENGTH = exports.DATA_TABLE_COLUMN_REGEX = exports.dataTableIdSchema = exports.dataTableNameSchema = exports.insertRowReturnType = void 0;
4
4
  const zod_1 = require("zod");
5
- const xss_check_1 = require("../utils/xss-check");
6
5
  exports.insertRowReturnType = zod_1.z.union([zod_1.z.literal('all'), zod_1.z.literal('count'), zod_1.z.literal('id')]);
7
- exports.dataTableNameSchema = zod_1.z
8
- .string()
9
- .trim()
10
- .min(1)
11
- .max(128)
12
- .refine(xss_check_1.xssCheck, { message: 'Potentially malicious string' });
6
+ exports.dataTableNameSchema = zod_1.z.string().trim().min(1).max(128);
13
7
  exports.dataTableIdSchema = zod_1.z
14
8
  .string()
15
9
  .max(36)
@@ -1 +1 @@
1
- {"version":3,"file":"data-table.schema.js","sourceRoot":"","sources":["../../src/schemas/data-table.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAGxB,kDAA8C;AAEjC,QA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AAC,CAAC,CAAC;KAC7B,IAAI,CAAC,OAAC,CAAC,IAAI,EAAE,CAAC,CAAC;AAEJ,QAAA,0BAA0B,GAAG,OAAC,CAAC,KAAK,CAAC;IACjD,OAAC,CAAC,MAAM,EAAE;IACV,OAAC,CAAC,MAAM,EAAE;IACV,OAAC,CAAC,OAAO,EAAE;IACX,OAAC,CAAC,IAAI,EAAE;IACR,OAAC,CAAC,IAAI,EAAE;CACR,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  export type EvalCollectionRunStatus = 'new' | 'running' | 'completed' | 'error' | 'cancelled';
3
- export declare const EVAL_COLLECTIONS_FLAG = "eval_collections";
3
+ export declare const EVAL_COLLECTIONS_FLAG = "084_eval_collections";
4
4
  export declare const evalCollectionVersionEntrySchema: z.ZodObject<{
5
5
  workflowVersionId: z.ZodNullable<z.ZodString>;
6
6
  existingTestRunId: z.ZodOptional<z.ZodString>;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AddRunToCollectionDto = exports.addRunToCollectionSchema = exports.UpdateEvaluationCollectionDto = exports.updateEvaluationCollectionSchema = exports.CreateEvaluationCollectionDto = exports.createEvaluationCollectionSchema = exports.evalCollectionVersionEntrySchema = exports.EVAL_COLLECTIONS_FLAG = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const zod_class_1 = require("../zod-class");
6
- exports.EVAL_COLLECTIONS_FLAG = 'eval_collections';
6
+ exports.EVAL_COLLECTIONS_FLAG = '084_eval_collections';
7
7
  exports.evalCollectionVersionEntrySchema = zod_1.z.object({
8
8
  workflowVersionId: zod_1.z.string().min(1).nullable(),
9
9
  existingTestRunId: zod_1.z.string().min(1).optional(),
@@ -1 +1 @@
1
- {"version":3,"file":"eval-collections.schema.js","sourceRoot":"","sources":["../../src/schemas/eval-collections.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,4CAAiC;AAUpB,QAAA,qBAAqB,GAAG,kBAA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 'zod';
2
+ export declare const aiInsightsStatusSchema: z.ZodEnum<["ok", "fallback", "error"]>;
3
+ export type AiInsightsStatus = z.infer<typeof aiInsightsStatusSchema>;
4
+ declare const winnerSchema: z.ZodObject<{
5
+ versionLabel: z.ZodString;
6
+ headline: z.ZodString;
7
+ body: z.ZodString;
8
+ }, "strict", z.ZodTypeAny, {
9
+ versionLabel: string;
10
+ headline: string;
11
+ body: string;
12
+ }, {
13
+ versionLabel: string;
14
+ headline: string;
15
+ body: string;
16
+ }>;
17
+ declare const regressionSchema: z.ZodObject<{
18
+ versionLabel: z.ZodString;
19
+ metric: z.ZodString;
20
+ delta: z.ZodNumber;
21
+ headline: z.ZodString;
22
+ body: z.ZodString;
23
+ }, "strict", z.ZodTypeAny, {
24
+ versionLabel: string;
25
+ headline: string;
26
+ body: string;
27
+ metric: string;
28
+ delta: number;
29
+ }, {
30
+ versionLabel: string;
31
+ headline: string;
32
+ body: string;
33
+ metric: string;
34
+ delta: number;
35
+ }>;
36
+ declare const suggestedNextSchema: z.ZodObject<{
37
+ headline: z.ZodString;
38
+ body: z.ZodString;
39
+ hypothesis: z.ZodString;
40
+ }, "strict", z.ZodTypeAny, {
41
+ headline: string;
42
+ body: string;
43
+ hypothesis: string;
44
+ }, {
45
+ headline: string;
46
+ body: string;
47
+ hypothesis: string;
48
+ }>;
49
+ export declare const aiInsightsPayloadSchema: z.ZodObject<{
50
+ winner: z.ZodObject<{
51
+ versionLabel: z.ZodString;
52
+ headline: z.ZodString;
53
+ body: z.ZodString;
54
+ }, "strict", z.ZodTypeAny, {
55
+ versionLabel: string;
56
+ headline: string;
57
+ body: string;
58
+ }, {
59
+ versionLabel: string;
60
+ headline: string;
61
+ body: string;
62
+ }>;
63
+ regressions: z.ZodArray<z.ZodObject<{
64
+ versionLabel: z.ZodString;
65
+ metric: z.ZodString;
66
+ delta: z.ZodNumber;
67
+ headline: z.ZodString;
68
+ body: z.ZodString;
69
+ }, "strict", z.ZodTypeAny, {
70
+ versionLabel: string;
71
+ headline: string;
72
+ body: string;
73
+ metric: string;
74
+ delta: number;
75
+ }, {
76
+ versionLabel: string;
77
+ headline: string;
78
+ body: string;
79
+ metric: string;
80
+ delta: number;
81
+ }>, "many">;
82
+ suggestedNext: z.ZodObject<{
83
+ headline: z.ZodString;
84
+ body: z.ZodString;
85
+ hypothesis: z.ZodString;
86
+ }, "strict", z.ZodTypeAny, {
87
+ headline: string;
88
+ body: string;
89
+ hypothesis: string;
90
+ }, {
91
+ headline: string;
92
+ body: string;
93
+ hypothesis: string;
94
+ }>;
95
+ }, "strict", z.ZodTypeAny, {
96
+ winner: {
97
+ versionLabel: string;
98
+ headline: string;
99
+ body: string;
100
+ };
101
+ regressions: {
102
+ versionLabel: string;
103
+ headline: string;
104
+ body: string;
105
+ metric: string;
106
+ delta: number;
107
+ }[];
108
+ suggestedNext: {
109
+ headline: string;
110
+ body: string;
111
+ hypothesis: string;
112
+ };
113
+ }, {
114
+ winner: {
115
+ versionLabel: string;
116
+ headline: string;
117
+ body: string;
118
+ };
119
+ regressions: {
120
+ versionLabel: string;
121
+ headline: string;
122
+ body: string;
123
+ metric: string;
124
+ delta: number;
125
+ }[];
126
+ suggestedNext: {
127
+ headline: string;
128
+ body: string;
129
+ hypothesis: string;
130
+ };
131
+ }>;
132
+ export declare const aiInsightsResponseSchema: z.ZodObject<{
133
+ generatedAt: z.ZodString;
134
+ modelUsed: z.ZodString;
135
+ status: z.ZodEnum<["ok", "fallback", "error"]>;
136
+ insights: z.ZodObject<{
137
+ winner: z.ZodObject<{
138
+ versionLabel: z.ZodString;
139
+ headline: z.ZodString;
140
+ body: z.ZodString;
141
+ }, "strict", z.ZodTypeAny, {
142
+ versionLabel: string;
143
+ headline: string;
144
+ body: string;
145
+ }, {
146
+ versionLabel: string;
147
+ headline: string;
148
+ body: string;
149
+ }>;
150
+ regressions: z.ZodArray<z.ZodObject<{
151
+ versionLabel: z.ZodString;
152
+ metric: z.ZodString;
153
+ delta: z.ZodNumber;
154
+ headline: z.ZodString;
155
+ body: z.ZodString;
156
+ }, "strict", z.ZodTypeAny, {
157
+ versionLabel: string;
158
+ headline: string;
159
+ body: string;
160
+ metric: string;
161
+ delta: number;
162
+ }, {
163
+ versionLabel: string;
164
+ headline: string;
165
+ body: string;
166
+ metric: string;
167
+ delta: number;
168
+ }>, "many">;
169
+ suggestedNext: z.ZodObject<{
170
+ headline: z.ZodString;
171
+ body: z.ZodString;
172
+ hypothesis: z.ZodString;
173
+ }, "strict", z.ZodTypeAny, {
174
+ headline: string;
175
+ body: string;
176
+ hypothesis: string;
177
+ }, {
178
+ headline: string;
179
+ body: string;
180
+ hypothesis: string;
181
+ }>;
182
+ }, "strict", z.ZodTypeAny, {
183
+ winner: {
184
+ versionLabel: string;
185
+ headline: string;
186
+ body: string;
187
+ };
188
+ regressions: {
189
+ versionLabel: string;
190
+ headline: string;
191
+ body: string;
192
+ metric: string;
193
+ delta: number;
194
+ }[];
195
+ suggestedNext: {
196
+ headline: string;
197
+ body: string;
198
+ hypothesis: string;
199
+ };
200
+ }, {
201
+ winner: {
202
+ versionLabel: string;
203
+ headline: string;
204
+ body: string;
205
+ };
206
+ regressions: {
207
+ versionLabel: string;
208
+ headline: string;
209
+ body: string;
210
+ metric: string;
211
+ delta: number;
212
+ }[];
213
+ suggestedNext: {
214
+ headline: string;
215
+ body: string;
216
+ hypothesis: string;
217
+ };
218
+ }>;
219
+ }, "strict", z.ZodTypeAny, {
220
+ status: "error" | "ok" | "fallback";
221
+ insights: {
222
+ winner: {
223
+ versionLabel: string;
224
+ headline: string;
225
+ body: string;
226
+ };
227
+ regressions: {
228
+ versionLabel: string;
229
+ headline: string;
230
+ body: string;
231
+ metric: string;
232
+ delta: number;
233
+ }[];
234
+ suggestedNext: {
235
+ headline: string;
236
+ body: string;
237
+ hypothesis: string;
238
+ };
239
+ };
240
+ generatedAt: string;
241
+ modelUsed: string;
242
+ }, {
243
+ status: "error" | "ok" | "fallback";
244
+ insights: {
245
+ winner: {
246
+ versionLabel: string;
247
+ headline: string;
248
+ body: string;
249
+ };
250
+ regressions: {
251
+ versionLabel: string;
252
+ headline: string;
253
+ body: string;
254
+ metric: string;
255
+ delta: number;
256
+ }[];
257
+ suggestedNext: {
258
+ headline: string;
259
+ body: string;
260
+ hypothesis: string;
261
+ };
262
+ };
263
+ generatedAt: string;
264
+ modelUsed: string;
265
+ }>;
266
+ export type AiInsightsWinner = z.infer<typeof winnerSchema>;
267
+ export type AiInsightsRegression = z.infer<typeof regressionSchema>;
268
+ export type AiInsightsSuggestedNext = z.infer<typeof suggestedNextSchema>;
269
+ export type AiInsightsPayload = z.infer<typeof aiInsightsPayloadSchema>;
270
+ export type AiInsightsResponse = z.infer<typeof aiInsightsResponseSchema>;
271
+ export declare const generateInsightsSchema: z.ZodObject<{
272
+ forceRegenerate: z.ZodOptional<z.ZodBoolean>;
273
+ }, "strip", z.ZodTypeAny, {
274
+ forceRegenerate?: boolean | undefined;
275
+ }, {
276
+ forceRegenerate?: boolean | undefined;
277
+ }>;
278
+ export type GenerateInsightsPayload = z.infer<typeof generateInsightsSchema>;
279
+ declare const GenerateInsightsDto_base: import("../zod-class").ZodClass<{
280
+ forceRegenerate?: boolean | undefined;
281
+ }, {
282
+ forceRegenerate: z.ZodOptional<z.ZodBoolean>;
283
+ }>;
284
+ export declare class GenerateInsightsDto extends GenerateInsightsDto_base {
285
+ }
286
+ export {};