@n8n/api-types 1.16.0 → 1.17.0

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 (46) hide show
  1. package/dist/build.tsbuildinfo +1 -1
  2. package/dist/dto/ai/ai-gateway-config-response.dto.d.ts +40 -0
  3. package/dist/dto/ai/ai-gateway-config-response.dto.js +21 -0
  4. package/dist/dto/ai/ai-gateway-config-response.dto.js.map +1 -0
  5. package/dist/dto/ai/ai-gateway-usage-response.dto.d.ts +22 -0
  6. package/dist/dto/ai/ai-gateway-usage-response.dto.js +9 -0
  7. package/dist/dto/ai/ai-gateway-usage-response.dto.js.map +1 -0
  8. package/dist/dto/auth/embed-login-body.dto.d.ts +2 -0
  9. package/dist/dto/auth/embed-login-body.dto.js +1 -0
  10. package/dist/dto/auth/embed-login-body.dto.js.map +1 -1
  11. package/dist/dto/auth/embed-login-query.dto.d.ts +2 -0
  12. package/dist/dto/auth/embed-login-query.dto.js +1 -0
  13. package/dist/dto/auth/embed-login-query.dto.js.map +1 -1
  14. package/dist/dto/index.d.ts +6 -0
  15. package/dist/dto/index.js +13 -3
  16. package/dist/dto/index.js.map +1 -1
  17. package/dist/dto/instance-ai/instance-ai-rename-thread-request.dto.d.ts +4 -2
  18. package/dist/dto/instance-ai/instance-ai-rename-thread-request.dto.js +2 -1
  19. package/dist/dto/instance-ai/instance-ai-rename-thread-request.dto.js.map +1 -1
  20. package/dist/dto/instance-version-history/version-query.dto.d.ts +13 -0
  21. package/dist/dto/instance-version-history/version-query.dto.js +13 -0
  22. package/dist/dto/instance-version-history/version-query.dto.js.map +1 -0
  23. package/dist/dto/instance-version-history/version-since-date-query.dto.d.ts +9 -0
  24. package/dist/dto/instance-version-history/version-since-date-query.dto.js +11 -0
  25. package/dist/dto/instance-version-history/version-since-date-query.dto.js.map +1 -0
  26. package/dist/dto/saml/saml-preferences.dto.d.ts +1 -1
  27. package/dist/dto/workflows/base-workflow.dto.d.ts +3 -0
  28. package/dist/dto/workflows/base-workflow.dto.js +4 -1
  29. package/dist/dto/workflows/base-workflow.dto.js.map +1 -1
  30. package/dist/frontend-settings.d.ts +5 -2
  31. package/dist/index.d.ts +4 -3
  32. package/dist/index.js +9 -3
  33. package/dist/index.js.map +1 -1
  34. package/dist/schemas/agent-run-reducer.d.ts +2 -1
  35. package/dist/schemas/agent-run-reducer.js +35 -7
  36. package/dist/schemas/agent-run-reducer.js.map +1 -1
  37. package/dist/schemas/credential-created.schema.d.ts +36 -0
  38. package/dist/schemas/credential-created.schema.js +17 -0
  39. package/dist/schemas/credential-created.schema.js.map +1 -0
  40. package/dist/schemas/instance-ai.schema.d.ts +499 -170
  41. package/dist/schemas/instance-ai.schema.js +60 -14
  42. package/dist/schemas/instance-ai.schema.js.map +1 -1
  43. package/dist/schemas/user.schema.d.ts +8 -0
  44. package/dist/schemas/user.schema.js +1 -0
  45. package/dist/schemas/user.schema.js.map +1 -1
  46. package/package.json +3 -3
@@ -20,7 +20,7 @@ export declare const instanceAiConfirmationSeveritySchema: z.ZodEnum<["destructi
20
20
  export type InstanceAiConfirmationSeverity = z.infer<typeof instanceAiConfirmationSeveritySchema>;
21
21
  export declare const instanceAiAgentStatusSchema: z.ZodEnum<["active", "completed", "cancelled", "error"]>;
22
22
  export type InstanceAiAgentStatus = z.infer<typeof instanceAiAgentStatusSchema>;
23
- export declare const instanceAiAgentKindSchema: z.ZodEnum<["builder", "data-table", "researcher", "delegate", "browser-setup"]>;
23
+ export declare const instanceAiAgentKindSchema: z.ZodEnum<["builder", "data-table", "researcher", "delegate", "browser-setup", "planner"]>;
24
24
  export type InstanceAiAgentKind = z.infer<typeof instanceAiAgentKindSchema>;
25
25
  export declare const domainAccessActionSchema: z.ZodEnum<["allow_once", "allow_domain", "allow_all"]>;
26
26
  export type DomainAccessAction = z.infer<typeof domainAccessActionSchema>;
@@ -76,7 +76,7 @@ export declare const agentSpawnedPayloadSchema: z.ZodObject<{
76
76
  role: z.ZodString;
77
77
  tools: z.ZodArray<z.ZodString, "many">;
78
78
  taskId: z.ZodOptional<z.ZodString>;
79
- kind: z.ZodOptional<z.ZodEnum<["builder", "data-table", "researcher", "delegate", "browser-setup"]>>;
79
+ kind: z.ZodOptional<z.ZodEnum<["builder", "data-table", "researcher", "delegate", "browser-setup", "planner"]>>;
80
80
  title: z.ZodOptional<z.ZodString>;
81
81
  subtitle: z.ZodOptional<z.ZodString>;
82
82
  goal: z.ZodOptional<z.ZodString>;
@@ -99,7 +99,7 @@ export declare const agentSpawnedPayloadSchema: z.ZodObject<{
99
99
  tools: string[];
100
100
  title?: string | undefined;
101
101
  taskId?: string | undefined;
102
- kind?: "builder" | "data-table" | "researcher" | "delegate" | "browser-setup" | undefined;
102
+ kind?: "builder" | "data-table" | "researcher" | "delegate" | "browser-setup" | "planner" | undefined;
103
103
  subtitle?: string | undefined;
104
104
  goal?: string | undefined;
105
105
  targetResource?: {
@@ -113,7 +113,7 @@ export declare const agentSpawnedPayloadSchema: z.ZodObject<{
113
113
  tools: string[];
114
114
  title?: string | undefined;
115
115
  taskId?: string | undefined;
116
- kind?: "builder" | "data-table" | "researcher" | "delegate" | "browser-setup" | undefined;
116
+ kind?: "builder" | "data-table" | "researcher" | "delegate" | "browser-setup" | "planner" | undefined;
117
117
  subtitle?: string | undefined;
118
118
  goal?: string | undefined;
119
119
  targetResource?: {
@@ -467,6 +467,32 @@ export declare const taskListSchema: z.ZodObject<{
467
467
  }[];
468
468
  }>;
469
469
  export type TaskList = z.infer<typeof taskListSchema>;
470
+ export declare const plannedTaskArgSchema: z.ZodObject<{
471
+ id: z.ZodString;
472
+ title: z.ZodString;
473
+ kind: z.ZodString;
474
+ spec: z.ZodString;
475
+ deps: z.ZodArray<z.ZodString, "many">;
476
+ tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
477
+ workflowId: z.ZodOptional<z.ZodString>;
478
+ }, "strip", z.ZodTypeAny, {
479
+ id: string;
480
+ title: string;
481
+ kind: string;
482
+ spec: string;
483
+ deps: string[];
484
+ workflowId?: string | undefined;
485
+ tools?: string[] | undefined;
486
+ }, {
487
+ id: string;
488
+ title: string;
489
+ kind: string;
490
+ spec: string;
491
+ deps: string[];
492
+ workflowId?: string | undefined;
493
+ tools?: string[] | undefined;
494
+ }>;
495
+ export type PlannedTaskArg = z.infer<typeof plannedTaskArgSchema>;
470
496
  export declare const GATEWAY_CONFIRMATION_REQUIRED_PREFIX = "GATEWAY_CONFIRMATION_REQUIRED::";
471
497
  export declare const gatewayConfirmationRequiredPayloadSchema: z.ZodObject<{
472
498
  toolGroup: z.ZodString;
@@ -487,6 +513,7 @@ export declare const gatewayConfirmationRequiredPayloadSchema: z.ZodObject<{
487
513
  export type GatewayConfirmationRequiredPayload = z.infer<typeof gatewayConfirmationRequiredPayloadSchema>;
488
514
  export declare const confirmationRequestPayloadSchema: z.ZodObject<{
489
515
  requestId: z.ZodString;
516
+ inputThreadId: z.ZodOptional<z.ZodString>;
490
517
  toolCallId: z.ZodString;
491
518
  toolName: z.ZodString;
492
519
  args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -569,6 +596,31 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
569
596
  description: string;
570
597
  }[];
571
598
  }>>;
599
+ planItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
600
+ id: z.ZodString;
601
+ title: z.ZodString;
602
+ kind: z.ZodString;
603
+ spec: z.ZodString;
604
+ deps: z.ZodArray<z.ZodString, "many">;
605
+ tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
606
+ workflowId: z.ZodOptional<z.ZodString>;
607
+ }, "strip", z.ZodTypeAny, {
608
+ id: string;
609
+ title: string;
610
+ kind: string;
611
+ spec: string;
612
+ deps: string[];
613
+ workflowId?: string | undefined;
614
+ tools?: string[] | undefined;
615
+ }, {
616
+ id: string;
617
+ title: string;
618
+ kind: string;
619
+ spec: string;
620
+ deps: string[];
621
+ workflowId?: string | undefined;
622
+ tools?: string[] | undefined;
623
+ }>, "many">>;
572
624
  domainAccess: z.ZodOptional<z.ZodObject<{
573
625
  url: z.ZodString;
574
626
  host: z.ZodString;
@@ -821,6 +873,7 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
821
873
  description: string;
822
874
  }[];
823
875
  } | undefined;
876
+ inputThreadId?: string | undefined;
824
877
  credentialRequests?: {
825
878
  credentialType: string;
826
879
  reason: string;
@@ -838,6 +891,15 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
838
891
  }[] | undefined;
839
892
  inputType?: "text" | "approval" | "questions" | "plan-review" | "resource-decision" | undefined;
840
893
  introMessage?: string | undefined;
894
+ planItems?: {
895
+ id: string;
896
+ title: string;
897
+ kind: string;
898
+ spec: string;
899
+ deps: string[];
900
+ workflowId?: string | undefined;
901
+ tools?: string[] | undefined;
902
+ }[] | undefined;
841
903
  domainAccess?: {
842
904
  url: string;
843
905
  host: string;
@@ -911,6 +973,7 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
911
973
  description: string;
912
974
  }[];
913
975
  } | undefined;
976
+ inputThreadId?: string | undefined;
914
977
  credentialRequests?: {
915
978
  credentialType: string;
916
979
  reason: string;
@@ -928,6 +991,15 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
928
991
  }[] | undefined;
929
992
  inputType?: "text" | "approval" | "questions" | "plan-review" | "resource-decision" | undefined;
930
993
  introMessage?: string | undefined;
994
+ planItems?: {
995
+ id: string;
996
+ title: string;
997
+ kind: string;
998
+ spec: string;
999
+ deps: string[];
1000
+ workflowId?: string | undefined;
1001
+ tools?: string[] | undefined;
1002
+ }[] | undefined;
931
1003
  domainAccess?: {
932
1004
  url: string;
933
1005
  host: string;
@@ -1610,6 +1682,31 @@ export declare const tasksUpdatePayloadSchema: z.ZodObject<{
1610
1682
  description: string;
1611
1683
  }[];
1612
1684
  }>;
1685
+ planItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
1686
+ id: z.ZodString;
1687
+ title: z.ZodString;
1688
+ kind: z.ZodString;
1689
+ spec: z.ZodString;
1690
+ deps: z.ZodArray<z.ZodString, "many">;
1691
+ tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1692
+ workflowId: z.ZodOptional<z.ZodString>;
1693
+ }, "strip", z.ZodTypeAny, {
1694
+ id: string;
1695
+ title: string;
1696
+ kind: string;
1697
+ spec: string;
1698
+ deps: string[];
1699
+ workflowId?: string | undefined;
1700
+ tools?: string[] | undefined;
1701
+ }, {
1702
+ id: string;
1703
+ title: string;
1704
+ kind: string;
1705
+ spec: string;
1706
+ deps: string[];
1707
+ workflowId?: string | undefined;
1708
+ tools?: string[] | undefined;
1709
+ }>, "many">>;
1613
1710
  }, "strip", z.ZodTypeAny, {
1614
1711
  tasks: {
1615
1712
  tasks: {
@@ -1618,6 +1715,15 @@ export declare const tasksUpdatePayloadSchema: z.ZodObject<{
1618
1715
  description: string;
1619
1716
  }[];
1620
1717
  };
1718
+ planItems?: {
1719
+ id: string;
1720
+ title: string;
1721
+ kind: string;
1722
+ spec: string;
1723
+ deps: string[];
1724
+ workflowId?: string | undefined;
1725
+ tools?: string[] | undefined;
1726
+ }[] | undefined;
1621
1727
  }, {
1622
1728
  tasks: {
1623
1729
  tasks: {
@@ -1626,6 +1732,15 @@ export declare const tasksUpdatePayloadSchema: z.ZodObject<{
1626
1732
  description: string;
1627
1733
  }[];
1628
1734
  };
1735
+ planItems?: {
1736
+ id: string;
1737
+ title: string;
1738
+ kind: string;
1739
+ spec: string;
1740
+ deps: string[];
1741
+ workflowId?: string | undefined;
1742
+ tools?: string[] | undefined;
1743
+ }[] | undefined;
1629
1744
  }>;
1630
1745
  export declare const threadTitleUpdatedPayloadSchema: z.ZodObject<{
1631
1746
  title: z.ZodString;
@@ -1648,6 +1763,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
1648
1763
  runId: z.ZodString;
1649
1764
  agentId: z.ZodString;
1650
1765
  userId: z.ZodOptional<z.ZodString>;
1766
+ responseId: z.ZodOptional<z.ZodString>;
1651
1767
  type: z.ZodLiteral<"run-start">;
1652
1768
  }, "strip", z.ZodTypeAny, {
1653
1769
  type: "run-start";
@@ -1658,6 +1774,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
1658
1774
  };
1659
1775
  runId: string;
1660
1776
  userId?: string | undefined;
1777
+ responseId?: string | undefined;
1661
1778
  }, {
1662
1779
  type: "run-start";
1663
1780
  agentId: string;
@@ -1667,6 +1784,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
1667
1784
  };
1668
1785
  runId: string;
1669
1786
  userId?: string | undefined;
1787
+ responseId?: string | undefined;
1670
1788
  }>, z.ZodObject<{
1671
1789
  payload: z.ZodObject<{
1672
1790
  status: z.ZodEnum<["completed", "cancelled", "error"]>;
@@ -1681,6 +1799,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
1681
1799
  runId: z.ZodString;
1682
1800
  agentId: z.ZodString;
1683
1801
  userId: z.ZodOptional<z.ZodString>;
1802
+ responseId: z.ZodOptional<z.ZodString>;
1684
1803
  type: z.ZodLiteral<"run-finish">;
1685
1804
  }, "strip", z.ZodTypeAny, {
1686
1805
  type: "run-finish";
@@ -1691,6 +1810,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
1691
1810
  };
1692
1811
  runId: string;
1693
1812
  userId?: string | undefined;
1813
+ responseId?: string | undefined;
1694
1814
  }, {
1695
1815
  type: "run-finish";
1696
1816
  agentId: string;
@@ -1700,13 +1820,14 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
1700
1820
  };
1701
1821
  runId: string;
1702
1822
  userId?: string | undefined;
1823
+ responseId?: string | undefined;
1703
1824
  }>, z.ZodObject<{
1704
1825
  payload: z.ZodObject<{
1705
1826
  parentId: z.ZodString;
1706
1827
  role: z.ZodString;
1707
1828
  tools: z.ZodArray<z.ZodString, "many">;
1708
1829
  taskId: z.ZodOptional<z.ZodString>;
1709
- kind: z.ZodOptional<z.ZodEnum<["builder", "data-table", "researcher", "delegate", "browser-setup"]>>;
1830
+ kind: z.ZodOptional<z.ZodEnum<["builder", "data-table", "researcher", "delegate", "browser-setup", "planner"]>>;
1710
1831
  title: z.ZodOptional<z.ZodString>;
1711
1832
  subtitle: z.ZodOptional<z.ZodString>;
1712
1833
  goal: z.ZodOptional<z.ZodString>;
@@ -1729,7 +1850,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
1729
1850
  tools: string[];
1730
1851
  title?: string | undefined;
1731
1852
  taskId?: string | undefined;
1732
- kind?: "builder" | "data-table" | "researcher" | "delegate" | "browser-setup" | undefined;
1853
+ kind?: "builder" | "data-table" | "researcher" | "delegate" | "browser-setup" | "planner" | undefined;
1733
1854
  subtitle?: string | undefined;
1734
1855
  goal?: string | undefined;
1735
1856
  targetResource?: {
@@ -1743,7 +1864,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
1743
1864
  tools: string[];
1744
1865
  title?: string | undefined;
1745
1866
  taskId?: string | undefined;
1746
- kind?: "builder" | "data-table" | "researcher" | "delegate" | "browser-setup" | undefined;
1867
+ kind?: "builder" | "data-table" | "researcher" | "delegate" | "browser-setup" | "planner" | undefined;
1747
1868
  subtitle?: string | undefined;
1748
1869
  goal?: string | undefined;
1749
1870
  targetResource?: {
@@ -1755,6 +1876,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
1755
1876
  runId: z.ZodString;
1756
1877
  agentId: z.ZodString;
1757
1878
  userId: z.ZodOptional<z.ZodString>;
1879
+ responseId: z.ZodOptional<z.ZodString>;
1758
1880
  type: z.ZodLiteral<"agent-spawned">;
1759
1881
  }, "strip", z.ZodTypeAny, {
1760
1882
  type: "agent-spawned";
@@ -1765,7 +1887,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
1765
1887
  tools: string[];
1766
1888
  title?: string | undefined;
1767
1889
  taskId?: string | undefined;
1768
- kind?: "builder" | "data-table" | "researcher" | "delegate" | "browser-setup" | undefined;
1890
+ kind?: "builder" | "data-table" | "researcher" | "delegate" | "browser-setup" | "planner" | undefined;
1769
1891
  subtitle?: string | undefined;
1770
1892
  goal?: string | undefined;
1771
1893
  targetResource?: {
@@ -1776,6 +1898,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
1776
1898
  };
1777
1899
  runId: string;
1778
1900
  userId?: string | undefined;
1901
+ responseId?: string | undefined;
1779
1902
  }, {
1780
1903
  type: "agent-spawned";
1781
1904
  agentId: string;
@@ -1785,7 +1908,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
1785
1908
  tools: string[];
1786
1909
  title?: string | undefined;
1787
1910
  taskId?: string | undefined;
1788
- kind?: "builder" | "data-table" | "researcher" | "delegate" | "browser-setup" | undefined;
1911
+ kind?: "builder" | "data-table" | "researcher" | "delegate" | "browser-setup" | "planner" | undefined;
1789
1912
  subtitle?: string | undefined;
1790
1913
  goal?: string | undefined;
1791
1914
  targetResource?: {
@@ -1796,6 +1919,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
1796
1919
  };
1797
1920
  runId: string;
1798
1921
  userId?: string | undefined;
1922
+ responseId?: string | undefined;
1799
1923
  }>, z.ZodObject<{
1800
1924
  payload: z.ZodObject<{
1801
1925
  role: z.ZodString;
@@ -1813,6 +1937,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
1813
1937
  runId: z.ZodString;
1814
1938
  agentId: z.ZodString;
1815
1939
  userId: z.ZodOptional<z.ZodString>;
1940
+ responseId: z.ZodOptional<z.ZodString>;
1816
1941
  type: z.ZodLiteral<"agent-completed">;
1817
1942
  }, "strip", z.ZodTypeAny, {
1818
1943
  type: "agent-completed";
@@ -1824,6 +1949,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
1824
1949
  };
1825
1950
  runId: string;
1826
1951
  userId?: string | undefined;
1952
+ responseId?: string | undefined;
1827
1953
  }, {
1828
1954
  type: "agent-completed";
1829
1955
  agentId: string;
@@ -1834,6 +1960,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
1834
1960
  };
1835
1961
  runId: string;
1836
1962
  userId?: string | undefined;
1963
+ responseId?: string | undefined;
1837
1964
  }>, z.ZodObject<{
1838
1965
  payload: z.ZodObject<{
1839
1966
  text: z.ZodString;
@@ -1845,6 +1972,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
1845
1972
  runId: z.ZodString;
1846
1973
  agentId: z.ZodString;
1847
1974
  userId: z.ZodOptional<z.ZodString>;
1975
+ responseId: z.ZodOptional<z.ZodString>;
1848
1976
  type: z.ZodLiteral<"text-delta">;
1849
1977
  }, "strip", z.ZodTypeAny, {
1850
1978
  type: "text-delta";
@@ -1854,6 +1982,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
1854
1982
  };
1855
1983
  runId: string;
1856
1984
  userId?: string | undefined;
1985
+ responseId?: string | undefined;
1857
1986
  }, {
1858
1987
  type: "text-delta";
1859
1988
  agentId: string;
@@ -1862,6 +1991,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
1862
1991
  };
1863
1992
  runId: string;
1864
1993
  userId?: string | undefined;
1994
+ responseId?: string | undefined;
1865
1995
  }>, z.ZodObject<{
1866
1996
  payload: z.ZodObject<{
1867
1997
  text: z.ZodString;
@@ -1873,6 +2003,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
1873
2003
  runId: z.ZodString;
1874
2004
  agentId: z.ZodString;
1875
2005
  userId: z.ZodOptional<z.ZodString>;
2006
+ responseId: z.ZodOptional<z.ZodString>;
1876
2007
  type: z.ZodLiteral<"reasoning-delta">;
1877
2008
  }, "strip", z.ZodTypeAny, {
1878
2009
  type: "reasoning-delta";
@@ -1882,6 +2013,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
1882
2013
  };
1883
2014
  runId: string;
1884
2015
  userId?: string | undefined;
2016
+ responseId?: string | undefined;
1885
2017
  }, {
1886
2018
  type: "reasoning-delta";
1887
2019
  agentId: string;
@@ -1890,6 +2022,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
1890
2022
  };
1891
2023
  runId: string;
1892
2024
  userId?: string | undefined;
2025
+ responseId?: string | undefined;
1893
2026
  }>, z.ZodObject<{
1894
2027
  payload: z.ZodObject<{
1895
2028
  toolCallId: z.ZodString;
@@ -1907,6 +2040,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
1907
2040
  runId: z.ZodString;
1908
2041
  agentId: z.ZodString;
1909
2042
  userId: z.ZodOptional<z.ZodString>;
2043
+ responseId: z.ZodOptional<z.ZodString>;
1910
2044
  type: z.ZodLiteral<"tool-call">;
1911
2045
  }, "strip", z.ZodTypeAny, {
1912
2046
  type: "tool-call";
@@ -1918,6 +2052,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
1918
2052
  };
1919
2053
  runId: string;
1920
2054
  userId?: string | undefined;
2055
+ responseId?: string | undefined;
1921
2056
  }, {
1922
2057
  type: "tool-call";
1923
2058
  agentId: string;
@@ -1928,6 +2063,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
1928
2063
  };
1929
2064
  runId: string;
1930
2065
  userId?: string | undefined;
2066
+ responseId?: string | undefined;
1931
2067
  }>, z.ZodObject<{
1932
2068
  payload: z.ZodObject<{
1933
2069
  toolCallId: z.ZodString;
@@ -1942,6 +2078,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
1942
2078
  runId: z.ZodString;
1943
2079
  agentId: z.ZodString;
1944
2080
  userId: z.ZodOptional<z.ZodString>;
2081
+ responseId: z.ZodOptional<z.ZodString>;
1945
2082
  type: z.ZodLiteral<"tool-result">;
1946
2083
  }, "strip", z.ZodTypeAny, {
1947
2084
  type: "tool-result";
@@ -1952,6 +2089,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
1952
2089
  };
1953
2090
  runId: string;
1954
2091
  userId?: string | undefined;
2092
+ responseId?: string | undefined;
1955
2093
  }, {
1956
2094
  type: "tool-result";
1957
2095
  agentId: string;
@@ -1961,6 +2099,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
1961
2099
  };
1962
2100
  runId: string;
1963
2101
  userId?: string | undefined;
2102
+ responseId?: string | undefined;
1964
2103
  }>, z.ZodObject<{
1965
2104
  payload: z.ZodObject<{
1966
2105
  toolCallId: z.ZodString;
@@ -1975,6 +2114,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
1975
2114
  runId: z.ZodString;
1976
2115
  agentId: z.ZodString;
1977
2116
  userId: z.ZodOptional<z.ZodString>;
2117
+ responseId: z.ZodOptional<z.ZodString>;
1978
2118
  type: z.ZodLiteral<"tool-error">;
1979
2119
  }, "strip", z.ZodTypeAny, {
1980
2120
  type: "tool-error";
@@ -1985,6 +2125,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
1985
2125
  };
1986
2126
  runId: string;
1987
2127
  userId?: string | undefined;
2128
+ responseId?: string | undefined;
1988
2129
  }, {
1989
2130
  type: "tool-error";
1990
2131
  agentId: string;
@@ -1994,9 +2135,11 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
1994
2135
  };
1995
2136
  runId: string;
1996
2137
  userId?: string | undefined;
2138
+ responseId?: string | undefined;
1997
2139
  }>, z.ZodObject<{
1998
2140
  payload: z.ZodObject<{
1999
2141
  requestId: z.ZodString;
2142
+ inputThreadId: z.ZodOptional<z.ZodString>;
2000
2143
  toolCallId: z.ZodString;
2001
2144
  toolName: z.ZodString;
2002
2145
  args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -2079,6 +2222,31 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2079
2222
  description: string;
2080
2223
  }[];
2081
2224
  }>>;
2225
+ planItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
2226
+ id: z.ZodString;
2227
+ title: z.ZodString;
2228
+ kind: z.ZodString;
2229
+ spec: z.ZodString;
2230
+ deps: z.ZodArray<z.ZodString, "many">;
2231
+ tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2232
+ workflowId: z.ZodOptional<z.ZodString>;
2233
+ }, "strip", z.ZodTypeAny, {
2234
+ id: string;
2235
+ title: string;
2236
+ kind: string;
2237
+ spec: string;
2238
+ deps: string[];
2239
+ workflowId?: string | undefined;
2240
+ tools?: string[] | undefined;
2241
+ }, {
2242
+ id: string;
2243
+ title: string;
2244
+ kind: string;
2245
+ spec: string;
2246
+ deps: string[];
2247
+ workflowId?: string | undefined;
2248
+ tools?: string[] | undefined;
2249
+ }>, "many">>;
2082
2250
  domainAccess: z.ZodOptional<z.ZodObject<{
2083
2251
  url: z.ZodString;
2084
2252
  host: z.ZodString;
@@ -2331,6 +2499,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2331
2499
  description: string;
2332
2500
  }[];
2333
2501
  } | undefined;
2502
+ inputThreadId?: string | undefined;
2334
2503
  credentialRequests?: {
2335
2504
  credentialType: string;
2336
2505
  reason: string;
@@ -2348,6 +2517,15 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2348
2517
  }[] | undefined;
2349
2518
  inputType?: "text" | "approval" | "questions" | "plan-review" | "resource-decision" | undefined;
2350
2519
  introMessage?: string | undefined;
2520
+ planItems?: {
2521
+ id: string;
2522
+ title: string;
2523
+ kind: string;
2524
+ spec: string;
2525
+ deps: string[];
2526
+ workflowId?: string | undefined;
2527
+ tools?: string[] | undefined;
2528
+ }[] | undefined;
2351
2529
  domainAccess?: {
2352
2530
  url: string;
2353
2531
  host: string;
@@ -2421,6 +2599,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2421
2599
  description: string;
2422
2600
  }[];
2423
2601
  } | undefined;
2602
+ inputThreadId?: string | undefined;
2424
2603
  credentialRequests?: {
2425
2604
  credentialType: string;
2426
2605
  reason: string;
@@ -2438,6 +2617,15 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2438
2617
  }[] | undefined;
2439
2618
  inputType?: "text" | "approval" | "questions" | "plan-review" | "resource-decision" | undefined;
2440
2619
  introMessage?: string | undefined;
2620
+ planItems?: {
2621
+ id: string;
2622
+ title: string;
2623
+ kind: string;
2624
+ spec: string;
2625
+ deps: string[];
2626
+ workflowId?: string | undefined;
2627
+ tools?: string[] | undefined;
2628
+ }[] | undefined;
2441
2629
  domainAccess?: {
2442
2630
  url: string;
2443
2631
  host: string;
@@ -2499,6 +2687,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2499
2687
  runId: z.ZodString;
2500
2688
  agentId: z.ZodString;
2501
2689
  userId: z.ZodOptional<z.ZodString>;
2690
+ responseId: z.ZodOptional<z.ZodString>;
2502
2691
  type: z.ZodLiteral<"confirmation-request">;
2503
2692
  }, "strip", z.ZodTypeAny, {
2504
2693
  type: "confirmation-request";
@@ -2519,6 +2708,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2519
2708
  description: string;
2520
2709
  }[];
2521
2710
  } | undefined;
2711
+ inputThreadId?: string | undefined;
2522
2712
  credentialRequests?: {
2523
2713
  credentialType: string;
2524
2714
  reason: string;
@@ -2536,6 +2726,15 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2536
2726
  }[] | undefined;
2537
2727
  inputType?: "text" | "approval" | "questions" | "plan-review" | "resource-decision" | undefined;
2538
2728
  introMessage?: string | undefined;
2729
+ planItems?: {
2730
+ id: string;
2731
+ title: string;
2732
+ kind: string;
2733
+ spec: string;
2734
+ deps: string[];
2735
+ workflowId?: string | undefined;
2736
+ tools?: string[] | undefined;
2737
+ }[] | undefined;
2539
2738
  domainAccess?: {
2540
2739
  url: string;
2541
2740
  host: string;
@@ -2596,6 +2795,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2596
2795
  };
2597
2796
  runId: string;
2598
2797
  userId?: string | undefined;
2798
+ responseId?: string | undefined;
2599
2799
  }, {
2600
2800
  type: "confirmation-request";
2601
2801
  agentId: string;
@@ -2615,6 +2815,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2615
2815
  description: string;
2616
2816
  }[];
2617
2817
  } | undefined;
2818
+ inputThreadId?: string | undefined;
2618
2819
  credentialRequests?: {
2619
2820
  credentialType: string;
2620
2821
  reason: string;
@@ -2632,6 +2833,15 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2632
2833
  }[] | undefined;
2633
2834
  inputType?: "text" | "approval" | "questions" | "plan-review" | "resource-decision" | undefined;
2634
2835
  introMessage?: string | undefined;
2836
+ planItems?: {
2837
+ id: string;
2838
+ title: string;
2839
+ kind: string;
2840
+ spec: string;
2841
+ deps: string[];
2842
+ workflowId?: string | undefined;
2843
+ tools?: string[] | undefined;
2844
+ }[] | undefined;
2635
2845
  domainAccess?: {
2636
2846
  url: string;
2637
2847
  host: string;
@@ -2692,6 +2902,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2692
2902
  };
2693
2903
  runId: string;
2694
2904
  userId?: string | undefined;
2905
+ responseId?: string | undefined;
2695
2906
  }>, z.ZodObject<{
2696
2907
  payload: z.ZodObject<{
2697
2908
  tasks: z.ZodObject<{
@@ -2721,6 +2932,31 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2721
2932
  description: string;
2722
2933
  }[];
2723
2934
  }>;
2935
+ planItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
2936
+ id: z.ZodString;
2937
+ title: z.ZodString;
2938
+ kind: z.ZodString;
2939
+ spec: z.ZodString;
2940
+ deps: z.ZodArray<z.ZodString, "many">;
2941
+ tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2942
+ workflowId: z.ZodOptional<z.ZodString>;
2943
+ }, "strip", z.ZodTypeAny, {
2944
+ id: string;
2945
+ title: string;
2946
+ kind: string;
2947
+ spec: string;
2948
+ deps: string[];
2949
+ workflowId?: string | undefined;
2950
+ tools?: string[] | undefined;
2951
+ }, {
2952
+ id: string;
2953
+ title: string;
2954
+ kind: string;
2955
+ spec: string;
2956
+ deps: string[];
2957
+ workflowId?: string | undefined;
2958
+ tools?: string[] | undefined;
2959
+ }>, "many">>;
2724
2960
  }, "strip", z.ZodTypeAny, {
2725
2961
  tasks: {
2726
2962
  tasks: {
@@ -2729,6 +2965,15 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2729
2965
  description: string;
2730
2966
  }[];
2731
2967
  };
2968
+ planItems?: {
2969
+ id: string;
2970
+ title: string;
2971
+ kind: string;
2972
+ spec: string;
2973
+ deps: string[];
2974
+ workflowId?: string | undefined;
2975
+ tools?: string[] | undefined;
2976
+ }[] | undefined;
2732
2977
  }, {
2733
2978
  tasks: {
2734
2979
  tasks: {
@@ -2737,10 +2982,20 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2737
2982
  description: string;
2738
2983
  }[];
2739
2984
  };
2985
+ planItems?: {
2986
+ id: string;
2987
+ title: string;
2988
+ kind: string;
2989
+ spec: string;
2990
+ deps: string[];
2991
+ workflowId?: string | undefined;
2992
+ tools?: string[] | undefined;
2993
+ }[] | undefined;
2740
2994
  }>;
2741
2995
  runId: z.ZodString;
2742
2996
  agentId: z.ZodString;
2743
2997
  userId: z.ZodOptional<z.ZodString>;
2998
+ responseId: z.ZodOptional<z.ZodString>;
2744
2999
  type: z.ZodLiteral<"tasks-update">;
2745
3000
  }, "strip", z.ZodTypeAny, {
2746
3001
  type: "tasks-update";
@@ -2753,9 +3008,19 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2753
3008
  description: string;
2754
3009
  }[];
2755
3010
  };
3011
+ planItems?: {
3012
+ id: string;
3013
+ title: string;
3014
+ kind: string;
3015
+ spec: string;
3016
+ deps: string[];
3017
+ workflowId?: string | undefined;
3018
+ tools?: string[] | undefined;
3019
+ }[] | undefined;
2756
3020
  };
2757
3021
  runId: string;
2758
3022
  userId?: string | undefined;
3023
+ responseId?: string | undefined;
2759
3024
  }, {
2760
3025
  type: "tasks-update";
2761
3026
  agentId: string;
@@ -2767,9 +3032,19 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2767
3032
  description: string;
2768
3033
  }[];
2769
3034
  };
3035
+ planItems?: {
3036
+ id: string;
3037
+ title: string;
3038
+ kind: string;
3039
+ spec: string;
3040
+ deps: string[];
3041
+ workflowId?: string | undefined;
3042
+ tools?: string[] | undefined;
3043
+ }[] | undefined;
2770
3044
  };
2771
3045
  runId: string;
2772
3046
  userId?: string | undefined;
3047
+ responseId?: string | undefined;
2773
3048
  }>, z.ZodObject<{
2774
3049
  payload: z.ZodObject<{
2775
3050
  message: z.ZodString;
@@ -2781,6 +3056,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2781
3056
  runId: z.ZodString;
2782
3057
  agentId: z.ZodString;
2783
3058
  userId: z.ZodOptional<z.ZodString>;
3059
+ responseId: z.ZodOptional<z.ZodString>;
2784
3060
  type: z.ZodLiteral<"status">;
2785
3061
  }, "strip", z.ZodTypeAny, {
2786
3062
  type: "status";
@@ -2790,6 +3066,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2790
3066
  };
2791
3067
  runId: string;
2792
3068
  userId?: string | undefined;
3069
+ responseId?: string | undefined;
2793
3070
  }, {
2794
3071
  type: "status";
2795
3072
  agentId: string;
@@ -2798,6 +3075,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2798
3075
  };
2799
3076
  runId: string;
2800
3077
  userId?: string | undefined;
3078
+ responseId?: string | undefined;
2801
3079
  }>, z.ZodObject<{
2802
3080
  payload: z.ZodObject<{
2803
3081
  content: z.ZodString;
@@ -2818,6 +3096,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2818
3096
  runId: z.ZodString;
2819
3097
  agentId: z.ZodString;
2820
3098
  userId: z.ZodOptional<z.ZodString>;
3099
+ responseId: z.ZodOptional<z.ZodString>;
2821
3100
  type: z.ZodLiteral<"error">;
2822
3101
  }, "strip", z.ZodTypeAny, {
2823
3102
  type: "error";
@@ -2830,6 +3109,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2830
3109
  };
2831
3110
  runId: string;
2832
3111
  userId?: string | undefined;
3112
+ responseId?: string | undefined;
2833
3113
  }, {
2834
3114
  type: "error";
2835
3115
  agentId: string;
@@ -2841,6 +3121,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2841
3121
  };
2842
3122
  runId: string;
2843
3123
  userId?: string | undefined;
3124
+ responseId?: string | undefined;
2844
3125
  }>, z.ZodObject<{
2845
3126
  payload: z.ZodObject<{
2846
3127
  requestId: z.ZodString;
@@ -2870,6 +3151,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2870
3151
  runId: z.ZodString;
2871
3152
  agentId: z.ZodString;
2872
3153
  userId: z.ZodOptional<z.ZodString>;
3154
+ responseId: z.ZodOptional<z.ZodString>;
2873
3155
  type: z.ZodLiteral<"filesystem-request">;
2874
3156
  }, "strip", z.ZodTypeAny, {
2875
3157
  type: "filesystem-request";
@@ -2883,6 +3165,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2883
3165
  };
2884
3166
  runId: string;
2885
3167
  userId?: string | undefined;
3168
+ responseId?: string | undefined;
2886
3169
  }, {
2887
3170
  type: "filesystem-request";
2888
3171
  agentId: string;
@@ -2895,6 +3178,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2895
3178
  };
2896
3179
  runId: string;
2897
3180
  userId?: string | undefined;
3181
+ responseId?: string | undefined;
2898
3182
  }>, z.ZodObject<{
2899
3183
  payload: z.ZodObject<{
2900
3184
  title: z.ZodString;
@@ -2906,6 +3190,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2906
3190
  runId: z.ZodString;
2907
3191
  agentId: z.ZodString;
2908
3192
  userId: z.ZodOptional<z.ZodString>;
3193
+ responseId: z.ZodOptional<z.ZodString>;
2909
3194
  type: z.ZodLiteral<"thread-title-updated">;
2910
3195
  }, "strip", z.ZodTypeAny, {
2911
3196
  type: "thread-title-updated";
@@ -2915,6 +3200,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2915
3200
  };
2916
3201
  runId: string;
2917
3202
  userId?: string | undefined;
3203
+ responseId?: string | undefined;
2918
3204
  }, {
2919
3205
  type: "thread-title-updated";
2920
3206
  agentId: string;
@@ -2923,6 +3209,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2923
3209
  };
2924
3210
  runId: string;
2925
3211
  userId?: string | undefined;
3212
+ responseId?: string | undefined;
2926
3213
  }>]>;
2927
3214
  export type InstanceAiEvent = z.infer<typeof instanceAiEventSchema>;
2928
3215
  export type InstanceAiRunStartEvent = Extract<InstanceAiEvent, {
@@ -2996,7 +3283,7 @@ declare const InstanceAiSendMessageRequest_base: import("../zod-class").ZodClass
2996
3283
  pushRef?: string | undefined;
2997
3284
  researchMode?: boolean | undefined;
2998
3285
  }, {
2999
- message: z.ZodString;
3286
+ message: z.ZodDefault<z.ZodString>;
3000
3287
  researchMode: z.ZodOptional<z.ZodBoolean>;
3001
3288
  attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
3002
3289
  data: z.ZodString;
@@ -3023,13 +3310,6 @@ declare const InstanceAiCorrectTaskRequest_base: import("../zod-class").ZodClass
3023
3310
  }>;
3024
3311
  export declare class InstanceAiCorrectTaskRequest extends InstanceAiCorrectTaskRequest_base {
3025
3312
  }
3026
- declare const InstanceAiUpdateMemoryRequest_base: import("../zod-class").ZodClass<{
3027
- content: string;
3028
- }, {
3029
- content: z.ZodString;
3030
- }>;
3031
- export declare class InstanceAiUpdateMemoryRequest extends InstanceAiUpdateMemoryRequest_base {
3032
- }
3033
3313
  declare const InstanceAiEnsureThreadRequest_base: import("../zod-class").ZodClass<{
3034
3314
  threadId?: string | undefined;
3035
3315
  }, {
@@ -3087,6 +3367,29 @@ export interface InstanceAiConfirmResponse {
3087
3367
  skipped?: boolean;
3088
3368
  }>;
3089
3369
  }
3370
+ export interface InstanceAiConfirmation {
3371
+ requestId: string;
3372
+ inputThreadId?: string;
3373
+ severity: InstanceAiConfirmationSeverity;
3374
+ message: string;
3375
+ credentialRequests?: InstanceAiCredentialRequest[];
3376
+ projectId?: string;
3377
+ inputType?: 'approval' | 'text' | 'questions' | 'plan-review' | 'resource-decision';
3378
+ domainAccess?: DomainAccessMeta;
3379
+ credentialFlow?: InstanceAiCredentialFlow;
3380
+ setupRequests?: InstanceAiWorkflowSetupNode[];
3381
+ workflowId?: string;
3382
+ planItems?: PlannedTaskArg[];
3383
+ questions?: Array<{
3384
+ id: string;
3385
+ question: string;
3386
+ type: 'single' | 'multi' | 'text';
3387
+ options?: string[];
3388
+ }>;
3389
+ introMessage?: string;
3390
+ tasks?: TaskList;
3391
+ resourceDecision?: GatewayConfirmationRequiredPayload;
3392
+ }
3090
3393
  export interface InstanceAiToolCallState {
3091
3394
  toolCallId: string;
3092
3395
  toolName: string;
@@ -3094,28 +3397,8 @@ export interface InstanceAiToolCallState {
3094
3397
  result?: unknown;
3095
3398
  error?: string;
3096
3399
  isLoading: boolean;
3097
- renderHint?: 'tasks' | 'delegate' | 'builder' | 'data-table' | 'researcher' | 'default';
3098
- confirmation?: {
3099
- requestId: string;
3100
- severity: InstanceAiConfirmationSeverity;
3101
- message: string;
3102
- credentialRequests?: InstanceAiCredentialRequest[];
3103
- projectId?: string;
3104
- inputType?: 'approval' | 'text' | 'questions' | 'plan-review' | 'resource-decision';
3105
- domainAccess?: DomainAccessMeta;
3106
- credentialFlow?: InstanceAiCredentialFlow;
3107
- setupRequests?: InstanceAiWorkflowSetupNode[];
3108
- workflowId?: string;
3109
- questions?: Array<{
3110
- id: string;
3111
- question: string;
3112
- type: 'single' | 'multi' | 'text';
3113
- options?: string[];
3114
- }>;
3115
- introMessage?: string;
3116
- tasks?: TaskList;
3117
- resourceDecision?: GatewayConfirmationRequiredPayload;
3118
- };
3400
+ renderHint?: 'tasks' | 'delegate' | 'builder' | 'data-table' | 'researcher' | 'planner' | 'default';
3401
+ confirmation?: InstanceAiConfirmation;
3119
3402
  confirmationStatus?: 'pending' | 'approved' | 'denied';
3120
3403
  startedAt?: string;
3121
3404
  completedAt?: string;
@@ -3123,12 +3406,15 @@ export interface InstanceAiToolCallState {
3123
3406
  export type InstanceAiTimelineEntry = {
3124
3407
  type: 'text';
3125
3408
  content: string;
3409
+ responseId?: string;
3126
3410
  } | {
3127
3411
  type: 'tool-call';
3128
3412
  toolCallId: string;
3413
+ responseId?: string;
3129
3414
  } | {
3130
3415
  type: 'child';
3131
3416
  agentId: string;
3417
+ responseId?: string;
3132
3418
  };
3133
3419
  export interface InstanceAiAgentNode {
3134
3420
  agentId: string;
@@ -3148,6 +3434,7 @@ export interface InstanceAiAgentNode {
3148
3434
  children: InstanceAiAgentNode[];
3149
3435
  timeline: InstanceAiTimelineEntry[];
3150
3436
  tasks?: TaskList;
3437
+ planItems?: PlannedTaskArg[];
3151
3438
  result?: string;
3152
3439
  error?: string;
3153
3440
  errorDetails?: {
@@ -3173,6 +3460,7 @@ export interface InstanceAiThreadSummary {
3173
3460
  id: string;
3174
3461
  title: string;
3175
3462
  createdAt: string;
3463
+ metadata?: Record<string, unknown>;
3176
3464
  }
3177
3465
  export type InstanceAiSSEConnectionState = 'disconnected' | 'connecting' | 'connected' | 'reconnecting';
3178
3466
  export interface InstanceAiThreadInfo {
@@ -3204,10 +3492,6 @@ export interface InstanceAiThreadMessagesResponse {
3204
3492
  messages: InstanceAiStoredMessage[];
3205
3493
  threadId: string;
3206
3494
  }
3207
- export interface InstanceAiThreadContextResponse {
3208
- threadId: string;
3209
- workingMemory: string | null;
3210
- }
3211
3495
  export interface InstanceAiRichMessagesResponse {
3212
3496
  threadId: string;
3213
3497
  messages: InstanceAiMessage[];
@@ -3226,69 +3510,71 @@ export interface InstanceAiThreadStatusResponse {
3226
3510
  messageGroupId?: string;
3227
3511
  }>;
3228
3512
  }
3229
- declare const instanceAiPermissionModeSchema: z.ZodEnum<["require_approval", "always_allow"]>;
3513
+ declare const instanceAiPermissionModeSchema: z.ZodEnum<["require_approval", "always_allow", "blocked"]>;
3230
3514
  export type InstanceAiPermissionMode = z.infer<typeof instanceAiPermissionModeSchema>;
3231
3515
  declare const instanceAiPermissionsSchema: z.ZodObject<{
3232
- createWorkflow: z.ZodEnum<["require_approval", "always_allow"]>;
3233
- updateWorkflow: z.ZodEnum<["require_approval", "always_allow"]>;
3234
- runWorkflow: z.ZodEnum<["require_approval", "always_allow"]>;
3235
- publishWorkflow: z.ZodEnum<["require_approval", "always_allow"]>;
3236
- deleteWorkflow: z.ZodEnum<["require_approval", "always_allow"]>;
3237
- deleteCredential: z.ZodEnum<["require_approval", "always_allow"]>;
3238
- createFolder: z.ZodEnum<["require_approval", "always_allow"]>;
3239
- deleteFolder: z.ZodEnum<["require_approval", "always_allow"]>;
3240
- moveWorkflowToFolder: z.ZodEnum<["require_approval", "always_allow"]>;
3241
- tagWorkflow: z.ZodEnum<["require_approval", "always_allow"]>;
3242
- createDataTable: z.ZodEnum<["require_approval", "always_allow"]>;
3243
- deleteDataTable: z.ZodEnum<["require_approval", "always_allow"]>;
3244
- mutateDataTableSchema: z.ZodEnum<["require_approval", "always_allow"]>;
3245
- mutateDataTableRows: z.ZodEnum<["require_approval", "always_allow"]>;
3246
- cleanupTestExecutions: z.ZodEnum<["require_approval", "always_allow"]>;
3247
- readFilesystem: z.ZodEnum<["require_approval", "always_allow"]>;
3248
- fetchUrl: z.ZodEnum<["require_approval", "always_allow"]>;
3249
- restoreWorkflowVersion: z.ZodEnum<["require_approval", "always_allow"]>;
3516
+ createWorkflow: z.ZodEnum<["require_approval", "always_allow", "blocked"]>;
3517
+ updateWorkflow: z.ZodEnum<["require_approval", "always_allow", "blocked"]>;
3518
+ runWorkflow: z.ZodEnum<["require_approval", "always_allow", "blocked"]>;
3519
+ publishWorkflow: z.ZodEnum<["require_approval", "always_allow", "blocked"]>;
3520
+ deleteWorkflow: z.ZodEnum<["require_approval", "always_allow", "blocked"]>;
3521
+ deleteCredential: z.ZodEnum<["require_approval", "always_allow", "blocked"]>;
3522
+ createFolder: z.ZodEnum<["require_approval", "always_allow", "blocked"]>;
3523
+ deleteFolder: z.ZodEnum<["require_approval", "always_allow", "blocked"]>;
3524
+ moveWorkflowToFolder: z.ZodEnum<["require_approval", "always_allow", "blocked"]>;
3525
+ tagWorkflow: z.ZodEnum<["require_approval", "always_allow", "blocked"]>;
3526
+ createDataTable: z.ZodEnum<["require_approval", "always_allow", "blocked"]>;
3527
+ deleteDataTable: z.ZodEnum<["require_approval", "always_allow", "blocked"]>;
3528
+ mutateDataTableSchema: z.ZodEnum<["require_approval", "always_allow", "blocked"]>;
3529
+ mutateDataTableRows: z.ZodEnum<["require_approval", "always_allow", "blocked"]>;
3530
+ cleanupTestExecutions: z.ZodEnum<["require_approval", "always_allow", "blocked"]>;
3531
+ readFilesystem: z.ZodEnum<["require_approval", "always_allow", "blocked"]>;
3532
+ fetchUrl: z.ZodEnum<["require_approval", "always_allow", "blocked"]>;
3533
+ restoreWorkflowVersion: z.ZodEnum<["require_approval", "always_allow", "blocked"]>;
3250
3534
  }, "strip", z.ZodTypeAny, {
3251
- createWorkflow: "require_approval" | "always_allow";
3252
- updateWorkflow: "require_approval" | "always_allow";
3253
- runWorkflow: "require_approval" | "always_allow";
3254
- publishWorkflow: "require_approval" | "always_allow";
3255
- deleteWorkflow: "require_approval" | "always_allow";
3256
- deleteCredential: "require_approval" | "always_allow";
3257
- createFolder: "require_approval" | "always_allow";
3258
- deleteFolder: "require_approval" | "always_allow";
3259
- moveWorkflowToFolder: "require_approval" | "always_allow";
3260
- tagWorkflow: "require_approval" | "always_allow";
3261
- createDataTable: "require_approval" | "always_allow";
3262
- deleteDataTable: "require_approval" | "always_allow";
3263
- mutateDataTableSchema: "require_approval" | "always_allow";
3264
- mutateDataTableRows: "require_approval" | "always_allow";
3265
- cleanupTestExecutions: "require_approval" | "always_allow";
3266
- readFilesystem: "require_approval" | "always_allow";
3267
- fetchUrl: "require_approval" | "always_allow";
3268
- restoreWorkflowVersion: "require_approval" | "always_allow";
3535
+ createWorkflow: "require_approval" | "always_allow" | "blocked";
3536
+ updateWorkflow: "require_approval" | "always_allow" | "blocked";
3537
+ runWorkflow: "require_approval" | "always_allow" | "blocked";
3538
+ publishWorkflow: "require_approval" | "always_allow" | "blocked";
3539
+ deleteWorkflow: "require_approval" | "always_allow" | "blocked";
3540
+ deleteCredential: "require_approval" | "always_allow" | "blocked";
3541
+ createFolder: "require_approval" | "always_allow" | "blocked";
3542
+ deleteFolder: "require_approval" | "always_allow" | "blocked";
3543
+ moveWorkflowToFolder: "require_approval" | "always_allow" | "blocked";
3544
+ tagWorkflow: "require_approval" | "always_allow" | "blocked";
3545
+ createDataTable: "require_approval" | "always_allow" | "blocked";
3546
+ deleteDataTable: "require_approval" | "always_allow" | "blocked";
3547
+ mutateDataTableSchema: "require_approval" | "always_allow" | "blocked";
3548
+ mutateDataTableRows: "require_approval" | "always_allow" | "blocked";
3549
+ cleanupTestExecutions: "require_approval" | "always_allow" | "blocked";
3550
+ readFilesystem: "require_approval" | "always_allow" | "blocked";
3551
+ fetchUrl: "require_approval" | "always_allow" | "blocked";
3552
+ restoreWorkflowVersion: "require_approval" | "always_allow" | "blocked";
3269
3553
  }, {
3270
- createWorkflow: "require_approval" | "always_allow";
3271
- updateWorkflow: "require_approval" | "always_allow";
3272
- runWorkflow: "require_approval" | "always_allow";
3273
- publishWorkflow: "require_approval" | "always_allow";
3274
- deleteWorkflow: "require_approval" | "always_allow";
3275
- deleteCredential: "require_approval" | "always_allow";
3276
- createFolder: "require_approval" | "always_allow";
3277
- deleteFolder: "require_approval" | "always_allow";
3278
- moveWorkflowToFolder: "require_approval" | "always_allow";
3279
- tagWorkflow: "require_approval" | "always_allow";
3280
- createDataTable: "require_approval" | "always_allow";
3281
- deleteDataTable: "require_approval" | "always_allow";
3282
- mutateDataTableSchema: "require_approval" | "always_allow";
3283
- mutateDataTableRows: "require_approval" | "always_allow";
3284
- cleanupTestExecutions: "require_approval" | "always_allow";
3285
- readFilesystem: "require_approval" | "always_allow";
3286
- fetchUrl: "require_approval" | "always_allow";
3287
- restoreWorkflowVersion: "require_approval" | "always_allow";
3554
+ createWorkflow: "require_approval" | "always_allow" | "blocked";
3555
+ updateWorkflow: "require_approval" | "always_allow" | "blocked";
3556
+ runWorkflow: "require_approval" | "always_allow" | "blocked";
3557
+ publishWorkflow: "require_approval" | "always_allow" | "blocked";
3558
+ deleteWorkflow: "require_approval" | "always_allow" | "blocked";
3559
+ deleteCredential: "require_approval" | "always_allow" | "blocked";
3560
+ createFolder: "require_approval" | "always_allow" | "blocked";
3561
+ deleteFolder: "require_approval" | "always_allow" | "blocked";
3562
+ moveWorkflowToFolder: "require_approval" | "always_allow" | "blocked";
3563
+ tagWorkflow: "require_approval" | "always_allow" | "blocked";
3564
+ createDataTable: "require_approval" | "always_allow" | "blocked";
3565
+ deleteDataTable: "require_approval" | "always_allow" | "blocked";
3566
+ mutateDataTableSchema: "require_approval" | "always_allow" | "blocked";
3567
+ mutateDataTableRows: "require_approval" | "always_allow" | "blocked";
3568
+ cleanupTestExecutions: "require_approval" | "always_allow" | "blocked";
3569
+ readFilesystem: "require_approval" | "always_allow" | "blocked";
3570
+ fetchUrl: "require_approval" | "always_allow" | "blocked";
3571
+ restoreWorkflowVersion: "require_approval" | "always_allow" | "blocked";
3288
3572
  }>;
3289
3573
  export type InstanceAiPermissions = z.infer<typeof instanceAiPermissionsSchema>;
3290
3574
  export declare const DEFAULT_INSTANCE_AI_PERMISSIONS: InstanceAiPermissions;
3575
+ export declare function applyBranchReadOnlyOverrides(permissions: InstanceAiPermissions): InstanceAiPermissions;
3291
3576
  export interface InstanceAiAdminSettingsResponse {
3577
+ enabled: boolean;
3292
3578
  lastMessages: number;
3293
3579
  embedderModel: string;
3294
3580
  semanticRecallTopK: number;
@@ -3304,32 +3590,34 @@ export interface InstanceAiAdminSettingsResponse {
3304
3590
  n8nSandboxCredentialId: string | null;
3305
3591
  searchCredentialId: string | null;
3306
3592
  localGatewayDisabled: boolean;
3593
+ optinModalDismissed: boolean;
3307
3594
  }
3308
3595
  declare const InstanceAiAdminSettingsUpdateRequest_base: import("../zod-class").ZodClass<{
3596
+ enabled?: boolean | undefined;
3309
3597
  lastMessages?: number | undefined;
3310
3598
  embedderModel?: string | undefined;
3311
3599
  semanticRecallTopK?: number | undefined;
3312
3600
  subAgentMaxSteps?: number | undefined;
3313
3601
  browserMcp?: boolean | undefined;
3314
3602
  permissions?: {
3315
- createWorkflow?: "require_approval" | "always_allow" | undefined;
3316
- updateWorkflow?: "require_approval" | "always_allow" | undefined;
3317
- runWorkflow?: "require_approval" | "always_allow" | undefined;
3318
- publishWorkflow?: "require_approval" | "always_allow" | undefined;
3319
- deleteWorkflow?: "require_approval" | "always_allow" | undefined;
3320
- deleteCredential?: "require_approval" | "always_allow" | undefined;
3321
- createFolder?: "require_approval" | "always_allow" | undefined;
3322
- deleteFolder?: "require_approval" | "always_allow" | undefined;
3323
- moveWorkflowToFolder?: "require_approval" | "always_allow" | undefined;
3324
- tagWorkflow?: "require_approval" | "always_allow" | undefined;
3325
- createDataTable?: "require_approval" | "always_allow" | undefined;
3326
- deleteDataTable?: "require_approval" | "always_allow" | undefined;
3327
- mutateDataTableSchema?: "require_approval" | "always_allow" | undefined;
3328
- mutateDataTableRows?: "require_approval" | "always_allow" | undefined;
3329
- cleanupTestExecutions?: "require_approval" | "always_allow" | undefined;
3330
- readFilesystem?: "require_approval" | "always_allow" | undefined;
3331
- fetchUrl?: "require_approval" | "always_allow" | undefined;
3332
- restoreWorkflowVersion?: "require_approval" | "always_allow" | undefined;
3603
+ createWorkflow?: "require_approval" | "always_allow" | "blocked" | undefined;
3604
+ updateWorkflow?: "require_approval" | "always_allow" | "blocked" | undefined;
3605
+ runWorkflow?: "require_approval" | "always_allow" | "blocked" | undefined;
3606
+ publishWorkflow?: "require_approval" | "always_allow" | "blocked" | undefined;
3607
+ deleteWorkflow?: "require_approval" | "always_allow" | "blocked" | undefined;
3608
+ deleteCredential?: "require_approval" | "always_allow" | "blocked" | undefined;
3609
+ createFolder?: "require_approval" | "always_allow" | "blocked" | undefined;
3610
+ deleteFolder?: "require_approval" | "always_allow" | "blocked" | undefined;
3611
+ moveWorkflowToFolder?: "require_approval" | "always_allow" | "blocked" | undefined;
3612
+ tagWorkflow?: "require_approval" | "always_allow" | "blocked" | undefined;
3613
+ createDataTable?: "require_approval" | "always_allow" | "blocked" | undefined;
3614
+ deleteDataTable?: "require_approval" | "always_allow" | "blocked" | undefined;
3615
+ mutateDataTableSchema?: "require_approval" | "always_allow" | "blocked" | undefined;
3616
+ mutateDataTableRows?: "require_approval" | "always_allow" | "blocked" | undefined;
3617
+ cleanupTestExecutions?: "require_approval" | "always_allow" | "blocked" | undefined;
3618
+ readFilesystem?: "require_approval" | "always_allow" | "blocked" | undefined;
3619
+ fetchUrl?: "require_approval" | "always_allow" | "blocked" | undefined;
3620
+ restoreWorkflowVersion?: "require_approval" | "always_allow" | "blocked" | undefined;
3333
3621
  } | undefined;
3334
3622
  mcpServers?: string | undefined;
3335
3623
  sandboxEnabled?: boolean | undefined;
@@ -3340,69 +3628,71 @@ declare const InstanceAiAdminSettingsUpdateRequest_base: import("../zod-class").
3340
3628
  n8nSandboxCredentialId?: string | null | undefined;
3341
3629
  searchCredentialId?: string | null | undefined;
3342
3630
  localGatewayDisabled?: boolean | undefined;
3631
+ optinModalDismissed?: boolean | undefined;
3343
3632
  }, {
3633
+ enabled: z.ZodOptional<z.ZodBoolean>;
3344
3634
  lastMessages: z.ZodOptional<z.ZodNumber>;
3345
3635
  embedderModel: z.ZodOptional<z.ZodString>;
3346
3636
  semanticRecallTopK: z.ZodOptional<z.ZodNumber>;
3347
3637
  subAgentMaxSteps: z.ZodOptional<z.ZodNumber>;
3348
3638
  browserMcp: z.ZodOptional<z.ZodBoolean>;
3349
3639
  permissions: z.ZodOptional<z.ZodObject<{
3350
- createWorkflow: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow"]>>;
3351
- updateWorkflow: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow"]>>;
3352
- runWorkflow: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow"]>>;
3353
- publishWorkflow: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow"]>>;
3354
- deleteWorkflow: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow"]>>;
3355
- deleteCredential: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow"]>>;
3356
- createFolder: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow"]>>;
3357
- deleteFolder: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow"]>>;
3358
- moveWorkflowToFolder: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow"]>>;
3359
- tagWorkflow: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow"]>>;
3360
- createDataTable: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow"]>>;
3361
- deleteDataTable: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow"]>>;
3362
- mutateDataTableSchema: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow"]>>;
3363
- mutateDataTableRows: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow"]>>;
3364
- cleanupTestExecutions: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow"]>>;
3365
- readFilesystem: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow"]>>;
3366
- fetchUrl: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow"]>>;
3367
- restoreWorkflowVersion: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow"]>>;
3640
+ createWorkflow: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow", "blocked"]>>;
3641
+ updateWorkflow: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow", "blocked"]>>;
3642
+ runWorkflow: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow", "blocked"]>>;
3643
+ publishWorkflow: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow", "blocked"]>>;
3644
+ deleteWorkflow: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow", "blocked"]>>;
3645
+ deleteCredential: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow", "blocked"]>>;
3646
+ createFolder: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow", "blocked"]>>;
3647
+ deleteFolder: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow", "blocked"]>>;
3648
+ moveWorkflowToFolder: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow", "blocked"]>>;
3649
+ tagWorkflow: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow", "blocked"]>>;
3650
+ createDataTable: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow", "blocked"]>>;
3651
+ deleteDataTable: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow", "blocked"]>>;
3652
+ mutateDataTableSchema: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow", "blocked"]>>;
3653
+ mutateDataTableRows: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow", "blocked"]>>;
3654
+ cleanupTestExecutions: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow", "blocked"]>>;
3655
+ readFilesystem: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow", "blocked"]>>;
3656
+ fetchUrl: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow", "blocked"]>>;
3657
+ restoreWorkflowVersion: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow", "blocked"]>>;
3368
3658
  }, "strip", z.ZodTypeAny, {
3369
- createWorkflow?: "require_approval" | "always_allow" | undefined;
3370
- updateWorkflow?: "require_approval" | "always_allow" | undefined;
3371
- runWorkflow?: "require_approval" | "always_allow" | undefined;
3372
- publishWorkflow?: "require_approval" | "always_allow" | undefined;
3373
- deleteWorkflow?: "require_approval" | "always_allow" | undefined;
3374
- deleteCredential?: "require_approval" | "always_allow" | undefined;
3375
- createFolder?: "require_approval" | "always_allow" | undefined;
3376
- deleteFolder?: "require_approval" | "always_allow" | undefined;
3377
- moveWorkflowToFolder?: "require_approval" | "always_allow" | undefined;
3378
- tagWorkflow?: "require_approval" | "always_allow" | undefined;
3379
- createDataTable?: "require_approval" | "always_allow" | undefined;
3380
- deleteDataTable?: "require_approval" | "always_allow" | undefined;
3381
- mutateDataTableSchema?: "require_approval" | "always_allow" | undefined;
3382
- mutateDataTableRows?: "require_approval" | "always_allow" | undefined;
3383
- cleanupTestExecutions?: "require_approval" | "always_allow" | undefined;
3384
- readFilesystem?: "require_approval" | "always_allow" | undefined;
3385
- fetchUrl?: "require_approval" | "always_allow" | undefined;
3386
- restoreWorkflowVersion?: "require_approval" | "always_allow" | undefined;
3659
+ createWorkflow?: "require_approval" | "always_allow" | "blocked" | undefined;
3660
+ updateWorkflow?: "require_approval" | "always_allow" | "blocked" | undefined;
3661
+ runWorkflow?: "require_approval" | "always_allow" | "blocked" | undefined;
3662
+ publishWorkflow?: "require_approval" | "always_allow" | "blocked" | undefined;
3663
+ deleteWorkflow?: "require_approval" | "always_allow" | "blocked" | undefined;
3664
+ deleteCredential?: "require_approval" | "always_allow" | "blocked" | undefined;
3665
+ createFolder?: "require_approval" | "always_allow" | "blocked" | undefined;
3666
+ deleteFolder?: "require_approval" | "always_allow" | "blocked" | undefined;
3667
+ moveWorkflowToFolder?: "require_approval" | "always_allow" | "blocked" | undefined;
3668
+ tagWorkflow?: "require_approval" | "always_allow" | "blocked" | undefined;
3669
+ createDataTable?: "require_approval" | "always_allow" | "blocked" | undefined;
3670
+ deleteDataTable?: "require_approval" | "always_allow" | "blocked" | undefined;
3671
+ mutateDataTableSchema?: "require_approval" | "always_allow" | "blocked" | undefined;
3672
+ mutateDataTableRows?: "require_approval" | "always_allow" | "blocked" | undefined;
3673
+ cleanupTestExecutions?: "require_approval" | "always_allow" | "blocked" | undefined;
3674
+ readFilesystem?: "require_approval" | "always_allow" | "blocked" | undefined;
3675
+ fetchUrl?: "require_approval" | "always_allow" | "blocked" | undefined;
3676
+ restoreWorkflowVersion?: "require_approval" | "always_allow" | "blocked" | undefined;
3387
3677
  }, {
3388
- createWorkflow?: "require_approval" | "always_allow" | undefined;
3389
- updateWorkflow?: "require_approval" | "always_allow" | undefined;
3390
- runWorkflow?: "require_approval" | "always_allow" | undefined;
3391
- publishWorkflow?: "require_approval" | "always_allow" | undefined;
3392
- deleteWorkflow?: "require_approval" | "always_allow" | undefined;
3393
- deleteCredential?: "require_approval" | "always_allow" | undefined;
3394
- createFolder?: "require_approval" | "always_allow" | undefined;
3395
- deleteFolder?: "require_approval" | "always_allow" | undefined;
3396
- moveWorkflowToFolder?: "require_approval" | "always_allow" | undefined;
3397
- tagWorkflow?: "require_approval" | "always_allow" | undefined;
3398
- createDataTable?: "require_approval" | "always_allow" | undefined;
3399
- deleteDataTable?: "require_approval" | "always_allow" | undefined;
3400
- mutateDataTableSchema?: "require_approval" | "always_allow" | undefined;
3401
- mutateDataTableRows?: "require_approval" | "always_allow" | undefined;
3402
- cleanupTestExecutions?: "require_approval" | "always_allow" | undefined;
3403
- readFilesystem?: "require_approval" | "always_allow" | undefined;
3404
- fetchUrl?: "require_approval" | "always_allow" | undefined;
3405
- restoreWorkflowVersion?: "require_approval" | "always_allow" | undefined;
3678
+ createWorkflow?: "require_approval" | "always_allow" | "blocked" | undefined;
3679
+ updateWorkflow?: "require_approval" | "always_allow" | "blocked" | undefined;
3680
+ runWorkflow?: "require_approval" | "always_allow" | "blocked" | undefined;
3681
+ publishWorkflow?: "require_approval" | "always_allow" | "blocked" | undefined;
3682
+ deleteWorkflow?: "require_approval" | "always_allow" | "blocked" | undefined;
3683
+ deleteCredential?: "require_approval" | "always_allow" | "blocked" | undefined;
3684
+ createFolder?: "require_approval" | "always_allow" | "blocked" | undefined;
3685
+ deleteFolder?: "require_approval" | "always_allow" | "blocked" | undefined;
3686
+ moveWorkflowToFolder?: "require_approval" | "always_allow" | "blocked" | undefined;
3687
+ tagWorkflow?: "require_approval" | "always_allow" | "blocked" | undefined;
3688
+ createDataTable?: "require_approval" | "always_allow" | "blocked" | undefined;
3689
+ deleteDataTable?: "require_approval" | "always_allow" | "blocked" | undefined;
3690
+ mutateDataTableSchema?: "require_approval" | "always_allow" | "blocked" | undefined;
3691
+ mutateDataTableRows?: "require_approval" | "always_allow" | "blocked" | undefined;
3692
+ cleanupTestExecutions?: "require_approval" | "always_allow" | "blocked" | undefined;
3693
+ readFilesystem?: "require_approval" | "always_allow" | "blocked" | undefined;
3694
+ fetchUrl?: "require_approval" | "always_allow" | "blocked" | undefined;
3695
+ restoreWorkflowVersion?: "require_approval" | "always_allow" | "blocked" | undefined;
3406
3696
  }>>;
3407
3697
  mcpServers: z.ZodOptional<z.ZodString>;
3408
3698
  sandboxEnabled: z.ZodOptional<z.ZodBoolean>;
@@ -3413,6 +3703,7 @@ declare const InstanceAiAdminSettingsUpdateRequest_base: import("../zod-class").
3413
3703
  n8nSandboxCredentialId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3414
3704
  searchCredentialId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3415
3705
  localGatewayDisabled: z.ZodOptional<z.ZodBoolean>;
3706
+ optinModalDismissed: z.ZodOptional<z.ZodBoolean>;
3416
3707
  }>;
3417
3708
  export declare class InstanceAiAdminSettingsUpdateRequest extends InstanceAiAdminSettingsUpdateRequest_base {
3418
3709
  }
@@ -3441,4 +3732,42 @@ export interface InstanceAiModelCredential {
3441
3732
  provider: string;
3442
3733
  }
3443
3734
  export declare function getRenderHint(toolName: string): InstanceAiToolCallState['renderHint'];
3735
+ export type InstanceAiEvalNodeExecutionMode = 'mocked' | 'pinned' | 'real';
3736
+ export interface InstanceAiEvalInterceptedRequest {
3737
+ url: string;
3738
+ method: string;
3739
+ nodeType: string;
3740
+ requestBody?: unknown;
3741
+ mockResponse?: unknown;
3742
+ }
3743
+ export interface InstanceAiEvalNodeResult {
3744
+ output: unknown;
3745
+ interceptedRequests: InstanceAiEvalInterceptedRequest[];
3746
+ executionMode: InstanceAiEvalNodeExecutionMode;
3747
+ configIssues?: Record<string, string[]>;
3748
+ startTime?: number;
3749
+ }
3750
+ export interface InstanceAiEvalMockHints {
3751
+ globalContext: string;
3752
+ triggerContent: Record<string, unknown>;
3753
+ nodeHints: Record<string, string>;
3754
+ warnings: string[];
3755
+ bypassPinData: Record<string, Array<{
3756
+ json: Record<string, unknown>;
3757
+ }>>;
3758
+ }
3759
+ export interface InstanceAiEvalExecutionResult {
3760
+ executionId: string;
3761
+ success: boolean;
3762
+ nodeResults: Record<string, InstanceAiEvalNodeResult>;
3763
+ errors: string[];
3764
+ hints: InstanceAiEvalMockHints;
3765
+ }
3766
+ declare const InstanceAiEvalExecutionRequest_base: import("../zod-class").ZodClass<{
3767
+ scenarioHints?: string | undefined;
3768
+ }, {
3769
+ scenarioHints: z.ZodOptional<z.ZodString>;
3770
+ }>;
3771
+ export declare class InstanceAiEvalExecutionRequest extends InstanceAiEvalExecutionRequest_base {
3772
+ }
3444
3773
  export {};