@n8n/api-types 1.30.3 → 1.31.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/dist/agent-builder-interactive.d.ts +5 -182
  2. package/dist/agent-builder-interactive.js +6 -50
  3. package/dist/agent-builder-interactive.js.map +1 -1
  4. package/dist/agents/agent-interaction.schema.d.ts +262 -0
  5. package/dist/agents/agent-interaction.schema.js +56 -0
  6. package/dist/agents/agent-interaction.schema.js.map +1 -0
  7. package/dist/agents/agent-json-config.schema.d.ts +1878 -752
  8. package/dist/agents/agent-json-config.schema.js +82 -1
  9. package/dist/agents/agent-json-config.schema.js.map +1 -1
  10. package/dist/agents/dto.d.ts +232 -103
  11. package/dist/agents/dto.js +8 -3
  12. package/dist/agents/dto.js.map +1 -1
  13. package/dist/agents/index.d.ts +2 -1
  14. package/dist/agents/index.js +2 -11
  15. package/dist/agents/index.js.map +1 -1
  16. package/dist/agents/rich-card.schema.d.ts +108 -108
  17. package/dist/agents/types.d.ts +39 -8
  18. package/dist/agents/types.js.map +1 -1
  19. package/dist/build.tsbuildinfo +1 -1
  20. package/dist/chat-hub.d.ts +85 -85
  21. package/dist/dto/ai/ai-ask-request.dto.d.ts +13 -13
  22. package/dist/dto/ai/ai-build-request.dto.d.ts +3 -3
  23. package/dist/dto/ai/ai-truncate-messages-request.dto.d.ts +1 -1
  24. package/dist/dto/api-keys/list-api-keys-query.dto.d.ts +1 -1
  25. package/dist/dto/data-table/list-data-table-query.dto.d.ts +4 -4
  26. package/dist/dto/dynamic-node-parameters/action-result-request.dto.d.ts +1 -1
  27. package/dist/dto/dynamic-node-parameters/base-dynamic-parameters-request.dto.d.ts +1 -1
  28. package/dist/dto/dynamic-node-parameters/options-request.dto.d.ts +1 -1
  29. package/dist/dto/dynamic-node-parameters/resource-locator-request.dto.d.ts +1 -1
  30. package/dist/dto/dynamic-node-parameters/resource-mapper-fields-request.dto.d.ts +1 -1
  31. package/dist/dto/evaluations/evaluation-config.dto.d.ts +78 -78
  32. package/dist/dto/folders/list-folder-query.dto.d.ts +2 -2
  33. package/dist/dto/index.d.ts +2 -0
  34. package/dist/dto/index.js +7 -3
  35. package/dist/dto/index.js.map +1 -1
  36. package/dist/dto/insights/list-workflow-query.dto.d.ts +1 -1
  37. package/dist/dto/instance-ai/instance-ai-confirm-request.dto.d.ts +8 -8
  38. package/dist/dto/instance-ai/instance-ai-rename-thread-request.dto.d.ts +1 -1
  39. package/dist/dto/oauth/oauth-client.dto.d.ts +4 -4
  40. package/dist/dto/oidc/config.dto.d.ts +1 -1
  41. package/dist/dto/packages/import-package-request.dto.d.ts +11 -5
  42. package/dist/dto/packages/import-package-request.dto.js +19 -19
  43. package/dist/dto/packages/import-package-request.dto.js.map +1 -1
  44. package/dist/dto/project/update-project.dto.d.ts +2 -2
  45. package/dist/dto/roles/role-member.schema.d.ts +2 -2
  46. package/dist/dto/roles/role-members-response.dto.d.ts +3 -3
  47. package/dist/dto/roles/role-project-members-response.dto.d.ts +3 -3
  48. package/dist/dto/roles/update-role.dto.d.ts +1 -1
  49. package/dist/dto/security-settings/security-policy.dto.d.ts +32 -0
  50. package/dist/dto/security-settings/security-policy.dto.js +17 -0
  51. package/dist/dto/security-settings/security-policy.dto.js.map +1 -0
  52. package/dist/dto/security-settings/security-settings.dto.d.ts +20 -0
  53. package/dist/dto/security-settings/security-settings.dto.js +4 -0
  54. package/dist/dto/security-settings/security-settings.dto.js.map +1 -1
  55. package/dist/dto/source-control/push-work-folder-request.dto.d.ts +9 -9
  56. package/dist/dto/variables/update-variable-request.dto.d.ts +1 -1
  57. package/dist/dto/workflow-history/update-workflow-history-version.dto.d.ts +1 -1
  58. package/dist/dto/workflows/activate-workflow.dto.d.ts +1 -1
  59. package/dist/dto/workflows/base-workflow.dto.d.ts +7 -7
  60. package/dist/dto/workflows/create-workflow.dto.d.ts +8 -8
  61. package/dist/dto/workflows/get-resource-dependencies.dto.d.ts +1 -1
  62. package/dist/dto/workflows/get-resource-dependency-counts.dto.d.ts +1 -1
  63. package/dist/dto/workflows/manual-run.dto.d.ts +112 -0
  64. package/dist/dto/workflows/manual-run.dto.js +51 -0
  65. package/dist/dto/workflows/manual-run.dto.js.map +1 -0
  66. package/dist/dto/workflows/update-workflow.dto.d.ts +8 -8
  67. package/dist/frontend-settings.d.ts +4 -0
  68. package/dist/index.d.ts +5 -3
  69. package/dist/index.js +8 -3
  70. package/dist/index.js.map +1 -1
  71. package/dist/instance-registry-types.d.ts +16 -16
  72. package/dist/schemas/agent-run-reducer.js +61 -1
  73. package/dist/schemas/agent-run-reducer.js.map +1 -1
  74. package/dist/schemas/breaking-changes.schema.d.ts +128 -128
  75. package/dist/schemas/credential-resolver.schema.d.ts +8 -8
  76. package/dist/schemas/credential-response.schema.d.ts +2 -2
  77. package/dist/schemas/data-table.schema.d.ts +6 -6
  78. package/dist/schemas/encryption-key.schema.d.ts +6 -6
  79. package/dist/schemas/eval-collections.schema.d.ts +3 -3
  80. package/dist/schemas/favorites.schema.d.ts +2 -2
  81. package/dist/schemas/favorites.schema.js +7 -1
  82. package/dist/schemas/favorites.schema.js.map +1 -1
  83. package/dist/schemas/insights.schema.d.ts +22 -22
  84. package/dist/schemas/instance-ai.schema.d.ts +599 -419
  85. package/dist/schemas/instance-ai.schema.js +55 -8
  86. package/dist/schemas/instance-ai.schema.js.map +1 -1
  87. package/dist/schemas/secrets-provider.schema.d.ts +16 -16
  88. package/dist/schemas/source-controlled-file.schema.d.ts +6 -6
  89. package/dist/schemas/user.schema.d.ts +18 -18
  90. package/dist/schemas/workflow-execution-status.schema.d.ts +4 -4
  91. package/dist/schemas/workflow-publication-status.schema.d.ts +2 -2
  92. package/dist/workflow-reviews-policy.d.ts +9 -0
  93. package/dist/workflow-reviews-policy.js +8 -0
  94. package/dist/workflow-reviews-policy.js.map +1 -0
  95. package/package.json +9 -8
@@ -9,16 +9,16 @@ export declare const WorkflowExecutionStatusSchema: z.ZodObject<{
9
9
  authorizationUrl: z.ZodOptional<z.ZodString>;
10
10
  revokeUrl: z.ZodOptional<z.ZodString>;
11
11
  }, "strip", z.ZodTypeAny, {
12
+ credentialType: string;
12
13
  credentialId: string;
13
14
  credentialName: string;
14
- credentialType: string;
15
15
  credentialStatus: "missing" | "configured" | "resolver_missing";
16
16
  authorizationUrl?: string | undefined;
17
17
  revokeUrl?: string | undefined;
18
18
  }, {
19
+ credentialType: string;
19
20
  credentialId: string;
20
21
  credentialName: string;
21
- credentialType: string;
22
22
  credentialStatus: "missing" | "configured" | "resolver_missing";
23
23
  authorizationUrl?: string | undefined;
24
24
  revokeUrl?: string | undefined;
@@ -28,9 +28,9 @@ export declare const WorkflowExecutionStatusSchema: z.ZodObject<{
28
28
  workflowId: string;
29
29
  readyToExecute: boolean;
30
30
  credentials?: {
31
+ credentialType: string;
31
32
  credentialId: string;
32
33
  credentialName: string;
33
- credentialType: string;
34
34
  credentialStatus: "missing" | "configured" | "resolver_missing";
35
35
  authorizationUrl?: string | undefined;
36
36
  revokeUrl?: string | undefined;
@@ -39,9 +39,9 @@ export declare const WorkflowExecutionStatusSchema: z.ZodObject<{
39
39
  workflowId: string;
40
40
  readyToExecute: boolean;
41
41
  credentials?: {
42
+ credentialType: string;
42
43
  credentialId: string;
43
44
  credentialName: string;
44
- credentialType: string;
45
45
  credentialStatus: "missing" | "configured" | "resolver_missing";
46
46
  authorizationUrl?: string | undefined;
47
47
  revokeUrl?: string | undefined;
@@ -17,7 +17,7 @@ export declare const WorkflowPublicationStatusSchema: z.ZodObject<{
17
17
  errorMessage: string | null;
18
18
  }>, "many">;
19
19
  }, "strip", z.ZodTypeAny, {
20
- status: "failed" | "in_progress" | "published" | "partial" | "not_published";
20
+ status: "in_progress" | "failed" | "published" | "partial" | "not_published";
21
21
  liveVersionId: string | null;
22
22
  pendingVersionId: string | null;
23
23
  triggers: {
@@ -26,7 +26,7 @@ export declare const WorkflowPublicationStatusSchema: z.ZodObject<{
26
26
  errorMessage: string | null;
27
27
  }[];
28
28
  }, {
29
- status: "failed" | "in_progress" | "published" | "partial" | "not_published";
29
+ status: "in_progress" | "failed" | "published" | "partial" | "not_published";
30
30
  liveVersionId: string | null;
31
31
  pendingVersionId: string | null;
32
32
  triggers: {
@@ -0,0 +1,9 @@
1
+ import { z } from 'zod';
2
+ export declare const workflowReviewsPolicySchema: z.ZodObject<{
3
+ enabled: z.ZodBoolean;
4
+ }, "strip", z.ZodTypeAny, {
5
+ enabled: boolean;
6
+ }, {
7
+ enabled: boolean;
8
+ }>;
9
+ export type WorkflowReviewsPolicy = z.infer<typeof workflowReviewsPolicySchema>;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.workflowReviewsPolicySchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.workflowReviewsPolicySchema = zod_1.z.object({
6
+ enabled: zod_1.z.boolean(),
7
+ });
8
+ //# sourceMappingURL=workflow-reviews-policy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-reviews-policy.js","sourceRoot":"","sources":["../src/workflow-reviews-policy.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IACnD,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE;CACpB,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,30 +1,31 @@
1
1
  {
2
2
  "name": "@n8n/api-types",
3
- "version": "1.30.3",
3
+ "version": "1.31.0",
4
4
  "main": "dist/index.js",
5
5
  "module": "src/index.ts",
6
6
  "types": "dist/index.d.ts",
7
7
  "files": [
8
8
  "dist/**/*",
9
- "LICENSE_EE.md",
10
- "LICENSE.md"
9
+ "LICENSE.md",
10
+ "LICENSE_EE.md"
11
11
  ],
12
12
  "devDependencies": {
13
13
  "@vitest/coverage-v8": "4.1.9",
14
+ "typescript": "6.0.2",
14
15
  "vite": "^8.0.2",
15
16
  "vitest": "^4.1.9",
16
17
  "vitest-mock-extended": "^3.1.0",
17
18
  "minifaker": "1.34.1",
18
19
  "zod": "3.25.67",
19
- "@n8n/typescript-config": "1.8.0",
20
- "@n8n/vitest-config": "1.17.0",
21
- "@n8n/config": "2.28.0"
20
+ "@n8n/typescript-config": "1.9.0",
21
+ "@n8n/vitest-config": "1.18.0",
22
+ "@n8n/config": "2.29.0"
22
23
  },
23
24
  "dependencies": {
24
25
  "@n8n_io/ai-assistant-sdk": "1.24.0",
25
26
  "xss": "1.0.15",
26
- "n8n-workflow": "2.30.2",
27
- "@n8n/permissions": "0.67.0"
27
+ "n8n-workflow": "2.31.0",
28
+ "@n8n/permissions": "0.68.0"
28
29
  },
29
30
  "peerDependencies": {
30
31
  "zod": "3.25.67"