@n8n/api-types 0.15.0 → 0.16.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.
@@ -0,0 +1,11 @@
1
+ import { z } from 'zod';
2
+ import { Z } from 'zod-class';
3
+ declare const CreateCredentialDto_base: Z.Class<{
4
+ name: z.ZodString;
5
+ type: z.ZodString;
6
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7
+ projectId: z.ZodOptional<z.ZodString>;
8
+ }>;
9
+ export declare class CreateCredentialDto extends CreateCredentialDto_base {
10
+ }
11
+ export {};
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateCredentialDto = void 0;
4
+ const zod_1 = require("zod");
5
+ const zod_class_1 = require("zod-class");
6
+ class CreateCredentialDto extends zod_class_1.Z.class({
7
+ name: zod_1.z.string().min(1).max(128),
8
+ type: zod_1.z.string().min(1).max(32),
9
+ data: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()),
10
+ projectId: zod_1.z.string().optional(),
11
+ }) {
12
+ }
13
+ exports.CreateCredentialDto = CreateCredentialDto;
14
+ //# sourceMappingURL=create-credential.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-credential.dto.js","sourceRoot":"","sources":["../../../src/dto/credentials/create-credential.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,yCAA8B;AAE9B,MAAa,mBAAoB,SAAQ,aAAC,CAAC,KAAK,CAAC;IAChD,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IAChC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC;IAC/B,IAAI,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC;IACvC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC;CAAG;AALL,kDAKK"}
@@ -0,0 +1,8 @@
1
+ import { z } from 'zod';
2
+ import { Z } from 'zod-class';
3
+ declare const GenerateCredentialNameRequestQuery_base: Z.Class<{
4
+ name: z.ZodOptional<z.ZodString>;
5
+ }>;
6
+ export declare class GenerateCredentialNameRequestQuery extends GenerateCredentialNameRequestQuery_base {
7
+ }
8
+ export {};
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GenerateCredentialNameRequestQuery = void 0;
4
+ const zod_1 = require("zod");
5
+ const zod_class_1 = require("zod-class");
6
+ class GenerateCredentialNameRequestQuery extends zod_class_1.Z.class({
7
+ name: zod_1.z.string().optional(),
8
+ }) {
9
+ }
10
+ exports.GenerateCredentialNameRequestQuery = GenerateCredentialNameRequestQuery;
11
+ //# sourceMappingURL=generate-credential-name.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate-credential-name.dto.js","sourceRoot":"","sources":["../../../src/dto/credentials/generate-credential-name.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,yCAA8B;AAE9B,MAAa,kCAAmC,SAAQ,aAAC,CAAC,KAAK,CAAC;IAC/D,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC3B,CAAC;CAAG;AAFL,gFAEK"}
@@ -28,11 +28,14 @@ export { UserUpdateRequestDto } from './user/user-update-request.dto';
28
28
  export { CommunityRegisteredRequestDto } from './license/community-registered-request.dto';
29
29
  export { PullWorkFolderRequestDto } from './source-control/pull-work-folder-request.dto';
30
30
  export { PushWorkFolderRequestDto } from './source-control/push-work-folder-request.dto';
31
+ export { CreateCredentialDto } from './credentials/create-credential.dto';
31
32
  export { VariableListRequestDto } from './variables/variables-list-request.dto';
32
33
  export { CredentialsGetOneRequestQuery } from './credentials/credentials-get-one-request.dto';
33
34
  export { CredentialsGetManyRequestQuery } from './credentials/credentials-get-many-request.dto';
35
+ export { GenerateCredentialNameRequestQuery } from './credentials/generate-credential-name.dto';
34
36
  export { ImportWorkflowFromUrlDto } from './workflows/import-workflow-from-url.dto';
35
37
  export { ManualRunQueryDto } from './workflows/manual-run-query.dto';
38
+ export { TransferWorkflowBodyDto } from './workflows/transfer.dto';
36
39
  export { CreateOrUpdateTagRequestDto } from './tag/create-or-update-tag-request.dto';
37
40
  export { RetrieveTagQueryDto } from './tag/retrieve-tag-query.dto';
38
41
  export { UpdateApiKeyRequestDto } from './api-keys/update-api-key-request.dto';
package/dist/dto/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CreateApiKeyRequestDto = exports.UpdateApiKeyRequestDto = exports.RetrieveTagQueryDto = exports.CreateOrUpdateTagRequestDto = exports.ManualRunQueryDto = exports.ImportWorkflowFromUrlDto = exports.CredentialsGetManyRequestQuery = exports.CredentialsGetOneRequestQuery = exports.VariableListRequestDto = exports.PushWorkFolderRequestDto = exports.PullWorkFolderRequestDto = exports.CommunityRegisteredRequestDto = exports.UserUpdateRequestDto = exports.SettingsUpdateRequestDto = exports.RoleChangeRequestDto = exports.PasswordUpdateRequestDto = exports.SamlToggleDto = exports.SamlPreferences = exports.SamlAcsDto = exports.DeleteProjectDto = exports.UpdateProjectDto = exports.CreateProjectDto = exports.ChangePasswordRequestDto = exports.ResolvePasswordTokenQueryDto = exports.ForgotPasswordRequestDto = exports.DismissBannerRequestDto = exports.OwnerSetupRequestDto = exports.AcceptInvitationRequestDto = exports.InviteUsersRequestDto = exports.ActionResultRequestDto = exports.ResourceMapperFieldsRequestDto = exports.ResourceLocatorRequestDto = exports.OptionsRequestDto = exports.ResolveSignupTokenQueryDto = exports.LoginRequestDto = exports.AiFreeCreditsRequestDto = exports.AiApplySuggestionRequestDto = exports.AiChatRequestDto = exports.AiAskRequestDto = void 0;
3
+ exports.CreateApiKeyRequestDto = exports.UpdateApiKeyRequestDto = exports.RetrieveTagQueryDto = exports.CreateOrUpdateTagRequestDto = exports.TransferWorkflowBodyDto = exports.ManualRunQueryDto = exports.ImportWorkflowFromUrlDto = exports.GenerateCredentialNameRequestQuery = exports.CredentialsGetManyRequestQuery = exports.CredentialsGetOneRequestQuery = exports.VariableListRequestDto = exports.CreateCredentialDto = exports.PushWorkFolderRequestDto = exports.PullWorkFolderRequestDto = exports.CommunityRegisteredRequestDto = exports.UserUpdateRequestDto = exports.SettingsUpdateRequestDto = exports.RoleChangeRequestDto = exports.PasswordUpdateRequestDto = exports.SamlToggleDto = exports.SamlPreferences = exports.SamlAcsDto = exports.DeleteProjectDto = exports.UpdateProjectDto = exports.CreateProjectDto = exports.ChangePasswordRequestDto = exports.ResolvePasswordTokenQueryDto = exports.ForgotPasswordRequestDto = exports.DismissBannerRequestDto = exports.OwnerSetupRequestDto = exports.AcceptInvitationRequestDto = exports.InviteUsersRequestDto = exports.ActionResultRequestDto = exports.ResourceMapperFieldsRequestDto = exports.ResourceLocatorRequestDto = exports.OptionsRequestDto = exports.ResolveSignupTokenQueryDto = exports.LoginRequestDto = exports.AiFreeCreditsRequestDto = exports.AiApplySuggestionRequestDto = exports.AiChatRequestDto = exports.AiAskRequestDto = void 0;
4
4
  var ai_ask_request_dto_1 = require("./ai/ai-ask-request.dto");
5
5
  Object.defineProperty(exports, "AiAskRequestDto", { enumerable: true, get: function () { return ai_ask_request_dto_1.AiAskRequestDto; } });
6
6
  var ai_chat_request_dto_1 = require("./ai/ai-chat-request.dto");
@@ -61,16 +61,22 @@ var pull_work_folder_request_dto_1 = require("./source-control/pull-work-folder-
61
61
  Object.defineProperty(exports, "PullWorkFolderRequestDto", { enumerable: true, get: function () { return pull_work_folder_request_dto_1.PullWorkFolderRequestDto; } });
62
62
  var push_work_folder_request_dto_1 = require("./source-control/push-work-folder-request.dto");
63
63
  Object.defineProperty(exports, "PushWorkFolderRequestDto", { enumerable: true, get: function () { return push_work_folder_request_dto_1.PushWorkFolderRequestDto; } });
64
+ var create_credential_dto_1 = require("./credentials/create-credential.dto");
65
+ Object.defineProperty(exports, "CreateCredentialDto", { enumerable: true, get: function () { return create_credential_dto_1.CreateCredentialDto; } });
64
66
  var variables_list_request_dto_1 = require("./variables/variables-list-request.dto");
65
67
  Object.defineProperty(exports, "VariableListRequestDto", { enumerable: true, get: function () { return variables_list_request_dto_1.VariableListRequestDto; } });
66
68
  var credentials_get_one_request_dto_1 = require("./credentials/credentials-get-one-request.dto");
67
69
  Object.defineProperty(exports, "CredentialsGetOneRequestQuery", { enumerable: true, get: function () { return credentials_get_one_request_dto_1.CredentialsGetOneRequestQuery; } });
68
70
  var credentials_get_many_request_dto_1 = require("./credentials/credentials-get-many-request.dto");
69
71
  Object.defineProperty(exports, "CredentialsGetManyRequestQuery", { enumerable: true, get: function () { return credentials_get_many_request_dto_1.CredentialsGetManyRequestQuery; } });
72
+ var generate_credential_name_dto_1 = require("./credentials/generate-credential-name.dto");
73
+ Object.defineProperty(exports, "GenerateCredentialNameRequestQuery", { enumerable: true, get: function () { return generate_credential_name_dto_1.GenerateCredentialNameRequestQuery; } });
70
74
  var import_workflow_from_url_dto_1 = require("./workflows/import-workflow-from-url.dto");
71
75
  Object.defineProperty(exports, "ImportWorkflowFromUrlDto", { enumerable: true, get: function () { return import_workflow_from_url_dto_1.ImportWorkflowFromUrlDto; } });
72
76
  var manual_run_query_dto_1 = require("./workflows/manual-run-query.dto");
73
77
  Object.defineProperty(exports, "ManualRunQueryDto", { enumerable: true, get: function () { return manual_run_query_dto_1.ManualRunQueryDto; } });
78
+ var transfer_dto_1 = require("./workflows/transfer.dto");
79
+ Object.defineProperty(exports, "TransferWorkflowBodyDto", { enumerable: true, get: function () { return transfer_dto_1.TransferWorkflowBodyDto; } });
74
80
  var create_or_update_tag_request_dto_1 = require("./tag/create-or-update-tag-request.dto");
75
81
  Object.defineProperty(exports, "CreateOrUpdateTagRequestDto", { enumerable: true, get: function () { return create_or_update_tag_request_dto_1.CreateOrUpdateTagRequestDto; } });
76
82
  var retrieve_tag_query_dto_1 = require("./tag/retrieve-tag-query.dto");
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dto/index.ts"],"names":[],"mappings":";;;AAAA,8DAA0D;AAAjD,qHAAA,eAAe,OAAA;AACxB,gEAA4D;AAAnD,uHAAA,gBAAgB,OAAA;AACzB,wFAAmF;AAA1E,8IAAA,2BAA2B,OAAA;AACpC,gFAA2E;AAAlE,sIAAA,uBAAuB,OAAA;AAEhC,8DAA2D;AAAlD,oHAAA,eAAe,OAAA;AACxB,wFAAmF;AAA1E,4IAAA,0BAA0B,OAAA;AAEnC,qFAAkF;AAAzE,wHAAA,iBAAiB,OAAA;AAC1B,uGAAmG;AAA1F,yIAAA,yBAAyB,OAAA;AAClC,mHAA8G;AAArG,oJAAA,8BAA8B,OAAA;AACvC,iGAA6F;AAApF,mIAAA,sBAAsB,OAAA;AAE/B,kFAA8E;AAArE,iIAAA,qBAAqB,OAAA;AAC9B,4FAAwF;AAA/E,2IAAA,0BAA0B,OAAA;AAEnC,2EAAuE;AAA9D,+HAAA,oBAAoB,OAAA;AAC7B,iFAA6E;AAApE,qIAAA,uBAAuB,OAAA;AAEhC,4FAAwF;AAA/E,uIAAA,wBAAwB,OAAA;AACjC,sGAAiG;AAAxF,gJAAA,4BAA4B,OAAA;AACrC,4FAAwF;AAA/E,uIAAA,wBAAwB,OAAA;AAEjC,mEAAgE;AAAvD,sHAAA,gBAAgB,OAAA;AACzB,mEAAgE;AAAvD,sHAAA,gBAAgB,OAAA;AACzB,mEAAgE;AAAvD,sHAAA,gBAAgB,OAAA;AAEzB,oDAAiD;AAAxC,0GAAA,UAAU,OAAA;AACnB,oEAA8D;AAArD,uHAAA,eAAe,OAAA;AACxB,0DAAuD;AAA9C,gHAAA,aAAa,OAAA;AAEtB,kFAA8E;AAArE,uIAAA,wBAAw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B,OAAA;AAE5B,oFAA+E;AAAtE,oIAAA,sBAAsB,OAAA;AAC/B,oFAA+E;AAAtE,oIAAA,sBAAsB,OAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from 'zod';
2
+ import { Z } from 'zod-class';
3
+ declare const TransferWorkflowBodyDto_base: Z.Class<{
4
+ destinationProjectId: z.ZodString;
5
+ shareCredentials: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6
+ }>;
7
+ export declare class TransferWorkflowBodyDto extends TransferWorkflowBodyDto_base {
8
+ }
9
+ export {};
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TransferWorkflowBodyDto = void 0;
4
+ const zod_1 = require("zod");
5
+ const zod_class_1 = require("zod-class");
6
+ class TransferWorkflowBodyDto extends zod_class_1.Z.class({
7
+ destinationProjectId: zod_1.z.string(),
8
+ shareCredentials: zod_1.z.array(zod_1.z.string()).optional(),
9
+ }) {
10
+ }
11
+ exports.TransferWorkflowBodyDto = TransferWorkflowBodyDto;
12
+ //# sourceMappingURL=transfer.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transfer.dto.js","sourceRoot":"","sources":["../../../src/dto/workflows/transfer.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,yCAA8B;AAE9B,MAAa,uBAAwB,SAAQ,aAAC,CAAC,KAAK,CAAC;IACpD,oBAAoB,EAAE,OAAC,CAAC,MAAM,EAAE;IAChC,gBAAgB,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CAChD,CAAC;CAAG;AAHL,0DAGK"}
@@ -1,4 +1,3 @@
1
- import type { FrontendBetaFeatures } from '@n8n/config';
2
1
  import type { ExpressionEvaluatorType, LogLevel, WorkflowSettings } from 'n8n-workflow';
3
2
  export interface IVersionNotificationSettings {
4
3
  enabled: boolean;
@@ -151,6 +150,9 @@ export interface FrontendSettings {
151
150
  mfa: {
152
151
  enabled: boolean;
153
152
  };
153
+ folders: {
154
+ enabled: boolean;
155
+ };
154
156
  banners: {
155
157
  dismissed: string[];
156
158
  };
@@ -170,10 +172,8 @@ export interface FrontendSettings {
170
172
  security: {
171
173
  blockFileAccessToN8nFiles: boolean;
172
174
  };
173
- betaFeatures: FrontendBetaFeatures[];
174
175
  easyAIWorkflowOnboarded: boolean;
175
176
  partialExecution: {
176
177
  version: 1 | 2;
177
- enforce: boolean;
178
178
  };
179
179
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@n8n/api-types",
3
- "version": "0.15.0",
3
+ "version": "0.16.0",
4
4
  "main": "dist/index.js",
5
5
  "module": "src/index.ts",
6
6
  "types": "dist/index.d.ts",
@@ -10,8 +10,8 @@
10
10
  "LICENSE_EE.md"
11
11
  ],
12
12
  "devDependencies": {
13
- "@n8n/config": "1.29.0",
14
- "n8n-workflow": "1.78.0"
13
+ "n8n-workflow": "1.79.0",
14
+ "@n8n/config": "1.30.0"
15
15
  },
16
16
  "dependencies": {
17
17
  "xss": "1.0.15",