@n8n/api-types 1.35.1 → 1.36.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.
- package/dist/agent-builder-tool-node-types.js +1 -0
- package/dist/agent-builder-tool-node-types.js.map +1 -1
- package/dist/agents/agent-files.constants.d.ts +1 -1
- package/dist/agents/agent-files.constants.js +1 -1
- package/dist/agents/agent-interaction.schema.d.ts +3 -0
- package/dist/agents/agent-interaction.schema.js +1 -0
- package/dist/agents/agent-interaction.schema.js.map +1 -1
- package/dist/agents/dto.d.ts +21 -0
- package/dist/agents/dto.js +9 -1
- package/dist/agents/dto.js.map +1 -1
- package/dist/agents/model-providers.d.ts +1 -0
- package/dist/agents/provider-capabilities.js +22 -1
- package/dist/agents/provider-capabilities.js.map +1 -1
- package/dist/agents/slack/dto.d.ts +22 -0
- package/dist/agents/slack/dto.js +15 -1
- package/dist/agents/slack/dto.js.map +1 -1
- package/dist/agents/slack/types.d.ts +52 -0
- package/dist/agents/sub-agent.schema.d.ts +1 -0
- package/dist/agents/types.d.ts +17 -0
- package/dist/agents/types.js.map +1 -1
- package/dist/build.tsbuildinfo +1 -1
- package/dist/consent.d.ts +4 -0
- package/dist/consent.js +3 -0
- package/dist/consent.js.map +1 -0
- package/dist/constants/instance-ai-models.d.ts +4 -0
- package/dist/constants/instance-ai-models.js +11 -0
- package/dist/constants/instance-ai-models.js.map +1 -0
- package/dist/constants/proxy-feature.d.ts +7 -1
- package/dist/constants/proxy-feature.js +5 -1
- package/dist/constants/proxy-feature.js.map +1 -1
- package/dist/dto/ai/ai-gateway-wallet-response.dto.d.ts +5 -0
- package/dist/dto/ai/ai-gateway-wallet-response.dto.js +3 -0
- package/dist/dto/ai/ai-gateway-wallet-response.dto.js.map +1 -0
- package/dist/dto/credentials/credential-connection-status.d.ts +1 -0
- package/dist/dto/index.d.ts +8 -2
- package/dist/dto/index.js +22 -3
- package/dist/dto/index.js.map +1 -1
- package/dist/dto/instance-ai/instance-ai-confirm-request.dto.d.ts +23 -3
- package/dist/dto/instance-ai/instance-ai-confirm-request.dto.js +7 -4
- package/dist/dto/instance-ai/instance-ai-confirm-request.dto.js.map +1 -1
- package/dist/dto/packages/export-package-request.dto.d.ts +2 -0
- package/dist/dto/packages/export-package-request.dto.js +4 -0
- package/dist/dto/packages/export-package-request.dto.js.map +1 -1
- package/dist/dto/roles/role-mapping-rule-public.dto.d.ts +23 -0
- package/dist/dto/roles/role-mapping-rule-public.dto.js +18 -0
- package/dist/dto/roles/role-mapping-rule-public.dto.js.map +1 -0
- package/dist/dto/roles/role-public.dto.d.ts +143 -0
- package/dist/dto/roles/role-public.dto.js +26 -1
- package/dist/dto/roles/role-public.dto.js.map +1 -1
- package/dist/dto/roles/update-role-public.dto.d.ts +13 -0
- package/dist/dto/roles/update-role-public.dto.js +14 -0
- package/dist/dto/roles/update-role-public.dto.js.map +1 -0
- package/dist/dto/workflow-reviews/create-workflow-review-request.dto.d.ts +2 -2
- package/dist/dto/workflow-reviews/create-workflow-review-request.dto.js +1 -1
- package/dist/dto/workflow-reviews/create-workflow-review-request.dto.js.map +1 -1
- package/dist/dto/workflow-reviews/decide-workflow-review-request.dto.d.ts +2 -0
- package/dist/dto/workflow-reviews/decide-workflow-review-request.dto.js +2 -0
- package/dist/dto/workflow-reviews/decide-workflow-review-request.dto.js.map +1 -1
- package/dist/dto/workflow-reviews/get-workflow-review-request-detail.dto.d.ts +2 -1
- package/dist/dto/workflow-reviews/list-workflow-review-inbox.dto.d.ts +5 -0
- package/dist/dto/workflow-reviews/list-workflow-review-inbox.dto.js +3 -1
- package/dist/dto/workflow-reviews/list-workflow-review-inbox.dto.js.map +1 -1
- package/dist/dto/workflow-reviews/list-workflow-review-requests-query.dto.d.ts +1 -0
- package/dist/dto/workflow-reviews/update-workflow-review-request-version.dto.d.ts +7 -4
- package/dist/dto/workflow-reviews/update-workflow-review-request-version.dto.js +2 -0
- package/dist/dto/workflow-reviews/update-workflow-review-request-version.dto.js.map +1 -1
- package/dist/dto/workflow-reviews/workflow-review-activity.dto.d.ts +26 -0
- package/dist/dto/workflow-reviews/workflow-review-activity.dto.js +24 -0
- package/dist/dto/workflow-reviews/workflow-review-activity.dto.js.map +1 -0
- package/dist/dto/workflows/base-workflow.dto.d.ts +1 -3
- package/dist/dto/workflows/base-workflow.dto.js +1 -15
- package/dist/dto/workflows/base-workflow.dto.js.map +1 -1
- package/dist/dto/workflows/create-workflow.dto.d.ts +0 -2
- package/dist/dto/workflows/list-workflows-query.dto.d.ts +23 -0
- package/dist/dto/workflows/list-workflows-query.dto.js +19 -0
- package/dist/dto/workflows/list-workflows-query.dto.js.map +1 -0
- package/dist/dto/workflows/update-workflow.dto.d.ts +0 -2
- package/dist/dto/workflows/workflow-public.dto.d.ts +1094 -0
- package/dist/dto/workflows/workflow-public.dto.js +25 -1
- package/dist/dto/workflows/workflow-public.dto.js.map +1 -1
- package/dist/dto/workflows/workflow-tags-public.dto.d.ts +36 -0
- package/dist/dto/workflows/workflow-tags-public.dto.js +13 -0
- package/dist/dto/workflows/workflow-tags-public.dto.js.map +1 -0
- package/dist/frontend-settings.d.ts +2 -0
- package/dist/index.d.ts +11 -7
- package/dist/index.js +40 -6
- package/dist/index.js.map +1 -1
- package/dist/schemas/agent-evals.schema.d.ts +2 -0
- package/dist/schemas/agent-evals.schema.js +3 -1
- package/dist/schemas/agent-evals.schema.js.map +1 -1
- package/dist/schemas/agent-run-reducer.js +1 -0
- package/dist/schemas/agent-run-reducer.js.map +1 -1
- package/dist/schemas/instance-ai.schema.d.ts +669 -0
- package/dist/schemas/instance-ai.schema.js +146 -8
- package/dist/schemas/instance-ai.schema.js.map +1 -1
- package/dist/schemas/mcp.schema.d.ts +1 -1
- package/dist/schemas/mcp.schema.js +1 -0
- package/dist/schemas/mcp.schema.js.map +1 -1
- package/dist/workflow-review-activity.d.ts +112 -0
- package/dist/workflow-review-activity.js +29 -0
- package/dist/workflow-review-activity.js.map +1 -0
- package/dist/zod-class.d.ts +7 -0
- package/dist/zod-class.js +19 -0
- package/dist/zod-class.js.map +1 -1
- package/package.json +6 -6
|
@@ -8,7 +8,10 @@ export type InstanceAiCredits = {
|
|
|
8
8
|
};
|
|
9
9
|
export declare const AI_GATEWAY_MANAGED_TAG = "__AI_GATEWAY_MANAGED__";
|
|
10
10
|
export declare function buildRunWorkflowSessionGrantKey(workflowId: string): string;
|
|
11
|
+
export declare function buildUpdateWorkflowSessionGrantKey(workflowId: string): string;
|
|
11
12
|
export declare function buildDataTablesSessionGrantKey(action: string): string;
|
|
13
|
+
export declare function buildSetupSkipGrantKey(subject: string): string;
|
|
14
|
+
export declare function parseSetupSkipGrants(keys: ReadonlySet<string>): Set<string>;
|
|
12
15
|
export declare function buildFetchUrlGrantKey(host: string): string;
|
|
13
16
|
export declare const FETCH_URL_ALLOW_ALL_GRANT_KEY = "fetch-url:*";
|
|
14
17
|
export declare const WEB_SEARCH_GRANT_KEY = "web-search";
|
|
@@ -37,6 +40,20 @@ export declare const instanceAiRunStatusSchema: z.ZodEnum<["completed", "cancell
|
|
|
37
40
|
export type InstanceAiRunStatus = z.infer<typeof instanceAiRunStatusSchema>;
|
|
38
41
|
export declare const instanceAiConfirmationSeveritySchema: z.ZodEnum<["destructive", "warning", "info"]>;
|
|
39
42
|
export type InstanceAiConfirmationSeverity = z.infer<typeof instanceAiConfirmationSeveritySchema>;
|
|
43
|
+
export declare const instanceAiApprovalResumeSchema: z.ZodObject<{
|
|
44
|
+
approved: z.ZodBoolean;
|
|
45
|
+
userInput: z.ZodOptional<z.ZodString>;
|
|
46
|
+
scope: z.ZodOptional<z.ZodEnum<["once", "session"]>>;
|
|
47
|
+
}, "strip", z.ZodTypeAny, {
|
|
48
|
+
approved: boolean;
|
|
49
|
+
userInput?: string | undefined;
|
|
50
|
+
scope?: "once" | "session" | undefined;
|
|
51
|
+
}, {
|
|
52
|
+
approved: boolean;
|
|
53
|
+
userInput?: string | undefined;
|
|
54
|
+
scope?: "once" | "session" | undefined;
|
|
55
|
+
}>;
|
|
56
|
+
export type InstanceAiApprovalResumeData = z.infer<typeof instanceAiApprovalResumeSchema>;
|
|
40
57
|
export declare const instanceAiAgentStatusSchema: z.ZodEnum<["active", "completed", "cancelled", "error"]>;
|
|
41
58
|
export type InstanceAiAgentStatus = z.infer<typeof instanceAiAgentStatusSchema>;
|
|
42
59
|
export declare const instanceAiAgentKindSchema: z.ZodEnum<["builder", "data-table", "planner", "eval-setup", "agent-builder"]>;
|
|
@@ -237,6 +254,7 @@ export declare const toolErrorPayloadSchema: z.ZodObject<{
|
|
|
237
254
|
error: string;
|
|
238
255
|
}>;
|
|
239
256
|
export declare const TEMPLATED_CUSTOM_AUTH_CREDENTIAL_TYPE = "httpTemplatedCustomAuth";
|
|
257
|
+
export declare const GENERIC_AUTH_CREDENTIAL_TYPES: ReadonlySet<string>;
|
|
240
258
|
export declare const credentialPlaceholderDefSchema: z.ZodObject<{
|
|
241
259
|
name: z.ZodString;
|
|
242
260
|
title: z.ZodString;
|
|
@@ -696,6 +714,7 @@ export declare const workflowSetupNodeSchema: z.ZodObject<{
|
|
|
696
714
|
}[] | undefined;
|
|
697
715
|
}>, "many">>;
|
|
698
716
|
needsAction: z.ZodOptional<z.ZodBoolean>;
|
|
717
|
+
credentialNeedsAction: z.ZodOptional<z.ZodBoolean>;
|
|
699
718
|
subnodeRootNode: z.ZodOptional<z.ZodObject<{
|
|
700
719
|
name: z.ZodString;
|
|
701
720
|
type: z.ZodString;
|
|
@@ -778,6 +797,7 @@ export declare const workflowSetupNodeSchema: z.ZodObject<{
|
|
|
778
797
|
}[] | undefined;
|
|
779
798
|
}[] | undefined;
|
|
780
799
|
needsAction?: boolean | undefined;
|
|
800
|
+
credentialNeedsAction?: boolean | undefined;
|
|
781
801
|
subnodeRootNode?: {
|
|
782
802
|
name: string;
|
|
783
803
|
type: string;
|
|
@@ -850,6 +870,7 @@ export declare const workflowSetupNodeSchema: z.ZodObject<{
|
|
|
850
870
|
}[] | undefined;
|
|
851
871
|
}[] | undefined;
|
|
852
872
|
needsAction?: boolean | undefined;
|
|
873
|
+
credentialNeedsAction?: boolean | undefined;
|
|
853
874
|
subnodeRootNode?: {
|
|
854
875
|
name: string;
|
|
855
876
|
type: string;
|
|
@@ -986,6 +1007,67 @@ export declare const channelConfigSchema: z.ZodObject<{
|
|
|
986
1007
|
agentId: string;
|
|
987
1008
|
}>;
|
|
988
1009
|
export type InstanceAiChannelConfig = z.infer<typeof channelConfigSchema>;
|
|
1010
|
+
export declare const mcpConnectServerSchema: z.ZodObject<{
|
|
1011
|
+
serverSlug: z.ZodString;
|
|
1012
|
+
title: z.ZodString;
|
|
1013
|
+
tagline: z.ZodOptional<z.ZodString>;
|
|
1014
|
+
credentialType: z.ZodString;
|
|
1015
|
+
}, "strip", z.ZodTypeAny, {
|
|
1016
|
+
serverSlug: string;
|
|
1017
|
+
title: string;
|
|
1018
|
+
tagline?: string | undefined;
|
|
1019
|
+
credentialType: string;
|
|
1020
|
+
}, {
|
|
1021
|
+
serverSlug: string;
|
|
1022
|
+
title: string;
|
|
1023
|
+
tagline?: string | undefined;
|
|
1024
|
+
credentialType: string;
|
|
1025
|
+
}>;
|
|
1026
|
+
export type InstanceAiMcpConnectServer = z.infer<typeof mcpConnectServerSchema>;
|
|
1027
|
+
export declare const mcpConnectRequestSchema: z.ZodObject<{
|
|
1028
|
+
servers: z.ZodArray<z.ZodObject<{
|
|
1029
|
+
serverSlug: z.ZodString;
|
|
1030
|
+
title: z.ZodString;
|
|
1031
|
+
tagline: z.ZodOptional<z.ZodString>;
|
|
1032
|
+
credentialType: z.ZodString;
|
|
1033
|
+
}, "strip", z.ZodTypeAny, {
|
|
1034
|
+
serverSlug: string;
|
|
1035
|
+
title: string;
|
|
1036
|
+
tagline?: string | undefined;
|
|
1037
|
+
credentialType: string;
|
|
1038
|
+
}, {
|
|
1039
|
+
serverSlug: string;
|
|
1040
|
+
title: string;
|
|
1041
|
+
tagline?: string | undefined;
|
|
1042
|
+
credentialType: string;
|
|
1043
|
+
}>, "many">;
|
|
1044
|
+
}, "strip", z.ZodTypeAny, {
|
|
1045
|
+
servers: {
|
|
1046
|
+
serverSlug: string;
|
|
1047
|
+
title: string;
|
|
1048
|
+
tagline?: string | undefined;
|
|
1049
|
+
credentialType: string;
|
|
1050
|
+
}[];
|
|
1051
|
+
}, {
|
|
1052
|
+
servers: {
|
|
1053
|
+
serverSlug: string;
|
|
1054
|
+
title: string;
|
|
1055
|
+
tagline?: string | undefined;
|
|
1056
|
+
credentialType: string;
|
|
1057
|
+
}[];
|
|
1058
|
+
}>;
|
|
1059
|
+
export type InstanceAiMcpConnectRequest = z.infer<typeof mcpConnectRequestSchema>;
|
|
1060
|
+
export declare const mcpConnectResumeSchema: z.ZodObject<{
|
|
1061
|
+
approved: z.ZodBoolean;
|
|
1062
|
+
connectedSlugs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1063
|
+
}, "strip", z.ZodTypeAny, {
|
|
1064
|
+
approved: boolean;
|
|
1065
|
+
connectedSlugs?: string[] | undefined;
|
|
1066
|
+
}, {
|
|
1067
|
+
approved: boolean;
|
|
1068
|
+
connectedSlugs?: string[] | undefined;
|
|
1069
|
+
}>;
|
|
1070
|
+
export type InstanceAiMcpConnectResume = z.infer<typeof mcpConnectResumeSchema>;
|
|
989
1071
|
export declare const confirmationInputTypeSchema: z.ZodEnum<["approval", "text", "questions", "plan-review", "resource-decision", "continue"]>;
|
|
990
1072
|
export type InstanceAiConfirmationInputType = z.infer<typeof confirmationInputTypeSchema>;
|
|
991
1073
|
export declare const instanceAiTargetApprovalSchema: z.ZodObject<{
|
|
@@ -1480,6 +1562,7 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
|
|
|
1480
1562
|
}[] | undefined;
|
|
1481
1563
|
}>, "many">>;
|
|
1482
1564
|
needsAction: z.ZodOptional<z.ZodBoolean>;
|
|
1565
|
+
credentialNeedsAction: z.ZodOptional<z.ZodBoolean>;
|
|
1483
1566
|
subnodeRootNode: z.ZodOptional<z.ZodObject<{
|
|
1484
1567
|
name: z.ZodString;
|
|
1485
1568
|
type: z.ZodString;
|
|
@@ -1562,6 +1645,7 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
|
|
|
1562
1645
|
}[] | undefined;
|
|
1563
1646
|
}[] | undefined;
|
|
1564
1647
|
needsAction?: boolean | undefined;
|
|
1648
|
+
credentialNeedsAction?: boolean | undefined;
|
|
1565
1649
|
subnodeRootNode?: {
|
|
1566
1650
|
name: string;
|
|
1567
1651
|
type: string;
|
|
@@ -1634,6 +1718,7 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
|
|
|
1634
1718
|
}[] | undefined;
|
|
1635
1719
|
}[] | undefined;
|
|
1636
1720
|
needsAction?: boolean | undefined;
|
|
1721
|
+
credentialNeedsAction?: boolean | undefined;
|
|
1637
1722
|
subnodeRootNode?: {
|
|
1638
1723
|
name: string;
|
|
1639
1724
|
type: string;
|
|
@@ -1669,6 +1754,38 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
|
|
|
1669
1754
|
integrationType: string;
|
|
1670
1755
|
agentId: string;
|
|
1671
1756
|
}>>;
|
|
1757
|
+
mcpConnectRequest: z.ZodOptional<z.ZodObject<{
|
|
1758
|
+
servers: z.ZodArray<z.ZodObject<{
|
|
1759
|
+
serverSlug: z.ZodString;
|
|
1760
|
+
title: z.ZodString;
|
|
1761
|
+
tagline: z.ZodOptional<z.ZodString>;
|
|
1762
|
+
credentialType: z.ZodString;
|
|
1763
|
+
}, "strip", z.ZodTypeAny, {
|
|
1764
|
+
serverSlug: string;
|
|
1765
|
+
title: string;
|
|
1766
|
+
tagline?: string | undefined;
|
|
1767
|
+
credentialType: string;
|
|
1768
|
+
}, {
|
|
1769
|
+
serverSlug: string;
|
|
1770
|
+
title: string;
|
|
1771
|
+
tagline?: string | undefined;
|
|
1772
|
+
credentialType: string;
|
|
1773
|
+
}>, "many">;
|
|
1774
|
+
}, "strip", z.ZodTypeAny, {
|
|
1775
|
+
servers: {
|
|
1776
|
+
serverSlug: string;
|
|
1777
|
+
title: string;
|
|
1778
|
+
tagline?: string | undefined;
|
|
1779
|
+
credentialType: string;
|
|
1780
|
+
}[];
|
|
1781
|
+
}, {
|
|
1782
|
+
servers: {
|
|
1783
|
+
serverSlug: string;
|
|
1784
|
+
title: string;
|
|
1785
|
+
tagline?: string | undefined;
|
|
1786
|
+
credentialType: string;
|
|
1787
|
+
}[];
|
|
1788
|
+
}>>;
|
|
1672
1789
|
}, "strip", z.ZodTypeAny, {
|
|
1673
1790
|
requestId: string;
|
|
1674
1791
|
inputThreadId?: string | undefined;
|
|
@@ -1813,6 +1930,7 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
|
|
|
1813
1930
|
}[] | undefined;
|
|
1814
1931
|
}[] | undefined;
|
|
1815
1932
|
needsAction?: boolean | undefined;
|
|
1933
|
+
credentialNeedsAction?: boolean | undefined;
|
|
1816
1934
|
subnodeRootNode?: {
|
|
1817
1935
|
name: string;
|
|
1818
1936
|
type: string;
|
|
@@ -1831,6 +1949,14 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
|
|
|
1831
1949
|
integrationType: string;
|
|
1832
1950
|
agentId: string;
|
|
1833
1951
|
} | undefined;
|
|
1952
|
+
mcpConnectRequest?: {
|
|
1953
|
+
servers: {
|
|
1954
|
+
serverSlug: string;
|
|
1955
|
+
title: string;
|
|
1956
|
+
tagline?: string | undefined;
|
|
1957
|
+
credentialType: string;
|
|
1958
|
+
}[];
|
|
1959
|
+
} | undefined;
|
|
1834
1960
|
}, {
|
|
1835
1961
|
requestId: string;
|
|
1836
1962
|
inputThreadId?: string | undefined;
|
|
@@ -1975,6 +2101,7 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
|
|
|
1975
2101
|
}[] | undefined;
|
|
1976
2102
|
}[] | undefined;
|
|
1977
2103
|
needsAction?: boolean | undefined;
|
|
2104
|
+
credentialNeedsAction?: boolean | undefined;
|
|
1978
2105
|
subnodeRootNode?: {
|
|
1979
2106
|
name: string;
|
|
1980
2107
|
type: string;
|
|
@@ -1993,6 +2120,14 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
|
|
|
1993
2120
|
integrationType: string;
|
|
1994
2121
|
agentId: string;
|
|
1995
2122
|
} | undefined;
|
|
2123
|
+
mcpConnectRequest?: {
|
|
2124
|
+
servers: {
|
|
2125
|
+
serverSlug: string;
|
|
2126
|
+
title: string;
|
|
2127
|
+
tagline?: string | undefined;
|
|
2128
|
+
credentialType: string;
|
|
2129
|
+
}[];
|
|
2130
|
+
} | undefined;
|
|
1996
2131
|
}>;
|
|
1997
2132
|
export type InstanceAiConfirmationRequestPayload = z.infer<typeof confirmationRequestPayloadSchema>;
|
|
1998
2133
|
export declare function isDisplayableConfirmationRequest(payload: InstanceAiConfirmationRequestPayload): boolean;
|
|
@@ -3842,6 +3977,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
3842
3977
|
}[] | undefined;
|
|
3843
3978
|
}>, "many">>;
|
|
3844
3979
|
needsAction: z.ZodOptional<z.ZodBoolean>;
|
|
3980
|
+
credentialNeedsAction: z.ZodOptional<z.ZodBoolean>;
|
|
3845
3981
|
subnodeRootNode: z.ZodOptional<z.ZodObject<{
|
|
3846
3982
|
name: z.ZodString;
|
|
3847
3983
|
type: z.ZodString;
|
|
@@ -3924,6 +4060,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
3924
4060
|
}[] | undefined;
|
|
3925
4061
|
}[] | undefined;
|
|
3926
4062
|
needsAction?: boolean | undefined;
|
|
4063
|
+
credentialNeedsAction?: boolean | undefined;
|
|
3927
4064
|
subnodeRootNode?: {
|
|
3928
4065
|
name: string;
|
|
3929
4066
|
type: string;
|
|
@@ -3996,6 +4133,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
3996
4133
|
}[] | undefined;
|
|
3997
4134
|
}[] | undefined;
|
|
3998
4135
|
needsAction?: boolean | undefined;
|
|
4136
|
+
credentialNeedsAction?: boolean | undefined;
|
|
3999
4137
|
subnodeRootNode?: {
|
|
4000
4138
|
name: string;
|
|
4001
4139
|
type: string;
|
|
@@ -4031,6 +4169,38 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
4031
4169
|
integrationType: string;
|
|
4032
4170
|
agentId: string;
|
|
4033
4171
|
}>>;
|
|
4172
|
+
mcpConnectRequest: z.ZodOptional<z.ZodObject<{
|
|
4173
|
+
servers: z.ZodArray<z.ZodObject<{
|
|
4174
|
+
serverSlug: z.ZodString;
|
|
4175
|
+
title: z.ZodString;
|
|
4176
|
+
tagline: z.ZodOptional<z.ZodString>;
|
|
4177
|
+
credentialType: z.ZodString;
|
|
4178
|
+
}, "strip", z.ZodTypeAny, {
|
|
4179
|
+
serverSlug: string;
|
|
4180
|
+
title: string;
|
|
4181
|
+
tagline?: string | undefined;
|
|
4182
|
+
credentialType: string;
|
|
4183
|
+
}, {
|
|
4184
|
+
serverSlug: string;
|
|
4185
|
+
title: string;
|
|
4186
|
+
tagline?: string | undefined;
|
|
4187
|
+
credentialType: string;
|
|
4188
|
+
}>, "many">;
|
|
4189
|
+
}, "strip", z.ZodTypeAny, {
|
|
4190
|
+
servers: {
|
|
4191
|
+
serverSlug: string;
|
|
4192
|
+
title: string;
|
|
4193
|
+
tagline?: string | undefined;
|
|
4194
|
+
credentialType: string;
|
|
4195
|
+
}[];
|
|
4196
|
+
}, {
|
|
4197
|
+
servers: {
|
|
4198
|
+
serverSlug: string;
|
|
4199
|
+
title: string;
|
|
4200
|
+
tagline?: string | undefined;
|
|
4201
|
+
credentialType: string;
|
|
4202
|
+
}[];
|
|
4203
|
+
}>>;
|
|
4034
4204
|
}, "strip", z.ZodTypeAny, {
|
|
4035
4205
|
requestId: string;
|
|
4036
4206
|
inputThreadId?: string | undefined;
|
|
@@ -4175,6 +4345,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
4175
4345
|
}[] | undefined;
|
|
4176
4346
|
}[] | undefined;
|
|
4177
4347
|
needsAction?: boolean | undefined;
|
|
4348
|
+
credentialNeedsAction?: boolean | undefined;
|
|
4178
4349
|
subnodeRootNode?: {
|
|
4179
4350
|
name: string;
|
|
4180
4351
|
type: string;
|
|
@@ -4193,6 +4364,14 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
4193
4364
|
integrationType: string;
|
|
4194
4365
|
agentId: string;
|
|
4195
4366
|
} | undefined;
|
|
4367
|
+
mcpConnectRequest?: {
|
|
4368
|
+
servers: {
|
|
4369
|
+
serverSlug: string;
|
|
4370
|
+
title: string;
|
|
4371
|
+
tagline?: string | undefined;
|
|
4372
|
+
credentialType: string;
|
|
4373
|
+
}[];
|
|
4374
|
+
} | undefined;
|
|
4196
4375
|
}, {
|
|
4197
4376
|
requestId: string;
|
|
4198
4377
|
inputThreadId?: string | undefined;
|
|
@@ -4337,6 +4516,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
4337
4516
|
}[] | undefined;
|
|
4338
4517
|
}[] | undefined;
|
|
4339
4518
|
needsAction?: boolean | undefined;
|
|
4519
|
+
credentialNeedsAction?: boolean | undefined;
|
|
4340
4520
|
subnodeRootNode?: {
|
|
4341
4521
|
name: string;
|
|
4342
4522
|
type: string;
|
|
@@ -4355,6 +4535,14 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
4355
4535
|
integrationType: string;
|
|
4356
4536
|
agentId: string;
|
|
4357
4537
|
} | undefined;
|
|
4538
|
+
mcpConnectRequest?: {
|
|
4539
|
+
servers: {
|
|
4540
|
+
serverSlug: string;
|
|
4541
|
+
title: string;
|
|
4542
|
+
tagline?: string | undefined;
|
|
4543
|
+
credentialType: string;
|
|
4544
|
+
}[];
|
|
4545
|
+
} | undefined;
|
|
4358
4546
|
}>;
|
|
4359
4547
|
}, "strip", z.ZodTypeAny, {
|
|
4360
4548
|
runId: string;
|
|
@@ -4507,6 +4695,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
4507
4695
|
}[] | undefined;
|
|
4508
4696
|
}[] | undefined;
|
|
4509
4697
|
needsAction?: boolean | undefined;
|
|
4698
|
+
credentialNeedsAction?: boolean | undefined;
|
|
4510
4699
|
subnodeRootNode?: {
|
|
4511
4700
|
name: string;
|
|
4512
4701
|
type: string;
|
|
@@ -4525,6 +4714,14 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
4525
4714
|
integrationType: string;
|
|
4526
4715
|
agentId: string;
|
|
4527
4716
|
} | undefined;
|
|
4717
|
+
mcpConnectRequest?: {
|
|
4718
|
+
servers: {
|
|
4719
|
+
serverSlug: string;
|
|
4720
|
+
title: string;
|
|
4721
|
+
tagline?: string | undefined;
|
|
4722
|
+
credentialType: string;
|
|
4723
|
+
}[];
|
|
4724
|
+
} | undefined;
|
|
4528
4725
|
};
|
|
4529
4726
|
}, {
|
|
4530
4727
|
runId: string;
|
|
@@ -4677,6 +4874,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
4677
4874
|
}[] | undefined;
|
|
4678
4875
|
}[] | undefined;
|
|
4679
4876
|
needsAction?: boolean | undefined;
|
|
4877
|
+
credentialNeedsAction?: boolean | undefined;
|
|
4680
4878
|
subnodeRootNode?: {
|
|
4681
4879
|
name: string;
|
|
4682
4880
|
type: string;
|
|
@@ -4695,6 +4893,14 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
4695
4893
|
integrationType: string;
|
|
4696
4894
|
agentId: string;
|
|
4697
4895
|
} | undefined;
|
|
4896
|
+
mcpConnectRequest?: {
|
|
4897
|
+
servers: {
|
|
4898
|
+
serverSlug: string;
|
|
4899
|
+
title: string;
|
|
4900
|
+
tagline?: string | undefined;
|
|
4901
|
+
credentialType: string;
|
|
4902
|
+
}[];
|
|
4903
|
+
} | undefined;
|
|
4698
4904
|
};
|
|
4699
4905
|
}>, z.ZodObject<{
|
|
4700
4906
|
runId: z.ZodString;
|
|
@@ -5090,6 +5296,14 @@ export type InstanceAiThreadTitleUpdatedEvent = Extract<InstanceAiEvent, {
|
|
|
5090
5296
|
type: 'thread-title-updated';
|
|
5091
5297
|
}>;
|
|
5092
5298
|
export type InstanceAiFilesystemResponse = InstanceType<typeof InstanceAiFilesystemResponseDto>;
|
|
5299
|
+
export declare const MAX_ATTACHMENT_BASE64_BYTES: number;
|
|
5300
|
+
export declare const MAX_TOTAL_ATTACHMENT_BASE64_BYTES: number;
|
|
5301
|
+
export declare const MAX_ATTACHMENT_DECODED_BYTES: number;
|
|
5302
|
+
export declare const MAX_TOTAL_ATTACHMENT_DECODED_BYTES: number;
|
|
5303
|
+
export declare function formatAttachmentSizeLimit(): string;
|
|
5304
|
+
export declare function formatTotalAttachmentSizeLimit(): string;
|
|
5305
|
+
export declare function base64EncodedSize(decodedBytes: number): number;
|
|
5306
|
+
export declare function exceedsAttachmentSizeLimit(decodedBytes: number): boolean;
|
|
5093
5307
|
export declare const instanceAiFileAttachmentSchema: z.ZodObject<{
|
|
5094
5308
|
type: z.ZodLiteral<"file">;
|
|
5095
5309
|
data: z.ZodString;
|
|
@@ -5144,6 +5358,113 @@ export declare const instanceAiAgentAttachmentSchema: z.ZodObject<{
|
|
|
5144
5358
|
pending?: true | undefined;
|
|
5145
5359
|
}>;
|
|
5146
5360
|
export type InstanceAiAgentAttachment = z.infer<typeof instanceAiAgentAttachmentSchema>;
|
|
5361
|
+
export declare const instanceAiNodesAttachmentSchema: z.ZodObject<{
|
|
5362
|
+
type: z.ZodLiteral<"nodes">;
|
|
5363
|
+
workflowId: z.ZodString;
|
|
5364
|
+
sets: z.ZodArray<z.ZodObject<{
|
|
5365
|
+
nodes: z.ZodArray<z.ZodObject<{
|
|
5366
|
+
id: z.ZodString;
|
|
5367
|
+
name: z.ZodOptional<z.ZodString>;
|
|
5368
|
+
}, "strip", z.ZodTypeAny, {
|
|
5369
|
+
id: string;
|
|
5370
|
+
name?: string | undefined;
|
|
5371
|
+
}, {
|
|
5372
|
+
id: string;
|
|
5373
|
+
name?: string | undefined;
|
|
5374
|
+
}>, "many">;
|
|
5375
|
+
inputNode: z.ZodOptional<z.ZodObject<{
|
|
5376
|
+
id: z.ZodString;
|
|
5377
|
+
name: z.ZodOptional<z.ZodString>;
|
|
5378
|
+
}, "strip", z.ZodTypeAny, {
|
|
5379
|
+
id: string;
|
|
5380
|
+
name?: string | undefined;
|
|
5381
|
+
}, {
|
|
5382
|
+
id: string;
|
|
5383
|
+
name?: string | undefined;
|
|
5384
|
+
}>>;
|
|
5385
|
+
outputNode: z.ZodOptional<z.ZodObject<{
|
|
5386
|
+
id: z.ZodString;
|
|
5387
|
+
name: z.ZodOptional<z.ZodString>;
|
|
5388
|
+
}, "strip", z.ZodTypeAny, {
|
|
5389
|
+
id: string;
|
|
5390
|
+
name?: string | undefined;
|
|
5391
|
+
}, {
|
|
5392
|
+
id: string;
|
|
5393
|
+
name?: string | undefined;
|
|
5394
|
+
}>>;
|
|
5395
|
+
canvasGroupId: z.ZodOptional<z.ZodString>;
|
|
5396
|
+
canvasGroupName: z.ZodOptional<z.ZodString>;
|
|
5397
|
+
}, "strip", z.ZodTypeAny, {
|
|
5398
|
+
nodes: {
|
|
5399
|
+
id: string;
|
|
5400
|
+
name?: string | undefined;
|
|
5401
|
+
}[];
|
|
5402
|
+
inputNode?: {
|
|
5403
|
+
id: string;
|
|
5404
|
+
name?: string | undefined;
|
|
5405
|
+
} | undefined;
|
|
5406
|
+
outputNode?: {
|
|
5407
|
+
id: string;
|
|
5408
|
+
name?: string | undefined;
|
|
5409
|
+
} | undefined;
|
|
5410
|
+
canvasGroupId?: string | undefined;
|
|
5411
|
+
canvasGroupName?: string | undefined;
|
|
5412
|
+
}, {
|
|
5413
|
+
nodes: {
|
|
5414
|
+
id: string;
|
|
5415
|
+
name?: string | undefined;
|
|
5416
|
+
}[];
|
|
5417
|
+
inputNode?: {
|
|
5418
|
+
id: string;
|
|
5419
|
+
name?: string | undefined;
|
|
5420
|
+
} | undefined;
|
|
5421
|
+
outputNode?: {
|
|
5422
|
+
id: string;
|
|
5423
|
+
name?: string | undefined;
|
|
5424
|
+
} | undefined;
|
|
5425
|
+
canvasGroupId?: string | undefined;
|
|
5426
|
+
canvasGroupName?: string | undefined;
|
|
5427
|
+
}>, "many">;
|
|
5428
|
+
}, "strip", z.ZodTypeAny, {
|
|
5429
|
+
type: "nodes";
|
|
5430
|
+
workflowId: string;
|
|
5431
|
+
sets: {
|
|
5432
|
+
nodes: {
|
|
5433
|
+
id: string;
|
|
5434
|
+
name?: string | undefined;
|
|
5435
|
+
}[];
|
|
5436
|
+
inputNode?: {
|
|
5437
|
+
id: string;
|
|
5438
|
+
name?: string | undefined;
|
|
5439
|
+
} | undefined;
|
|
5440
|
+
outputNode?: {
|
|
5441
|
+
id: string;
|
|
5442
|
+
name?: string | undefined;
|
|
5443
|
+
} | undefined;
|
|
5444
|
+
canvasGroupId?: string | undefined;
|
|
5445
|
+
canvasGroupName?: string | undefined;
|
|
5446
|
+
}[];
|
|
5447
|
+
}, {
|
|
5448
|
+
type: "nodes";
|
|
5449
|
+
workflowId: string;
|
|
5450
|
+
sets: {
|
|
5451
|
+
nodes: {
|
|
5452
|
+
id: string;
|
|
5453
|
+
name?: string | undefined;
|
|
5454
|
+
}[];
|
|
5455
|
+
inputNode?: {
|
|
5456
|
+
id: string;
|
|
5457
|
+
name?: string | undefined;
|
|
5458
|
+
} | undefined;
|
|
5459
|
+
outputNode?: {
|
|
5460
|
+
id: string;
|
|
5461
|
+
name?: string | undefined;
|
|
5462
|
+
} | undefined;
|
|
5463
|
+
canvasGroupId?: string | undefined;
|
|
5464
|
+
canvasGroupName?: string | undefined;
|
|
5465
|
+
}[];
|
|
5466
|
+
}>;
|
|
5467
|
+
export type InstanceAiNodesAttachment = z.infer<typeof instanceAiNodesAttachmentSchema>;
|
|
5147
5468
|
export declare const instanceAiResourceAttachmentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
5148
5469
|
type: z.ZodLiteral<"workflow">;
|
|
5149
5470
|
id: z.ZodString;
|
|
@@ -5177,6 +5498,111 @@ export declare const instanceAiResourceAttachmentSchema: z.ZodDiscriminatedUnion
|
|
|
5177
5498
|
name?: string | undefined;
|
|
5178
5499
|
projectId: string;
|
|
5179
5500
|
pending?: true | undefined;
|
|
5501
|
+
}>, z.ZodObject<{
|
|
5502
|
+
type: z.ZodLiteral<"nodes">;
|
|
5503
|
+
workflowId: z.ZodString;
|
|
5504
|
+
sets: z.ZodArray<z.ZodObject<{
|
|
5505
|
+
nodes: z.ZodArray<z.ZodObject<{
|
|
5506
|
+
id: z.ZodString;
|
|
5507
|
+
name: z.ZodOptional<z.ZodString>;
|
|
5508
|
+
}, "strip", z.ZodTypeAny, {
|
|
5509
|
+
id: string;
|
|
5510
|
+
name?: string | undefined;
|
|
5511
|
+
}, {
|
|
5512
|
+
id: string;
|
|
5513
|
+
name?: string | undefined;
|
|
5514
|
+
}>, "many">;
|
|
5515
|
+
inputNode: z.ZodOptional<z.ZodObject<{
|
|
5516
|
+
id: z.ZodString;
|
|
5517
|
+
name: z.ZodOptional<z.ZodString>;
|
|
5518
|
+
}, "strip", z.ZodTypeAny, {
|
|
5519
|
+
id: string;
|
|
5520
|
+
name?: string | undefined;
|
|
5521
|
+
}, {
|
|
5522
|
+
id: string;
|
|
5523
|
+
name?: string | undefined;
|
|
5524
|
+
}>>;
|
|
5525
|
+
outputNode: z.ZodOptional<z.ZodObject<{
|
|
5526
|
+
id: z.ZodString;
|
|
5527
|
+
name: z.ZodOptional<z.ZodString>;
|
|
5528
|
+
}, "strip", z.ZodTypeAny, {
|
|
5529
|
+
id: string;
|
|
5530
|
+
name?: string | undefined;
|
|
5531
|
+
}, {
|
|
5532
|
+
id: string;
|
|
5533
|
+
name?: string | undefined;
|
|
5534
|
+
}>>;
|
|
5535
|
+
canvasGroupId: z.ZodOptional<z.ZodString>;
|
|
5536
|
+
canvasGroupName: z.ZodOptional<z.ZodString>;
|
|
5537
|
+
}, "strip", z.ZodTypeAny, {
|
|
5538
|
+
nodes: {
|
|
5539
|
+
id: string;
|
|
5540
|
+
name?: string | undefined;
|
|
5541
|
+
}[];
|
|
5542
|
+
inputNode?: {
|
|
5543
|
+
id: string;
|
|
5544
|
+
name?: string | undefined;
|
|
5545
|
+
} | undefined;
|
|
5546
|
+
outputNode?: {
|
|
5547
|
+
id: string;
|
|
5548
|
+
name?: string | undefined;
|
|
5549
|
+
} | undefined;
|
|
5550
|
+
canvasGroupId?: string | undefined;
|
|
5551
|
+
canvasGroupName?: string | undefined;
|
|
5552
|
+
}, {
|
|
5553
|
+
nodes: {
|
|
5554
|
+
id: string;
|
|
5555
|
+
name?: string | undefined;
|
|
5556
|
+
}[];
|
|
5557
|
+
inputNode?: {
|
|
5558
|
+
id: string;
|
|
5559
|
+
name?: string | undefined;
|
|
5560
|
+
} | undefined;
|
|
5561
|
+
outputNode?: {
|
|
5562
|
+
id: string;
|
|
5563
|
+
name?: string | undefined;
|
|
5564
|
+
} | undefined;
|
|
5565
|
+
canvasGroupId?: string | undefined;
|
|
5566
|
+
canvasGroupName?: string | undefined;
|
|
5567
|
+
}>, "many">;
|
|
5568
|
+
}, "strip", z.ZodTypeAny, {
|
|
5569
|
+
type: "nodes";
|
|
5570
|
+
workflowId: string;
|
|
5571
|
+
sets: {
|
|
5572
|
+
nodes: {
|
|
5573
|
+
id: string;
|
|
5574
|
+
name?: string | undefined;
|
|
5575
|
+
}[];
|
|
5576
|
+
inputNode?: {
|
|
5577
|
+
id: string;
|
|
5578
|
+
name?: string | undefined;
|
|
5579
|
+
} | undefined;
|
|
5580
|
+
outputNode?: {
|
|
5581
|
+
id: string;
|
|
5582
|
+
name?: string | undefined;
|
|
5583
|
+
} | undefined;
|
|
5584
|
+
canvasGroupId?: string | undefined;
|
|
5585
|
+
canvasGroupName?: string | undefined;
|
|
5586
|
+
}[];
|
|
5587
|
+
}, {
|
|
5588
|
+
type: "nodes";
|
|
5589
|
+
workflowId: string;
|
|
5590
|
+
sets: {
|
|
5591
|
+
nodes: {
|
|
5592
|
+
id: string;
|
|
5593
|
+
name?: string | undefined;
|
|
5594
|
+
}[];
|
|
5595
|
+
inputNode?: {
|
|
5596
|
+
id: string;
|
|
5597
|
+
name?: string | undefined;
|
|
5598
|
+
} | undefined;
|
|
5599
|
+
outputNode?: {
|
|
5600
|
+
id: string;
|
|
5601
|
+
name?: string | undefined;
|
|
5602
|
+
} | undefined;
|
|
5603
|
+
canvasGroupId?: string | undefined;
|
|
5604
|
+
canvasGroupName?: string | undefined;
|
|
5605
|
+
}[];
|
|
5180
5606
|
}>]>;
|
|
5181
5607
|
export type InstanceAiResourceAttachment = z.infer<typeof instanceAiResourceAttachmentSchema>;
|
|
5182
5608
|
export declare const instanceAiAttachmentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
@@ -5227,6 +5653,111 @@ export declare const instanceAiAttachmentSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
5227
5653
|
name?: string | undefined;
|
|
5228
5654
|
projectId: string;
|
|
5229
5655
|
pending?: true | undefined;
|
|
5656
|
+
}>, z.ZodObject<{
|
|
5657
|
+
type: z.ZodLiteral<"nodes">;
|
|
5658
|
+
workflowId: z.ZodString;
|
|
5659
|
+
sets: z.ZodArray<z.ZodObject<{
|
|
5660
|
+
nodes: z.ZodArray<z.ZodObject<{
|
|
5661
|
+
id: z.ZodString;
|
|
5662
|
+
name: z.ZodOptional<z.ZodString>;
|
|
5663
|
+
}, "strip", z.ZodTypeAny, {
|
|
5664
|
+
id: string;
|
|
5665
|
+
name?: string | undefined;
|
|
5666
|
+
}, {
|
|
5667
|
+
id: string;
|
|
5668
|
+
name?: string | undefined;
|
|
5669
|
+
}>, "many">;
|
|
5670
|
+
inputNode: z.ZodOptional<z.ZodObject<{
|
|
5671
|
+
id: z.ZodString;
|
|
5672
|
+
name: z.ZodOptional<z.ZodString>;
|
|
5673
|
+
}, "strip", z.ZodTypeAny, {
|
|
5674
|
+
id: string;
|
|
5675
|
+
name?: string | undefined;
|
|
5676
|
+
}, {
|
|
5677
|
+
id: string;
|
|
5678
|
+
name?: string | undefined;
|
|
5679
|
+
}>>;
|
|
5680
|
+
outputNode: z.ZodOptional<z.ZodObject<{
|
|
5681
|
+
id: z.ZodString;
|
|
5682
|
+
name: z.ZodOptional<z.ZodString>;
|
|
5683
|
+
}, "strip", z.ZodTypeAny, {
|
|
5684
|
+
id: string;
|
|
5685
|
+
name?: string | undefined;
|
|
5686
|
+
}, {
|
|
5687
|
+
id: string;
|
|
5688
|
+
name?: string | undefined;
|
|
5689
|
+
}>>;
|
|
5690
|
+
canvasGroupId: z.ZodOptional<z.ZodString>;
|
|
5691
|
+
canvasGroupName: z.ZodOptional<z.ZodString>;
|
|
5692
|
+
}, "strip", z.ZodTypeAny, {
|
|
5693
|
+
nodes: {
|
|
5694
|
+
id: string;
|
|
5695
|
+
name?: string | undefined;
|
|
5696
|
+
}[];
|
|
5697
|
+
inputNode?: {
|
|
5698
|
+
id: string;
|
|
5699
|
+
name?: string | undefined;
|
|
5700
|
+
} | undefined;
|
|
5701
|
+
outputNode?: {
|
|
5702
|
+
id: string;
|
|
5703
|
+
name?: string | undefined;
|
|
5704
|
+
} | undefined;
|
|
5705
|
+
canvasGroupId?: string | undefined;
|
|
5706
|
+
canvasGroupName?: string | undefined;
|
|
5707
|
+
}, {
|
|
5708
|
+
nodes: {
|
|
5709
|
+
id: string;
|
|
5710
|
+
name?: string | undefined;
|
|
5711
|
+
}[];
|
|
5712
|
+
inputNode?: {
|
|
5713
|
+
id: string;
|
|
5714
|
+
name?: string | undefined;
|
|
5715
|
+
} | undefined;
|
|
5716
|
+
outputNode?: {
|
|
5717
|
+
id: string;
|
|
5718
|
+
name?: string | undefined;
|
|
5719
|
+
} | undefined;
|
|
5720
|
+
canvasGroupId?: string | undefined;
|
|
5721
|
+
canvasGroupName?: string | undefined;
|
|
5722
|
+
}>, "many">;
|
|
5723
|
+
}, "strip", z.ZodTypeAny, {
|
|
5724
|
+
type: "nodes";
|
|
5725
|
+
workflowId: string;
|
|
5726
|
+
sets: {
|
|
5727
|
+
nodes: {
|
|
5728
|
+
id: string;
|
|
5729
|
+
name?: string | undefined;
|
|
5730
|
+
}[];
|
|
5731
|
+
inputNode?: {
|
|
5732
|
+
id: string;
|
|
5733
|
+
name?: string | undefined;
|
|
5734
|
+
} | undefined;
|
|
5735
|
+
outputNode?: {
|
|
5736
|
+
id: string;
|
|
5737
|
+
name?: string | undefined;
|
|
5738
|
+
} | undefined;
|
|
5739
|
+
canvasGroupId?: string | undefined;
|
|
5740
|
+
canvasGroupName?: string | undefined;
|
|
5741
|
+
}[];
|
|
5742
|
+
}, {
|
|
5743
|
+
type: "nodes";
|
|
5744
|
+
workflowId: string;
|
|
5745
|
+
sets: {
|
|
5746
|
+
nodes: {
|
|
5747
|
+
id: string;
|
|
5748
|
+
name?: string | undefined;
|
|
5749
|
+
}[];
|
|
5750
|
+
inputNode?: {
|
|
5751
|
+
id: string;
|
|
5752
|
+
name?: string | undefined;
|
|
5753
|
+
} | undefined;
|
|
5754
|
+
outputNode?: {
|
|
5755
|
+
id: string;
|
|
5756
|
+
name?: string | undefined;
|
|
5757
|
+
} | undefined;
|
|
5758
|
+
canvasGroupId?: string | undefined;
|
|
5759
|
+
canvasGroupName?: string | undefined;
|
|
5760
|
+
}[];
|
|
5230
5761
|
}>]>;
|
|
5231
5762
|
export type InstanceAiAttachment = z.infer<typeof instanceAiAttachmentSchema>;
|
|
5232
5763
|
export declare const instanceAiCredentialHandoffContextSchema: z.ZodObject<{
|
|
@@ -5419,6 +5950,25 @@ declare const InstanceAiSendMessageRequest_base: import("../zod-class").ZodClass
|
|
|
5419
5950
|
name?: string | undefined;
|
|
5420
5951
|
projectId: string;
|
|
5421
5952
|
pending?: true | undefined;
|
|
5953
|
+
} | {
|
|
5954
|
+
type: "nodes";
|
|
5955
|
+
workflowId: string;
|
|
5956
|
+
sets: {
|
|
5957
|
+
nodes: {
|
|
5958
|
+
id: string;
|
|
5959
|
+
name?: string | undefined;
|
|
5960
|
+
}[];
|
|
5961
|
+
inputNode?: {
|
|
5962
|
+
id: string;
|
|
5963
|
+
name?: string | undefined;
|
|
5964
|
+
} | undefined;
|
|
5965
|
+
outputNode?: {
|
|
5966
|
+
id: string;
|
|
5967
|
+
name?: string | undefined;
|
|
5968
|
+
} | undefined;
|
|
5969
|
+
canvasGroupId?: string | undefined;
|
|
5970
|
+
canvasGroupName?: string | undefined;
|
|
5971
|
+
}[];
|
|
5422
5972
|
})[] | undefined;
|
|
5423
5973
|
context?: {
|
|
5424
5974
|
source: "credential-modal";
|
|
@@ -5494,6 +6044,111 @@ declare const InstanceAiSendMessageRequest_base: import("../zod-class").ZodClass
|
|
|
5494
6044
|
name?: string | undefined;
|
|
5495
6045
|
projectId: string;
|
|
5496
6046
|
pending?: true | undefined;
|
|
6047
|
+
}>, z.ZodObject<{
|
|
6048
|
+
type: z.ZodLiteral<"nodes">;
|
|
6049
|
+
workflowId: z.ZodString;
|
|
6050
|
+
sets: z.ZodArray<z.ZodObject<{
|
|
6051
|
+
nodes: z.ZodArray<z.ZodObject<{
|
|
6052
|
+
id: z.ZodString;
|
|
6053
|
+
name: z.ZodOptional<z.ZodString>;
|
|
6054
|
+
}, "strip", z.ZodTypeAny, {
|
|
6055
|
+
id: string;
|
|
6056
|
+
name?: string | undefined;
|
|
6057
|
+
}, {
|
|
6058
|
+
id: string;
|
|
6059
|
+
name?: string | undefined;
|
|
6060
|
+
}>, "many">;
|
|
6061
|
+
inputNode: z.ZodOptional<z.ZodObject<{
|
|
6062
|
+
id: z.ZodString;
|
|
6063
|
+
name: z.ZodOptional<z.ZodString>;
|
|
6064
|
+
}, "strip", z.ZodTypeAny, {
|
|
6065
|
+
id: string;
|
|
6066
|
+
name?: string | undefined;
|
|
6067
|
+
}, {
|
|
6068
|
+
id: string;
|
|
6069
|
+
name?: string | undefined;
|
|
6070
|
+
}>>;
|
|
6071
|
+
outputNode: z.ZodOptional<z.ZodObject<{
|
|
6072
|
+
id: z.ZodString;
|
|
6073
|
+
name: z.ZodOptional<z.ZodString>;
|
|
6074
|
+
}, "strip", z.ZodTypeAny, {
|
|
6075
|
+
id: string;
|
|
6076
|
+
name?: string | undefined;
|
|
6077
|
+
}, {
|
|
6078
|
+
id: string;
|
|
6079
|
+
name?: string | undefined;
|
|
6080
|
+
}>>;
|
|
6081
|
+
canvasGroupId: z.ZodOptional<z.ZodString>;
|
|
6082
|
+
canvasGroupName: z.ZodOptional<z.ZodString>;
|
|
6083
|
+
}, "strip", z.ZodTypeAny, {
|
|
6084
|
+
nodes: {
|
|
6085
|
+
id: string;
|
|
6086
|
+
name?: string | undefined;
|
|
6087
|
+
}[];
|
|
6088
|
+
inputNode?: {
|
|
6089
|
+
id: string;
|
|
6090
|
+
name?: string | undefined;
|
|
6091
|
+
} | undefined;
|
|
6092
|
+
outputNode?: {
|
|
6093
|
+
id: string;
|
|
6094
|
+
name?: string | undefined;
|
|
6095
|
+
} | undefined;
|
|
6096
|
+
canvasGroupId?: string | undefined;
|
|
6097
|
+
canvasGroupName?: string | undefined;
|
|
6098
|
+
}, {
|
|
6099
|
+
nodes: {
|
|
6100
|
+
id: string;
|
|
6101
|
+
name?: string | undefined;
|
|
6102
|
+
}[];
|
|
6103
|
+
inputNode?: {
|
|
6104
|
+
id: string;
|
|
6105
|
+
name?: string | undefined;
|
|
6106
|
+
} | undefined;
|
|
6107
|
+
outputNode?: {
|
|
6108
|
+
id: string;
|
|
6109
|
+
name?: string | undefined;
|
|
6110
|
+
} | undefined;
|
|
6111
|
+
canvasGroupId?: string | undefined;
|
|
6112
|
+
canvasGroupName?: string | undefined;
|
|
6113
|
+
}>, "many">;
|
|
6114
|
+
}, "strip", z.ZodTypeAny, {
|
|
6115
|
+
type: "nodes";
|
|
6116
|
+
workflowId: string;
|
|
6117
|
+
sets: {
|
|
6118
|
+
nodes: {
|
|
6119
|
+
id: string;
|
|
6120
|
+
name?: string | undefined;
|
|
6121
|
+
}[];
|
|
6122
|
+
inputNode?: {
|
|
6123
|
+
id: string;
|
|
6124
|
+
name?: string | undefined;
|
|
6125
|
+
} | undefined;
|
|
6126
|
+
outputNode?: {
|
|
6127
|
+
id: string;
|
|
6128
|
+
name?: string | undefined;
|
|
6129
|
+
} | undefined;
|
|
6130
|
+
canvasGroupId?: string | undefined;
|
|
6131
|
+
canvasGroupName?: string | undefined;
|
|
6132
|
+
}[];
|
|
6133
|
+
}, {
|
|
6134
|
+
type: "nodes";
|
|
6135
|
+
workflowId: string;
|
|
6136
|
+
sets: {
|
|
6137
|
+
nodes: {
|
|
6138
|
+
id: string;
|
|
6139
|
+
name?: string | undefined;
|
|
6140
|
+
}[];
|
|
6141
|
+
inputNode?: {
|
|
6142
|
+
id: string;
|
|
6143
|
+
name?: string | undefined;
|
|
6144
|
+
} | undefined;
|
|
6145
|
+
outputNode?: {
|
|
6146
|
+
id: string;
|
|
6147
|
+
name?: string | undefined;
|
|
6148
|
+
} | undefined;
|
|
6149
|
+
canvasGroupId?: string | undefined;
|
|
6150
|
+
canvasGroupName?: string | undefined;
|
|
6151
|
+
}[];
|
|
5497
6152
|
}>]>, "many">>;
|
|
5498
6153
|
context: z.ZodOptional<z.ZodDiscriminatedUnion<"source", [z.ZodObject<{
|
|
5499
6154
|
source: z.ZodLiteral<"credential-modal">;
|
|
@@ -5666,6 +6321,7 @@ export interface InstanceAiConfirmation {
|
|
|
5666
6321
|
tasks?: TaskList;
|
|
5667
6322
|
resourceDecision?: GatewayConfirmationRequiredPayload;
|
|
5668
6323
|
channelConfig?: InstanceAiChannelConfig;
|
|
6324
|
+
mcpConnectRequest?: InstanceAiMcpConnectRequest;
|
|
5669
6325
|
expired?: boolean;
|
|
5670
6326
|
}
|
|
5671
6327
|
export interface InstanceAiToolCallState {
|
|
@@ -5971,6 +6627,18 @@ export interface InstanceAiAdminSettingsResponse {
|
|
|
5971
6627
|
localGatewayDisabled: boolean;
|
|
5972
6628
|
browserUseEnabled: boolean;
|
|
5973
6629
|
}
|
|
6630
|
+
export type InstanceAiComponentSource = 'ui' | 'env' | 'none';
|
|
6631
|
+
export type InstanceAiWebSearchSource = InstanceAiComponentSource | 'disabled';
|
|
6632
|
+
export type InstanceAiSetupStateInput = Pick<InstanceAiAdminSettingsResponse, 'modelEnvConfigured' | 'modelCredentialId' | 'modelName' | 'sandboxEnabled' | 'sandboxEnvConfigured' | 'sandboxProvider' | 'daytonaCredentialId' | 'n8nSandboxCredentialId' | 'searchCredentialId' | 'searchEnvConfigured' | 'searchDisabled'>;
|
|
6633
|
+
export interface InstanceAiSetupState {
|
|
6634
|
+
modelSource: InstanceAiComponentSource;
|
|
6635
|
+
sandboxSource: InstanceAiComponentSource;
|
|
6636
|
+
sandboxType: InstanceAiSandboxProvider | null;
|
|
6637
|
+
sandboxCredentialId: string | null;
|
|
6638
|
+
webSearchSource: InstanceAiWebSearchSource;
|
|
6639
|
+
setupCompleted: boolean;
|
|
6640
|
+
}
|
|
6641
|
+
export declare function deriveInstanceAiSetupState(settings: InstanceAiSetupStateInput): InstanceAiSetupState;
|
|
5974
6642
|
export declare const instanceAiConnectionSchema: z.ZodObject<{
|
|
5975
6643
|
type: z.ZodString;
|
|
5976
6644
|
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -6303,6 +6971,7 @@ export declare const CONFIG_EVALUATIONS_FLAG = "088_config_evaluations";
|
|
|
6303
6971
|
export declare const CONFIG_EVALUATIONS_ENABLED_VARIANT = "variant";
|
|
6304
6972
|
export declare const INSTANCE_AI_MCP_CONNECTIONS_FLAG = "089_instance_ai_mcp_connections";
|
|
6305
6973
|
export declare const INSTANCE_AI_MCP_CONNECTIONS_ENABLED_VARIANT = "variant";
|
|
6974
|
+
export declare const CANVAS_NODE_CONTEXT_FLAG = "104_canvas_aia_node_context";
|
|
6306
6975
|
export interface InstanceAiEvalRewrittenCredential {
|
|
6307
6976
|
nodeName: string;
|
|
6308
6977
|
credentialType: string;
|