@n8n/api-types 1.21.3 → 1.22.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 (116) hide show
  1. package/dist/agent-sse.d.ts +0 -3
  2. package/dist/agents/agent-integration.schema.d.ts +184 -0
  3. package/dist/agents/agent-integration.schema.js +66 -0
  4. package/dist/agents/agent-integration.schema.js.map +1 -0
  5. package/dist/agents/agent-json-config.schema.d.ts +1787 -0
  6. package/dist/agents/agent-json-config.schema.js +144 -0
  7. package/dist/agents/agent-json-config.schema.js.map +1 -0
  8. package/dist/agents/dto.d.ts +149 -0
  9. package/dist/agents/dto.js +67 -0
  10. package/dist/agents/dto.js.map +1 -0
  11. package/dist/agents/index.d.ts +6 -0
  12. package/dist/agents/index.js +35 -0
  13. package/dist/agents/index.js.map +1 -0
  14. package/dist/{agents.d.ts → agents/types.d.ts} +7 -93
  15. package/dist/{agents.js → agents/types.js} +3 -16
  16. package/dist/agents/types.js.map +1 -0
  17. package/dist/build.tsbuildinfo +1 -1
  18. package/dist/chat-hub.d.ts +104 -30
  19. package/dist/chat-hub.js +8 -0
  20. package/dist/chat-hub.js.map +1 -1
  21. package/dist/dto/ai/ai-build-request.dto.d.ts +6 -6
  22. package/dist/dto/api-keys/update-api-key-request.dto.js +2 -9
  23. package/dist/dto/api-keys/update-api-key-request.dto.js.map +1 -1
  24. package/dist/dto/credentials/create-credential.dto.d.ts +1 -1
  25. package/dist/dto/data-table/create-data-table.dto.d.ts +1 -1
  26. package/dist/dto/data-table/public-api-create-data-table.dto.d.ts +1 -1
  27. package/dist/dto/data-table/update-data-table.dto.d.ts +1 -1
  28. package/dist/dto/dynamic-node-parameters/action-result-request.dto.d.ts +1 -1
  29. package/dist/dto/dynamic-node-parameters/base-dynamic-parameters-request.dto.d.ts +1 -1
  30. package/dist/dto/dynamic-node-parameters/options-request.dto.d.ts +1 -1
  31. package/dist/dto/dynamic-node-parameters/resource-locator-request.dto.d.ts +1 -1
  32. package/dist/dto/dynamic-node-parameters/resource-mapper-fields-request.dto.d.ts +1 -1
  33. package/dist/dto/evaluations/evaluation-config.dto.d.ts +2 -2
  34. package/dist/dto/folders/list-folder-query.dto.d.ts +2 -2
  35. package/dist/dto/index.d.ts +1 -9
  36. package/dist/dto/index.js +5 -22
  37. package/dist/dto/index.js.map +1 -1
  38. package/dist/dto/instance-ai/instance-ai-confirm-request.dto.d.ts +4 -4
  39. package/dist/dto/oauth/oauth-client.dto.d.ts +4 -4
  40. package/dist/dto/project/update-project.dto.d.ts +2 -2
  41. package/dist/dto/redaction-enforcement/redaction-enforcement.dto.d.ts +22 -0
  42. package/dist/dto/redaction-enforcement/redaction-enforcement.dto.js +19 -0
  43. package/dist/dto/redaction-enforcement/redaction-enforcement.dto.js.map +1 -0
  44. package/dist/dto/source-control/push-work-folder-request.dto.d.ts +3 -3
  45. package/dist/dto/user/user-update-request.dto.js +2 -9
  46. package/dist/dto/user/user-update-request.dto.js.map +1 -1
  47. package/dist/dto/user/users-list-filter.dto.d.ts +1 -1
  48. package/dist/dto/workflow-history/workflow-history-lookup.dto.d.ts +2 -0
  49. package/dist/dto/workflow-history/workflow-history-lookup.dto.js +11 -0
  50. package/dist/dto/workflow-history/workflow-history-lookup.dto.js.map +1 -0
  51. package/dist/dto/workflows/base-workflow.dto.d.ts +2 -2
  52. package/dist/dto/workflows/base-workflow.dto.js +3 -1
  53. package/dist/dto/workflows/base-workflow.dto.js.map +1 -1
  54. package/dist/dto/workflows/create-workflow.dto.d.ts +1 -1
  55. package/dist/dto/workflows/update-workflow.dto.d.ts +1 -1
  56. package/dist/frontend-settings.d.ts +3 -0
  57. package/dist/index.d.ts +8 -6
  58. package/dist/index.js +17 -19
  59. package/dist/index.js.map +1 -1
  60. package/dist/redaction-enforcement.d.ts +16 -0
  61. package/dist/redaction-enforcement.js +15 -0
  62. package/dist/redaction-enforcement.js.map +1 -0
  63. package/dist/schemas/breaking-changes.schema.d.ts +16 -16
  64. package/dist/schemas/credential-resolver.schema.d.ts +8 -8
  65. package/dist/schemas/credential-response.schema.d.ts +2 -2
  66. package/dist/schemas/data-table.schema.d.ts +4 -4
  67. package/dist/schemas/data-table.schema.js +7 -1
  68. package/dist/schemas/data-table.schema.js.map +1 -1
  69. package/dist/schemas/encryption-key.schema.d.ts +6 -6
  70. package/dist/schemas/eval-collections.schema.d.ts +165 -0
  71. package/dist/schemas/eval-collections.schema.js +38 -0
  72. package/dist/schemas/eval-collections.schema.js.map +1 -0
  73. package/dist/schemas/evaluations.schema.d.ts +0 -1
  74. package/dist/schemas/evaluations.schema.js +1 -2
  75. package/dist/schemas/evaluations.schema.js.map +1 -1
  76. package/dist/schemas/instance-ai.schema.d.ts +88 -71
  77. package/dist/schemas/instance-ai.schema.js +10 -3
  78. package/dist/schemas/instance-ai.schema.js.map +1 -1
  79. package/dist/schemas/secrets-provider.schema.d.ts +2 -2
  80. package/dist/schemas/source-controlled-file.schema.d.ts +2 -2
  81. package/dist/schemas/user.schema.d.ts +12 -12
  82. package/dist/schemas/workflow-publish-timeline.schema.d.ts +13 -0
  83. package/dist/schemas/workflow-publish-timeline.schema.js +3 -0
  84. package/dist/schemas/workflow-publish-timeline.schema.js.map +1 -0
  85. package/dist/utils/xss-check.d.ts +1 -0
  86. package/dist/utils/xss-check.js +10 -0
  87. package/dist/utils/xss-check.js.map +1 -0
  88. package/package.json +6 -6
  89. package/dist/agents.js.map +0 -1
  90. package/dist/dto/agents/agent-build-resume.dto.d.ts +0 -61
  91. package/dist/dto/agents/agent-build-resume.dto.js +0 -14
  92. package/dist/dto/agents/agent-build-resume.dto.js.map +0 -1
  93. package/dist/dto/agents/agent-chat-message.dto.d.ts +0 -11
  94. package/dist/dto/agents/agent-chat-message.dto.js +0 -12
  95. package/dist/dto/agents/agent-chat-message.dto.js.map +0 -1
  96. package/dist/dto/agents/agent-integration.dto.d.ts +0 -11
  97. package/dist/dto/agents/agent-integration.dto.js +0 -12
  98. package/dist/dto/agents/agent-integration.dto.js.map +0 -1
  99. package/dist/dto/agents/create-agent-skill.dto.d.ts +0 -27
  100. package/dist/dto/agents/create-agent-skill.dto.js +0 -17
  101. package/dist/dto/agents/create-agent-skill.dto.js.map +0 -1
  102. package/dist/dto/agents/create-agent.dto.d.ts +0 -9
  103. package/dist/dto/agents/create-agent.dto.js +0 -11
  104. package/dist/dto/agents/create-agent.dto.js.map +0 -1
  105. package/dist/dto/agents/update-agent-config.dto.d.ts +0 -9
  106. package/dist/dto/agents/update-agent-config.dto.js +0 -11
  107. package/dist/dto/agents/update-agent-config.dto.js.map +0 -1
  108. package/dist/dto/agents/update-agent-schedule.dto.d.ts +0 -11
  109. package/dist/dto/agents/update-agent-schedule.dto.js +0 -12
  110. package/dist/dto/agents/update-agent-schedule.dto.js.map +0 -1
  111. package/dist/dto/agents/update-agent-skill.dto.d.ts +0 -12
  112. package/dist/dto/agents/update-agent-skill.dto.js +0 -13
  113. package/dist/dto/agents/update-agent-skill.dto.js.map +0 -1
  114. package/dist/dto/agents/update-agent.dto.d.ts +0 -13
  115. package/dist/dto/agents/update-agent.dto.js +0 -13
  116. package/dist/dto/agents/update-agent.dto.js.map +0 -1
@@ -105,9 +105,9 @@ export declare const agentSpawnedPayloadSchema: z.ZodObject<{
105
105
  name?: string | undefined;
106
106
  }>>;
107
107
  }, "strip", z.ZodTypeAny, {
108
+ tools: string[];
108
109
  role: string;
109
110
  parentId: string;
110
- tools: string[];
111
111
  title?: string | undefined;
112
112
  taskId?: string | undefined;
113
113
  kind?: "builder" | "data-table" | "researcher" | "delegate" | "browser-setup" | "planner" | undefined;
@@ -119,9 +119,9 @@ export declare const agentSpawnedPayloadSchema: z.ZodObject<{
119
119
  name?: string | undefined;
120
120
  } | undefined;
121
121
  }, {
122
+ tools: string[];
122
123
  role: string;
123
124
  parentId: string;
124
- tools: string[];
125
125
  title?: string | undefined;
126
126
  taskId?: string | undefined;
127
127
  kind?: "builder" | "data-table" | "researcher" | "delegate" | "browser-setup" | "planner" | undefined;
@@ -187,11 +187,11 @@ export declare const toolErrorPayloadSchema: z.ZodObject<{
187
187
  toolCallId: z.ZodString;
188
188
  error: z.ZodString;
189
189
  }, "strip", z.ZodTypeAny, {
190
- error: string;
191
190
  toolCallId: string;
192
- }, {
193
191
  error: string;
192
+ }, {
194
193
  toolCallId: string;
194
+ error: string;
195
195
  }>;
196
196
  export declare const credentialRequestSchema: z.ZodObject<{
197
197
  credentialType: z.ZodString;
@@ -520,16 +520,16 @@ export declare const plannedTaskArgSchema: z.ZodObject<{
520
520
  kind: string;
521
521
  spec: string;
522
522
  deps: string[];
523
- workflowId?: string | undefined;
524
523
  tools?: string[] | undefined;
524
+ workflowId?: string | undefined;
525
525
  }, {
526
526
  id: string;
527
527
  title: string;
528
528
  kind: string;
529
529
  spec: string;
530
530
  deps: string[];
531
- workflowId?: string | undefined;
532
531
  tools?: string[] | undefined;
532
+ workflowId?: string | undefined;
533
533
  }>;
534
534
  export type PlannedTaskArg = z.infer<typeof plannedTaskArgSchema>;
535
535
  export declare const GATEWAY_CONFIRMATION_REQUIRED_PREFIX = "GATEWAY_CONFIRMATION_REQUIRED::";
@@ -671,16 +671,16 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
671
671
  kind: string;
672
672
  spec: string;
673
673
  deps: string[];
674
- workflowId?: string | undefined;
675
674
  tools?: string[] | undefined;
675
+ workflowId?: string | undefined;
676
676
  }, {
677
677
  id: string;
678
678
  title: string;
679
679
  kind: string;
680
680
  spec: string;
681
681
  deps: string[];
682
- workflowId?: string | undefined;
683
682
  tools?: string[] | undefined;
683
+ workflowId?: string | undefined;
684
684
  }>, "many">>;
685
685
  domainAccess: z.ZodOptional<z.ZodObject<{
686
686
  url: z.ZodString;
@@ -994,8 +994,8 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
994
994
  kind: string;
995
995
  spec: string;
996
996
  deps: string[];
997
- workflowId?: string | undefined;
998
997
  tools?: string[] | undefined;
998
+ workflowId?: string | undefined;
999
999
  }[] | undefined;
1000
1000
  domainAccess?: {
1001
1001
  url: string;
@@ -1103,8 +1103,8 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
1103
1103
  kind: string;
1104
1104
  spec: string;
1105
1105
  deps: string[];
1106
- workflowId?: string | undefined;
1107
1106
  tools?: string[] | undefined;
1107
+ workflowId?: string | undefined;
1108
1108
  }[] | undefined;
1109
1109
  domainAccess?: {
1110
1110
  url: string;
@@ -1426,12 +1426,12 @@ export declare const toolCategorySchema: z.ZodObject<{
1426
1426
  enabled: z.ZodBoolean;
1427
1427
  writeAccess: z.ZodOptional<z.ZodBoolean>;
1428
1428
  }, "strip", z.ZodTypeAny, {
1429
- name: string;
1430
1429
  enabled: boolean;
1430
+ name: string;
1431
1431
  writeAccess?: boolean | undefined;
1432
1432
  }, {
1433
- name: string;
1434
1433
  enabled: boolean;
1434
+ name: string;
1435
1435
  writeAccess?: boolean | undefined;
1436
1436
  }>;
1437
1437
  export type ToolCategory = z.infer<typeof toolCategorySchema>;
@@ -1466,8 +1466,8 @@ declare const InstanceAiGatewayCapabilitiesDto_base: import("../zod-class").ZodC
1466
1466
  }[];
1467
1467
  rootPath: string;
1468
1468
  toolCategories: {
1469
- name: string;
1470
1469
  enabled: boolean;
1470
+ name: string;
1471
1471
  writeAccess?: boolean | undefined;
1472
1472
  }[];
1473
1473
  hostIdentifier?: string | undefined;
@@ -1621,18 +1621,31 @@ declare const InstanceAiGatewayCapabilitiesDto_base: import("../zod-class").ZodC
1621
1621
  enabled: z.ZodBoolean;
1622
1622
  writeAccess: z.ZodOptional<z.ZodBoolean>;
1623
1623
  }, "strip", z.ZodTypeAny, {
1624
- name: string;
1625
1624
  enabled: boolean;
1625
+ name: string;
1626
1626
  writeAccess?: boolean | undefined;
1627
1627
  }, {
1628
- name: string;
1629
1628
  enabled: boolean;
1629
+ name: string;
1630
1630
  writeAccess?: boolean | undefined;
1631
1631
  }>, "many">>;
1632
1632
  }>;
1633
1633
  export declare class InstanceAiGatewayCapabilitiesDto extends InstanceAiGatewayCapabilitiesDto_base {
1634
1634
  }
1635
1635
  export type InstanceAiGatewayCapabilities = InstanceType<typeof InstanceAiGatewayCapabilitiesDto>;
1636
+ declare const InstanceAiGatewayCreateCredentialDto_base: import("../zod-class").ZodClass<{
1637
+ type: string;
1638
+ name: string;
1639
+ data: Record<string, unknown>;
1640
+ projectId?: string | undefined;
1641
+ }, {
1642
+ name: z.ZodString;
1643
+ type: z.ZodString;
1644
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1645
+ projectId: z.ZodOptional<z.ZodString>;
1646
+ }>;
1647
+ export declare class InstanceAiGatewayCreateCredentialDto extends InstanceAiGatewayCreateCredentialDto_base {
1648
+ }
1636
1649
  export declare const filesystemRequestPayloadSchema: z.ZodObject<{
1637
1650
  requestId: z.ZodString;
1638
1651
  toolCall: z.ZodObject<{
@@ -1767,16 +1780,16 @@ export declare const tasksUpdatePayloadSchema: z.ZodObject<{
1767
1780
  kind: string;
1768
1781
  spec: string;
1769
1782
  deps: string[];
1770
- workflowId?: string | undefined;
1771
1783
  tools?: string[] | undefined;
1784
+ workflowId?: string | undefined;
1772
1785
  }, {
1773
1786
  id: string;
1774
1787
  title: string;
1775
1788
  kind: string;
1776
1789
  spec: string;
1777
1790
  deps: string[];
1778
- workflowId?: string | undefined;
1779
1791
  tools?: string[] | undefined;
1792
+ workflowId?: string | undefined;
1780
1793
  }>, "many">>;
1781
1794
  }, "strip", z.ZodTypeAny, {
1782
1795
  tasks: {
@@ -1792,8 +1805,8 @@ export declare const tasksUpdatePayloadSchema: z.ZodObject<{
1792
1805
  kind: string;
1793
1806
  spec: string;
1794
1807
  deps: string[];
1795
- workflowId?: string | undefined;
1796
1808
  tools?: string[] | undefined;
1809
+ workflowId?: string | undefined;
1797
1810
  }[] | undefined;
1798
1811
  }, {
1799
1812
  tasks: {
@@ -1809,8 +1822,8 @@ export declare const tasksUpdatePayloadSchema: z.ZodObject<{
1809
1822
  kind: string;
1810
1823
  spec: string;
1811
1824
  deps: string[];
1812
- workflowId?: string | undefined;
1813
1825
  tools?: string[] | undefined;
1826
+ workflowId?: string | undefined;
1814
1827
  }[] | undefined;
1815
1828
  }>;
1816
1829
  export declare const threadTitleUpdatedPayloadSchema: z.ZodObject<{
@@ -1838,22 +1851,22 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
1838
1851
  type: z.ZodLiteral<"run-start">;
1839
1852
  }, "strip", z.ZodTypeAny, {
1840
1853
  type: "run-start";
1854
+ runId: string;
1841
1855
  agentId: string;
1842
1856
  payload: {
1843
1857
  messageId: string;
1844
1858
  messageGroupId?: string | undefined;
1845
1859
  };
1846
- runId: string;
1847
1860
  userId?: string | undefined;
1848
1861
  responseId?: string | undefined;
1849
1862
  }, {
1850
1863
  type: "run-start";
1864
+ runId: string;
1851
1865
  agentId: string;
1852
1866
  payload: {
1853
1867
  messageId: string;
1854
1868
  messageGroupId?: string | undefined;
1855
1869
  };
1856
- runId: string;
1857
1870
  userId?: string | undefined;
1858
1871
  responseId?: string | undefined;
1859
1872
  }>, z.ZodObject<{
@@ -1877,24 +1890,24 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
1877
1890
  type: z.ZodLiteral<"run-finish">;
1878
1891
  }, "strip", z.ZodTypeAny, {
1879
1892
  type: "run-finish";
1893
+ runId: string;
1880
1894
  agentId: string;
1881
1895
  payload: {
1882
1896
  status: "error" | "cancelled" | "completed";
1883
1897
  reason?: string | undefined;
1884
1898
  archivedWorkflowIds?: string[] | undefined;
1885
1899
  };
1886
- runId: string;
1887
1900
  userId?: string | undefined;
1888
1901
  responseId?: string | undefined;
1889
1902
  }, {
1890
1903
  type: "run-finish";
1904
+ runId: string;
1891
1905
  agentId: string;
1892
1906
  payload: {
1893
1907
  status: "error" | "cancelled" | "completed";
1894
1908
  reason?: string | undefined;
1895
1909
  archivedWorkflowIds?: string[] | undefined;
1896
1910
  };
1897
- runId: string;
1898
1911
  userId?: string | undefined;
1899
1912
  responseId?: string | undefined;
1900
1913
  }>, z.ZodObject<{
@@ -1921,9 +1934,9 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
1921
1934
  name?: string | undefined;
1922
1935
  }>>;
1923
1936
  }, "strip", z.ZodTypeAny, {
1937
+ tools: string[];
1924
1938
  role: string;
1925
1939
  parentId: string;
1926
- tools: string[];
1927
1940
  title?: string | undefined;
1928
1941
  taskId?: string | undefined;
1929
1942
  kind?: "builder" | "data-table" | "researcher" | "delegate" | "browser-setup" | "planner" | undefined;
@@ -1935,9 +1948,9 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
1935
1948
  name?: string | undefined;
1936
1949
  } | undefined;
1937
1950
  }, {
1951
+ tools: string[];
1938
1952
  role: string;
1939
1953
  parentId: string;
1940
- tools: string[];
1941
1954
  title?: string | undefined;
1942
1955
  taskId?: string | undefined;
1943
1956
  kind?: "builder" | "data-table" | "researcher" | "delegate" | "browser-setup" | "planner" | undefined;
@@ -1956,11 +1969,12 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
1956
1969
  type: z.ZodLiteral<"agent-spawned">;
1957
1970
  }, "strip", z.ZodTypeAny, {
1958
1971
  type: "agent-spawned";
1972
+ runId: string;
1959
1973
  agentId: string;
1960
1974
  payload: {
1975
+ tools: string[];
1961
1976
  role: string;
1962
1977
  parentId: string;
1963
- tools: string[];
1964
1978
  title?: string | undefined;
1965
1979
  taskId?: string | undefined;
1966
1980
  kind?: "builder" | "data-table" | "researcher" | "delegate" | "browser-setup" | "planner" | undefined;
@@ -1972,16 +1986,16 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
1972
1986
  name?: string | undefined;
1973
1987
  } | undefined;
1974
1988
  };
1975
- runId: string;
1976
1989
  userId?: string | undefined;
1977
1990
  responseId?: string | undefined;
1978
1991
  }, {
1979
1992
  type: "agent-spawned";
1993
+ runId: string;
1980
1994
  agentId: string;
1981
1995
  payload: {
1996
+ tools: string[];
1982
1997
  role: string;
1983
1998
  parentId: string;
1984
- tools: string[];
1985
1999
  title?: string | undefined;
1986
2000
  taskId?: string | undefined;
1987
2001
  kind?: "builder" | "data-table" | "researcher" | "delegate" | "browser-setup" | "planner" | undefined;
@@ -1993,7 +2007,6 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
1993
2007
  name?: string | undefined;
1994
2008
  } | undefined;
1995
2009
  };
1996
- runId: string;
1997
2010
  userId?: string | undefined;
1998
2011
  responseId?: string | undefined;
1999
2012
  }>, z.ZodObject<{
@@ -2017,24 +2030,24 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2017
2030
  type: z.ZodLiteral<"agent-completed">;
2018
2031
  }, "strip", z.ZodTypeAny, {
2019
2032
  type: "agent-completed";
2033
+ runId: string;
2020
2034
  agentId: string;
2021
2035
  payload: {
2022
2036
  role: string;
2023
2037
  result: string;
2024
2038
  error?: string | undefined;
2025
2039
  };
2026
- runId: string;
2027
2040
  userId?: string | undefined;
2028
2041
  responseId?: string | undefined;
2029
2042
  }, {
2030
2043
  type: "agent-completed";
2044
+ runId: string;
2031
2045
  agentId: string;
2032
2046
  payload: {
2033
2047
  role: string;
2034
2048
  result: string;
2035
2049
  error?: string | undefined;
2036
2050
  };
2037
- runId: string;
2038
2051
  userId?: string | undefined;
2039
2052
  responseId?: string | undefined;
2040
2053
  }>, z.ZodObject<{
@@ -2052,20 +2065,20 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2052
2065
  type: z.ZodLiteral<"text-delta">;
2053
2066
  }, "strip", z.ZodTypeAny, {
2054
2067
  type: "text-delta";
2068
+ runId: string;
2055
2069
  agentId: string;
2056
2070
  payload: {
2057
2071
  text: string;
2058
2072
  };
2059
- runId: string;
2060
2073
  userId?: string | undefined;
2061
2074
  responseId?: string | undefined;
2062
2075
  }, {
2063
2076
  type: "text-delta";
2077
+ runId: string;
2064
2078
  agentId: string;
2065
2079
  payload: {
2066
2080
  text: string;
2067
2081
  };
2068
- runId: string;
2069
2082
  userId?: string | undefined;
2070
2083
  responseId?: string | undefined;
2071
2084
  }>, z.ZodObject<{
@@ -2083,20 +2096,20 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2083
2096
  type: z.ZodLiteral<"reasoning-delta">;
2084
2097
  }, "strip", z.ZodTypeAny, {
2085
2098
  type: "reasoning-delta";
2099
+ runId: string;
2086
2100
  agentId: string;
2087
2101
  payload: {
2088
2102
  text: string;
2089
2103
  };
2090
- runId: string;
2091
2104
  userId?: string | undefined;
2092
2105
  responseId?: string | undefined;
2093
2106
  }, {
2094
2107
  type: "reasoning-delta";
2108
+ runId: string;
2095
2109
  agentId: string;
2096
2110
  payload: {
2097
2111
  text: string;
2098
2112
  };
2099
- runId: string;
2100
2113
  userId?: string | undefined;
2101
2114
  responseId?: string | undefined;
2102
2115
  }>, z.ZodObject<{
@@ -2120,24 +2133,24 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2120
2133
  type: z.ZodLiteral<"tool-call">;
2121
2134
  }, "strip", z.ZodTypeAny, {
2122
2135
  type: "tool-call";
2136
+ runId: string;
2123
2137
  agentId: string;
2124
2138
  payload: {
2125
2139
  toolCallId: string;
2126
2140
  toolName: string;
2127
2141
  args: Record<string, unknown>;
2128
2142
  };
2129
- runId: string;
2130
2143
  userId?: string | undefined;
2131
2144
  responseId?: string | undefined;
2132
2145
  }, {
2133
2146
  type: "tool-call";
2147
+ runId: string;
2134
2148
  agentId: string;
2135
2149
  payload: {
2136
2150
  toolCallId: string;
2137
2151
  toolName: string;
2138
2152
  args: Record<string, unknown>;
2139
2153
  };
2140
- runId: string;
2141
2154
  userId?: string | undefined;
2142
2155
  responseId?: string | undefined;
2143
2156
  }>, z.ZodObject<{
@@ -2158,22 +2171,22 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2158
2171
  type: z.ZodLiteral<"tool-result">;
2159
2172
  }, "strip", z.ZodTypeAny, {
2160
2173
  type: "tool-result";
2174
+ runId: string;
2161
2175
  agentId: string;
2162
2176
  payload: {
2163
2177
  toolCallId: string;
2164
2178
  result?: unknown;
2165
2179
  };
2166
- runId: string;
2167
2180
  userId?: string | undefined;
2168
2181
  responseId?: string | undefined;
2169
2182
  }, {
2170
2183
  type: "tool-result";
2184
+ runId: string;
2171
2185
  agentId: string;
2172
2186
  payload: {
2173
2187
  toolCallId: string;
2174
2188
  result?: unknown;
2175
2189
  };
2176
- runId: string;
2177
2190
  userId?: string | undefined;
2178
2191
  responseId?: string | undefined;
2179
2192
  }>, z.ZodObject<{
@@ -2181,11 +2194,11 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2181
2194
  toolCallId: z.ZodString;
2182
2195
  error: z.ZodString;
2183
2196
  }, "strip", z.ZodTypeAny, {
2184
- error: string;
2185
2197
  toolCallId: string;
2186
- }, {
2187
2198
  error: string;
2199
+ }, {
2188
2200
  toolCallId: string;
2201
+ error: string;
2189
2202
  }>;
2190
2203
  runId: z.ZodString;
2191
2204
  agentId: z.ZodString;
@@ -2194,22 +2207,22 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2194
2207
  type: z.ZodLiteral<"tool-error">;
2195
2208
  }, "strip", z.ZodTypeAny, {
2196
2209
  type: "tool-error";
2210
+ runId: string;
2197
2211
  agentId: string;
2198
2212
  payload: {
2199
- error: string;
2200
2213
  toolCallId: string;
2214
+ error: string;
2201
2215
  };
2202
- runId: string;
2203
2216
  userId?: string | undefined;
2204
2217
  responseId?: string | undefined;
2205
2218
  }, {
2206
2219
  type: "tool-error";
2220
+ runId: string;
2207
2221
  agentId: string;
2208
2222
  payload: {
2209
- error: string;
2210
2223
  toolCallId: string;
2224
+ error: string;
2211
2225
  };
2212
- runId: string;
2213
2226
  userId?: string | undefined;
2214
2227
  responseId?: string | undefined;
2215
2228
  }>, z.ZodObject<{
@@ -2312,16 +2325,16 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2312
2325
  kind: string;
2313
2326
  spec: string;
2314
2327
  deps: string[];
2315
- workflowId?: string | undefined;
2316
2328
  tools?: string[] | undefined;
2329
+ workflowId?: string | undefined;
2317
2330
  }, {
2318
2331
  id: string;
2319
2332
  title: string;
2320
2333
  kind: string;
2321
2334
  spec: string;
2322
2335
  deps: string[];
2323
- workflowId?: string | undefined;
2324
2336
  tools?: string[] | undefined;
2337
+ workflowId?: string | undefined;
2325
2338
  }>, "many">>;
2326
2339
  domainAccess: z.ZodOptional<z.ZodObject<{
2327
2340
  url: z.ZodString;
@@ -2635,8 +2648,8 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2635
2648
  kind: string;
2636
2649
  spec: string;
2637
2650
  deps: string[];
2638
- workflowId?: string | undefined;
2639
2651
  tools?: string[] | undefined;
2652
+ workflowId?: string | undefined;
2640
2653
  }[] | undefined;
2641
2654
  domainAccess?: {
2642
2655
  url: string;
@@ -2744,8 +2757,8 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2744
2757
  kind: string;
2745
2758
  spec: string;
2746
2759
  deps: string[];
2747
- workflowId?: string | undefined;
2748
2760
  tools?: string[] | undefined;
2761
+ workflowId?: string | undefined;
2749
2762
  }[] | undefined;
2750
2763
  domainAccess?: {
2751
2764
  url: string;
@@ -2821,6 +2834,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2821
2834
  type: z.ZodLiteral<"confirmation-request">;
2822
2835
  }, "strip", z.ZodTypeAny, {
2823
2836
  type: "confirmation-request";
2837
+ runId: string;
2824
2838
  agentId: string;
2825
2839
  payload: {
2826
2840
  message: string;
@@ -2862,8 +2876,8 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2862
2876
  kind: string;
2863
2877
  spec: string;
2864
2878
  deps: string[];
2865
- workflowId?: string | undefined;
2866
2879
  tools?: string[] | undefined;
2880
+ workflowId?: string | undefined;
2867
2881
  }[] | undefined;
2868
2882
  domainAccess?: {
2869
2883
  url: string;
@@ -2932,11 +2946,11 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2932
2946
  toolGroup: string;
2933
2947
  } | undefined;
2934
2948
  };
2935
- runId: string;
2936
2949
  userId?: string | undefined;
2937
2950
  responseId?: string | undefined;
2938
2951
  }, {
2939
2952
  type: "confirmation-request";
2953
+ runId: string;
2940
2954
  agentId: string;
2941
2955
  payload: {
2942
2956
  message: string;
@@ -2978,8 +2992,8 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2978
2992
  kind: string;
2979
2993
  spec: string;
2980
2994
  deps: string[];
2981
- workflowId?: string | undefined;
2982
2995
  tools?: string[] | undefined;
2996
+ workflowId?: string | undefined;
2983
2997
  }[] | undefined;
2984
2998
  domainAccess?: {
2985
2999
  url: string;
@@ -3048,7 +3062,6 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3048
3062
  toolGroup: string;
3049
3063
  } | undefined;
3050
3064
  };
3051
- runId: string;
3052
3065
  userId?: string | undefined;
3053
3066
  responseId?: string | undefined;
3054
3067
  }>, z.ZodObject<{
@@ -3094,16 +3107,16 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3094
3107
  kind: string;
3095
3108
  spec: string;
3096
3109
  deps: string[];
3097
- workflowId?: string | undefined;
3098
3110
  tools?: string[] | undefined;
3111
+ workflowId?: string | undefined;
3099
3112
  }, {
3100
3113
  id: string;
3101
3114
  title: string;
3102
3115
  kind: string;
3103
3116
  spec: string;
3104
3117
  deps: string[];
3105
- workflowId?: string | undefined;
3106
3118
  tools?: string[] | undefined;
3119
+ workflowId?: string | undefined;
3107
3120
  }>, "many">>;
3108
3121
  }, "strip", z.ZodTypeAny, {
3109
3122
  tasks: {
@@ -3119,8 +3132,8 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3119
3132
  kind: string;
3120
3133
  spec: string;
3121
3134
  deps: string[];
3122
- workflowId?: string | undefined;
3123
3135
  tools?: string[] | undefined;
3136
+ workflowId?: string | undefined;
3124
3137
  }[] | undefined;
3125
3138
  }, {
3126
3139
  tasks: {
@@ -3136,8 +3149,8 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3136
3149
  kind: string;
3137
3150
  spec: string;
3138
3151
  deps: string[];
3139
- workflowId?: string | undefined;
3140
3152
  tools?: string[] | undefined;
3153
+ workflowId?: string | undefined;
3141
3154
  }[] | undefined;
3142
3155
  }>;
3143
3156
  runId: z.ZodString;
@@ -3147,6 +3160,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3147
3160
  type: z.ZodLiteral<"tasks-update">;
3148
3161
  }, "strip", z.ZodTypeAny, {
3149
3162
  type: "tasks-update";
3163
+ runId: string;
3150
3164
  agentId: string;
3151
3165
  payload: {
3152
3166
  tasks: {
@@ -3162,15 +3176,15 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3162
3176
  kind: string;
3163
3177
  spec: string;
3164
3178
  deps: string[];
3165
- workflowId?: string | undefined;
3166
3179
  tools?: string[] | undefined;
3180
+ workflowId?: string | undefined;
3167
3181
  }[] | undefined;
3168
3182
  };
3169
- runId: string;
3170
3183
  userId?: string | undefined;
3171
3184
  responseId?: string | undefined;
3172
3185
  }, {
3173
3186
  type: "tasks-update";
3187
+ runId: string;
3174
3188
  agentId: string;
3175
3189
  payload: {
3176
3190
  tasks: {
@@ -3186,11 +3200,10 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3186
3200
  kind: string;
3187
3201
  spec: string;
3188
3202
  deps: string[];
3189
- workflowId?: string | undefined;
3190
3203
  tools?: string[] | undefined;
3204
+ workflowId?: string | undefined;
3191
3205
  }[] | undefined;
3192
3206
  };
3193
- runId: string;
3194
3207
  userId?: string | undefined;
3195
3208
  responseId?: string | undefined;
3196
3209
  }>, z.ZodObject<{
@@ -3208,20 +3221,20 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3208
3221
  type: z.ZodLiteral<"status">;
3209
3222
  }, "strip", z.ZodTypeAny, {
3210
3223
  type: "status";
3224
+ runId: string;
3211
3225
  agentId: string;
3212
3226
  payload: {
3213
3227
  message: string;
3214
3228
  };
3215
- runId: string;
3216
3229
  userId?: string | undefined;
3217
3230
  responseId?: string | undefined;
3218
3231
  }, {
3219
3232
  type: "status";
3233
+ runId: string;
3220
3234
  agentId: string;
3221
3235
  payload: {
3222
3236
  message: string;
3223
3237
  };
3224
- runId: string;
3225
3238
  userId?: string | undefined;
3226
3239
  responseId?: string | undefined;
3227
3240
  }>, z.ZodObject<{
@@ -3248,6 +3261,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3248
3261
  type: z.ZodLiteral<"error">;
3249
3262
  }, "strip", z.ZodTypeAny, {
3250
3263
  type: "error";
3264
+ runId: string;
3251
3265
  agentId: string;
3252
3266
  payload: {
3253
3267
  content: string;
@@ -3255,11 +3269,11 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3255
3269
  statusCode?: number | undefined;
3256
3270
  technicalDetails?: string | undefined;
3257
3271
  };
3258
- runId: string;
3259
3272
  userId?: string | undefined;
3260
3273
  responseId?: string | undefined;
3261
3274
  }, {
3262
3275
  type: "error";
3276
+ runId: string;
3263
3277
  agentId: string;
3264
3278
  payload: {
3265
3279
  content: string;
@@ -3267,7 +3281,6 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3267
3281
  statusCode?: number | undefined;
3268
3282
  technicalDetails?: string | undefined;
3269
3283
  };
3270
- runId: string;
3271
3284
  userId?: string | undefined;
3272
3285
  responseId?: string | undefined;
3273
3286
  }>, z.ZodObject<{
@@ -3303,6 +3316,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3303
3316
  type: z.ZodLiteral<"filesystem-request">;
3304
3317
  }, "strip", z.ZodTypeAny, {
3305
3318
  type: "filesystem-request";
3319
+ runId: string;
3306
3320
  agentId: string;
3307
3321
  payload: {
3308
3322
  requestId: string;
@@ -3311,11 +3325,11 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3311
3325
  arguments: Record<string, unknown>;
3312
3326
  };
3313
3327
  };
3314
- runId: string;
3315
3328
  userId?: string | undefined;
3316
3329
  responseId?: string | undefined;
3317
3330
  }, {
3318
3331
  type: "filesystem-request";
3332
+ runId: string;
3319
3333
  agentId: string;
3320
3334
  payload: {
3321
3335
  requestId: string;
@@ -3324,7 +3338,6 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3324
3338
  arguments: Record<string, unknown>;
3325
3339
  };
3326
3340
  };
3327
- runId: string;
3328
3341
  userId?: string | undefined;
3329
3342
  responseId?: string | undefined;
3330
3343
  }>, z.ZodObject<{
@@ -3342,20 +3355,20 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3342
3355
  type: z.ZodLiteral<"thread-title-updated">;
3343
3356
  }, "strip", z.ZodTypeAny, {
3344
3357
  type: "thread-title-updated";
3358
+ runId: string;
3345
3359
  agentId: string;
3346
3360
  payload: {
3347
3361
  title: string;
3348
3362
  };
3349
- runId: string;
3350
3363
  userId?: string | undefined;
3351
3364
  responseId?: string | undefined;
3352
3365
  }, {
3353
3366
  type: "thread-title-updated";
3367
+ runId: string;
3354
3368
  agentId: string;
3355
3369
  payload: {
3356
3370
  title: string;
3357
3371
  };
3358
- runId: string;
3359
3372
  userId?: string | undefined;
3360
3373
  responseId?: string | undefined;
3361
3374
  }>]>;
@@ -3429,10 +3442,8 @@ declare const InstanceAiSendMessageRequest_base: import("../zod-class").ZodClass
3429
3442
  fileName: string;
3430
3443
  }[] | undefined;
3431
3444
  pushRef?: string | undefined;
3432
- researchMode?: boolean | undefined;
3433
3445
  }, {
3434
3446
  message: z.ZodDefault<z.ZodString>;
3435
- researchMode: z.ZodOptional<z.ZodBoolean>;
3436
3447
  attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
3437
3448
  data: z.ZodString;
3438
3449
  mimeType: z.ZodString;
@@ -3890,12 +3901,18 @@ export interface InstanceAiEvalMockHints {
3890
3901
  json: Record<string, unknown>;
3891
3902
  }>>;
3892
3903
  }
3904
+ export interface InstanceAiEvalMockedCredential {
3905
+ nodeName: string;
3906
+ credentialType: string;
3907
+ credentialId?: string;
3908
+ }
3893
3909
  export interface InstanceAiEvalExecutionResult {
3894
3910
  executionId: string;
3895
3911
  success: boolean;
3896
3912
  nodeResults: Record<string, InstanceAiEvalNodeResult>;
3897
3913
  errors: string[];
3898
3914
  hints: InstanceAiEvalMockHints;
3915
+ mockedCredentials: InstanceAiEvalMockedCredential[];
3899
3916
  }
3900
3917
  declare const InstanceAiEvalExecutionRequest_base: import("../zod-class").ZodClass<{
3901
3918
  scenarioHints?: string | undefined;