@n8n/api-types 1.22.1 → 1.23.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/agent-json-config.schema.d.ts +219 -4
- package/dist/agents/agent-json-config.schema.js +19 -0
- package/dist/agents/agent-json-config.schema.js.map +1 -1
- package/dist/agents/dto.d.ts +14 -0
- package/dist/agents/dto.js +11 -1
- package/dist/agents/dto.js.map +1 -1
- package/dist/agents/types.d.ts +46 -7
- package/dist/agents/types.js +1 -1
- package/dist/agents/types.js.map +1 -1
- package/dist/build.tsbuildinfo +1 -1
- package/dist/dto/ai/ai-build-request.dto.d.ts +3 -3
- package/dist/dto/credential-resolver/list-credential-resolvers-query.dto.d.ts +8 -0
- package/dist/dto/credential-resolver/list-credential-resolvers-query.dto.js +11 -0
- package/dist/dto/credential-resolver/list-credential-resolvers-query.dto.js.map +1 -0
- package/dist/dto/credentials/credential-connection-status.d.ts +3 -0
- package/dist/dto/credentials/credential-connection-status.js +3 -0
- package/dist/dto/credentials/credential-connection-status.js.map +1 -0
- package/dist/dto/index.d.ts +3 -1
- package/dist/dto/index.js +7 -7
- package/dist/dto/index.js.map +1 -1
- package/dist/dto/instance-ai/instance-ai-confirm-request.dto.d.ts +6 -0
- package/dist/dto/instance-ai/instance-ai-confirm-request.dto.js +4 -0
- package/dist/dto/instance-ai/instance-ai-confirm-request.dto.js.map +1 -1
- package/dist/dto/packages/export-workflows-request.dto.d.ts +9 -0
- package/dist/dto/packages/export-workflows-request.dto.js +11 -0
- package/dist/dto/packages/export-workflows-request.dto.js.map +1 -0
- package/dist/dto/security-settings/security-settings.dto.d.ts +20 -0
- package/dist/dto/security-settings/security-settings.dto.js +6 -0
- package/dist/dto/security-settings/security-settings.dto.js.map +1 -1
- package/dist/dto/source-control/push-work-folder-request.dto.d.ts +3 -3
- package/dist/dto/workflows/base-workflow.dto.d.ts +26 -0
- package/dist/dto/workflows/base-workflow.dto.js +8 -1
- package/dist/dto/workflows/base-workflow.dto.js.map +1 -1
- package/dist/dto/workflows/create-workflow.dto.d.ts +18 -0
- package/dist/dto/workflows/get-resource-dependencies.dto.d.ts +1 -1
- package/dist/dto/workflows/get-resource-dependency-counts.dto.d.ts +1 -1
- package/dist/dto/workflows/update-workflow.dto.d.ts +18 -0
- package/dist/index.d.ts +4 -2
- package/dist/index.js +10 -1
- package/dist/index.js.map +1 -1
- package/dist/redaction-enforcement-floor.d.ts +3 -0
- package/dist/redaction-enforcement-floor.js +6 -0
- package/dist/redaction-enforcement-floor.js.map +1 -0
- package/dist/schemas/eval-collections.schema.d.ts +1 -1
- package/dist/schemas/eval-collections.schema.js +1 -1
- package/dist/schemas/eval-collections.schema.js.map +1 -1
- package/dist/schemas/eval-insights.schema.d.ts +286 -0
- package/dist/schemas/eval-insights.schema.js +52 -0
- package/dist/schemas/eval-insights.schema.js.map +1 -0
- package/dist/schemas/instance-ai.schema.d.ts +32 -28
- package/dist/schemas/instance-ai.schema.js +11 -16
- package/dist/schemas/instance-ai.schema.js.map +1 -1
- package/dist/schemas/source-controlled-file.schema.d.ts +2 -2
- package/package.json +7 -7
- package/dist/dto/redaction-enforcement/redaction-enforcement.dto.d.ts +0 -22
- package/dist/dto/redaction-enforcement/redaction-enforcement.dto.js +0 -19
- package/dist/dto/redaction-enforcement/redaction-enforcement.dto.js.map +0 -1
|
@@ -56,6 +56,28 @@ declare const MemoryConfigSchema: z.ZodObject<{
|
|
|
56
56
|
observationLogTailLimit?: number | undefined;
|
|
57
57
|
lockTtlMs?: number | undefined;
|
|
58
58
|
}>>;
|
|
59
|
+
episodicMemory: z.ZodOptional<z.ZodDiscriminatedUnion<"enabled", [z.ZodObject<{
|
|
60
|
+
enabled: z.ZodLiteral<false>;
|
|
61
|
+
}, "strip", z.ZodTypeAny, {
|
|
62
|
+
enabled: false;
|
|
63
|
+
}, {
|
|
64
|
+
enabled: false;
|
|
65
|
+
}>, z.ZodObject<{
|
|
66
|
+
enabled: z.ZodLiteral<true>;
|
|
67
|
+
credential: z.ZodString;
|
|
68
|
+
topK: z.ZodOptional<z.ZodNumber>;
|
|
69
|
+
maxEntriesPerRun: z.ZodOptional<z.ZodNumber>;
|
|
70
|
+
}, "strip", z.ZodTypeAny, {
|
|
71
|
+
enabled: true;
|
|
72
|
+
credential: string;
|
|
73
|
+
topK?: number | undefined;
|
|
74
|
+
maxEntriesPerRun?: number | undefined;
|
|
75
|
+
}, {
|
|
76
|
+
enabled: true;
|
|
77
|
+
credential: string;
|
|
78
|
+
topK?: number | undefined;
|
|
79
|
+
maxEntriesPerRun?: number | undefined;
|
|
80
|
+
}>]>>;
|
|
59
81
|
}, "strip", z.ZodTypeAny, {
|
|
60
82
|
enabled: boolean;
|
|
61
83
|
storage: "n8n";
|
|
@@ -77,6 +99,14 @@ declare const MemoryConfigSchema: z.ZodObject<{
|
|
|
77
99
|
observationLogTailLimit?: number | undefined;
|
|
78
100
|
lockTtlMs?: number | undefined;
|
|
79
101
|
} | undefined;
|
|
102
|
+
episodicMemory?: {
|
|
103
|
+
enabled: false;
|
|
104
|
+
} | {
|
|
105
|
+
enabled: true;
|
|
106
|
+
credential: string;
|
|
107
|
+
topK?: number | undefined;
|
|
108
|
+
maxEntriesPerRun?: number | undefined;
|
|
109
|
+
} | undefined;
|
|
80
110
|
}, {
|
|
81
111
|
enabled: boolean;
|
|
82
112
|
storage: "n8n";
|
|
@@ -98,6 +128,14 @@ declare const MemoryConfigSchema: z.ZodObject<{
|
|
|
98
128
|
observationLogTailLimit?: number | undefined;
|
|
99
129
|
lockTtlMs?: number | undefined;
|
|
100
130
|
} | undefined;
|
|
131
|
+
episodicMemory?: {
|
|
132
|
+
enabled: false;
|
|
133
|
+
} | {
|
|
134
|
+
enabled: true;
|
|
135
|
+
credential: string;
|
|
136
|
+
topK?: number | undefined;
|
|
137
|
+
maxEntriesPerRun?: number | undefined;
|
|
138
|
+
} | undefined;
|
|
101
139
|
}>;
|
|
102
140
|
export declare const AgentModelSchema: z.ZodString;
|
|
103
141
|
export declare const NodeConfigSchema: z.ZodObject<{
|
|
@@ -302,6 +340,28 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
302
340
|
observationLogTailLimit?: number | undefined;
|
|
303
341
|
lockTtlMs?: number | undefined;
|
|
304
342
|
}>>;
|
|
343
|
+
episodicMemory: z.ZodOptional<z.ZodDiscriminatedUnion<"enabled", [z.ZodObject<{
|
|
344
|
+
enabled: z.ZodLiteral<false>;
|
|
345
|
+
}, "strip", z.ZodTypeAny, {
|
|
346
|
+
enabled: false;
|
|
347
|
+
}, {
|
|
348
|
+
enabled: false;
|
|
349
|
+
}>, z.ZodObject<{
|
|
350
|
+
enabled: z.ZodLiteral<true>;
|
|
351
|
+
credential: z.ZodString;
|
|
352
|
+
topK: z.ZodOptional<z.ZodNumber>;
|
|
353
|
+
maxEntriesPerRun: z.ZodOptional<z.ZodNumber>;
|
|
354
|
+
}, "strip", z.ZodTypeAny, {
|
|
355
|
+
enabled: true;
|
|
356
|
+
credential: string;
|
|
357
|
+
topK?: number | undefined;
|
|
358
|
+
maxEntriesPerRun?: number | undefined;
|
|
359
|
+
}, {
|
|
360
|
+
enabled: true;
|
|
361
|
+
credential: string;
|
|
362
|
+
topK?: number | undefined;
|
|
363
|
+
maxEntriesPerRun?: number | undefined;
|
|
364
|
+
}>]>>;
|
|
305
365
|
}, "strip", z.ZodTypeAny, {
|
|
306
366
|
enabled: boolean;
|
|
307
367
|
storage: "n8n";
|
|
@@ -323,6 +383,14 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
323
383
|
observationLogTailLimit?: number | undefined;
|
|
324
384
|
lockTtlMs?: number | undefined;
|
|
325
385
|
} | undefined;
|
|
386
|
+
episodicMemory?: {
|
|
387
|
+
enabled: false;
|
|
388
|
+
} | {
|
|
389
|
+
enabled: true;
|
|
390
|
+
credential: string;
|
|
391
|
+
topK?: number | undefined;
|
|
392
|
+
maxEntriesPerRun?: number | undefined;
|
|
393
|
+
} | undefined;
|
|
326
394
|
}, {
|
|
327
395
|
enabled: boolean;
|
|
328
396
|
storage: "n8n";
|
|
@@ -344,6 +412,14 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
344
412
|
observationLogTailLimit?: number | undefined;
|
|
345
413
|
lockTtlMs?: number | undefined;
|
|
346
414
|
} | undefined;
|
|
415
|
+
episodicMemory?: {
|
|
416
|
+
enabled: false;
|
|
417
|
+
} | {
|
|
418
|
+
enabled: true;
|
|
419
|
+
credential: string;
|
|
420
|
+
topK?: number | undefined;
|
|
421
|
+
maxEntriesPerRun?: number | undefined;
|
|
422
|
+
} | undefined;
|
|
347
423
|
}>>;
|
|
348
424
|
tools: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
349
425
|
type: z.ZodLiteral<"custom">;
|
|
@@ -537,6 +613,7 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
537
613
|
reasoningEffort?: string | undefined;
|
|
538
614
|
}>>;
|
|
539
615
|
toolCallConcurrency: z.ZodOptional<z.ZodNumber>;
|
|
616
|
+
maxIterations: z.ZodOptional<z.ZodNumber>;
|
|
540
617
|
nodeTools: z.ZodOptional<z.ZodObject<{
|
|
541
618
|
enabled: z.ZodBoolean;
|
|
542
619
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -551,6 +628,7 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
551
628
|
reasoningEffort?: string | undefined;
|
|
552
629
|
} | undefined;
|
|
553
630
|
toolCallConcurrency?: number | undefined;
|
|
631
|
+
maxIterations?: number | undefined;
|
|
554
632
|
nodeTools?: {
|
|
555
633
|
enabled: boolean;
|
|
556
634
|
} | undefined;
|
|
@@ -561,6 +639,7 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
561
639
|
reasoningEffort?: string | undefined;
|
|
562
640
|
} | undefined;
|
|
563
641
|
toolCallConcurrency?: number | undefined;
|
|
642
|
+
maxIterations?: number | undefined;
|
|
564
643
|
nodeTools?: {
|
|
565
644
|
enabled: boolean;
|
|
566
645
|
} | undefined;
|
|
@@ -592,6 +671,14 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
592
671
|
observationLogTailLimit?: number | undefined;
|
|
593
672
|
lockTtlMs?: number | undefined;
|
|
594
673
|
} | undefined;
|
|
674
|
+
episodicMemory?: {
|
|
675
|
+
enabled: false;
|
|
676
|
+
} | {
|
|
677
|
+
enabled: true;
|
|
678
|
+
credential: string;
|
|
679
|
+
topK?: number | undefined;
|
|
680
|
+
maxEntriesPerRun?: number | undefined;
|
|
681
|
+
} | undefined;
|
|
595
682
|
} | undefined;
|
|
596
683
|
tools?: ({
|
|
597
684
|
type: "custom";
|
|
@@ -650,6 +737,7 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
650
737
|
reasoningEffort?: string | undefined;
|
|
651
738
|
} | undefined;
|
|
652
739
|
toolCallConcurrency?: number | undefined;
|
|
740
|
+
maxIterations?: number | undefined;
|
|
653
741
|
nodeTools?: {
|
|
654
742
|
enabled: boolean;
|
|
655
743
|
} | undefined;
|
|
@@ -681,6 +769,14 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
681
769
|
observationLogTailLimit?: number | undefined;
|
|
682
770
|
lockTtlMs?: number | undefined;
|
|
683
771
|
} | undefined;
|
|
772
|
+
episodicMemory?: {
|
|
773
|
+
enabled: false;
|
|
774
|
+
} | {
|
|
775
|
+
enabled: true;
|
|
776
|
+
credential: string;
|
|
777
|
+
topK?: number | undefined;
|
|
778
|
+
maxEntriesPerRun?: number | undefined;
|
|
779
|
+
} | undefined;
|
|
684
780
|
} | undefined;
|
|
685
781
|
tools?: ({
|
|
686
782
|
type: "custom";
|
|
@@ -739,6 +835,7 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
739
835
|
reasoningEffort?: string | undefined;
|
|
740
836
|
} | undefined;
|
|
741
837
|
toolCallConcurrency?: number | undefined;
|
|
838
|
+
maxIterations?: number | undefined;
|
|
742
839
|
nodeTools?: {
|
|
743
840
|
enabled: boolean;
|
|
744
841
|
} | undefined;
|
|
@@ -805,6 +902,28 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
805
902
|
observationLogTailLimit?: number | undefined;
|
|
806
903
|
lockTtlMs?: number | undefined;
|
|
807
904
|
}>>;
|
|
905
|
+
episodicMemory: z.ZodOptional<z.ZodDiscriminatedUnion<"enabled", [z.ZodObject<{
|
|
906
|
+
enabled: z.ZodLiteral<false>;
|
|
907
|
+
}, "strip", z.ZodTypeAny, {
|
|
908
|
+
enabled: false;
|
|
909
|
+
}, {
|
|
910
|
+
enabled: false;
|
|
911
|
+
}>, z.ZodObject<{
|
|
912
|
+
enabled: z.ZodLiteral<true>;
|
|
913
|
+
credential: z.ZodString;
|
|
914
|
+
topK: z.ZodOptional<z.ZodNumber>;
|
|
915
|
+
maxEntriesPerRun: z.ZodOptional<z.ZodNumber>;
|
|
916
|
+
}, "strip", z.ZodTypeAny, {
|
|
917
|
+
enabled: true;
|
|
918
|
+
credential: string;
|
|
919
|
+
topK?: number | undefined;
|
|
920
|
+
maxEntriesPerRun?: number | undefined;
|
|
921
|
+
}, {
|
|
922
|
+
enabled: true;
|
|
923
|
+
credential: string;
|
|
924
|
+
topK?: number | undefined;
|
|
925
|
+
maxEntriesPerRun?: number | undefined;
|
|
926
|
+
}>]>>;
|
|
808
927
|
}, "strip", z.ZodTypeAny, {
|
|
809
928
|
enabled: boolean;
|
|
810
929
|
storage: "n8n";
|
|
@@ -826,6 +945,14 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
826
945
|
observationLogTailLimit?: number | undefined;
|
|
827
946
|
lockTtlMs?: number | undefined;
|
|
828
947
|
} | undefined;
|
|
948
|
+
episodicMemory?: {
|
|
949
|
+
enabled: false;
|
|
950
|
+
} | {
|
|
951
|
+
enabled: true;
|
|
952
|
+
credential: string;
|
|
953
|
+
topK?: number | undefined;
|
|
954
|
+
maxEntriesPerRun?: number | undefined;
|
|
955
|
+
} | undefined;
|
|
829
956
|
}, {
|
|
830
957
|
enabled: boolean;
|
|
831
958
|
storage: "n8n";
|
|
@@ -847,6 +974,14 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
847
974
|
observationLogTailLimit?: number | undefined;
|
|
848
975
|
lockTtlMs?: number | undefined;
|
|
849
976
|
} | undefined;
|
|
977
|
+
episodicMemory?: {
|
|
978
|
+
enabled: false;
|
|
979
|
+
} | {
|
|
980
|
+
enabled: true;
|
|
981
|
+
credential: string;
|
|
982
|
+
topK?: number | undefined;
|
|
983
|
+
maxEntriesPerRun?: number | undefined;
|
|
984
|
+
} | undefined;
|
|
850
985
|
}>>;
|
|
851
986
|
tools: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
852
987
|
type: z.ZodLiteral<"custom">;
|
|
@@ -1040,6 +1175,7 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
1040
1175
|
reasoningEffort?: string | undefined;
|
|
1041
1176
|
}>>;
|
|
1042
1177
|
toolCallConcurrency: z.ZodOptional<z.ZodNumber>;
|
|
1178
|
+
maxIterations: z.ZodOptional<z.ZodNumber>;
|
|
1043
1179
|
nodeTools: z.ZodOptional<z.ZodObject<{
|
|
1044
1180
|
enabled: z.ZodBoolean;
|
|
1045
1181
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1054,6 +1190,7 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
1054
1190
|
reasoningEffort?: string | undefined;
|
|
1055
1191
|
} | undefined;
|
|
1056
1192
|
toolCallConcurrency?: number | undefined;
|
|
1193
|
+
maxIterations?: number | undefined;
|
|
1057
1194
|
nodeTools?: {
|
|
1058
1195
|
enabled: boolean;
|
|
1059
1196
|
} | undefined;
|
|
@@ -1064,6 +1201,7 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
1064
1201
|
reasoningEffort?: string | undefined;
|
|
1065
1202
|
} | undefined;
|
|
1066
1203
|
toolCallConcurrency?: number | undefined;
|
|
1204
|
+
maxIterations?: number | undefined;
|
|
1067
1205
|
nodeTools?: {
|
|
1068
1206
|
enabled: boolean;
|
|
1069
1207
|
} | undefined;
|
|
@@ -1073,8 +1211,8 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
1073
1211
|
credential: z.ZodEffects<z.ZodString, string, string>;
|
|
1074
1212
|
}, "strip", z.ZodTypeAny, {
|
|
1075
1213
|
model: string;
|
|
1076
|
-
name: string;
|
|
1077
1214
|
credential: string;
|
|
1215
|
+
name: string;
|
|
1078
1216
|
instructions: string;
|
|
1079
1217
|
description?: string | undefined;
|
|
1080
1218
|
memory?: {
|
|
@@ -1098,6 +1236,14 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
1098
1236
|
observationLogTailLimit?: number | undefined;
|
|
1099
1237
|
lockTtlMs?: number | undefined;
|
|
1100
1238
|
} | undefined;
|
|
1239
|
+
episodicMemory?: {
|
|
1240
|
+
enabled: false;
|
|
1241
|
+
} | {
|
|
1242
|
+
enabled: true;
|
|
1243
|
+
credential: string;
|
|
1244
|
+
topK?: number | undefined;
|
|
1245
|
+
maxEntriesPerRun?: number | undefined;
|
|
1246
|
+
} | undefined;
|
|
1101
1247
|
} | undefined;
|
|
1102
1248
|
tools?: ({
|
|
1103
1249
|
type: "custom";
|
|
@@ -1156,14 +1302,15 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
1156
1302
|
reasoningEffort?: string | undefined;
|
|
1157
1303
|
} | undefined;
|
|
1158
1304
|
toolCallConcurrency?: number | undefined;
|
|
1305
|
+
maxIterations?: number | undefined;
|
|
1159
1306
|
nodeTools?: {
|
|
1160
1307
|
enabled: boolean;
|
|
1161
1308
|
} | undefined;
|
|
1162
1309
|
} | undefined;
|
|
1163
1310
|
}, {
|
|
1164
1311
|
model: string;
|
|
1165
|
-
name: string;
|
|
1166
1312
|
credential: string;
|
|
1313
|
+
name: string;
|
|
1167
1314
|
instructions: string;
|
|
1168
1315
|
description?: string | undefined;
|
|
1169
1316
|
memory?: {
|
|
@@ -1187,6 +1334,14 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
1187
1334
|
observationLogTailLimit?: number | undefined;
|
|
1188
1335
|
lockTtlMs?: number | undefined;
|
|
1189
1336
|
} | undefined;
|
|
1337
|
+
episodicMemory?: {
|
|
1338
|
+
enabled: false;
|
|
1339
|
+
} | {
|
|
1340
|
+
enabled: true;
|
|
1341
|
+
credential: string;
|
|
1342
|
+
topK?: number | undefined;
|
|
1343
|
+
maxEntriesPerRun?: number | undefined;
|
|
1344
|
+
} | undefined;
|
|
1190
1345
|
} | undefined;
|
|
1191
1346
|
tools?: ({
|
|
1192
1347
|
type: "custom";
|
|
@@ -1245,6 +1400,7 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
1245
1400
|
reasoningEffort?: string | undefined;
|
|
1246
1401
|
} | undefined;
|
|
1247
1402
|
toolCallConcurrency?: number | undefined;
|
|
1403
|
+
maxIterations?: number | undefined;
|
|
1248
1404
|
nodeTools?: {
|
|
1249
1405
|
enabled: boolean;
|
|
1250
1406
|
} | undefined;
|
|
@@ -1313,6 +1469,28 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
1313
1469
|
observationLogTailLimit?: number | undefined;
|
|
1314
1470
|
lockTtlMs?: number | undefined;
|
|
1315
1471
|
}>>;
|
|
1472
|
+
episodicMemory: z.ZodOptional<z.ZodDiscriminatedUnion<"enabled", [z.ZodObject<{
|
|
1473
|
+
enabled: z.ZodLiteral<false>;
|
|
1474
|
+
}, "strip", z.ZodTypeAny, {
|
|
1475
|
+
enabled: false;
|
|
1476
|
+
}, {
|
|
1477
|
+
enabled: false;
|
|
1478
|
+
}>, z.ZodObject<{
|
|
1479
|
+
enabled: z.ZodLiteral<true>;
|
|
1480
|
+
credential: z.ZodString;
|
|
1481
|
+
topK: z.ZodOptional<z.ZodNumber>;
|
|
1482
|
+
maxEntriesPerRun: z.ZodOptional<z.ZodNumber>;
|
|
1483
|
+
}, "strip", z.ZodTypeAny, {
|
|
1484
|
+
enabled: true;
|
|
1485
|
+
credential: string;
|
|
1486
|
+
topK?: number | undefined;
|
|
1487
|
+
maxEntriesPerRun?: number | undefined;
|
|
1488
|
+
}, {
|
|
1489
|
+
enabled: true;
|
|
1490
|
+
credential: string;
|
|
1491
|
+
topK?: number | undefined;
|
|
1492
|
+
maxEntriesPerRun?: number | undefined;
|
|
1493
|
+
}>]>>;
|
|
1316
1494
|
}, "strip", z.ZodTypeAny, {
|
|
1317
1495
|
enabled: boolean;
|
|
1318
1496
|
storage: "n8n";
|
|
@@ -1334,6 +1512,14 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
1334
1512
|
observationLogTailLimit?: number | undefined;
|
|
1335
1513
|
lockTtlMs?: number | undefined;
|
|
1336
1514
|
} | undefined;
|
|
1515
|
+
episodicMemory?: {
|
|
1516
|
+
enabled: false;
|
|
1517
|
+
} | {
|
|
1518
|
+
enabled: true;
|
|
1519
|
+
credential: string;
|
|
1520
|
+
topK?: number | undefined;
|
|
1521
|
+
maxEntriesPerRun?: number | undefined;
|
|
1522
|
+
} | undefined;
|
|
1337
1523
|
}, {
|
|
1338
1524
|
enabled: boolean;
|
|
1339
1525
|
storage: "n8n";
|
|
@@ -1355,6 +1541,14 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
1355
1541
|
observationLogTailLimit?: number | undefined;
|
|
1356
1542
|
lockTtlMs?: number | undefined;
|
|
1357
1543
|
} | undefined;
|
|
1544
|
+
episodicMemory?: {
|
|
1545
|
+
enabled: false;
|
|
1546
|
+
} | {
|
|
1547
|
+
enabled: true;
|
|
1548
|
+
credential: string;
|
|
1549
|
+
topK?: number | undefined;
|
|
1550
|
+
maxEntriesPerRun?: number | undefined;
|
|
1551
|
+
} | undefined;
|
|
1358
1552
|
}>>>;
|
|
1359
1553
|
tools: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1360
1554
|
type: z.ZodLiteral<"custom">;
|
|
@@ -1548,6 +1742,7 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
1548
1742
|
reasoningEffort?: string | undefined;
|
|
1549
1743
|
}>>;
|
|
1550
1744
|
toolCallConcurrency: z.ZodOptional<z.ZodNumber>;
|
|
1745
|
+
maxIterations: z.ZodOptional<z.ZodNumber>;
|
|
1551
1746
|
nodeTools: z.ZodOptional<z.ZodObject<{
|
|
1552
1747
|
enabled: z.ZodBoolean;
|
|
1553
1748
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1562,6 +1757,7 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
1562
1757
|
reasoningEffort?: string | undefined;
|
|
1563
1758
|
} | undefined;
|
|
1564
1759
|
toolCallConcurrency?: number | undefined;
|
|
1760
|
+
maxIterations?: number | undefined;
|
|
1565
1761
|
nodeTools?: {
|
|
1566
1762
|
enabled: boolean;
|
|
1567
1763
|
} | undefined;
|
|
@@ -1572,6 +1768,7 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
1572
1768
|
reasoningEffort?: string | undefined;
|
|
1573
1769
|
} | undefined;
|
|
1574
1770
|
toolCallConcurrency?: number | undefined;
|
|
1771
|
+
maxIterations?: number | undefined;
|
|
1575
1772
|
nodeTools?: {
|
|
1576
1773
|
enabled: boolean;
|
|
1577
1774
|
} | undefined;
|
|
@@ -1579,8 +1776,8 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
1579
1776
|
}, "strip", z.ZodTypeAny, {
|
|
1580
1777
|
model?: string | undefined;
|
|
1581
1778
|
description?: string | undefined;
|
|
1582
|
-
name?: string | undefined;
|
|
1583
1779
|
credential?: string | undefined;
|
|
1780
|
+
name?: string | undefined;
|
|
1584
1781
|
instructions?: string | undefined;
|
|
1585
1782
|
memory?: {
|
|
1586
1783
|
enabled: boolean;
|
|
@@ -1603,6 +1800,14 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
1603
1800
|
observationLogTailLimit?: number | undefined;
|
|
1604
1801
|
lockTtlMs?: number | undefined;
|
|
1605
1802
|
} | undefined;
|
|
1803
|
+
episodicMemory?: {
|
|
1804
|
+
enabled: false;
|
|
1805
|
+
} | {
|
|
1806
|
+
enabled: true;
|
|
1807
|
+
credential: string;
|
|
1808
|
+
topK?: number | undefined;
|
|
1809
|
+
maxEntriesPerRun?: number | undefined;
|
|
1810
|
+
} | undefined;
|
|
1606
1811
|
} | undefined;
|
|
1607
1812
|
tools?: ({
|
|
1608
1813
|
type: "custom";
|
|
@@ -1661,6 +1866,7 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
1661
1866
|
reasoningEffort?: string | undefined;
|
|
1662
1867
|
} | undefined;
|
|
1663
1868
|
toolCallConcurrency?: number | undefined;
|
|
1869
|
+
maxIterations?: number | undefined;
|
|
1664
1870
|
nodeTools?: {
|
|
1665
1871
|
enabled: boolean;
|
|
1666
1872
|
} | undefined;
|
|
@@ -1668,8 +1874,8 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
1668
1874
|
}, {
|
|
1669
1875
|
model?: string | undefined;
|
|
1670
1876
|
description?: string | undefined;
|
|
1671
|
-
name?: string | undefined;
|
|
1672
1877
|
credential?: string | undefined;
|
|
1878
|
+
name?: string | undefined;
|
|
1673
1879
|
instructions?: string | undefined;
|
|
1674
1880
|
memory?: {
|
|
1675
1881
|
enabled: boolean;
|
|
@@ -1692,6 +1898,14 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
1692
1898
|
observationLogTailLimit?: number | undefined;
|
|
1693
1899
|
lockTtlMs?: number | undefined;
|
|
1694
1900
|
} | undefined;
|
|
1901
|
+
episodicMemory?: {
|
|
1902
|
+
enabled: false;
|
|
1903
|
+
} | {
|
|
1904
|
+
enabled: true;
|
|
1905
|
+
credential: string;
|
|
1906
|
+
topK?: number | undefined;
|
|
1907
|
+
maxEntriesPerRun?: number | undefined;
|
|
1908
|
+
} | undefined;
|
|
1695
1909
|
} | undefined;
|
|
1696
1910
|
tools?: ({
|
|
1697
1911
|
type: "custom";
|
|
@@ -1750,6 +1964,7 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
1750
1964
|
reasoningEffort?: string | undefined;
|
|
1751
1965
|
} | undefined;
|
|
1752
1966
|
toolCallConcurrency?: number | undefined;
|
|
1967
|
+
maxIterations?: number | undefined;
|
|
1753
1968
|
nodeTools?: {
|
|
1754
1969
|
enabled: boolean;
|
|
1755
1970
|
} | undefined;
|
|
@@ -25,12 +25,24 @@ const ObservationalMemoryConfigSchema = zod_1.z.object({
|
|
|
25
25
|
observationLogTailLimit: zod_1.z.number().int().min(1).optional(),
|
|
26
26
|
lockTtlMs: zod_1.z.number().int().min(0).optional(),
|
|
27
27
|
});
|
|
28
|
+
const EpisodicMemoryConfigSchema = zod_1.z.discriminatedUnion('enabled', [
|
|
29
|
+
zod_1.z.object({
|
|
30
|
+
enabled: zod_1.z.literal(false),
|
|
31
|
+
}),
|
|
32
|
+
zod_1.z.object({
|
|
33
|
+
enabled: zod_1.z.literal(true),
|
|
34
|
+
credential: zod_1.z.string().trim().min(1),
|
|
35
|
+
topK: zod_1.z.number().int().min(1).max(100).optional(),
|
|
36
|
+
maxEntriesPerRun: zod_1.z.number().int().min(1).max(50).optional(),
|
|
37
|
+
}),
|
|
38
|
+
]);
|
|
28
39
|
const MemoryConfigSchema = zod_1.z.object({
|
|
29
40
|
enabled: zod_1.z.boolean(),
|
|
30
41
|
storage: zod_1.z.enum(['n8n']),
|
|
31
42
|
lastMessages: zod_1.z.number().int().min(1).max(200).optional(),
|
|
32
43
|
semanticRecall: SemanticRecallSchema.optional(),
|
|
33
44
|
observationalMemory: ObservationalMemoryConfigSchema.optional(),
|
|
45
|
+
episodicMemory: EpisodicMemoryConfigSchema.optional(),
|
|
34
46
|
});
|
|
35
47
|
const ThinkingConfigSchema = zod_1.z.object({
|
|
36
48
|
provider: zod_1.z.enum(['anthropic', 'openai']),
|
|
@@ -106,6 +118,13 @@ exports.AgentJsonConfigSchema = zod_1.z.object({
|
|
|
106
118
|
.object({
|
|
107
119
|
thinking: ThinkingConfigSchema.optional(),
|
|
108
120
|
toolCallConcurrency: zod_1.z.number().int().min(1).max(20).optional(),
|
|
121
|
+
maxIterations: zod_1.z
|
|
122
|
+
.number()
|
|
123
|
+
.int()
|
|
124
|
+
.min(1)
|
|
125
|
+
.max(200)
|
|
126
|
+
.optional()
|
|
127
|
+
.describe('Maximum number of agent loop iterations per run. Do not set unless the user explicitly asks.'),
|
|
109
128
|
nodeTools: zod_1.z
|
|
110
129
|
.object({
|
|
111
130
|
enabled: zod_1.z.boolean(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-json-config.schema.js","sourceRoot":"","sources":["../../src/agents/agent-json-config.schema.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"agent-json-config.schema.js","sourceRoot":"","sources":["../../src/agents/agent-json-config.schema.ts"],"names":[],"mappings":";;;AAkLA,gDASC;AAED,0CAOC;AAED,gDAEC;AAxMD,6BAAuC;AAEvC,yEAAoE;AAEpE,MAAM,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC;IACrC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IACtC,KAAK,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC,CAAC,QAAQ,EAAE;IAChD,YAAY,EAAE,OAAC;SACb,MAAM,CAAC;QACP,MAAM,EAAE,OAAC,C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}>;
|
|
147
147
|
export declare class AgentDisconnectIntegrationDto extends AgentDisconnectIntegrationDto_base {
|
|
148
148
|
}
|
|
149
|
+
declare const PublishAgentDto_base: import("../zod-class").ZodClass<{
|
|
150
|
+
versionId?: string | undefined;
|
|
151
|
+
}, {
|
|
152
|
+
versionId: z.ZodOptional<z.ZodString>;
|
|
153
|
+
}>;
|
|
154
|
+
export declare class PublishAgentDto extends PublishAgentDto_base {
|
|
155
|
+
}
|
|
156
|
+
declare const CreateSlackAgentAppDto_base: import("../zod-class").ZodClass<{
|
|
157
|
+
appConfigurationToken: string;
|
|
158
|
+
}, {
|
|
159
|
+
appConfigurationToken: z.ZodString;
|
|
160
|
+
}>;
|
|
161
|
+
export declare class CreateSlackAgentAppDto extends CreateSlackAgentAppDto_base {
|
|
162
|
+
}
|
|
149
163
|
export {};
|
package/dist/agents/dto.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AgentDisconnectIntegrationDto = exports.AgentBuildResumeDto = exports.AgentChatMessageDto = exports.UpdateAgentSkillDto = exports.CreateAgentSkillDto = exports.agentSkillSchema = exports.AGENT_SKILL_INSTRUCTIONS_MAX_LENGTH = exports.UpdateAgentScheduleDto = exports.UpdateAgentConfigDto = exports.UpdateAgentDto = exports.CreateAgentDto = void 0;
|
|
3
|
+
exports.CreateSlackAgentAppDto = exports.PublishAgentDto = exports.AgentDisconnectIntegrationDto = exports.AgentBuildResumeDto = exports.AgentChatMessageDto = exports.UpdateAgentSkillDto = exports.CreateAgentSkillDto = exports.agentSkillSchema = exports.AGENT_SKILL_INSTRUCTIONS_MAX_LENGTH = exports.UpdateAgentScheduleDto = exports.UpdateAgentConfigDto = exports.UpdateAgentDto = exports.CreateAgentDto = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const agent_builder_interactive_1 = require("../agent-builder-interactive");
|
|
6
6
|
const zod_class_1 = require("../zod-class");
|
|
@@ -64,4 +64,14 @@ class AgentDisconnectIntegrationDto extends zod_class_1.Z.class({
|
|
|
64
64
|
}) {
|
|
65
65
|
}
|
|
66
66
|
exports.AgentDisconnectIntegrationDto = AgentDisconnectIntegrationDto;
|
|
67
|
+
class PublishAgentDto extends zod_class_1.Z.class({
|
|
68
|
+
versionId: zod_1.z.string().min(1).optional(),
|
|
69
|
+
}) {
|
|
70
|
+
}
|
|
71
|
+
exports.PublishAgentDto = PublishAgentDto;
|
|
72
|
+
class CreateSlackAgentAppDto extends zod_class_1.Z.class({
|
|
73
|
+
appConfigurationToken: zod_1.z.string().min(1),
|
|
74
|
+
}) {
|
|
75
|
+
}
|
|
76
|
+
exports.CreateSlackAgentAppDto = CreateSlackAgentAppDto;
|
|
67
77
|
//# sourceMappingURL=dto.js.map
|
package/dist/agents/dto.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dto.js","sourceRoot":"","sources":["../../src/agents/dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,4EAA2E;AAC3E,4CAAiC;AAEjC,MAAa,cAAe,SAAQ,aAAC,CAAC,KAAK,CAAC;IAC3C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CACvB,CAAC;CAAG;AAFL,wCAEK;AAEL,MAAa,cAAe,SAAQ,aAAC,CAAC,KAAK,CAAC;IAC3C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC;CAAG;AAJL,wCAIK;AAEL,MAAa,oBAAqB,SAAQ,aAAC,CAAC,KAAK,CAAC;IACjD,MAAM,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC;C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AAC,CAAC,QAAQ,EAAE;CACvC,CAAC;CAAG;AAHL,kDAGK;AAEL,MAAa,mBAAoB,SAAQ,aAAC,CAAC,KAAK,CAAC;IAChD,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACxB,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC7B,UAAU,EAAE,uDAA2B;CACvC,CAAC;CAAG;AAJL,kDAIK;AAEL,MAAa,6BAA8B,SAAQ,aAAC,CAAC,KAAK,CAAC;IAC1D,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACvB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CAC/B,CAAC;CAAG;AAHL,sEAGK;AAEL,MAAa,eAAgB,SAAQ,aAAC,CAAC,KAAK,CAAC;IAC5C,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;CACvC,CAAC;CAAG;AAFL,0CAEK;AAEL,MAAa,sBAAuB,SAAQ,aAAC,CAAC,KAAK,CAAC;IACnD,qBAAqB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CACxC,CAAC;CAAG;AAFL,wDAEK"}
|
package/dist/agents/types.d.ts
CHANGED
|
@@ -25,6 +25,48 @@ export interface AgentIntegrationStatusResponse {
|
|
|
25
25
|
status: 'connected' | 'disconnected';
|
|
26
26
|
integrations: AgentIntegrationStatusEntry[];
|
|
27
27
|
}
|
|
28
|
+
export interface CreateSlackAgentAppResponse {
|
|
29
|
+
appId: string;
|
|
30
|
+
installUrl: string;
|
|
31
|
+
}
|
|
32
|
+
export interface SlackAgentAppManifest {
|
|
33
|
+
display_information: {
|
|
34
|
+
name: string;
|
|
35
|
+
};
|
|
36
|
+
features: {
|
|
37
|
+
app_home: {
|
|
38
|
+
home_tab_enabled: boolean;
|
|
39
|
+
messages_tab_enabled: boolean;
|
|
40
|
+
messages_tab_read_only_enabled: boolean;
|
|
41
|
+
};
|
|
42
|
+
bot_user: {
|
|
43
|
+
display_name: string;
|
|
44
|
+
always_online: boolean;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
oauth_config: {
|
|
48
|
+
redirect_urls?: string[];
|
|
49
|
+
scopes: {
|
|
50
|
+
bot: string[];
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
settings: {
|
|
54
|
+
event_subscriptions: {
|
|
55
|
+
request_url: string;
|
|
56
|
+
bot_events: string[];
|
|
57
|
+
};
|
|
58
|
+
interactivity: {
|
|
59
|
+
is_enabled: boolean;
|
|
60
|
+
request_url: string;
|
|
61
|
+
};
|
|
62
|
+
org_deploy_enabled: boolean;
|
|
63
|
+
socket_mode_enabled: boolean;
|
|
64
|
+
token_rotation_enabled: boolean;
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
export interface SlackAgentAppManifestResponse {
|
|
68
|
+
manifest: SlackAgentAppManifest;
|
|
69
|
+
}
|
|
28
70
|
export interface AgentSkill {
|
|
29
71
|
name: string;
|
|
30
72
|
description: string;
|
|
@@ -35,14 +77,11 @@ export interface AgentSkillMutationResponse {
|
|
|
35
77
|
skill: AgentSkill;
|
|
36
78
|
versionId: string | null;
|
|
37
79
|
}
|
|
38
|
-
export interface
|
|
80
|
+
export interface AgentVersionDto {
|
|
81
|
+
versionId: string;
|
|
39
82
|
schema: AgentJsonConfig | null;
|
|
40
83
|
skills: Record<string, AgentSkill> | null;
|
|
41
|
-
|
|
42
|
-
model: string | null;
|
|
43
|
-
provider: string | null;
|
|
44
|
-
credentialId: string | null;
|
|
45
|
-
publishedById: string | null;
|
|
84
|
+
author: string;
|
|
46
85
|
}
|
|
47
86
|
export interface AgentPersistedMessageContentPart {
|
|
48
87
|
type: 'text' | 'reasoning' | 'tool-call' | (string & {});
|
|
@@ -59,7 +98,7 @@ export interface AgentPersistedMessageDto {
|
|
|
59
98
|
role: 'user' | 'assistant' | (string & {});
|
|
60
99
|
content: AgentPersistedMessageContentPart[];
|
|
61
100
|
}
|
|
62
|
-
export declare const AGENT_BUILDER_DEFAULT_MODEL: "claude-sonnet-4-
|
|
101
|
+
export declare const AGENT_BUILDER_DEFAULT_MODEL: "claude-sonnet-4-6";
|
|
63
102
|
export declare const agentBuilderModeSchema: z.ZodEnum<["default", "custom"]>;
|
|
64
103
|
export type AgentBuilderMode = z.infer<typeof agentBuilderModeSchema>;
|
|
65
104
|
export declare const agentBuilderAdminSettingsSchema: z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
|
package/dist/agents/types.js
CHANGED
|
@@ -17,7 +17,7 @@ exports.INCOMPATIBLE_WORKFLOW_TOOL_BODY_NODE_TYPES = [
|
|
|
17
17
|
];
|
|
18
18
|
exports.AGENT_WORKFLOW_TRIGGER_TYPE = 'workflow';
|
|
19
19
|
exports.DEFAULT_AGENT_SCHEDULE_WAKE_UP_PROMPT = 'Automated message: you were triggered on schedule.';
|
|
20
|
-
exports.AGENT_BUILDER_DEFAULT_MODEL = 'claude-sonnet-4-
|
|
20
|
+
exports.AGENT_BUILDER_DEFAULT_MODEL = 'claude-sonnet-4-6';
|
|
21
21
|
exports.agentBuilderModeSchema = zod_1.z.enum(['default', 'custom']);
|
|
22
22
|
exports.agentBuilderAdminSettingsSchema = zod_1.z.discriminatedUnion('mode', [
|
|
23
23
|
zod_1.z.object({ mode: zod_1.z.literal('default') }),
|