@n8n/api-types 1.40.1 → 1.41.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/agents/types.d.ts +2 -0
- package/dist/agents/types.js.map +1 -1
- package/dist/build.tsbuildinfo +1 -1
- package/dist/dto/credentials/create-credential.dto.d.ts +2 -0
- package/dist/dto/credentials/create-credential.dto.js +2 -0
- package/dist/dto/credentials/create-credential.dto.js.map +1 -1
- package/dist/dto/credentials/credential-public.dto.d.ts +26 -2
- package/dist/dto/credentials/credential-public.dto.js +31 -2
- package/dist/dto/credentials/credential-public.dto.js.map +1 -1
- package/dist/dto/executions/compare-execution-list-items.d.ts +7 -0
- package/dist/dto/executions/compare-execution-list-items.js +20 -0
- package/dist/dto/executions/compare-execution-list-items.js.map +1 -0
- package/dist/dto/executions/execution-list-pagination.d.ts +9 -0
- package/dist/dto/executions/execution-list-pagination.js +3 -0
- package/dist/dto/executions/execution-list-pagination.js.map +1 -0
- package/dist/dto/folders/folder-public.dto.d.ts +421 -0
- package/dist/dto/folders/folder-public.dto.js +75 -0
- package/dist/dto/folders/folder-public.dto.js.map +1 -0
- package/dist/dto/folders/folder-public.openapi.d.ts +82 -0
- package/dist/dto/folders/folder-public.openapi.js +56 -0
- package/dist/dto/folders/folder-public.openapi.js.map +1 -0
- package/dist/dto/folders/list-folder-query.dto.d.ts +11 -0
- package/dist/dto/folders/list-folder-query.dto.js +14 -18
- package/dist/dto/folders/list-folder-query.dto.js.map +1 -1
- package/dist/dto/index.d.ts +19 -16
- package/dist/dto/index.js +46 -20
- package/dist/dto/index.js.map +1 -1
- package/dist/dto/insights/insights-summary-public.dto.d.ts +109 -0
- package/dist/dto/insights/insights-summary-public.dto.js +33 -0
- package/dist/dto/insights/insights-summary-public.dto.js.map +1 -0
- package/dist/dto/insights/insights-summary-public.openapi.d.ts +12 -0
- package/dist/dto/insights/insights-summary-public.openapi.js +12 -0
- package/dist/dto/insights/insights-summary-public.openapi.js.map +1 -0
- package/dist/dto/promotions/promotable-resource.dto.d.ts +101 -0
- package/dist/dto/promotions/promotable-resource.dto.js +8 -1
- package/dist/dto/promotions/promotable-resource.dto.js.map +1 -1
- package/dist/dto/promotions/promotion-binding-preflight.dto.d.ts +3842 -0
- package/dist/dto/promotions/promotion-binding-preflight.dto.js +120 -0
- package/dist/dto/promotions/promotion-binding-preflight.dto.js.map +1 -0
- package/dist/dto/promotions/promotion-config.dto.d.ts +360 -0
- package/dist/dto/promotions/promotion-config.dto.js +16 -1
- package/dist/dto/promotions/promotion-config.dto.js.map +1 -1
- package/dist/dto/promotions/promotion-connection.dto.d.ts +442 -12
- package/dist/dto/promotions/promotion-connection.dto.js +5 -2
- package/dist/dto/promotions/promotion-connection.dto.js.map +1 -1
- package/dist/dto/promotions/promotion-operations.dto.d.ts +4893 -285
- package/dist/dto/promotions/promotion-operations.dto.js +33 -6
- package/dist/dto/promotions/promotion-operations.dto.js.map +1 -1
- package/dist/dto/tag/tag-public.dto.d.ts +26 -0
- package/dist/dto/tag/tag-public.dto.js +14 -3
- package/dist/dto/tag/tag-public.dto.js.map +1 -1
- package/dist/dto/type-availability-policies/create-policy-document.dto.js.map +1 -0
- package/dist/dto/type-availability-policies/node-type-policy-public.dto.d.ts +565 -0
- package/dist/dto/type-availability-policies/node-type-policy-public.dto.js +70 -0
- package/dist/dto/type-availability-policies/node-type-policy-public.dto.js.map +1 -0
- package/dist/dto/type-availability-policies/policy-rule.schema.js.map +1 -0
- package/dist/dto/type-availability-policies/policy-rule.types.js.map +1 -0
- package/dist/dto/type-availability-policies/policy-selector.schema.js.map +1 -0
- package/dist/dto/type-availability-policies/put-instance-policy.dto.js.map +1 -0
- package/dist/dto/type-availability-policies/put-project-policy.dto.js.map +1 -0
- package/dist/dto/type-availability-policies/replace-attachments.dto.js.map +1 -0
- package/dist/dto/type-availability-policies/update-policy-document.dto.js.map +1 -0
- package/dist/dto/user/user-update-request.dto.d.ts +0 -6
- package/dist/dto/user/user-update-request.dto.js +0 -3
- package/dist/dto/user/user-update-request.dto.js.map +1 -1
- package/dist/frontend-settings.d.ts +1 -0
- package/dist/index.d.ts +12 -8
- package/dist/index.js +36 -8
- package/dist/index.js.map +1 -1
- package/dist/push/agents.d.ts +2 -0
- package/dist/schemas/agent-run-reducer.js +7 -1
- package/dist/schemas/agent-run-reducer.js.map +1 -1
- package/dist/schemas/ai-preference.schema.d.ts +4 -0
- package/dist/schemas/ai-preference.schema.js +5 -2
- package/dist/schemas/ai-preference.schema.js.map +1 -1
- package/dist/schemas/credential-description.schema.d.ts +3 -0
- package/dist/schemas/credential-description.schema.js +14 -0
- package/dist/schemas/credential-description.schema.js.map +1 -0
- package/dist/schemas/instance-ai-approval.schema.d.ts +380 -0
- package/dist/schemas/instance-ai-approval.schema.js +77 -0
- package/dist/schemas/instance-ai-approval.schema.js.map +1 -0
- package/dist/schemas/instance-ai.schema.d.ts +1766 -121
- package/dist/schemas/instance-ai.schema.js +171 -14
- package/dist/schemas/instance-ai.schema.js.map +1 -1
- package/dist/schemas/llm-step-display.d.ts +1 -0
- package/dist/schemas/llm-step-display.js +16 -5
- package/dist/schemas/llm-step-display.js.map +1 -1
- package/dist/schemas/mcp.schema.d.ts +1 -2
- package/dist/schemas/mcp.schema.js +3 -2
- package/dist/schemas/mcp.schema.js.map +1 -1
- package/dist/schemas/public-api-path-params.schema.d.ts +4 -0
- package/dist/schemas/public-api-path-params.schema.js +10 -4
- package/dist/schemas/public-api-path-params.schema.js.map +1 -1
- package/package.json +3 -3
- package/dist/dto/instance-ai-examples/instance-ai-examples-query.dto.d.ts +0 -15
- package/dist/dto/instance-ai-examples/instance-ai-examples-query.dto.js +0 -28
- package/dist/dto/instance-ai-examples/instance-ai-examples-query.dto.js.map +0 -1
- package/dist/dto/node-type-policies/create-policy-document.dto.js.map +0 -1
- package/dist/dto/node-type-policies/node-type-policy-public.dto.d.ts +0 -146
- package/dist/dto/node-type-policies/node-type-policy-public.dto.js +0 -27
- package/dist/dto/node-type-policies/node-type-policy-public.dto.js.map +0 -1
- package/dist/dto/node-type-policies/policy-rule.schema.js.map +0 -1
- package/dist/dto/node-type-policies/policy-rule.types.js.map +0 -1
- package/dist/dto/node-type-policies/policy-selector.schema.js.map +0 -1
- package/dist/dto/node-type-policies/put-instance-policy.dto.js.map +0 -1
- package/dist/dto/node-type-policies/put-project-policy.dto.js.map +0 -1
- package/dist/dto/node-type-policies/replace-attachments.dto.js.map +0 -1
- package/dist/dto/node-type-policies/update-policy-document.dto.js.map +0 -1
- /package/dist/dto/{node-type-policies → type-availability-policies}/create-policy-document.dto.d.ts +0 -0
- /package/dist/dto/{node-type-policies → type-availability-policies}/create-policy-document.dto.js +0 -0
- /package/dist/dto/{node-type-policies → type-availability-policies}/policy-rule.schema.d.ts +0 -0
- /package/dist/dto/{node-type-policies → type-availability-policies}/policy-rule.schema.js +0 -0
- /package/dist/dto/{node-type-policies → type-availability-policies}/policy-rule.types.d.ts +0 -0
- /package/dist/dto/{node-type-policies → type-availability-policies}/policy-rule.types.js +0 -0
- /package/dist/dto/{node-type-policies → type-availability-policies}/policy-selector.schema.d.ts +0 -0
- /package/dist/dto/{node-type-policies → type-availability-policies}/policy-selector.schema.js +0 -0
- /package/dist/dto/{node-type-policies → type-availability-policies}/put-instance-policy.dto.d.ts +0 -0
- /package/dist/dto/{node-type-policies → type-availability-policies}/put-instance-policy.dto.js +0 -0
- /package/dist/dto/{node-type-policies → type-availability-policies}/put-project-policy.dto.d.ts +0 -0
- /package/dist/dto/{node-type-policies → type-availability-policies}/put-project-policy.dto.js +0 -0
- /package/dist/dto/{node-type-policies → type-availability-policies}/replace-attachments.dto.d.ts +0 -0
- /package/dist/dto/{node-type-policies → type-availability-policies}/replace-attachments.dto.js +0 -0
- /package/dist/dto/{node-type-policies → type-availability-policies}/update-policy-document.dto.d.ts +0 -0
- /package/dist/dto/{node-type-policies → type-availability-policies}/update-policy-document.dto.js +0 -0
|
@@ -8,6 +8,9 @@ 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 const NODE_RESOURCE_GRANT_FALLBACK_KEYS: string[];
|
|
12
|
+
export declare function buildExecuteNodeSessionGrantKey(nodeType: string, parameters?: Record<string, unknown>): string | null;
|
|
13
|
+
export declare function buildRunStepSessionGrantKey(workflowId: string, nodeName: string): string;
|
|
11
14
|
export declare function buildUpdateWorkflowSessionGrantKey(workflowId: string): string;
|
|
12
15
|
export declare function buildCredentialDestinationGrantKey(workflowId: string, origin: string): string;
|
|
13
16
|
export declare function buildDataTablesSessionGrantKey(action: string): string;
|
|
@@ -34,7 +37,7 @@ export type ThreadId = string & {
|
|
|
34
37
|
export type ToolCallId = string & {
|
|
35
38
|
readonly __brand: 'ToolCallId';
|
|
36
39
|
};
|
|
37
|
-
export declare const instanceAiEventTypeSchema: z.ZodEnum<["run-start", "run-finish", "agent-spawned", "agent-completed", "text-delta", "reasoning-delta", "text-block", "reasoning-block", "tool-input-start", "tool-call", "tool-result", "tool-error", "tool-interrupted", "confirmation-request", "tasks-update", "setup-items", "filesystem-request", "thread-title-updated", "status", "error"]>;
|
|
40
|
+
export declare const instanceAiEventTypeSchema: z.ZodEnum<["run-start", "run-finish", "agent-spawned", "agent-completed", "text-delta", "reasoning-delta", "text-block", "reasoning-block", "tool-input-start", "tool-call", "tool-result", "tool-error", "tool-interrupted", "confirmation-request", "tasks-update", "setup-items", "preferences-applied", "filesystem-request", "thread-title-updated", "status", "error"]>;
|
|
38
41
|
export type InstanceAiEventType = z.infer<typeof instanceAiEventTypeSchema>;
|
|
39
42
|
export declare const INSTANCE_AI_EPHEMERAL_EVENT_TYPES: ReadonlySet<InstanceAiEventType>;
|
|
40
43
|
export declare const instanceAiRunStatusSchema: z.ZodEnum<["completed", "cancelled", "error", "interrupted"]>;
|
|
@@ -758,22 +761,6 @@ export declare const workflowSetupNodeSchema: z.ZodObject<{
|
|
|
758
761
|
}>, "many">>;
|
|
759
762
|
needsAction: z.ZodOptional<z.ZodBoolean>;
|
|
760
763
|
credentialNeedsAction: z.ZodOptional<z.ZodBoolean>;
|
|
761
|
-
subnodeRootNode: z.ZodOptional<z.ZodObject<{
|
|
762
|
-
name: z.ZodString;
|
|
763
|
-
type: z.ZodString;
|
|
764
|
-
typeVersion: z.ZodNumber;
|
|
765
|
-
id: z.ZodString;
|
|
766
|
-
}, "strip", z.ZodTypeAny, {
|
|
767
|
-
name: string;
|
|
768
|
-
type: string;
|
|
769
|
-
typeVersion: number;
|
|
770
|
-
id: string;
|
|
771
|
-
}, {
|
|
772
|
-
name: string;
|
|
773
|
-
type: string;
|
|
774
|
-
typeVersion: number;
|
|
775
|
-
id: string;
|
|
776
|
-
}>>;
|
|
777
764
|
}, "strip", z.ZodTypeAny, {
|
|
778
765
|
node: {
|
|
779
766
|
name: string;
|
|
@@ -843,12 +830,6 @@ export declare const workflowSetupNodeSchema: z.ZodObject<{
|
|
|
843
830
|
}[] | undefined;
|
|
844
831
|
needsAction?: boolean | undefined;
|
|
845
832
|
credentialNeedsAction?: boolean | undefined;
|
|
846
|
-
subnodeRootNode?: {
|
|
847
|
-
name: string;
|
|
848
|
-
type: string;
|
|
849
|
-
typeVersion: number;
|
|
850
|
-
id: string;
|
|
851
|
-
} | undefined;
|
|
852
833
|
}, {
|
|
853
834
|
node: {
|
|
854
835
|
name: string;
|
|
@@ -918,12 +899,6 @@ export declare const workflowSetupNodeSchema: z.ZodObject<{
|
|
|
918
899
|
}[] | undefined;
|
|
919
900
|
needsAction?: boolean | undefined;
|
|
920
901
|
credentialNeedsAction?: boolean | undefined;
|
|
921
|
-
subnodeRootNode?: {
|
|
922
|
-
name: string;
|
|
923
|
-
type: string;
|
|
924
|
-
typeVersion: number;
|
|
925
|
-
id: string;
|
|
926
|
-
} | undefined;
|
|
927
902
|
}>;
|
|
928
903
|
export type InstanceAiWorkflowSetupNode = z.infer<typeof workflowSetupNodeSchema>;
|
|
929
904
|
export declare const taskItemSchema: z.ZodObject<{
|
|
@@ -1187,6 +1162,385 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
|
|
|
1187
1162
|
args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1188
1163
|
severity: z.ZodEnum<["destructive", "warning", "info"]>;
|
|
1189
1164
|
message: z.ZodString;
|
|
1165
|
+
approvalDetails: z.ZodOptional<z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
|
|
1166
|
+
action: z.ZodLiteral<"edit-workflow">;
|
|
1167
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
1168
|
+
}, "strip", z.ZodTypeAny, {
|
|
1169
|
+
action: "edit-workflow";
|
|
1170
|
+
summary?: string | undefined;
|
|
1171
|
+
}, {
|
|
1172
|
+
action: "edit-workflow";
|
|
1173
|
+
summary?: string | undefined;
|
|
1174
|
+
}>, z.ZodObject<{
|
|
1175
|
+
action: z.ZodLiteral<"delete-table">;
|
|
1176
|
+
}, "strip", z.ZodTypeAny, {
|
|
1177
|
+
action: "delete-table";
|
|
1178
|
+
}, {
|
|
1179
|
+
action: "delete-table";
|
|
1180
|
+
}>, z.ZodObject<{
|
|
1181
|
+
action: z.ZodLiteral<"add-column">;
|
|
1182
|
+
column: z.ZodString;
|
|
1183
|
+
columnType: z.ZodEnum<["string", "number", "boolean", "date"]>;
|
|
1184
|
+
}, "strip", z.ZodTypeAny, {
|
|
1185
|
+
action: "add-column";
|
|
1186
|
+
column: string;
|
|
1187
|
+
columnType: "boolean" | "date" | "number" | "string";
|
|
1188
|
+
}, {
|
|
1189
|
+
action: "add-column";
|
|
1190
|
+
column: string;
|
|
1191
|
+
columnType: "boolean" | "date" | "number" | "string";
|
|
1192
|
+
}>, z.ZodObject<{
|
|
1193
|
+
action: z.ZodLiteral<"delete-column">;
|
|
1194
|
+
column: z.ZodString;
|
|
1195
|
+
}, "strip", z.ZodTypeAny, {
|
|
1196
|
+
action: "delete-column";
|
|
1197
|
+
column: string;
|
|
1198
|
+
}, {
|
|
1199
|
+
action: "delete-column";
|
|
1200
|
+
column: string;
|
|
1201
|
+
}>, z.ZodObject<{
|
|
1202
|
+
action: z.ZodLiteral<"rename-column">;
|
|
1203
|
+
column: z.ZodString;
|
|
1204
|
+
newName: z.ZodString;
|
|
1205
|
+
}, "strip", z.ZodTypeAny, {
|
|
1206
|
+
action: "rename-column";
|
|
1207
|
+
column: string;
|
|
1208
|
+
newName: string;
|
|
1209
|
+
}, {
|
|
1210
|
+
action: "rename-column";
|
|
1211
|
+
column: string;
|
|
1212
|
+
newName: string;
|
|
1213
|
+
}>, z.ZodObject<{
|
|
1214
|
+
action: z.ZodLiteral<"insert-rows">;
|
|
1215
|
+
count: z.ZodNumber;
|
|
1216
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
1217
|
+
values: z.ZodArray<z.ZodObject<{
|
|
1218
|
+
column: z.ZodString;
|
|
1219
|
+
value: z.ZodNullable<z.ZodString>;
|
|
1220
|
+
}, "strip", z.ZodTypeAny, {
|
|
1221
|
+
column: string;
|
|
1222
|
+
value: string | null;
|
|
1223
|
+
}, {
|
|
1224
|
+
column: string;
|
|
1225
|
+
value: string | null;
|
|
1226
|
+
}>, "many">;
|
|
1227
|
+
remainingColumns: z.ZodNumber;
|
|
1228
|
+
}, "strip", z.ZodTypeAny, {
|
|
1229
|
+
values: {
|
|
1230
|
+
column: string;
|
|
1231
|
+
value: string | null;
|
|
1232
|
+
}[];
|
|
1233
|
+
remainingColumns: number;
|
|
1234
|
+
}, {
|
|
1235
|
+
values: {
|
|
1236
|
+
column: string;
|
|
1237
|
+
value: string | null;
|
|
1238
|
+
}[];
|
|
1239
|
+
remainingColumns: number;
|
|
1240
|
+
}>, "many">;
|
|
1241
|
+
}, "strip", z.ZodTypeAny, {
|
|
1242
|
+
action: "insert-rows";
|
|
1243
|
+
count: number;
|
|
1244
|
+
rows: {
|
|
1245
|
+
values: {
|
|
1246
|
+
column: string;
|
|
1247
|
+
value: string | null;
|
|
1248
|
+
}[];
|
|
1249
|
+
remainingColumns: number;
|
|
1250
|
+
}[];
|
|
1251
|
+
}, {
|
|
1252
|
+
action: "insert-rows";
|
|
1253
|
+
count: number;
|
|
1254
|
+
rows: {
|
|
1255
|
+
values: {
|
|
1256
|
+
column: string;
|
|
1257
|
+
value: string | null;
|
|
1258
|
+
}[];
|
|
1259
|
+
remainingColumns: number;
|
|
1260
|
+
}[];
|
|
1261
|
+
}>, z.ZodObject<{
|
|
1262
|
+
action: z.ZodLiteral<"update-rows">;
|
|
1263
|
+
changes: z.ZodObject<{
|
|
1264
|
+
values: z.ZodArray<z.ZodObject<{
|
|
1265
|
+
column: z.ZodString;
|
|
1266
|
+
value: z.ZodNullable<z.ZodString>;
|
|
1267
|
+
}, "strip", z.ZodTypeAny, {
|
|
1268
|
+
column: string;
|
|
1269
|
+
value: string | null;
|
|
1270
|
+
}, {
|
|
1271
|
+
column: string;
|
|
1272
|
+
value: string | null;
|
|
1273
|
+
}>, "many">;
|
|
1274
|
+
remainingColumns: z.ZodNumber;
|
|
1275
|
+
}, "strip", z.ZodTypeAny, {
|
|
1276
|
+
values: {
|
|
1277
|
+
column: string;
|
|
1278
|
+
value: string | null;
|
|
1279
|
+
}[];
|
|
1280
|
+
remainingColumns: number;
|
|
1281
|
+
}, {
|
|
1282
|
+
values: {
|
|
1283
|
+
column: string;
|
|
1284
|
+
value: string | null;
|
|
1285
|
+
}[];
|
|
1286
|
+
remainingColumns: number;
|
|
1287
|
+
}>;
|
|
1288
|
+
filter: z.ZodObject<{
|
|
1289
|
+
type: z.ZodEnum<["and", "or"]>;
|
|
1290
|
+
filters: z.ZodArray<z.ZodObject<{
|
|
1291
|
+
columnName: z.ZodString;
|
|
1292
|
+
condition: z.ZodEnum<["eq", "neq", "like", "ilike", "gt", "gte", "lt", "lte"]>;
|
|
1293
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
1294
|
+
}, "strip", z.ZodTypeAny, {
|
|
1295
|
+
columnName: string;
|
|
1296
|
+
condition: "eq" | "gt" | "gte" | "ilike" | "like" | "lt" | "lte" | "neq";
|
|
1297
|
+
value: string | number | boolean | null;
|
|
1298
|
+
}, {
|
|
1299
|
+
columnName: string;
|
|
1300
|
+
condition: "eq" | "gt" | "gte" | "ilike" | "like" | "lt" | "lte" | "neq";
|
|
1301
|
+
value: string | number | boolean | null;
|
|
1302
|
+
}>, "many">;
|
|
1303
|
+
}, "strip", z.ZodTypeAny, {
|
|
1304
|
+
type: "and" | "or";
|
|
1305
|
+
filters: {
|
|
1306
|
+
columnName: string;
|
|
1307
|
+
condition: "eq" | "gt" | "gte" | "ilike" | "like" | "lt" | "lte" | "neq";
|
|
1308
|
+
value: string | number | boolean | null;
|
|
1309
|
+
}[];
|
|
1310
|
+
}, {
|
|
1311
|
+
type: "and" | "or";
|
|
1312
|
+
filters: {
|
|
1313
|
+
columnName: string;
|
|
1314
|
+
condition: "eq" | "gt" | "gte" | "ilike" | "like" | "lt" | "lte" | "neq";
|
|
1315
|
+
value: string | number | boolean | null;
|
|
1316
|
+
}[];
|
|
1317
|
+
}>;
|
|
1318
|
+
}, "strip", z.ZodTypeAny, {
|
|
1319
|
+
action: "update-rows";
|
|
1320
|
+
changes: {
|
|
1321
|
+
values: {
|
|
1322
|
+
column: string;
|
|
1323
|
+
value: string | null;
|
|
1324
|
+
}[];
|
|
1325
|
+
remainingColumns: number;
|
|
1326
|
+
};
|
|
1327
|
+
filter: {
|
|
1328
|
+
type: "and" | "or";
|
|
1329
|
+
filters: {
|
|
1330
|
+
columnName: string;
|
|
1331
|
+
condition: "eq" | "gt" | "gte" | "ilike" | "like" | "lt" | "lte" | "neq";
|
|
1332
|
+
value: string | number | boolean | null;
|
|
1333
|
+
}[];
|
|
1334
|
+
};
|
|
1335
|
+
}, {
|
|
1336
|
+
action: "update-rows";
|
|
1337
|
+
changes: {
|
|
1338
|
+
values: {
|
|
1339
|
+
column: string;
|
|
1340
|
+
value: string | null;
|
|
1341
|
+
}[];
|
|
1342
|
+
remainingColumns: number;
|
|
1343
|
+
};
|
|
1344
|
+
filter: {
|
|
1345
|
+
type: "and" | "or";
|
|
1346
|
+
filters: {
|
|
1347
|
+
columnName: string;
|
|
1348
|
+
condition: "eq" | "gt" | "gte" | "ilike" | "like" | "lt" | "lte" | "neq";
|
|
1349
|
+
value: string | number | boolean | null;
|
|
1350
|
+
}[];
|
|
1351
|
+
};
|
|
1352
|
+
}>, z.ZodObject<{
|
|
1353
|
+
action: z.ZodLiteral<"delete-rows">;
|
|
1354
|
+
filter: z.ZodObject<{
|
|
1355
|
+
type: z.ZodEnum<["and", "or"]>;
|
|
1356
|
+
filters: z.ZodArray<z.ZodObject<{
|
|
1357
|
+
columnName: z.ZodString;
|
|
1358
|
+
condition: z.ZodEnum<["eq", "neq", "like", "ilike", "gt", "gte", "lt", "lte"]>;
|
|
1359
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
1360
|
+
}, "strip", z.ZodTypeAny, {
|
|
1361
|
+
columnName: string;
|
|
1362
|
+
condition: "eq" | "gt" | "gte" | "ilike" | "like" | "lt" | "lte" | "neq";
|
|
1363
|
+
value: string | number | boolean | null;
|
|
1364
|
+
}, {
|
|
1365
|
+
columnName: string;
|
|
1366
|
+
condition: "eq" | "gt" | "gte" | "ilike" | "like" | "lt" | "lte" | "neq";
|
|
1367
|
+
value: string | number | boolean | null;
|
|
1368
|
+
}>, "many">;
|
|
1369
|
+
}, "strip", z.ZodTypeAny, {
|
|
1370
|
+
type: "and" | "or";
|
|
1371
|
+
filters: {
|
|
1372
|
+
columnName: string;
|
|
1373
|
+
condition: "eq" | "gt" | "gte" | "ilike" | "like" | "lt" | "lte" | "neq";
|
|
1374
|
+
value: string | number | boolean | null;
|
|
1375
|
+
}[];
|
|
1376
|
+
}, {
|
|
1377
|
+
type: "and" | "or";
|
|
1378
|
+
filters: {
|
|
1379
|
+
columnName: string;
|
|
1380
|
+
condition: "eq" | "gt" | "gte" | "ilike" | "like" | "lt" | "lte" | "neq";
|
|
1381
|
+
value: string | number | boolean | null;
|
|
1382
|
+
}[];
|
|
1383
|
+
}>;
|
|
1384
|
+
}, "strip", z.ZodTypeAny, {
|
|
1385
|
+
action: "delete-rows";
|
|
1386
|
+
filter: {
|
|
1387
|
+
type: "and" | "or";
|
|
1388
|
+
filters: {
|
|
1389
|
+
columnName: string;
|
|
1390
|
+
condition: "eq" | "gt" | "gte" | "ilike" | "like" | "lt" | "lte" | "neq";
|
|
1391
|
+
value: string | number | boolean | null;
|
|
1392
|
+
}[];
|
|
1393
|
+
};
|
|
1394
|
+
}, {
|
|
1395
|
+
action: "delete-rows";
|
|
1396
|
+
filter: {
|
|
1397
|
+
type: "and" | "or";
|
|
1398
|
+
filters: {
|
|
1399
|
+
columnName: string;
|
|
1400
|
+
condition: "eq" | "gt" | "gte" | "ilike" | "like" | "lt" | "lte" | "neq";
|
|
1401
|
+
value: string | number | boolean | null;
|
|
1402
|
+
}[];
|
|
1403
|
+
};
|
|
1404
|
+
}>, z.ZodObject<{
|
|
1405
|
+
action: z.ZodLiteral<"archive-workflow">;
|
|
1406
|
+
name: z.ZodString;
|
|
1407
|
+
id: z.ZodString;
|
|
1408
|
+
}, "strip", z.ZodTypeAny, {
|
|
1409
|
+
action: "archive-workflow";
|
|
1410
|
+
name: string;
|
|
1411
|
+
id: string;
|
|
1412
|
+
}, {
|
|
1413
|
+
action: "archive-workflow";
|
|
1414
|
+
name: string;
|
|
1415
|
+
id: string;
|
|
1416
|
+
}>, z.ZodObject<{
|
|
1417
|
+
action: z.ZodLiteral<"restore-workflow">;
|
|
1418
|
+
name: z.ZodString;
|
|
1419
|
+
id: z.ZodString;
|
|
1420
|
+
}, "strip", z.ZodTypeAny, {
|
|
1421
|
+
action: "restore-workflow";
|
|
1422
|
+
name: string;
|
|
1423
|
+
id: string;
|
|
1424
|
+
}, {
|
|
1425
|
+
action: "restore-workflow";
|
|
1426
|
+
name: string;
|
|
1427
|
+
id: string;
|
|
1428
|
+
}>, z.ZodObject<{
|
|
1429
|
+
action: z.ZodLiteral<"unpublish-workflow">;
|
|
1430
|
+
name: z.ZodString;
|
|
1431
|
+
id: z.ZodString;
|
|
1432
|
+
}, "strip", z.ZodTypeAny, {
|
|
1433
|
+
action: "unpublish-workflow";
|
|
1434
|
+
name: string;
|
|
1435
|
+
id: string;
|
|
1436
|
+
}, {
|
|
1437
|
+
action: "unpublish-workflow";
|
|
1438
|
+
name: string;
|
|
1439
|
+
id: string;
|
|
1440
|
+
}>, z.ZodObject<{
|
|
1441
|
+
action: z.ZodLiteral<"restore-version">;
|
|
1442
|
+
version: z.ZodString;
|
|
1443
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
1444
|
+
}, "strip", z.ZodTypeAny, {
|
|
1445
|
+
action: "restore-version";
|
|
1446
|
+
version: string;
|
|
1447
|
+
createdAt?: string | undefined;
|
|
1448
|
+
}, {
|
|
1449
|
+
action: "restore-version";
|
|
1450
|
+
version: string;
|
|
1451
|
+
createdAt?: string | undefined;
|
|
1452
|
+
}>, z.ZodObject<{
|
|
1453
|
+
action: z.ZodLiteral<"update-version">;
|
|
1454
|
+
version: z.ZodString;
|
|
1455
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1456
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1457
|
+
}, "strip", z.ZodTypeAny, {
|
|
1458
|
+
action: "update-version";
|
|
1459
|
+
version: string;
|
|
1460
|
+
name?: string | null | undefined;
|
|
1461
|
+
description?: string | null | undefined;
|
|
1462
|
+
}, {
|
|
1463
|
+
action: "update-version";
|
|
1464
|
+
version: string;
|
|
1465
|
+
name?: string | null | undefined;
|
|
1466
|
+
description?: string | null | undefined;
|
|
1467
|
+
}>, z.ZodObject<{
|
|
1468
|
+
action: z.ZodLiteral<"run-workflow">;
|
|
1469
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
1470
|
+
trigger: z.ZodOptional<z.ZodString>;
|
|
1471
|
+
}, "strip", z.ZodTypeAny, {
|
|
1472
|
+
action: "run-workflow";
|
|
1473
|
+
summary?: string | undefined;
|
|
1474
|
+
trigger?: string | undefined;
|
|
1475
|
+
}, {
|
|
1476
|
+
action: "run-workflow";
|
|
1477
|
+
summary?: string | undefined;
|
|
1478
|
+
trigger?: string | undefined;
|
|
1479
|
+
}>, z.ZodObject<{
|
|
1480
|
+
action: z.ZodLiteral<"publish-workflow">;
|
|
1481
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
1482
|
+
selectedVersion: z.ZodBoolean;
|
|
1483
|
+
supportingCount: z.ZodNumber;
|
|
1484
|
+
verification: z.ZodOptional<z.ZodObject<{
|
|
1485
|
+
level: z.ZodEnum<["unproven", "partial", "failed", "no-verdict"]>;
|
|
1486
|
+
cause: z.ZodOptional<z.ZodString>;
|
|
1487
|
+
unprovenTargets: z.ZodArray<z.ZodString, "many">;
|
|
1488
|
+
pendingTriggers: z.ZodArray<z.ZodString, "many">;
|
|
1489
|
+
nodesNotReached: z.ZodArray<z.ZodString, "many">;
|
|
1490
|
+
plannedNodeCount: z.ZodNumber;
|
|
1491
|
+
simulatedNodes: z.ZodArray<z.ZodString, "many">;
|
|
1492
|
+
pinnedNodes: z.ZodArray<z.ZodString, "many">;
|
|
1493
|
+
}, "strip", z.ZodTypeAny, {
|
|
1494
|
+
level: "failed" | "no-verdict" | "partial" | "unproven";
|
|
1495
|
+
cause?: string | undefined;
|
|
1496
|
+
unprovenTargets: string[];
|
|
1497
|
+
pendingTriggers: string[];
|
|
1498
|
+
nodesNotReached: string[];
|
|
1499
|
+
plannedNodeCount: number;
|
|
1500
|
+
simulatedNodes: string[];
|
|
1501
|
+
pinnedNodes: string[];
|
|
1502
|
+
}, {
|
|
1503
|
+
level: "failed" | "no-verdict" | "partial" | "unproven";
|
|
1504
|
+
cause?: string | undefined;
|
|
1505
|
+
unprovenTargets: string[];
|
|
1506
|
+
pendingTriggers: string[];
|
|
1507
|
+
nodesNotReached: string[];
|
|
1508
|
+
plannedNodeCount: number;
|
|
1509
|
+
simulatedNodes: string[];
|
|
1510
|
+
pinnedNodes: string[];
|
|
1511
|
+
}>>;
|
|
1512
|
+
}, "strip", z.ZodTypeAny, {
|
|
1513
|
+
action: "publish-workflow";
|
|
1514
|
+
summary?: string | undefined;
|
|
1515
|
+
selectedVersion: boolean;
|
|
1516
|
+
supportingCount: number;
|
|
1517
|
+
verification?: {
|
|
1518
|
+
level: "failed" | "no-verdict" | "partial" | "unproven";
|
|
1519
|
+
cause?: string | undefined;
|
|
1520
|
+
unprovenTargets: string[];
|
|
1521
|
+
pendingTriggers: string[];
|
|
1522
|
+
nodesNotReached: string[];
|
|
1523
|
+
plannedNodeCount: number;
|
|
1524
|
+
simulatedNodes: string[];
|
|
1525
|
+
pinnedNodes: string[];
|
|
1526
|
+
} | undefined;
|
|
1527
|
+
}, {
|
|
1528
|
+
action: "publish-workflow";
|
|
1529
|
+
summary?: string | undefined;
|
|
1530
|
+
selectedVersion: boolean;
|
|
1531
|
+
supportingCount: number;
|
|
1532
|
+
verification?: {
|
|
1533
|
+
level: "failed" | "no-verdict" | "partial" | "unproven";
|
|
1534
|
+
cause?: string | undefined;
|
|
1535
|
+
unprovenTargets: string[];
|
|
1536
|
+
pendingTriggers: string[];
|
|
1537
|
+
nodesNotReached: string[];
|
|
1538
|
+
plannedNodeCount: number;
|
|
1539
|
+
simulatedNodes: string[];
|
|
1540
|
+
pinnedNodes: string[];
|
|
1541
|
+
} | undefined;
|
|
1542
|
+
}>]>>;
|
|
1543
|
+
resourceName: z.ZodOptional<z.ZodString>;
|
|
1190
1544
|
targetApproval: z.ZodOptional<z.ZodObject<{
|
|
1191
1545
|
toolName: z.ZodString;
|
|
1192
1546
|
displayName: z.ZodOptional<z.ZodString>;
|
|
@@ -1681,22 +2035,6 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
|
|
|
1681
2035
|
}>, "many">>;
|
|
1682
2036
|
needsAction: z.ZodOptional<z.ZodBoolean>;
|
|
1683
2037
|
credentialNeedsAction: z.ZodOptional<z.ZodBoolean>;
|
|
1684
|
-
subnodeRootNode: z.ZodOptional<z.ZodObject<{
|
|
1685
|
-
name: z.ZodString;
|
|
1686
|
-
type: z.ZodString;
|
|
1687
|
-
typeVersion: z.ZodNumber;
|
|
1688
|
-
id: z.ZodString;
|
|
1689
|
-
}, "strip", z.ZodTypeAny, {
|
|
1690
|
-
name: string;
|
|
1691
|
-
type: string;
|
|
1692
|
-
typeVersion: number;
|
|
1693
|
-
id: string;
|
|
1694
|
-
}, {
|
|
1695
|
-
name: string;
|
|
1696
|
-
type: string;
|
|
1697
|
-
typeVersion: number;
|
|
1698
|
-
id: string;
|
|
1699
|
-
}>>;
|
|
1700
2038
|
}, "strip", z.ZodTypeAny, {
|
|
1701
2039
|
node: {
|
|
1702
2040
|
name: string;
|
|
@@ -1766,12 +2104,6 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
|
|
|
1766
2104
|
}[] | undefined;
|
|
1767
2105
|
needsAction?: boolean | undefined;
|
|
1768
2106
|
credentialNeedsAction?: boolean | undefined;
|
|
1769
|
-
subnodeRootNode?: {
|
|
1770
|
-
name: string;
|
|
1771
|
-
type: string;
|
|
1772
|
-
typeVersion: number;
|
|
1773
|
-
id: string;
|
|
1774
|
-
} | undefined;
|
|
1775
2107
|
}, {
|
|
1776
2108
|
node: {
|
|
1777
2109
|
name: string;
|
|
@@ -1841,12 +2173,6 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
|
|
|
1841
2173
|
}[] | undefined;
|
|
1842
2174
|
needsAction?: boolean | undefined;
|
|
1843
2175
|
credentialNeedsAction?: boolean | undefined;
|
|
1844
|
-
subnodeRootNode?: {
|
|
1845
|
-
name: string;
|
|
1846
|
-
type: string;
|
|
1847
|
-
typeVersion: number;
|
|
1848
|
-
id: string;
|
|
1849
|
-
} | undefined;
|
|
1850
2176
|
}>, "many">>;
|
|
1851
2177
|
workflowId: z.ZodOptional<z.ZodString>;
|
|
1852
2178
|
resourceDecision: z.ZodOptional<z.ZodObject<{
|
|
@@ -1944,6 +2270,101 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
|
|
|
1944
2270
|
args: Record<string, unknown>;
|
|
1945
2271
|
severity: "destructive" | "info" | "warning";
|
|
1946
2272
|
message: string;
|
|
2273
|
+
approvalDetails?: {
|
|
2274
|
+
action: "edit-workflow";
|
|
2275
|
+
summary?: string | undefined;
|
|
2276
|
+
} | {
|
|
2277
|
+
action: "delete-table";
|
|
2278
|
+
} | {
|
|
2279
|
+
action: "add-column";
|
|
2280
|
+
column: string;
|
|
2281
|
+
columnType: "boolean" | "date" | "number" | "string";
|
|
2282
|
+
} | {
|
|
2283
|
+
action: "delete-column";
|
|
2284
|
+
column: string;
|
|
2285
|
+
} | {
|
|
2286
|
+
action: "rename-column";
|
|
2287
|
+
column: string;
|
|
2288
|
+
newName: string;
|
|
2289
|
+
} | {
|
|
2290
|
+
action: "insert-rows";
|
|
2291
|
+
count: number;
|
|
2292
|
+
rows: {
|
|
2293
|
+
values: {
|
|
2294
|
+
column: string;
|
|
2295
|
+
value: string | null;
|
|
2296
|
+
}[];
|
|
2297
|
+
remainingColumns: number;
|
|
2298
|
+
}[];
|
|
2299
|
+
} | {
|
|
2300
|
+
action: "update-rows";
|
|
2301
|
+
changes: {
|
|
2302
|
+
values: {
|
|
2303
|
+
column: string;
|
|
2304
|
+
value: string | null;
|
|
2305
|
+
}[];
|
|
2306
|
+
remainingColumns: number;
|
|
2307
|
+
};
|
|
2308
|
+
filter: {
|
|
2309
|
+
type: "and" | "or";
|
|
2310
|
+
filters: {
|
|
2311
|
+
columnName: string;
|
|
2312
|
+
condition: "eq" | "gt" | "gte" | "ilike" | "like" | "lt" | "lte" | "neq";
|
|
2313
|
+
value: string | number | boolean | null;
|
|
2314
|
+
}[];
|
|
2315
|
+
};
|
|
2316
|
+
} | {
|
|
2317
|
+
action: "delete-rows";
|
|
2318
|
+
filter: {
|
|
2319
|
+
type: "and" | "or";
|
|
2320
|
+
filters: {
|
|
2321
|
+
columnName: string;
|
|
2322
|
+
condition: "eq" | "gt" | "gte" | "ilike" | "like" | "lt" | "lte" | "neq";
|
|
2323
|
+
value: string | number | boolean | null;
|
|
2324
|
+
}[];
|
|
2325
|
+
};
|
|
2326
|
+
} | {
|
|
2327
|
+
action: "archive-workflow";
|
|
2328
|
+
name: string;
|
|
2329
|
+
id: string;
|
|
2330
|
+
} | {
|
|
2331
|
+
action: "restore-workflow";
|
|
2332
|
+
name: string;
|
|
2333
|
+
id: string;
|
|
2334
|
+
} | {
|
|
2335
|
+
action: "unpublish-workflow";
|
|
2336
|
+
name: string;
|
|
2337
|
+
id: string;
|
|
2338
|
+
} | {
|
|
2339
|
+
action: "restore-version";
|
|
2340
|
+
version: string;
|
|
2341
|
+
createdAt?: string | undefined;
|
|
2342
|
+
} | {
|
|
2343
|
+
action: "update-version";
|
|
2344
|
+
version: string;
|
|
2345
|
+
name?: string | null | undefined;
|
|
2346
|
+
description?: string | null | undefined;
|
|
2347
|
+
} | {
|
|
2348
|
+
action: "run-workflow";
|
|
2349
|
+
summary?: string | undefined;
|
|
2350
|
+
trigger?: string | undefined;
|
|
2351
|
+
} | {
|
|
2352
|
+
action: "publish-workflow";
|
|
2353
|
+
summary?: string | undefined;
|
|
2354
|
+
selectedVersion: boolean;
|
|
2355
|
+
supportingCount: number;
|
|
2356
|
+
verification?: {
|
|
2357
|
+
level: "failed" | "no-verdict" | "partial" | "unproven";
|
|
2358
|
+
cause?: string | undefined;
|
|
2359
|
+
unprovenTargets: string[];
|
|
2360
|
+
pendingTriggers: string[];
|
|
2361
|
+
nodesNotReached: string[];
|
|
2362
|
+
plannedNodeCount: number;
|
|
2363
|
+
simulatedNodes: string[];
|
|
2364
|
+
pinnedNodes: string[];
|
|
2365
|
+
} | undefined;
|
|
2366
|
+
} | undefined;
|
|
2367
|
+
resourceName?: string | undefined;
|
|
1947
2368
|
targetApproval?: {
|
|
1948
2369
|
toolName: string;
|
|
1949
2370
|
displayName?: string | undefined;
|
|
@@ -2090,12 +2511,6 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
|
|
|
2090
2511
|
}[] | undefined;
|
|
2091
2512
|
needsAction?: boolean | undefined;
|
|
2092
2513
|
credentialNeedsAction?: boolean | undefined;
|
|
2093
|
-
subnodeRootNode?: {
|
|
2094
|
-
name: string;
|
|
2095
|
-
type: string;
|
|
2096
|
-
typeVersion: number;
|
|
2097
|
-
id: string;
|
|
2098
|
-
} | undefined;
|
|
2099
2514
|
}[] | undefined;
|
|
2100
2515
|
workflowId?: string | undefined;
|
|
2101
2516
|
resourceDecision?: {
|
|
@@ -2128,6 +2543,101 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
|
|
|
2128
2543
|
args: Record<string, unknown>;
|
|
2129
2544
|
severity: "destructive" | "info" | "warning";
|
|
2130
2545
|
message: string;
|
|
2546
|
+
approvalDetails?: {
|
|
2547
|
+
action: "edit-workflow";
|
|
2548
|
+
summary?: string | undefined;
|
|
2549
|
+
} | {
|
|
2550
|
+
action: "delete-table";
|
|
2551
|
+
} | {
|
|
2552
|
+
action: "add-column";
|
|
2553
|
+
column: string;
|
|
2554
|
+
columnType: "boolean" | "date" | "number" | "string";
|
|
2555
|
+
} | {
|
|
2556
|
+
action: "delete-column";
|
|
2557
|
+
column: string;
|
|
2558
|
+
} | {
|
|
2559
|
+
action: "rename-column";
|
|
2560
|
+
column: string;
|
|
2561
|
+
newName: string;
|
|
2562
|
+
} | {
|
|
2563
|
+
action: "insert-rows";
|
|
2564
|
+
count: number;
|
|
2565
|
+
rows: {
|
|
2566
|
+
values: {
|
|
2567
|
+
column: string;
|
|
2568
|
+
value: string | null;
|
|
2569
|
+
}[];
|
|
2570
|
+
remainingColumns: number;
|
|
2571
|
+
}[];
|
|
2572
|
+
} | {
|
|
2573
|
+
action: "update-rows";
|
|
2574
|
+
changes: {
|
|
2575
|
+
values: {
|
|
2576
|
+
column: string;
|
|
2577
|
+
value: string | null;
|
|
2578
|
+
}[];
|
|
2579
|
+
remainingColumns: number;
|
|
2580
|
+
};
|
|
2581
|
+
filter: {
|
|
2582
|
+
type: "and" | "or";
|
|
2583
|
+
filters: {
|
|
2584
|
+
columnName: string;
|
|
2585
|
+
condition: "eq" | "gt" | "gte" | "ilike" | "like" | "lt" | "lte" | "neq";
|
|
2586
|
+
value: string | number | boolean | null;
|
|
2587
|
+
}[];
|
|
2588
|
+
};
|
|
2589
|
+
} | {
|
|
2590
|
+
action: "delete-rows";
|
|
2591
|
+
filter: {
|
|
2592
|
+
type: "and" | "or";
|
|
2593
|
+
filters: {
|
|
2594
|
+
columnName: string;
|
|
2595
|
+
condition: "eq" | "gt" | "gte" | "ilike" | "like" | "lt" | "lte" | "neq";
|
|
2596
|
+
value: string | number | boolean | null;
|
|
2597
|
+
}[];
|
|
2598
|
+
};
|
|
2599
|
+
} | {
|
|
2600
|
+
action: "archive-workflow";
|
|
2601
|
+
name: string;
|
|
2602
|
+
id: string;
|
|
2603
|
+
} | {
|
|
2604
|
+
action: "restore-workflow";
|
|
2605
|
+
name: string;
|
|
2606
|
+
id: string;
|
|
2607
|
+
} | {
|
|
2608
|
+
action: "unpublish-workflow";
|
|
2609
|
+
name: string;
|
|
2610
|
+
id: string;
|
|
2611
|
+
} | {
|
|
2612
|
+
action: "restore-version";
|
|
2613
|
+
version: string;
|
|
2614
|
+
createdAt?: string | undefined;
|
|
2615
|
+
} | {
|
|
2616
|
+
action: "update-version";
|
|
2617
|
+
version: string;
|
|
2618
|
+
name?: string | null | undefined;
|
|
2619
|
+
description?: string | null | undefined;
|
|
2620
|
+
} | {
|
|
2621
|
+
action: "run-workflow";
|
|
2622
|
+
summary?: string | undefined;
|
|
2623
|
+
trigger?: string | undefined;
|
|
2624
|
+
} | {
|
|
2625
|
+
action: "publish-workflow";
|
|
2626
|
+
summary?: string | undefined;
|
|
2627
|
+
selectedVersion: boolean;
|
|
2628
|
+
supportingCount: number;
|
|
2629
|
+
verification?: {
|
|
2630
|
+
level: "failed" | "no-verdict" | "partial" | "unproven";
|
|
2631
|
+
cause?: string | undefined;
|
|
2632
|
+
unprovenTargets: string[];
|
|
2633
|
+
pendingTriggers: string[];
|
|
2634
|
+
nodesNotReached: string[];
|
|
2635
|
+
plannedNodeCount: number;
|
|
2636
|
+
simulatedNodes: string[];
|
|
2637
|
+
pinnedNodes: string[];
|
|
2638
|
+
} | undefined;
|
|
2639
|
+
} | undefined;
|
|
2640
|
+
resourceName?: string | undefined;
|
|
2131
2641
|
targetApproval?: {
|
|
2132
2642
|
toolName: string;
|
|
2133
2643
|
displayName?: string | undefined;
|
|
@@ -2274,12 +2784,6 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
|
|
|
2274
2784
|
}[] | undefined;
|
|
2275
2785
|
needsAction?: boolean | undefined;
|
|
2276
2786
|
credentialNeedsAction?: boolean | undefined;
|
|
2277
|
-
subnodeRootNode?: {
|
|
2278
|
-
name: string;
|
|
2279
|
-
type: string;
|
|
2280
|
-
typeVersion: number;
|
|
2281
|
-
id: string;
|
|
2282
|
-
} | undefined;
|
|
2283
2787
|
}[] | undefined;
|
|
2284
2788
|
workflowId?: string | undefined;
|
|
2285
2789
|
resourceDecision?: {
|
|
@@ -3494,6 +3998,88 @@ export declare const threadTitleUpdatedPayloadSchema: z.ZodObject<{
|
|
|
3494
3998
|
}, {
|
|
3495
3999
|
title: string;
|
|
3496
4000
|
}>;
|
|
4001
|
+
export declare const aiPreferencesAppliedPayloadSchema: z.ZodDiscriminatedUnion<"injectedThisTurn", [z.ZodObject<{
|
|
4002
|
+
preferences: z.ZodArray<z.ZodObject<{
|
|
4003
|
+
id: z.ZodString;
|
|
4004
|
+
scope: z.ZodEnum<["user", "project", "instance"]>;
|
|
4005
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
4006
|
+
projectName: z.ZodOptional<z.ZodString>;
|
|
4007
|
+
}, "strip", z.ZodTypeAny, {
|
|
4008
|
+
id: string;
|
|
4009
|
+
scope: "instance" | "project" | "user";
|
|
4010
|
+
projectId?: string | undefined;
|
|
4011
|
+
projectName?: string | undefined;
|
|
4012
|
+
}, {
|
|
4013
|
+
id: string;
|
|
4014
|
+
scope: "instance" | "project" | "user";
|
|
4015
|
+
projectId?: string | undefined;
|
|
4016
|
+
projectName?: string | undefined;
|
|
4017
|
+
}>, "many">;
|
|
4018
|
+
renderedLength: z.ZodNumber;
|
|
4019
|
+
injectedThisTurn: z.ZodLiteral<true>;
|
|
4020
|
+
carriedFromRunId: z.ZodOptional<z.ZodUndefined>;
|
|
4021
|
+
}, "strip", z.ZodTypeAny, {
|
|
4022
|
+
preferences: {
|
|
4023
|
+
id: string;
|
|
4024
|
+
scope: "instance" | "project" | "user";
|
|
4025
|
+
projectId?: string | undefined;
|
|
4026
|
+
projectName?: string | undefined;
|
|
4027
|
+
}[];
|
|
4028
|
+
renderedLength: number;
|
|
4029
|
+
injectedThisTurn: true;
|
|
4030
|
+
carriedFromRunId?: undefined;
|
|
4031
|
+
}, {
|
|
4032
|
+
preferences: {
|
|
4033
|
+
id: string;
|
|
4034
|
+
scope: "instance" | "project" | "user";
|
|
4035
|
+
projectId?: string | undefined;
|
|
4036
|
+
projectName?: string | undefined;
|
|
4037
|
+
}[];
|
|
4038
|
+
renderedLength: number;
|
|
4039
|
+
injectedThisTurn: true;
|
|
4040
|
+
carriedFromRunId?: undefined;
|
|
4041
|
+
}>, z.ZodObject<{
|
|
4042
|
+
preferences: z.ZodArray<z.ZodObject<{
|
|
4043
|
+
id: z.ZodString;
|
|
4044
|
+
scope: z.ZodEnum<["user", "project", "instance"]>;
|
|
4045
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
4046
|
+
projectName: z.ZodOptional<z.ZodString>;
|
|
4047
|
+
}, "strip", z.ZodTypeAny, {
|
|
4048
|
+
id: string;
|
|
4049
|
+
scope: "instance" | "project" | "user";
|
|
4050
|
+
projectId?: string | undefined;
|
|
4051
|
+
projectName?: string | undefined;
|
|
4052
|
+
}, {
|
|
4053
|
+
id: string;
|
|
4054
|
+
scope: "instance" | "project" | "user";
|
|
4055
|
+
projectId?: string | undefined;
|
|
4056
|
+
projectName?: string | undefined;
|
|
4057
|
+
}>, "many">;
|
|
4058
|
+
renderedLength: z.ZodNumber;
|
|
4059
|
+
injectedThisTurn: z.ZodLiteral<false>;
|
|
4060
|
+
carriedFromRunId: z.ZodOptional<z.ZodString>;
|
|
4061
|
+
}, "strip", z.ZodTypeAny, {
|
|
4062
|
+
preferences: {
|
|
4063
|
+
id: string;
|
|
4064
|
+
scope: "instance" | "project" | "user";
|
|
4065
|
+
projectId?: string | undefined;
|
|
4066
|
+
projectName?: string | undefined;
|
|
4067
|
+
}[];
|
|
4068
|
+
renderedLength: number;
|
|
4069
|
+
injectedThisTurn: false;
|
|
4070
|
+
carriedFromRunId?: string | undefined;
|
|
4071
|
+
}, {
|
|
4072
|
+
preferences: {
|
|
4073
|
+
id: string;
|
|
4074
|
+
scope: "instance" | "project" | "user";
|
|
4075
|
+
projectId?: string | undefined;
|
|
4076
|
+
projectName?: string | undefined;
|
|
4077
|
+
}[];
|
|
4078
|
+
renderedLength: number;
|
|
4079
|
+
injectedThisTurn: false;
|
|
4080
|
+
carriedFromRunId?: string | undefined;
|
|
4081
|
+
}>]>;
|
|
4082
|
+
export type AiPreferencesAppliedPayload = z.infer<typeof aiPreferencesAppliedPayloadSchema>;
|
|
3497
4083
|
export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
3498
4084
|
runId: z.ZodString;
|
|
3499
4085
|
agentId: z.ZodString;
|
|
@@ -4101,6 +4687,385 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
4101
4687
|
args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4102
4688
|
severity: z.ZodEnum<["destructive", "warning", "info"]>;
|
|
4103
4689
|
message: z.ZodString;
|
|
4690
|
+
approvalDetails: z.ZodOptional<z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
|
|
4691
|
+
action: z.ZodLiteral<"edit-workflow">;
|
|
4692
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
4693
|
+
}, "strip", z.ZodTypeAny, {
|
|
4694
|
+
action: "edit-workflow";
|
|
4695
|
+
summary?: string | undefined;
|
|
4696
|
+
}, {
|
|
4697
|
+
action: "edit-workflow";
|
|
4698
|
+
summary?: string | undefined;
|
|
4699
|
+
}>, z.ZodObject<{
|
|
4700
|
+
action: z.ZodLiteral<"delete-table">;
|
|
4701
|
+
}, "strip", z.ZodTypeAny, {
|
|
4702
|
+
action: "delete-table";
|
|
4703
|
+
}, {
|
|
4704
|
+
action: "delete-table";
|
|
4705
|
+
}>, z.ZodObject<{
|
|
4706
|
+
action: z.ZodLiteral<"add-column">;
|
|
4707
|
+
column: z.ZodString;
|
|
4708
|
+
columnType: z.ZodEnum<["string", "number", "boolean", "date"]>;
|
|
4709
|
+
}, "strip", z.ZodTypeAny, {
|
|
4710
|
+
action: "add-column";
|
|
4711
|
+
column: string;
|
|
4712
|
+
columnType: "boolean" | "date" | "number" | "string";
|
|
4713
|
+
}, {
|
|
4714
|
+
action: "add-column";
|
|
4715
|
+
column: string;
|
|
4716
|
+
columnType: "boolean" | "date" | "number" | "string";
|
|
4717
|
+
}>, z.ZodObject<{
|
|
4718
|
+
action: z.ZodLiteral<"delete-column">;
|
|
4719
|
+
column: z.ZodString;
|
|
4720
|
+
}, "strip", z.ZodTypeAny, {
|
|
4721
|
+
action: "delete-column";
|
|
4722
|
+
column: string;
|
|
4723
|
+
}, {
|
|
4724
|
+
action: "delete-column";
|
|
4725
|
+
column: string;
|
|
4726
|
+
}>, z.ZodObject<{
|
|
4727
|
+
action: z.ZodLiteral<"rename-column">;
|
|
4728
|
+
column: z.ZodString;
|
|
4729
|
+
newName: z.ZodString;
|
|
4730
|
+
}, "strip", z.ZodTypeAny, {
|
|
4731
|
+
action: "rename-column";
|
|
4732
|
+
column: string;
|
|
4733
|
+
newName: string;
|
|
4734
|
+
}, {
|
|
4735
|
+
action: "rename-column";
|
|
4736
|
+
column: string;
|
|
4737
|
+
newName: string;
|
|
4738
|
+
}>, z.ZodObject<{
|
|
4739
|
+
action: z.ZodLiteral<"insert-rows">;
|
|
4740
|
+
count: z.ZodNumber;
|
|
4741
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
4742
|
+
values: z.ZodArray<z.ZodObject<{
|
|
4743
|
+
column: z.ZodString;
|
|
4744
|
+
value: z.ZodNullable<z.ZodString>;
|
|
4745
|
+
}, "strip", z.ZodTypeAny, {
|
|
4746
|
+
column: string;
|
|
4747
|
+
value: string | null;
|
|
4748
|
+
}, {
|
|
4749
|
+
column: string;
|
|
4750
|
+
value: string | null;
|
|
4751
|
+
}>, "many">;
|
|
4752
|
+
remainingColumns: z.ZodNumber;
|
|
4753
|
+
}, "strip", z.ZodTypeAny, {
|
|
4754
|
+
values: {
|
|
4755
|
+
column: string;
|
|
4756
|
+
value: string | null;
|
|
4757
|
+
}[];
|
|
4758
|
+
remainingColumns: number;
|
|
4759
|
+
}, {
|
|
4760
|
+
values: {
|
|
4761
|
+
column: string;
|
|
4762
|
+
value: string | null;
|
|
4763
|
+
}[];
|
|
4764
|
+
remainingColumns: number;
|
|
4765
|
+
}>, "many">;
|
|
4766
|
+
}, "strip", z.ZodTypeAny, {
|
|
4767
|
+
action: "insert-rows";
|
|
4768
|
+
count: number;
|
|
4769
|
+
rows: {
|
|
4770
|
+
values: {
|
|
4771
|
+
column: string;
|
|
4772
|
+
value: string | null;
|
|
4773
|
+
}[];
|
|
4774
|
+
remainingColumns: number;
|
|
4775
|
+
}[];
|
|
4776
|
+
}, {
|
|
4777
|
+
action: "insert-rows";
|
|
4778
|
+
count: number;
|
|
4779
|
+
rows: {
|
|
4780
|
+
values: {
|
|
4781
|
+
column: string;
|
|
4782
|
+
value: string | null;
|
|
4783
|
+
}[];
|
|
4784
|
+
remainingColumns: number;
|
|
4785
|
+
}[];
|
|
4786
|
+
}>, z.ZodObject<{
|
|
4787
|
+
action: z.ZodLiteral<"update-rows">;
|
|
4788
|
+
changes: z.ZodObject<{
|
|
4789
|
+
values: z.ZodArray<z.ZodObject<{
|
|
4790
|
+
column: z.ZodString;
|
|
4791
|
+
value: z.ZodNullable<z.ZodString>;
|
|
4792
|
+
}, "strip", z.ZodTypeAny, {
|
|
4793
|
+
column: string;
|
|
4794
|
+
value: string | null;
|
|
4795
|
+
}, {
|
|
4796
|
+
column: string;
|
|
4797
|
+
value: string | null;
|
|
4798
|
+
}>, "many">;
|
|
4799
|
+
remainingColumns: z.ZodNumber;
|
|
4800
|
+
}, "strip", z.ZodTypeAny, {
|
|
4801
|
+
values: {
|
|
4802
|
+
column: string;
|
|
4803
|
+
value: string | null;
|
|
4804
|
+
}[];
|
|
4805
|
+
remainingColumns: number;
|
|
4806
|
+
}, {
|
|
4807
|
+
values: {
|
|
4808
|
+
column: string;
|
|
4809
|
+
value: string | null;
|
|
4810
|
+
}[];
|
|
4811
|
+
remainingColumns: number;
|
|
4812
|
+
}>;
|
|
4813
|
+
filter: z.ZodObject<{
|
|
4814
|
+
type: z.ZodEnum<["and", "or"]>;
|
|
4815
|
+
filters: z.ZodArray<z.ZodObject<{
|
|
4816
|
+
columnName: z.ZodString;
|
|
4817
|
+
condition: z.ZodEnum<["eq", "neq", "like", "ilike", "gt", "gte", "lt", "lte"]>;
|
|
4818
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
4819
|
+
}, "strip", z.ZodTypeAny, {
|
|
4820
|
+
columnName: string;
|
|
4821
|
+
condition: "eq" | "gt" | "gte" | "ilike" | "like" | "lt" | "lte" | "neq";
|
|
4822
|
+
value: string | number | boolean | null;
|
|
4823
|
+
}, {
|
|
4824
|
+
columnName: string;
|
|
4825
|
+
condition: "eq" | "gt" | "gte" | "ilike" | "like" | "lt" | "lte" | "neq";
|
|
4826
|
+
value: string | number | boolean | null;
|
|
4827
|
+
}>, "many">;
|
|
4828
|
+
}, "strip", z.ZodTypeAny, {
|
|
4829
|
+
type: "and" | "or";
|
|
4830
|
+
filters: {
|
|
4831
|
+
columnName: string;
|
|
4832
|
+
condition: "eq" | "gt" | "gte" | "ilike" | "like" | "lt" | "lte" | "neq";
|
|
4833
|
+
value: string | number | boolean | null;
|
|
4834
|
+
}[];
|
|
4835
|
+
}, {
|
|
4836
|
+
type: "and" | "or";
|
|
4837
|
+
filters: {
|
|
4838
|
+
columnName: string;
|
|
4839
|
+
condition: "eq" | "gt" | "gte" | "ilike" | "like" | "lt" | "lte" | "neq";
|
|
4840
|
+
value: string | number | boolean | null;
|
|
4841
|
+
}[];
|
|
4842
|
+
}>;
|
|
4843
|
+
}, "strip", z.ZodTypeAny, {
|
|
4844
|
+
action: "update-rows";
|
|
4845
|
+
changes: {
|
|
4846
|
+
values: {
|
|
4847
|
+
column: string;
|
|
4848
|
+
value: string | null;
|
|
4849
|
+
}[];
|
|
4850
|
+
remainingColumns: number;
|
|
4851
|
+
};
|
|
4852
|
+
filter: {
|
|
4853
|
+
type: "and" | "or";
|
|
4854
|
+
filters: {
|
|
4855
|
+
columnName: string;
|
|
4856
|
+
condition: "eq" | "gt" | "gte" | "ilike" | "like" | "lt" | "lte" | "neq";
|
|
4857
|
+
value: string | number | boolean | null;
|
|
4858
|
+
}[];
|
|
4859
|
+
};
|
|
4860
|
+
}, {
|
|
4861
|
+
action: "update-rows";
|
|
4862
|
+
changes: {
|
|
4863
|
+
values: {
|
|
4864
|
+
column: string;
|
|
4865
|
+
value: string | null;
|
|
4866
|
+
}[];
|
|
4867
|
+
remainingColumns: number;
|
|
4868
|
+
};
|
|
4869
|
+
filter: {
|
|
4870
|
+
type: "and" | "or";
|
|
4871
|
+
filters: {
|
|
4872
|
+
columnName: string;
|
|
4873
|
+
condition: "eq" | "gt" | "gte" | "ilike" | "like" | "lt" | "lte" | "neq";
|
|
4874
|
+
value: string | number | boolean | null;
|
|
4875
|
+
}[];
|
|
4876
|
+
};
|
|
4877
|
+
}>, z.ZodObject<{
|
|
4878
|
+
action: z.ZodLiteral<"delete-rows">;
|
|
4879
|
+
filter: z.ZodObject<{
|
|
4880
|
+
type: z.ZodEnum<["and", "or"]>;
|
|
4881
|
+
filters: z.ZodArray<z.ZodObject<{
|
|
4882
|
+
columnName: z.ZodString;
|
|
4883
|
+
condition: z.ZodEnum<["eq", "neq", "like", "ilike", "gt", "gte", "lt", "lte"]>;
|
|
4884
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
4885
|
+
}, "strip", z.ZodTypeAny, {
|
|
4886
|
+
columnName: string;
|
|
4887
|
+
condition: "eq" | "gt" | "gte" | "ilike" | "like" | "lt" | "lte" | "neq";
|
|
4888
|
+
value: string | number | boolean | null;
|
|
4889
|
+
}, {
|
|
4890
|
+
columnName: string;
|
|
4891
|
+
condition: "eq" | "gt" | "gte" | "ilike" | "like" | "lt" | "lte" | "neq";
|
|
4892
|
+
value: string | number | boolean | null;
|
|
4893
|
+
}>, "many">;
|
|
4894
|
+
}, "strip", z.ZodTypeAny, {
|
|
4895
|
+
type: "and" | "or";
|
|
4896
|
+
filters: {
|
|
4897
|
+
columnName: string;
|
|
4898
|
+
condition: "eq" | "gt" | "gte" | "ilike" | "like" | "lt" | "lte" | "neq";
|
|
4899
|
+
value: string | number | boolean | null;
|
|
4900
|
+
}[];
|
|
4901
|
+
}, {
|
|
4902
|
+
type: "and" | "or";
|
|
4903
|
+
filters: {
|
|
4904
|
+
columnName: string;
|
|
4905
|
+
condition: "eq" | "gt" | "gte" | "ilike" | "like" | "lt" | "lte" | "neq";
|
|
4906
|
+
value: string | number | boolean | null;
|
|
4907
|
+
}[];
|
|
4908
|
+
}>;
|
|
4909
|
+
}, "strip", z.ZodTypeAny, {
|
|
4910
|
+
action: "delete-rows";
|
|
4911
|
+
filter: {
|
|
4912
|
+
type: "and" | "or";
|
|
4913
|
+
filters: {
|
|
4914
|
+
columnName: string;
|
|
4915
|
+
condition: "eq" | "gt" | "gte" | "ilike" | "like" | "lt" | "lte" | "neq";
|
|
4916
|
+
value: string | number | boolean | null;
|
|
4917
|
+
}[];
|
|
4918
|
+
};
|
|
4919
|
+
}, {
|
|
4920
|
+
action: "delete-rows";
|
|
4921
|
+
filter: {
|
|
4922
|
+
type: "and" | "or";
|
|
4923
|
+
filters: {
|
|
4924
|
+
columnName: string;
|
|
4925
|
+
condition: "eq" | "gt" | "gte" | "ilike" | "like" | "lt" | "lte" | "neq";
|
|
4926
|
+
value: string | number | boolean | null;
|
|
4927
|
+
}[];
|
|
4928
|
+
};
|
|
4929
|
+
}>, z.ZodObject<{
|
|
4930
|
+
action: z.ZodLiteral<"archive-workflow">;
|
|
4931
|
+
name: z.ZodString;
|
|
4932
|
+
id: z.ZodString;
|
|
4933
|
+
}, "strip", z.ZodTypeAny, {
|
|
4934
|
+
action: "archive-workflow";
|
|
4935
|
+
name: string;
|
|
4936
|
+
id: string;
|
|
4937
|
+
}, {
|
|
4938
|
+
action: "archive-workflow";
|
|
4939
|
+
name: string;
|
|
4940
|
+
id: string;
|
|
4941
|
+
}>, z.ZodObject<{
|
|
4942
|
+
action: z.ZodLiteral<"restore-workflow">;
|
|
4943
|
+
name: z.ZodString;
|
|
4944
|
+
id: z.ZodString;
|
|
4945
|
+
}, "strip", z.ZodTypeAny, {
|
|
4946
|
+
action: "restore-workflow";
|
|
4947
|
+
name: string;
|
|
4948
|
+
id: string;
|
|
4949
|
+
}, {
|
|
4950
|
+
action: "restore-workflow";
|
|
4951
|
+
name: string;
|
|
4952
|
+
id: string;
|
|
4953
|
+
}>, z.ZodObject<{
|
|
4954
|
+
action: z.ZodLiteral<"unpublish-workflow">;
|
|
4955
|
+
name: z.ZodString;
|
|
4956
|
+
id: z.ZodString;
|
|
4957
|
+
}, "strip", z.ZodTypeAny, {
|
|
4958
|
+
action: "unpublish-workflow";
|
|
4959
|
+
name: string;
|
|
4960
|
+
id: string;
|
|
4961
|
+
}, {
|
|
4962
|
+
action: "unpublish-workflow";
|
|
4963
|
+
name: string;
|
|
4964
|
+
id: string;
|
|
4965
|
+
}>, z.ZodObject<{
|
|
4966
|
+
action: z.ZodLiteral<"restore-version">;
|
|
4967
|
+
version: z.ZodString;
|
|
4968
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
4969
|
+
}, "strip", z.ZodTypeAny, {
|
|
4970
|
+
action: "restore-version";
|
|
4971
|
+
version: string;
|
|
4972
|
+
createdAt?: string | undefined;
|
|
4973
|
+
}, {
|
|
4974
|
+
action: "restore-version";
|
|
4975
|
+
version: string;
|
|
4976
|
+
createdAt?: string | undefined;
|
|
4977
|
+
}>, z.ZodObject<{
|
|
4978
|
+
action: z.ZodLiteral<"update-version">;
|
|
4979
|
+
version: z.ZodString;
|
|
4980
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4981
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4982
|
+
}, "strip", z.ZodTypeAny, {
|
|
4983
|
+
action: "update-version";
|
|
4984
|
+
version: string;
|
|
4985
|
+
name?: string | null | undefined;
|
|
4986
|
+
description?: string | null | undefined;
|
|
4987
|
+
}, {
|
|
4988
|
+
action: "update-version";
|
|
4989
|
+
version: string;
|
|
4990
|
+
name?: string | null | undefined;
|
|
4991
|
+
description?: string | null | undefined;
|
|
4992
|
+
}>, z.ZodObject<{
|
|
4993
|
+
action: z.ZodLiteral<"run-workflow">;
|
|
4994
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
4995
|
+
trigger: z.ZodOptional<z.ZodString>;
|
|
4996
|
+
}, "strip", z.ZodTypeAny, {
|
|
4997
|
+
action: "run-workflow";
|
|
4998
|
+
summary?: string | undefined;
|
|
4999
|
+
trigger?: string | undefined;
|
|
5000
|
+
}, {
|
|
5001
|
+
action: "run-workflow";
|
|
5002
|
+
summary?: string | undefined;
|
|
5003
|
+
trigger?: string | undefined;
|
|
5004
|
+
}>, z.ZodObject<{
|
|
5005
|
+
action: z.ZodLiteral<"publish-workflow">;
|
|
5006
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
5007
|
+
selectedVersion: z.ZodBoolean;
|
|
5008
|
+
supportingCount: z.ZodNumber;
|
|
5009
|
+
verification: z.ZodOptional<z.ZodObject<{
|
|
5010
|
+
level: z.ZodEnum<["unproven", "partial", "failed", "no-verdict"]>;
|
|
5011
|
+
cause: z.ZodOptional<z.ZodString>;
|
|
5012
|
+
unprovenTargets: z.ZodArray<z.ZodString, "many">;
|
|
5013
|
+
pendingTriggers: z.ZodArray<z.ZodString, "many">;
|
|
5014
|
+
nodesNotReached: z.ZodArray<z.ZodString, "many">;
|
|
5015
|
+
plannedNodeCount: z.ZodNumber;
|
|
5016
|
+
simulatedNodes: z.ZodArray<z.ZodString, "many">;
|
|
5017
|
+
pinnedNodes: z.ZodArray<z.ZodString, "many">;
|
|
5018
|
+
}, "strip", z.ZodTypeAny, {
|
|
5019
|
+
level: "failed" | "no-verdict" | "partial" | "unproven";
|
|
5020
|
+
cause?: string | undefined;
|
|
5021
|
+
unprovenTargets: string[];
|
|
5022
|
+
pendingTriggers: string[];
|
|
5023
|
+
nodesNotReached: string[];
|
|
5024
|
+
plannedNodeCount: number;
|
|
5025
|
+
simulatedNodes: string[];
|
|
5026
|
+
pinnedNodes: string[];
|
|
5027
|
+
}, {
|
|
5028
|
+
level: "failed" | "no-verdict" | "partial" | "unproven";
|
|
5029
|
+
cause?: string | undefined;
|
|
5030
|
+
unprovenTargets: string[];
|
|
5031
|
+
pendingTriggers: string[];
|
|
5032
|
+
nodesNotReached: string[];
|
|
5033
|
+
plannedNodeCount: number;
|
|
5034
|
+
simulatedNodes: string[];
|
|
5035
|
+
pinnedNodes: string[];
|
|
5036
|
+
}>>;
|
|
5037
|
+
}, "strip", z.ZodTypeAny, {
|
|
5038
|
+
action: "publish-workflow";
|
|
5039
|
+
summary?: string | undefined;
|
|
5040
|
+
selectedVersion: boolean;
|
|
5041
|
+
supportingCount: number;
|
|
5042
|
+
verification?: {
|
|
5043
|
+
level: "failed" | "no-verdict" | "partial" | "unproven";
|
|
5044
|
+
cause?: string | undefined;
|
|
5045
|
+
unprovenTargets: string[];
|
|
5046
|
+
pendingTriggers: string[];
|
|
5047
|
+
nodesNotReached: string[];
|
|
5048
|
+
plannedNodeCount: number;
|
|
5049
|
+
simulatedNodes: string[];
|
|
5050
|
+
pinnedNodes: string[];
|
|
5051
|
+
} | undefined;
|
|
5052
|
+
}, {
|
|
5053
|
+
action: "publish-workflow";
|
|
5054
|
+
summary?: string | undefined;
|
|
5055
|
+
selectedVersion: boolean;
|
|
5056
|
+
supportingCount: number;
|
|
5057
|
+
verification?: {
|
|
5058
|
+
level: "failed" | "no-verdict" | "partial" | "unproven";
|
|
5059
|
+
cause?: string | undefined;
|
|
5060
|
+
unprovenTargets: string[];
|
|
5061
|
+
pendingTriggers: string[];
|
|
5062
|
+
nodesNotReached: string[];
|
|
5063
|
+
plannedNodeCount: number;
|
|
5064
|
+
simulatedNodes: string[];
|
|
5065
|
+
pinnedNodes: string[];
|
|
5066
|
+
} | undefined;
|
|
5067
|
+
}>]>>;
|
|
5068
|
+
resourceName: z.ZodOptional<z.ZodString>;
|
|
4104
5069
|
targetApproval: z.ZodOptional<z.ZodObject<{
|
|
4105
5070
|
toolName: z.ZodString;
|
|
4106
5071
|
displayName: z.ZodOptional<z.ZodString>;
|
|
@@ -4595,22 +5560,6 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
4595
5560
|
}>, "many">>;
|
|
4596
5561
|
needsAction: z.ZodOptional<z.ZodBoolean>;
|
|
4597
5562
|
credentialNeedsAction: z.ZodOptional<z.ZodBoolean>;
|
|
4598
|
-
subnodeRootNode: z.ZodOptional<z.ZodObject<{
|
|
4599
|
-
name: z.ZodString;
|
|
4600
|
-
type: z.ZodString;
|
|
4601
|
-
typeVersion: z.ZodNumber;
|
|
4602
|
-
id: z.ZodString;
|
|
4603
|
-
}, "strip", z.ZodTypeAny, {
|
|
4604
|
-
name: string;
|
|
4605
|
-
type: string;
|
|
4606
|
-
typeVersion: number;
|
|
4607
|
-
id: string;
|
|
4608
|
-
}, {
|
|
4609
|
-
name: string;
|
|
4610
|
-
type: string;
|
|
4611
|
-
typeVersion: number;
|
|
4612
|
-
id: string;
|
|
4613
|
-
}>>;
|
|
4614
5563
|
}, "strip", z.ZodTypeAny, {
|
|
4615
5564
|
node: {
|
|
4616
5565
|
name: string;
|
|
@@ -4680,12 +5629,6 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
4680
5629
|
}[] | undefined;
|
|
4681
5630
|
needsAction?: boolean | undefined;
|
|
4682
5631
|
credentialNeedsAction?: boolean | undefined;
|
|
4683
|
-
subnodeRootNode?: {
|
|
4684
|
-
name: string;
|
|
4685
|
-
type: string;
|
|
4686
|
-
typeVersion: number;
|
|
4687
|
-
id: string;
|
|
4688
|
-
} | undefined;
|
|
4689
5632
|
}, {
|
|
4690
5633
|
node: {
|
|
4691
5634
|
name: string;
|
|
@@ -4755,12 +5698,6 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
4755
5698
|
}[] | undefined;
|
|
4756
5699
|
needsAction?: boolean | undefined;
|
|
4757
5700
|
credentialNeedsAction?: boolean | undefined;
|
|
4758
|
-
subnodeRootNode?: {
|
|
4759
|
-
name: string;
|
|
4760
|
-
type: string;
|
|
4761
|
-
typeVersion: number;
|
|
4762
|
-
id: string;
|
|
4763
|
-
} | undefined;
|
|
4764
5701
|
}>, "many">>;
|
|
4765
5702
|
workflowId: z.ZodOptional<z.ZodString>;
|
|
4766
5703
|
resourceDecision: z.ZodOptional<z.ZodObject<{
|
|
@@ -4858,6 +5795,101 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
4858
5795
|
args: Record<string, unknown>;
|
|
4859
5796
|
severity: "destructive" | "info" | "warning";
|
|
4860
5797
|
message: string;
|
|
5798
|
+
approvalDetails?: {
|
|
5799
|
+
action: "edit-workflow";
|
|
5800
|
+
summary?: string | undefined;
|
|
5801
|
+
} | {
|
|
5802
|
+
action: "delete-table";
|
|
5803
|
+
} | {
|
|
5804
|
+
action: "add-column";
|
|
5805
|
+
column: string;
|
|
5806
|
+
columnType: "boolean" | "date" | "number" | "string";
|
|
5807
|
+
} | {
|
|
5808
|
+
action: "delete-column";
|
|
5809
|
+
column: string;
|
|
5810
|
+
} | {
|
|
5811
|
+
action: "rename-column";
|
|
5812
|
+
column: string;
|
|
5813
|
+
newName: string;
|
|
5814
|
+
} | {
|
|
5815
|
+
action: "insert-rows";
|
|
5816
|
+
count: number;
|
|
5817
|
+
rows: {
|
|
5818
|
+
values: {
|
|
5819
|
+
column: string;
|
|
5820
|
+
value: string | null;
|
|
5821
|
+
}[];
|
|
5822
|
+
remainingColumns: number;
|
|
5823
|
+
}[];
|
|
5824
|
+
} | {
|
|
5825
|
+
action: "update-rows";
|
|
5826
|
+
changes: {
|
|
5827
|
+
values: {
|
|
5828
|
+
column: string;
|
|
5829
|
+
value: string | null;
|
|
5830
|
+
}[];
|
|
5831
|
+
remainingColumns: number;
|
|
5832
|
+
};
|
|
5833
|
+
filter: {
|
|
5834
|
+
type: "and" | "or";
|
|
5835
|
+
filters: {
|
|
5836
|
+
columnName: string;
|
|
5837
|
+
condition: "eq" | "gt" | "gte" | "ilike" | "like" | "lt" | "lte" | "neq";
|
|
5838
|
+
value: string | number | boolean | null;
|
|
5839
|
+
}[];
|
|
5840
|
+
};
|
|
5841
|
+
} | {
|
|
5842
|
+
action: "delete-rows";
|
|
5843
|
+
filter: {
|
|
5844
|
+
type: "and" | "or";
|
|
5845
|
+
filters: {
|
|
5846
|
+
columnName: string;
|
|
5847
|
+
condition: "eq" | "gt" | "gte" | "ilike" | "like" | "lt" | "lte" | "neq";
|
|
5848
|
+
value: string | number | boolean | null;
|
|
5849
|
+
}[];
|
|
5850
|
+
};
|
|
5851
|
+
} | {
|
|
5852
|
+
action: "archive-workflow";
|
|
5853
|
+
name: string;
|
|
5854
|
+
id: string;
|
|
5855
|
+
} | {
|
|
5856
|
+
action: "restore-workflow";
|
|
5857
|
+
name: string;
|
|
5858
|
+
id: string;
|
|
5859
|
+
} | {
|
|
5860
|
+
action: "unpublish-workflow";
|
|
5861
|
+
name: string;
|
|
5862
|
+
id: string;
|
|
5863
|
+
} | {
|
|
5864
|
+
action: "restore-version";
|
|
5865
|
+
version: string;
|
|
5866
|
+
createdAt?: string | undefined;
|
|
5867
|
+
} | {
|
|
5868
|
+
action: "update-version";
|
|
5869
|
+
version: string;
|
|
5870
|
+
name?: string | null | undefined;
|
|
5871
|
+
description?: string | null | undefined;
|
|
5872
|
+
} | {
|
|
5873
|
+
action: "run-workflow";
|
|
5874
|
+
summary?: string | undefined;
|
|
5875
|
+
trigger?: string | undefined;
|
|
5876
|
+
} | {
|
|
5877
|
+
action: "publish-workflow";
|
|
5878
|
+
summary?: string | undefined;
|
|
5879
|
+
selectedVersion: boolean;
|
|
5880
|
+
supportingCount: number;
|
|
5881
|
+
verification?: {
|
|
5882
|
+
level: "failed" | "no-verdict" | "partial" | "unproven";
|
|
5883
|
+
cause?: string | undefined;
|
|
5884
|
+
unprovenTargets: string[];
|
|
5885
|
+
pendingTriggers: string[];
|
|
5886
|
+
nodesNotReached: string[];
|
|
5887
|
+
plannedNodeCount: number;
|
|
5888
|
+
simulatedNodes: string[];
|
|
5889
|
+
pinnedNodes: string[];
|
|
5890
|
+
} | undefined;
|
|
5891
|
+
} | undefined;
|
|
5892
|
+
resourceName?: string | undefined;
|
|
4861
5893
|
targetApproval?: {
|
|
4862
5894
|
toolName: string;
|
|
4863
5895
|
displayName?: string | undefined;
|
|
@@ -5004,12 +6036,6 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
5004
6036
|
}[] | undefined;
|
|
5005
6037
|
needsAction?: boolean | undefined;
|
|
5006
6038
|
credentialNeedsAction?: boolean | undefined;
|
|
5007
|
-
subnodeRootNode?: {
|
|
5008
|
-
name: string;
|
|
5009
|
-
type: string;
|
|
5010
|
-
typeVersion: number;
|
|
5011
|
-
id: string;
|
|
5012
|
-
} | undefined;
|
|
5013
6039
|
}[] | undefined;
|
|
5014
6040
|
workflowId?: string | undefined;
|
|
5015
6041
|
resourceDecision?: {
|
|
@@ -5042,6 +6068,101 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
5042
6068
|
args: Record<string, unknown>;
|
|
5043
6069
|
severity: "destructive" | "info" | "warning";
|
|
5044
6070
|
message: string;
|
|
6071
|
+
approvalDetails?: {
|
|
6072
|
+
action: "edit-workflow";
|
|
6073
|
+
summary?: string | undefined;
|
|
6074
|
+
} | {
|
|
6075
|
+
action: "delete-table";
|
|
6076
|
+
} | {
|
|
6077
|
+
action: "add-column";
|
|
6078
|
+
column: string;
|
|
6079
|
+
columnType: "boolean" | "date" | "number" | "string";
|
|
6080
|
+
} | {
|
|
6081
|
+
action: "delete-column";
|
|
6082
|
+
column: string;
|
|
6083
|
+
} | {
|
|
6084
|
+
action: "rename-column";
|
|
6085
|
+
column: string;
|
|
6086
|
+
newName: string;
|
|
6087
|
+
} | {
|
|
6088
|
+
action: "insert-rows";
|
|
6089
|
+
count: number;
|
|
6090
|
+
rows: {
|
|
6091
|
+
values: {
|
|
6092
|
+
column: string;
|
|
6093
|
+
value: string | null;
|
|
6094
|
+
}[];
|
|
6095
|
+
remainingColumns: number;
|
|
6096
|
+
}[];
|
|
6097
|
+
} | {
|
|
6098
|
+
action: "update-rows";
|
|
6099
|
+
changes: {
|
|
6100
|
+
values: {
|
|
6101
|
+
column: string;
|
|
6102
|
+
value: string | null;
|
|
6103
|
+
}[];
|
|
6104
|
+
remainingColumns: number;
|
|
6105
|
+
};
|
|
6106
|
+
filter: {
|
|
6107
|
+
type: "and" | "or";
|
|
6108
|
+
filters: {
|
|
6109
|
+
columnName: string;
|
|
6110
|
+
condition: "eq" | "gt" | "gte" | "ilike" | "like" | "lt" | "lte" | "neq";
|
|
6111
|
+
value: string | number | boolean | null;
|
|
6112
|
+
}[];
|
|
6113
|
+
};
|
|
6114
|
+
} | {
|
|
6115
|
+
action: "delete-rows";
|
|
6116
|
+
filter: {
|
|
6117
|
+
type: "and" | "or";
|
|
6118
|
+
filters: {
|
|
6119
|
+
columnName: string;
|
|
6120
|
+
condition: "eq" | "gt" | "gte" | "ilike" | "like" | "lt" | "lte" | "neq";
|
|
6121
|
+
value: string | number | boolean | null;
|
|
6122
|
+
}[];
|
|
6123
|
+
};
|
|
6124
|
+
} | {
|
|
6125
|
+
action: "archive-workflow";
|
|
6126
|
+
name: string;
|
|
6127
|
+
id: string;
|
|
6128
|
+
} | {
|
|
6129
|
+
action: "restore-workflow";
|
|
6130
|
+
name: string;
|
|
6131
|
+
id: string;
|
|
6132
|
+
} | {
|
|
6133
|
+
action: "unpublish-workflow";
|
|
6134
|
+
name: string;
|
|
6135
|
+
id: string;
|
|
6136
|
+
} | {
|
|
6137
|
+
action: "restore-version";
|
|
6138
|
+
version: string;
|
|
6139
|
+
createdAt?: string | undefined;
|
|
6140
|
+
} | {
|
|
6141
|
+
action: "update-version";
|
|
6142
|
+
version: string;
|
|
6143
|
+
name?: string | null | undefined;
|
|
6144
|
+
description?: string | null | undefined;
|
|
6145
|
+
} | {
|
|
6146
|
+
action: "run-workflow";
|
|
6147
|
+
summary?: string | undefined;
|
|
6148
|
+
trigger?: string | undefined;
|
|
6149
|
+
} | {
|
|
6150
|
+
action: "publish-workflow";
|
|
6151
|
+
summary?: string | undefined;
|
|
6152
|
+
selectedVersion: boolean;
|
|
6153
|
+
supportingCount: number;
|
|
6154
|
+
verification?: {
|
|
6155
|
+
level: "failed" | "no-verdict" | "partial" | "unproven";
|
|
6156
|
+
cause?: string | undefined;
|
|
6157
|
+
unprovenTargets: string[];
|
|
6158
|
+
pendingTriggers: string[];
|
|
6159
|
+
nodesNotReached: string[];
|
|
6160
|
+
plannedNodeCount: number;
|
|
6161
|
+
simulatedNodes: string[];
|
|
6162
|
+
pinnedNodes: string[];
|
|
6163
|
+
} | undefined;
|
|
6164
|
+
} | undefined;
|
|
6165
|
+
resourceName?: string | undefined;
|
|
5045
6166
|
targetApproval?: {
|
|
5046
6167
|
toolName: string;
|
|
5047
6168
|
displayName?: string | undefined;
|
|
@@ -5188,12 +6309,6 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
5188
6309
|
}[] | undefined;
|
|
5189
6310
|
needsAction?: boolean | undefined;
|
|
5190
6311
|
credentialNeedsAction?: boolean | undefined;
|
|
5191
|
-
subnodeRootNode?: {
|
|
5192
|
-
name: string;
|
|
5193
|
-
type: string;
|
|
5194
|
-
typeVersion: number;
|
|
5195
|
-
id: string;
|
|
5196
|
-
} | undefined;
|
|
5197
6312
|
}[] | undefined;
|
|
5198
6313
|
workflowId?: string | undefined;
|
|
5199
6314
|
resourceDecision?: {
|
|
@@ -5234,6 +6349,101 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
5234
6349
|
args: Record<string, unknown>;
|
|
5235
6350
|
severity: "destructive" | "info" | "warning";
|
|
5236
6351
|
message: string;
|
|
6352
|
+
approvalDetails?: {
|
|
6353
|
+
action: "edit-workflow";
|
|
6354
|
+
summary?: string | undefined;
|
|
6355
|
+
} | {
|
|
6356
|
+
action: "delete-table";
|
|
6357
|
+
} | {
|
|
6358
|
+
action: "add-column";
|
|
6359
|
+
column: string;
|
|
6360
|
+
columnType: "boolean" | "date" | "number" | "string";
|
|
6361
|
+
} | {
|
|
6362
|
+
action: "delete-column";
|
|
6363
|
+
column: string;
|
|
6364
|
+
} | {
|
|
6365
|
+
action: "rename-column";
|
|
6366
|
+
column: string;
|
|
6367
|
+
newName: string;
|
|
6368
|
+
} | {
|
|
6369
|
+
action: "insert-rows";
|
|
6370
|
+
count: number;
|
|
6371
|
+
rows: {
|
|
6372
|
+
values: {
|
|
6373
|
+
column: string;
|
|
6374
|
+
value: string | null;
|
|
6375
|
+
}[];
|
|
6376
|
+
remainingColumns: number;
|
|
6377
|
+
}[];
|
|
6378
|
+
} | {
|
|
6379
|
+
action: "update-rows";
|
|
6380
|
+
changes: {
|
|
6381
|
+
values: {
|
|
6382
|
+
column: string;
|
|
6383
|
+
value: string | null;
|
|
6384
|
+
}[];
|
|
6385
|
+
remainingColumns: number;
|
|
6386
|
+
};
|
|
6387
|
+
filter: {
|
|
6388
|
+
type: "and" | "or";
|
|
6389
|
+
filters: {
|
|
6390
|
+
columnName: string;
|
|
6391
|
+
condition: "eq" | "gt" | "gte" | "ilike" | "like" | "lt" | "lte" | "neq";
|
|
6392
|
+
value: string | number | boolean | null;
|
|
6393
|
+
}[];
|
|
6394
|
+
};
|
|
6395
|
+
} | {
|
|
6396
|
+
action: "delete-rows";
|
|
6397
|
+
filter: {
|
|
6398
|
+
type: "and" | "or";
|
|
6399
|
+
filters: {
|
|
6400
|
+
columnName: string;
|
|
6401
|
+
condition: "eq" | "gt" | "gte" | "ilike" | "like" | "lt" | "lte" | "neq";
|
|
6402
|
+
value: string | number | boolean | null;
|
|
6403
|
+
}[];
|
|
6404
|
+
};
|
|
6405
|
+
} | {
|
|
6406
|
+
action: "archive-workflow";
|
|
6407
|
+
name: string;
|
|
6408
|
+
id: string;
|
|
6409
|
+
} | {
|
|
6410
|
+
action: "restore-workflow";
|
|
6411
|
+
name: string;
|
|
6412
|
+
id: string;
|
|
6413
|
+
} | {
|
|
6414
|
+
action: "unpublish-workflow";
|
|
6415
|
+
name: string;
|
|
6416
|
+
id: string;
|
|
6417
|
+
} | {
|
|
6418
|
+
action: "restore-version";
|
|
6419
|
+
version: string;
|
|
6420
|
+
createdAt?: string | undefined;
|
|
6421
|
+
} | {
|
|
6422
|
+
action: "update-version";
|
|
6423
|
+
version: string;
|
|
6424
|
+
name?: string | null | undefined;
|
|
6425
|
+
description?: string | null | undefined;
|
|
6426
|
+
} | {
|
|
6427
|
+
action: "run-workflow";
|
|
6428
|
+
summary?: string | undefined;
|
|
6429
|
+
trigger?: string | undefined;
|
|
6430
|
+
} | {
|
|
6431
|
+
action: "publish-workflow";
|
|
6432
|
+
summary?: string | undefined;
|
|
6433
|
+
selectedVersion: boolean;
|
|
6434
|
+
supportingCount: number;
|
|
6435
|
+
verification?: {
|
|
6436
|
+
level: "failed" | "no-verdict" | "partial" | "unproven";
|
|
6437
|
+
cause?: string | undefined;
|
|
6438
|
+
unprovenTargets: string[];
|
|
6439
|
+
pendingTriggers: string[];
|
|
6440
|
+
nodesNotReached: string[];
|
|
6441
|
+
plannedNodeCount: number;
|
|
6442
|
+
simulatedNodes: string[];
|
|
6443
|
+
pinnedNodes: string[];
|
|
6444
|
+
} | undefined;
|
|
6445
|
+
} | undefined;
|
|
6446
|
+
resourceName?: string | undefined;
|
|
5237
6447
|
targetApproval?: {
|
|
5238
6448
|
toolName: string;
|
|
5239
6449
|
displayName?: string | undefined;
|
|
@@ -5380,12 +6590,6 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
5380
6590
|
}[] | undefined;
|
|
5381
6591
|
needsAction?: boolean | undefined;
|
|
5382
6592
|
credentialNeedsAction?: boolean | undefined;
|
|
5383
|
-
subnodeRootNode?: {
|
|
5384
|
-
name: string;
|
|
5385
|
-
type: string;
|
|
5386
|
-
typeVersion: number;
|
|
5387
|
-
id: string;
|
|
5388
|
-
} | undefined;
|
|
5389
6593
|
}[] | undefined;
|
|
5390
6594
|
workflowId?: string | undefined;
|
|
5391
6595
|
resourceDecision?: {
|
|
@@ -5426,6 +6630,101 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
5426
6630
|
args: Record<string, unknown>;
|
|
5427
6631
|
severity: "destructive" | "info" | "warning";
|
|
5428
6632
|
message: string;
|
|
6633
|
+
approvalDetails?: {
|
|
6634
|
+
action: "edit-workflow";
|
|
6635
|
+
summary?: string | undefined;
|
|
6636
|
+
} | {
|
|
6637
|
+
action: "delete-table";
|
|
6638
|
+
} | {
|
|
6639
|
+
action: "add-column";
|
|
6640
|
+
column: string;
|
|
6641
|
+
columnType: "boolean" | "date" | "number" | "string";
|
|
6642
|
+
} | {
|
|
6643
|
+
action: "delete-column";
|
|
6644
|
+
column: string;
|
|
6645
|
+
} | {
|
|
6646
|
+
action: "rename-column";
|
|
6647
|
+
column: string;
|
|
6648
|
+
newName: string;
|
|
6649
|
+
} | {
|
|
6650
|
+
action: "insert-rows";
|
|
6651
|
+
count: number;
|
|
6652
|
+
rows: {
|
|
6653
|
+
values: {
|
|
6654
|
+
column: string;
|
|
6655
|
+
value: string | null;
|
|
6656
|
+
}[];
|
|
6657
|
+
remainingColumns: number;
|
|
6658
|
+
}[];
|
|
6659
|
+
} | {
|
|
6660
|
+
action: "update-rows";
|
|
6661
|
+
changes: {
|
|
6662
|
+
values: {
|
|
6663
|
+
column: string;
|
|
6664
|
+
value: string | null;
|
|
6665
|
+
}[];
|
|
6666
|
+
remainingColumns: number;
|
|
6667
|
+
};
|
|
6668
|
+
filter: {
|
|
6669
|
+
type: "and" | "or";
|
|
6670
|
+
filters: {
|
|
6671
|
+
columnName: string;
|
|
6672
|
+
condition: "eq" | "gt" | "gte" | "ilike" | "like" | "lt" | "lte" | "neq";
|
|
6673
|
+
value: string | number | boolean | null;
|
|
6674
|
+
}[];
|
|
6675
|
+
};
|
|
6676
|
+
} | {
|
|
6677
|
+
action: "delete-rows";
|
|
6678
|
+
filter: {
|
|
6679
|
+
type: "and" | "or";
|
|
6680
|
+
filters: {
|
|
6681
|
+
columnName: string;
|
|
6682
|
+
condition: "eq" | "gt" | "gte" | "ilike" | "like" | "lt" | "lte" | "neq";
|
|
6683
|
+
value: string | number | boolean | null;
|
|
6684
|
+
}[];
|
|
6685
|
+
};
|
|
6686
|
+
} | {
|
|
6687
|
+
action: "archive-workflow";
|
|
6688
|
+
name: string;
|
|
6689
|
+
id: string;
|
|
6690
|
+
} | {
|
|
6691
|
+
action: "restore-workflow";
|
|
6692
|
+
name: string;
|
|
6693
|
+
id: string;
|
|
6694
|
+
} | {
|
|
6695
|
+
action: "unpublish-workflow";
|
|
6696
|
+
name: string;
|
|
6697
|
+
id: string;
|
|
6698
|
+
} | {
|
|
6699
|
+
action: "restore-version";
|
|
6700
|
+
version: string;
|
|
6701
|
+
createdAt?: string | undefined;
|
|
6702
|
+
} | {
|
|
6703
|
+
action: "update-version";
|
|
6704
|
+
version: string;
|
|
6705
|
+
name?: string | null | undefined;
|
|
6706
|
+
description?: string | null | undefined;
|
|
6707
|
+
} | {
|
|
6708
|
+
action: "run-workflow";
|
|
6709
|
+
summary?: string | undefined;
|
|
6710
|
+
trigger?: string | undefined;
|
|
6711
|
+
} | {
|
|
6712
|
+
action: "publish-workflow";
|
|
6713
|
+
summary?: string | undefined;
|
|
6714
|
+
selectedVersion: boolean;
|
|
6715
|
+
supportingCount: number;
|
|
6716
|
+
verification?: {
|
|
6717
|
+
level: "failed" | "no-verdict" | "partial" | "unproven";
|
|
6718
|
+
cause?: string | undefined;
|
|
6719
|
+
unprovenTargets: string[];
|
|
6720
|
+
pendingTriggers: string[];
|
|
6721
|
+
nodesNotReached: string[];
|
|
6722
|
+
plannedNodeCount: number;
|
|
6723
|
+
simulatedNodes: string[];
|
|
6724
|
+
pinnedNodes: string[];
|
|
6725
|
+
} | undefined;
|
|
6726
|
+
} | undefined;
|
|
6727
|
+
resourceName?: string | undefined;
|
|
5429
6728
|
targetApproval?: {
|
|
5430
6729
|
toolName: string;
|
|
5431
6730
|
displayName?: string | undefined;
|
|
@@ -5572,12 +6871,6 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
5572
6871
|
}[] | undefined;
|
|
5573
6872
|
needsAction?: boolean | undefined;
|
|
5574
6873
|
credentialNeedsAction?: boolean | undefined;
|
|
5575
|
-
subnodeRootNode?: {
|
|
5576
|
-
name: string;
|
|
5577
|
-
type: string;
|
|
5578
|
-
typeVersion: number;
|
|
5579
|
-
id: string;
|
|
5580
|
-
} | undefined;
|
|
5581
6874
|
}[] | undefined;
|
|
5582
6875
|
workflowId?: string | undefined;
|
|
5583
6876
|
resourceDecision?: {
|
|
@@ -6069,6 +7362,150 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
6069
7362
|
workflowId: string;
|
|
6070
7363
|
items: unknown[];
|
|
6071
7364
|
};
|
|
7365
|
+
}>, z.ZodObject<{
|
|
7366
|
+
runId: z.ZodString;
|
|
7367
|
+
agentId: z.ZodString;
|
|
7368
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
7369
|
+
responseId: z.ZodOptional<z.ZodString>;
|
|
7370
|
+
ts: z.ZodOptional<z.ZodNumber>;
|
|
7371
|
+
type: z.ZodLiteral<"preferences-applied">;
|
|
7372
|
+
payload: z.ZodDiscriminatedUnion<"injectedThisTurn", [z.ZodObject<{
|
|
7373
|
+
preferences: z.ZodArray<z.ZodObject<{
|
|
7374
|
+
id: z.ZodString;
|
|
7375
|
+
scope: z.ZodEnum<["user", "project", "instance"]>;
|
|
7376
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
7377
|
+
projectName: z.ZodOptional<z.ZodString>;
|
|
7378
|
+
}, "strip", z.ZodTypeAny, {
|
|
7379
|
+
id: string;
|
|
7380
|
+
scope: "instance" | "project" | "user";
|
|
7381
|
+
projectId?: string | undefined;
|
|
7382
|
+
projectName?: string | undefined;
|
|
7383
|
+
}, {
|
|
7384
|
+
id: string;
|
|
7385
|
+
scope: "instance" | "project" | "user";
|
|
7386
|
+
projectId?: string | undefined;
|
|
7387
|
+
projectName?: string | undefined;
|
|
7388
|
+
}>, "many">;
|
|
7389
|
+
renderedLength: z.ZodNumber;
|
|
7390
|
+
injectedThisTurn: z.ZodLiteral<true>;
|
|
7391
|
+
carriedFromRunId: z.ZodOptional<z.ZodUndefined>;
|
|
7392
|
+
}, "strip", z.ZodTypeAny, {
|
|
7393
|
+
preferences: {
|
|
7394
|
+
id: string;
|
|
7395
|
+
scope: "instance" | "project" | "user";
|
|
7396
|
+
projectId?: string | undefined;
|
|
7397
|
+
projectName?: string | undefined;
|
|
7398
|
+
}[];
|
|
7399
|
+
renderedLength: number;
|
|
7400
|
+
injectedThisTurn: true;
|
|
7401
|
+
carriedFromRunId?: undefined;
|
|
7402
|
+
}, {
|
|
7403
|
+
preferences: {
|
|
7404
|
+
id: string;
|
|
7405
|
+
scope: "instance" | "project" | "user";
|
|
7406
|
+
projectId?: string | undefined;
|
|
7407
|
+
projectName?: string | undefined;
|
|
7408
|
+
}[];
|
|
7409
|
+
renderedLength: number;
|
|
7410
|
+
injectedThisTurn: true;
|
|
7411
|
+
carriedFromRunId?: undefined;
|
|
7412
|
+
}>, z.ZodObject<{
|
|
7413
|
+
preferences: z.ZodArray<z.ZodObject<{
|
|
7414
|
+
id: z.ZodString;
|
|
7415
|
+
scope: z.ZodEnum<["user", "project", "instance"]>;
|
|
7416
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
7417
|
+
projectName: z.ZodOptional<z.ZodString>;
|
|
7418
|
+
}, "strip", z.ZodTypeAny, {
|
|
7419
|
+
id: string;
|
|
7420
|
+
scope: "instance" | "project" | "user";
|
|
7421
|
+
projectId?: string | undefined;
|
|
7422
|
+
projectName?: string | undefined;
|
|
7423
|
+
}, {
|
|
7424
|
+
id: string;
|
|
7425
|
+
scope: "instance" | "project" | "user";
|
|
7426
|
+
projectId?: string | undefined;
|
|
7427
|
+
projectName?: string | undefined;
|
|
7428
|
+
}>, "many">;
|
|
7429
|
+
renderedLength: z.ZodNumber;
|
|
7430
|
+
injectedThisTurn: z.ZodLiteral<false>;
|
|
7431
|
+
carriedFromRunId: z.ZodOptional<z.ZodString>;
|
|
7432
|
+
}, "strip", z.ZodTypeAny, {
|
|
7433
|
+
preferences: {
|
|
7434
|
+
id: string;
|
|
7435
|
+
scope: "instance" | "project" | "user";
|
|
7436
|
+
projectId?: string | undefined;
|
|
7437
|
+
projectName?: string | undefined;
|
|
7438
|
+
}[];
|
|
7439
|
+
renderedLength: number;
|
|
7440
|
+
injectedThisTurn: false;
|
|
7441
|
+
carriedFromRunId?: string | undefined;
|
|
7442
|
+
}, {
|
|
7443
|
+
preferences: {
|
|
7444
|
+
id: string;
|
|
7445
|
+
scope: "instance" | "project" | "user";
|
|
7446
|
+
projectId?: string | undefined;
|
|
7447
|
+
projectName?: string | undefined;
|
|
7448
|
+
}[];
|
|
7449
|
+
renderedLength: number;
|
|
7450
|
+
injectedThisTurn: false;
|
|
7451
|
+
carriedFromRunId?: string | undefined;
|
|
7452
|
+
}>]>;
|
|
7453
|
+
}, "strip", z.ZodTypeAny, {
|
|
7454
|
+
runId: string;
|
|
7455
|
+
agentId: string;
|
|
7456
|
+
userId?: string | undefined;
|
|
7457
|
+
responseId?: string | undefined;
|
|
7458
|
+
ts?: number | undefined;
|
|
7459
|
+
type: "preferences-applied";
|
|
7460
|
+
payload: {
|
|
7461
|
+
preferences: {
|
|
7462
|
+
id: string;
|
|
7463
|
+
scope: "instance" | "project" | "user";
|
|
7464
|
+
projectId?: string | undefined;
|
|
7465
|
+
projectName?: string | undefined;
|
|
7466
|
+
}[];
|
|
7467
|
+
renderedLength: number;
|
|
7468
|
+
injectedThisTurn: true;
|
|
7469
|
+
carriedFromRunId?: undefined;
|
|
7470
|
+
} | {
|
|
7471
|
+
preferences: {
|
|
7472
|
+
id: string;
|
|
7473
|
+
scope: "instance" | "project" | "user";
|
|
7474
|
+
projectId?: string | undefined;
|
|
7475
|
+
projectName?: string | undefined;
|
|
7476
|
+
}[];
|
|
7477
|
+
renderedLength: number;
|
|
7478
|
+
injectedThisTurn: false;
|
|
7479
|
+
carriedFromRunId?: string | undefined;
|
|
7480
|
+
};
|
|
7481
|
+
}, {
|
|
7482
|
+
runId: string;
|
|
7483
|
+
agentId: string;
|
|
7484
|
+
userId?: string | undefined;
|
|
7485
|
+
responseId?: string | undefined;
|
|
7486
|
+
ts?: number | undefined;
|
|
7487
|
+
type: "preferences-applied";
|
|
7488
|
+
payload: {
|
|
7489
|
+
preferences: {
|
|
7490
|
+
id: string;
|
|
7491
|
+
scope: "instance" | "project" | "user";
|
|
7492
|
+
projectId?: string | undefined;
|
|
7493
|
+
projectName?: string | undefined;
|
|
7494
|
+
}[];
|
|
7495
|
+
renderedLength: number;
|
|
7496
|
+
injectedThisTurn: true;
|
|
7497
|
+
carriedFromRunId?: undefined;
|
|
7498
|
+
} | {
|
|
7499
|
+
preferences: {
|
|
7500
|
+
id: string;
|
|
7501
|
+
scope: "instance" | "project" | "user";
|
|
7502
|
+
projectId?: string | undefined;
|
|
7503
|
+
projectName?: string | undefined;
|
|
7504
|
+
}[];
|
|
7505
|
+
renderedLength: number;
|
|
7506
|
+
injectedThisTurn: false;
|
|
7507
|
+
carriedFromRunId?: string | undefined;
|
|
7508
|
+
};
|
|
6072
7509
|
}>, z.ZodObject<{
|
|
6073
7510
|
runId: z.ZodString;
|
|
6074
7511
|
agentId: z.ZodString;
|
|
@@ -6292,6 +7729,9 @@ export type InstanceAiTasksUpdateEvent = Extract<InstanceAiEvent, {
|
|
|
6292
7729
|
export type InstanceAiSetupItemsEvent = Extract<InstanceAiEvent, {
|
|
6293
7730
|
type: 'setup-items';
|
|
6294
7731
|
}>;
|
|
7732
|
+
export type InstanceAiPreferencesAppliedEvent = Extract<InstanceAiEvent, {
|
|
7733
|
+
type: 'preferences-applied';
|
|
7734
|
+
}>;
|
|
6295
7735
|
export type InstanceAiStatusEvent = Extract<InstanceAiEvent, {
|
|
6296
7736
|
type: 'status';
|
|
6297
7737
|
}>;
|
|
@@ -6961,6 +8401,75 @@ export declare const instanceAiHandoffContextSchema: z.ZodDiscriminatedUnion<"so
|
|
|
6961
8401
|
workflowId: string;
|
|
6962
8402
|
}>]>;
|
|
6963
8403
|
export type InstanceAiHandoffContext = z.infer<typeof instanceAiHandoffContextSchema>;
|
|
8404
|
+
export declare const instanceAiThreadArtifactSchema: z.ZodObject<{
|
|
8405
|
+
type: z.ZodEnum<["workflow", "agent", "data-table"]>;
|
|
8406
|
+
id: z.ZodString;
|
|
8407
|
+
name: z.ZodOptional<z.ZodString>;
|
|
8408
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
8409
|
+
pending: z.ZodOptional<z.ZodLiteral<true>>;
|
|
8410
|
+
archived: z.ZodOptional<z.ZodLiteral<true>>;
|
|
8411
|
+
}, "strip", z.ZodTypeAny, {
|
|
8412
|
+
type: "agent" | "data-table" | "workflow";
|
|
8413
|
+
id: string;
|
|
8414
|
+
name?: string | undefined;
|
|
8415
|
+
projectId?: string | undefined;
|
|
8416
|
+
pending?: true | undefined;
|
|
8417
|
+
archived?: true | undefined;
|
|
8418
|
+
}, {
|
|
8419
|
+
type: "agent" | "data-table" | "workflow";
|
|
8420
|
+
id: string;
|
|
8421
|
+
name?: string | undefined;
|
|
8422
|
+
projectId?: string | undefined;
|
|
8423
|
+
pending?: true | undefined;
|
|
8424
|
+
archived?: true | undefined;
|
|
8425
|
+
}>;
|
|
8426
|
+
export type InstanceAiThreadArtifact = z.infer<typeof instanceAiThreadArtifactSchema>;
|
|
8427
|
+
export declare const instanceAiThreadArtifactsContextSchema: z.ZodObject<{
|
|
8428
|
+
artifacts: z.ZodArray<z.ZodObject<{
|
|
8429
|
+
type: z.ZodEnum<["workflow", "agent", "data-table"]>;
|
|
8430
|
+
id: z.ZodString;
|
|
8431
|
+
name: z.ZodOptional<z.ZodString>;
|
|
8432
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
8433
|
+
pending: z.ZodOptional<z.ZodLiteral<true>>;
|
|
8434
|
+
archived: z.ZodOptional<z.ZodLiteral<true>>;
|
|
8435
|
+
}, "strip", z.ZodTypeAny, {
|
|
8436
|
+
type: "agent" | "data-table" | "workflow";
|
|
8437
|
+
id: string;
|
|
8438
|
+
name?: string | undefined;
|
|
8439
|
+
projectId?: string | undefined;
|
|
8440
|
+
pending?: true | undefined;
|
|
8441
|
+
archived?: true | undefined;
|
|
8442
|
+
}, {
|
|
8443
|
+
type: "agent" | "data-table" | "workflow";
|
|
8444
|
+
id: string;
|
|
8445
|
+
name?: string | undefined;
|
|
8446
|
+
projectId?: string | undefined;
|
|
8447
|
+
pending?: true | undefined;
|
|
8448
|
+
archived?: true | undefined;
|
|
8449
|
+
}>, "many">;
|
|
8450
|
+
activeId: z.ZodOptional<z.ZodString>;
|
|
8451
|
+
}, "strip", z.ZodTypeAny, {
|
|
8452
|
+
artifacts: {
|
|
8453
|
+
type: "agent" | "data-table" | "workflow";
|
|
8454
|
+
id: string;
|
|
8455
|
+
name?: string | undefined;
|
|
8456
|
+
projectId?: string | undefined;
|
|
8457
|
+
pending?: true | undefined;
|
|
8458
|
+
archived?: true | undefined;
|
|
8459
|
+
}[];
|
|
8460
|
+
activeId?: string | undefined;
|
|
8461
|
+
}, {
|
|
8462
|
+
artifacts: {
|
|
8463
|
+
type: "agent" | "data-table" | "workflow";
|
|
8464
|
+
id: string;
|
|
8465
|
+
name?: string | undefined;
|
|
8466
|
+
projectId?: string | undefined;
|
|
8467
|
+
pending?: true | undefined;
|
|
8468
|
+
archived?: true | undefined;
|
|
8469
|
+
}[];
|
|
8470
|
+
activeId?: string | undefined;
|
|
8471
|
+
}>;
|
|
8472
|
+
export type InstanceAiThreadArtifactsContext = z.infer<typeof instanceAiThreadArtifactsContextSchema>;
|
|
6964
8473
|
export declare const instanceAiBuildModeSchema: z.ZodEnum<["default", "progressive"]>;
|
|
6965
8474
|
export type InstanceAiBuildMode = z.infer<typeof instanceAiBuildModeSchema>;
|
|
6966
8475
|
export declare const instanceAiPromptConfigurationSchema: z.ZodObject<{
|
|
@@ -6983,6 +8492,8 @@ export declare const instanceAiPromptConfigurationSchema: z.ZodObject<{
|
|
|
6983
8492
|
fallbackFrom?: string | undefined;
|
|
6984
8493
|
}>;
|
|
6985
8494
|
export type InstanceAiPromptConfiguration = z.infer<typeof instanceAiPromptConfigurationSchema>;
|
|
8495
|
+
export declare const computerUseChannelSchema: z.ZodEnum<["localComputer", "browser"]>;
|
|
8496
|
+
export type ComputerUseChannel = z.infer<typeof computerUseChannelSchema>;
|
|
6986
8497
|
declare const InstanceAiSendMessageRequest_base: import("../zod-class").ZodClass<{
|
|
6987
8498
|
message: string;
|
|
6988
8499
|
attachments?: ({
|
|
@@ -7046,8 +8557,20 @@ declare const InstanceAiSendMessageRequest_base: import("../zod-class").ZodClass
|
|
|
7046
8557
|
source: "setup-panel-execute";
|
|
7047
8558
|
workflowId: string;
|
|
7048
8559
|
} | undefined;
|
|
8560
|
+
threadArtifacts?: {
|
|
8561
|
+
artifacts: {
|
|
8562
|
+
type: "agent" | "data-table" | "workflow";
|
|
8563
|
+
id: string;
|
|
8564
|
+
name?: string | undefined;
|
|
8565
|
+
projectId?: string | undefined;
|
|
8566
|
+
pending?: true | undefined;
|
|
8567
|
+
archived?: true | undefined;
|
|
8568
|
+
}[];
|
|
8569
|
+
activeId?: string | undefined;
|
|
8570
|
+
} | undefined;
|
|
7049
8571
|
timeZone?: string | undefined;
|
|
7050
8572
|
pushRef?: string | undefined;
|
|
8573
|
+
computerUseChannels?: ("browser" | "localComputer")[] | undefined;
|
|
7051
8574
|
mode?: "default" | "progressive" | undefined;
|
|
7052
8575
|
promptVersion?: string | undefined;
|
|
7053
8576
|
}, {
|
|
@@ -7299,8 +8822,54 @@ declare const InstanceAiSendMessageRequest_base: import("../zod-class").ZodClass
|
|
|
7299
8822
|
source: "setup-panel-execute";
|
|
7300
8823
|
workflowId: string;
|
|
7301
8824
|
}>]>>;
|
|
8825
|
+
threadArtifacts: z.ZodOptional<z.ZodObject<{
|
|
8826
|
+
artifacts: z.ZodArray<z.ZodObject<{
|
|
8827
|
+
type: z.ZodEnum<["workflow", "agent", "data-table"]>;
|
|
8828
|
+
id: z.ZodString;
|
|
8829
|
+
name: z.ZodOptional<z.ZodString>;
|
|
8830
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
8831
|
+
pending: z.ZodOptional<z.ZodLiteral<true>>;
|
|
8832
|
+
archived: z.ZodOptional<z.ZodLiteral<true>>;
|
|
8833
|
+
}, "strip", z.ZodTypeAny, {
|
|
8834
|
+
type: "agent" | "data-table" | "workflow";
|
|
8835
|
+
id: string;
|
|
8836
|
+
name?: string | undefined;
|
|
8837
|
+
projectId?: string | undefined;
|
|
8838
|
+
pending?: true | undefined;
|
|
8839
|
+
archived?: true | undefined;
|
|
8840
|
+
}, {
|
|
8841
|
+
type: "agent" | "data-table" | "workflow";
|
|
8842
|
+
id: string;
|
|
8843
|
+
name?: string | undefined;
|
|
8844
|
+
projectId?: string | undefined;
|
|
8845
|
+
pending?: true | undefined;
|
|
8846
|
+
archived?: true | undefined;
|
|
8847
|
+
}>, "many">;
|
|
8848
|
+
activeId: z.ZodOptional<z.ZodString>;
|
|
8849
|
+
}, "strip", z.ZodTypeAny, {
|
|
8850
|
+
artifacts: {
|
|
8851
|
+
type: "agent" | "data-table" | "workflow";
|
|
8852
|
+
id: string;
|
|
8853
|
+
name?: string | undefined;
|
|
8854
|
+
projectId?: string | undefined;
|
|
8855
|
+
pending?: true | undefined;
|
|
8856
|
+
archived?: true | undefined;
|
|
8857
|
+
}[];
|
|
8858
|
+
activeId?: string | undefined;
|
|
8859
|
+
}, {
|
|
8860
|
+
artifacts: {
|
|
8861
|
+
type: "agent" | "data-table" | "workflow";
|
|
8862
|
+
id: string;
|
|
8863
|
+
name?: string | undefined;
|
|
8864
|
+
projectId?: string | undefined;
|
|
8865
|
+
pending?: true | undefined;
|
|
8866
|
+
archived?: true | undefined;
|
|
8867
|
+
}[];
|
|
8868
|
+
activeId?: string | undefined;
|
|
8869
|
+
}>>;
|
|
7302
8870
|
timeZone: z.ZodCatch<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
|
|
7303
8871
|
pushRef: z.ZodOptional<z.ZodString>;
|
|
8872
|
+
computerUseChannels: z.ZodOptional<z.ZodArray<z.ZodEnum<["localComputer", "browser"]>, "many">>;
|
|
7304
8873
|
mode: z.ZodOptional<z.ZodEnum<["default", "progressive"]>>;
|
|
7305
8874
|
promptVersion: z.ZodOptional<z.ZodString>;
|
|
7306
8875
|
}>;
|
|
@@ -7317,6 +8886,10 @@ export declare const INSTANCE_AI_THREAD_SOURCES: readonly ['website-template', '
|
|
|
7317
8886
|
export type InstanceAiThreadSource = (typeof INSTANCE_AI_THREAD_SOURCES)[number];
|
|
7318
8887
|
export declare const INSTANCE_AI_THREAD_SOURCE_FALLBACK = "unknown";
|
|
7319
8888
|
export type InstanceAiThreadSourcePersisted = InstanceAiThreadSource | typeof INSTANCE_AI_THREAD_SOURCE_FALLBACK;
|
|
8889
|
+
export declare const INSTANCE_AI_PREFILL_TYPES: readonly ['handoff_execution_error', 'handoff_credential_setup', 'handoff_fix_with_ai', 'handoff_setup_panel_execute', 'handoff_agent_change_request', 'template_adjustment', 'template_example', 'suggestion_catalog', 'v1_opener', 'workflow_attachment_opener', 'contextual_followup'];
|
|
8890
|
+
export type InstanceAiPrefillType = (typeof INSTANCE_AI_PREFILL_TYPES)[number];
|
|
8891
|
+
export declare const INSTANCE_AI_PREFILL_TYPE_FALLBACK = "unknown";
|
|
8892
|
+
export type InstanceAiPrefillTypeReported = InstanceAiPrefillType | typeof INSTANCE_AI_PREFILL_TYPE_FALLBACK;
|
|
7320
8893
|
export declare const INSTANCE_AI_THREAD_ORIGINS: readonly ['internal', 'external'];
|
|
7321
8894
|
export type InstanceAiThreadOrigin = (typeof INSTANCE_AI_THREAD_ORIGINS)[number];
|
|
7322
8895
|
declare const InstanceAiEnsureThreadRequest_base: import("../zod-class").ZodClass<{
|
|
@@ -7436,6 +9009,11 @@ export interface InstanceAiAgentNode {
|
|
|
7436
9009
|
tasks?: TaskList;
|
|
7437
9010
|
planItems?: PlannedTaskArg[];
|
|
7438
9011
|
setupItemsByWorkflowId?: Record<string, InstanceAiSetupItem[]>;
|
|
9012
|
+
latestSetupAnnouncement?: {
|
|
9013
|
+
workflowId: string;
|
|
9014
|
+
agentId: string;
|
|
9015
|
+
timestamp: string;
|
|
9016
|
+
};
|
|
7439
9017
|
result?: string;
|
|
7440
9018
|
error?: string;
|
|
7441
9019
|
errorDetails?: {
|
|
@@ -7608,6 +9186,7 @@ declare const instanceAiPermissionsSchema: z.ZodObject<{
|
|
|
7608
9186
|
fetchUrl: z.ZodEnum<["require_approval", "always_allow", "blocked"]>;
|
|
7609
9187
|
webSearch: z.ZodEnum<["require_approval", "always_allow", "blocked"]>;
|
|
7610
9188
|
restoreWorkflowVersion: z.ZodEnum<["require_approval", "always_allow", "blocked"]>;
|
|
9189
|
+
executeNode: z.ZodEnum<["require_approval", "always_allow", "blocked"]>;
|
|
7611
9190
|
executeMcpTool: z.ZodEnum<["require_approval", "always_allow", "blocked"]>;
|
|
7612
9191
|
}, "strip", z.ZodTypeAny, {
|
|
7613
9192
|
createWorkflow: "always_allow" | "blocked" | "require_approval";
|
|
@@ -7630,6 +9209,7 @@ declare const instanceAiPermissionsSchema: z.ZodObject<{
|
|
|
7630
9209
|
fetchUrl: "always_allow" | "blocked" | "require_approval";
|
|
7631
9210
|
webSearch: "always_allow" | "blocked" | "require_approval";
|
|
7632
9211
|
restoreWorkflowVersion: "always_allow" | "blocked" | "require_approval";
|
|
9212
|
+
executeNode: "always_allow" | "blocked" | "require_approval";
|
|
7633
9213
|
executeMcpTool: "always_allow" | "blocked" | "require_approval";
|
|
7634
9214
|
}, {
|
|
7635
9215
|
createWorkflow: "always_allow" | "blocked" | "require_approval";
|
|
@@ -7652,11 +9232,13 @@ declare const instanceAiPermissionsSchema: z.ZodObject<{
|
|
|
7652
9232
|
fetchUrl: "always_allow" | "blocked" | "require_approval";
|
|
7653
9233
|
webSearch: "always_allow" | "blocked" | "require_approval";
|
|
7654
9234
|
restoreWorkflowVersion: "always_allow" | "blocked" | "require_approval";
|
|
9235
|
+
executeNode: "always_allow" | "blocked" | "require_approval";
|
|
7655
9236
|
executeMcpTool: "always_allow" | "blocked" | "require_approval";
|
|
7656
9237
|
}>;
|
|
7657
9238
|
export type InstanceAiPermissions = z.infer<typeof instanceAiPermissionsSchema>;
|
|
7658
9239
|
export declare const DEFAULT_INSTANCE_AI_PERMISSIONS: InstanceAiPermissions;
|
|
7659
9240
|
export declare function applyBranchReadOnlyOverrides(permissions: InstanceAiPermissions): InstanceAiPermissions;
|
|
9241
|
+
export declare function resolveInstanceAiPermissions(persisted: Partial<InstanceAiPermissions>): InstanceAiPermissions;
|
|
7660
9242
|
export declare const instanceAiSandboxProviderSchema: z.ZodEnum<["n8n-sandbox", "daytona"]>;
|
|
7661
9243
|
export type InstanceAiSandboxProvider = z.infer<typeof instanceAiSandboxProviderSchema>;
|
|
7662
9244
|
export declare function isInstanceAiSandboxProvider(value: unknown): value is InstanceAiSandboxProvider;
|
|
@@ -7756,6 +9338,7 @@ declare const InstanceAiAdminSettingsUpdateRequest_base: import("../zod-class").
|
|
|
7756
9338
|
fetchUrl?: "always_allow" | "blocked" | "require_approval" | undefined;
|
|
7757
9339
|
webSearch?: "always_allow" | "blocked" | "require_approval" | undefined;
|
|
7758
9340
|
restoreWorkflowVersion?: "always_allow" | "blocked" | "require_approval" | undefined;
|
|
9341
|
+
executeNode?: "always_allow" | "blocked" | "require_approval" | undefined;
|
|
7759
9342
|
executeMcpTool?: "always_allow" | "blocked" | "require_approval" | undefined;
|
|
7760
9343
|
} | undefined;
|
|
7761
9344
|
mcpServers?: string | undefined;
|
|
@@ -7808,6 +9391,7 @@ declare const InstanceAiAdminSettingsUpdateRequest_base: import("../zod-class").
|
|
|
7808
9391
|
fetchUrl: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow", "blocked"]>>;
|
|
7809
9392
|
webSearch: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow", "blocked"]>>;
|
|
7810
9393
|
restoreWorkflowVersion: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow", "blocked"]>>;
|
|
9394
|
+
executeNode: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow", "blocked"]>>;
|
|
7811
9395
|
executeMcpTool: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow", "blocked"]>>;
|
|
7812
9396
|
}, "strip", z.ZodTypeAny, {
|
|
7813
9397
|
createWorkflow?: "always_allow" | "blocked" | "require_approval" | undefined;
|
|
@@ -7830,6 +9414,7 @@ declare const InstanceAiAdminSettingsUpdateRequest_base: import("../zod-class").
|
|
|
7830
9414
|
fetchUrl?: "always_allow" | "blocked" | "require_approval" | undefined;
|
|
7831
9415
|
webSearch?: "always_allow" | "blocked" | "require_approval" | undefined;
|
|
7832
9416
|
restoreWorkflowVersion?: "always_allow" | "blocked" | "require_approval" | undefined;
|
|
9417
|
+
executeNode?: "always_allow" | "blocked" | "require_approval" | undefined;
|
|
7833
9418
|
executeMcpTool?: "always_allow" | "blocked" | "require_approval" | undefined;
|
|
7834
9419
|
}, {
|
|
7835
9420
|
createWorkflow?: "always_allow" | "blocked" | "require_approval" | undefined;
|
|
@@ -7852,6 +9437,7 @@ declare const InstanceAiAdminSettingsUpdateRequest_base: import("../zod-class").
|
|
|
7852
9437
|
fetchUrl?: "always_allow" | "blocked" | "require_approval" | undefined;
|
|
7853
9438
|
webSearch?: "always_allow" | "blocked" | "require_approval" | undefined;
|
|
7854
9439
|
restoreWorkflowVersion?: "always_allow" | "blocked" | "require_approval" | undefined;
|
|
9440
|
+
executeNode?: "always_allow" | "blocked" | "require_approval" | undefined;
|
|
7855
9441
|
executeMcpTool?: "always_allow" | "blocked" | "require_approval" | undefined;
|
|
7856
9442
|
}>>;
|
|
7857
9443
|
mcpServers: z.ZodOptional<z.ZodString>;
|
|
@@ -8077,6 +9663,7 @@ export declare const INSTANCE_AI_PROGRESSIVE_BUILDING_FLAG = "111_instance_ai_pr
|
|
|
8077
9663
|
export declare const INSTANCE_AI_PROGRESSIVE_BUILDING_ENABLED_VARIANT = "variant";
|
|
8078
9664
|
export declare const INSTANCE_AI_NODE_USAGE_FLAG = "109_instance_ai_node_usage";
|
|
8079
9665
|
export declare const INSTANCE_AI_FOLDER_EXPLORATION_FLAG = "110_instance_ai_folder_exploration";
|
|
9666
|
+
export declare const INSTANCE_ACTIVITY_CONTEXT_FLAG = "114_instance_activity_context";
|
|
8080
9667
|
export declare const INSTANCE_AI_FOLDER_EXPLORATION_ENABLED_VARIANT = "test";
|
|
8081
9668
|
export interface InstanceAiEvalRewrittenCredential {
|
|
8082
9669
|
nodeName: string;
|
|
@@ -8173,26 +9760,54 @@ declare const InstanceAiEvalCredentialAllowlistRequest_base: import("../zod-clas
|
|
|
8173
9760
|
}>;
|
|
8174
9761
|
export declare class InstanceAiEvalCredentialAllowlistRequest extends InstanceAiEvalCredentialAllowlistRequest_base {
|
|
8175
9762
|
}
|
|
9763
|
+
export declare const instanceAiEvalSeedArtifactIdSchema: z.ZodString;
|
|
8176
9764
|
declare const instanceAiEvalSeedWorkflowSchema: z.ZodObject<{
|
|
8177
9765
|
id: z.ZodString;
|
|
8178
9766
|
name: z.ZodString;
|
|
8179
9767
|
nodes: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
|
|
8180
9768
|
connections: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
8181
9769
|
published: z.ZodOptional<z.ZodBoolean>;
|
|
9770
|
+
parentFolderId: z.ZodOptional<z.ZodString>;
|
|
8182
9771
|
}, "strip", z.ZodTypeAny, {
|
|
8183
9772
|
id: string;
|
|
8184
9773
|
name: string;
|
|
8185
9774
|
nodes: Record<string, unknown>[];
|
|
8186
9775
|
connections: Record<string, unknown>;
|
|
8187
9776
|
published?: boolean | undefined;
|
|
9777
|
+
parentFolderId?: string | undefined;
|
|
8188
9778
|
}, {
|
|
8189
9779
|
id: string;
|
|
8190
9780
|
name: string;
|
|
8191
9781
|
nodes: Record<string, unknown>[];
|
|
8192
9782
|
connections: Record<string, unknown>;
|
|
8193
9783
|
published?: boolean | undefined;
|
|
9784
|
+
parentFolderId?: string | undefined;
|
|
8194
9785
|
}>;
|
|
8195
9786
|
export type InstanceAiEvalSeedWorkflow = z.infer<typeof instanceAiEvalSeedWorkflowSchema>;
|
|
9787
|
+
export declare const instanceAiEvalSeedFolderSchema: z.ZodObject<{
|
|
9788
|
+
id: z.ZodString;
|
|
9789
|
+
name: z.ZodPipeline<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodString>>;
|
|
9790
|
+
parentFolderId: z.ZodOptional<z.ZodString>;
|
|
9791
|
+
}, "strip", z.ZodTypeAny, {
|
|
9792
|
+
id: string;
|
|
9793
|
+
name: string;
|
|
9794
|
+
parentFolderId?: string | undefined;
|
|
9795
|
+
}, {
|
|
9796
|
+
id: string;
|
|
9797
|
+
name: string;
|
|
9798
|
+
parentFolderId?: string | undefined;
|
|
9799
|
+
}>;
|
|
9800
|
+
export type InstanceAiEvalSeedFolder = z.infer<typeof instanceAiEvalSeedFolderSchema>;
|
|
9801
|
+
export declare function findSeedFolderIssues(payload: {
|
|
9802
|
+
folders?: Array<{
|
|
9803
|
+
id: string;
|
|
9804
|
+
parentFolderId?: string;
|
|
9805
|
+
}>;
|
|
9806
|
+
workflows?: Array<{
|
|
9807
|
+
id: string;
|
|
9808
|
+
parentFolderId?: string;
|
|
9809
|
+
}>;
|
|
9810
|
+
}): string[];
|
|
8196
9811
|
export declare const instanceAiEvalSeedDataTableSchema: z.ZodObject<{
|
|
8197
9812
|
id: z.ZodString;
|
|
8198
9813
|
name: z.ZodString;
|
|
@@ -11343,6 +12958,11 @@ export type InstanceAiEvalSeedAgent = z.infer<typeof instanceAiEvalSeedAgentSche
|
|
|
11343
12958
|
declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").ZodClass<{
|
|
11344
12959
|
threadId: string;
|
|
11345
12960
|
messages: Record<string, unknown>[];
|
|
12961
|
+
folders?: {
|
|
12962
|
+
id: string;
|
|
12963
|
+
name: string;
|
|
12964
|
+
parentFolderId?: string | undefined;
|
|
12965
|
+
}[] | undefined;
|
|
11346
12966
|
dataTables?: {
|
|
11347
12967
|
id: string;
|
|
11348
12968
|
name: string;
|
|
@@ -11358,6 +12978,7 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
|
|
|
11358
12978
|
nodes: Record<string, unknown>[];
|
|
11359
12979
|
connections: Record<string, unknown>;
|
|
11360
12980
|
published?: boolean | undefined;
|
|
12981
|
+
parentFolderId?: string | undefined;
|
|
11361
12982
|
}[] | undefined;
|
|
11362
12983
|
agents?: {
|
|
11363
12984
|
id: string;
|
|
@@ -11611,6 +13232,27 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
|
|
|
11611
13232
|
}, {
|
|
11612
13233
|
threadId: z.ZodString;
|
|
11613
13234
|
messages: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
|
|
13235
|
+
folders: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
13236
|
+
id: z.ZodString;
|
|
13237
|
+
name: z.ZodPipeline<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodString>>;
|
|
13238
|
+
parentFolderId: z.ZodOptional<z.ZodString>;
|
|
13239
|
+
}, "strip", z.ZodTypeAny, {
|
|
13240
|
+
id: string;
|
|
13241
|
+
name: string;
|
|
13242
|
+
parentFolderId?: string | undefined;
|
|
13243
|
+
}, {
|
|
13244
|
+
id: string;
|
|
13245
|
+
name: string;
|
|
13246
|
+
parentFolderId?: string | undefined;
|
|
13247
|
+
}>, "many">>, {
|
|
13248
|
+
id: string;
|
|
13249
|
+
name: string;
|
|
13250
|
+
parentFolderId?: string | undefined;
|
|
13251
|
+
}[] | undefined, {
|
|
13252
|
+
id: string;
|
|
13253
|
+
name: string;
|
|
13254
|
+
parentFolderId?: string | undefined;
|
|
13255
|
+
}[] | undefined>;
|
|
11614
13256
|
dataTables: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11615
13257
|
id: z.ZodString;
|
|
11616
13258
|
name: z.ZodString;
|
|
@@ -11648,18 +13290,21 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
|
|
|
11648
13290
|
nodes: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
|
|
11649
13291
|
connections: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
11650
13292
|
published: z.ZodOptional<z.ZodBoolean>;
|
|
13293
|
+
parentFolderId: z.ZodOptional<z.ZodString>;
|
|
11651
13294
|
}, "strip", z.ZodTypeAny, {
|
|
11652
13295
|
id: string;
|
|
11653
13296
|
name: string;
|
|
11654
13297
|
nodes: Record<string, unknown>[];
|
|
11655
13298
|
connections: Record<string, unknown>;
|
|
11656
13299
|
published?: boolean | undefined;
|
|
13300
|
+
parentFolderId?: string | undefined;
|
|
11657
13301
|
}, {
|
|
11658
13302
|
id: string;
|
|
11659
13303
|
name: string;
|
|
11660
13304
|
nodes: Record<string, unknown>[];
|
|
11661
13305
|
connections: Record<string, unknown>;
|
|
11662
13306
|
published?: boolean | undefined;
|
|
13307
|
+
parentFolderId?: string | undefined;
|
|
11663
13308
|
}>, "many">>;
|
|
11664
13309
|
agents: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
11665
13310
|
id: z.ZodString;
|