@n8n/api-types 0.24.1 → 0.25.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 (30) hide show
  1. package/dist/api-keys.d.ts +2 -0
  2. package/dist/build.tsbuildinfo +1 -1
  3. package/dist/dto/api-keys/create-api-key-request.dto.d.ts +4 -0
  4. package/dist/dto/api-keys/update-api-key-request.dto.d.ts +1 -0
  5. package/dist/dto/api-keys/update-api-key-request.dto.js +2 -0
  6. package/dist/dto/api-keys/update-api-key-request.dto.js.map +1 -1
  7. package/dist/dto/binary-data/binary-data-query.dto.d.ts +11 -0
  8. package/dist/dto/binary-data/binary-data-query.dto.js +24 -0
  9. package/dist/dto/binary-data/binary-data-query.dto.js.map +1 -0
  10. package/dist/dto/binary-data/binary-data-signed-query.dto.d.ts +8 -0
  11. package/dist/dto/binary-data/binary-data-signed-query.dto.js +13 -0
  12. package/dist/dto/binary-data/binary-data-signed-query.dto.js.map +1 -0
  13. package/dist/dto/folders/list-folder-query.dto.d.ts +1 -1
  14. package/dist/dto/index.d.ts +2 -0
  15. package/dist/dto/index.js +5 -1
  16. package/dist/dto/index.js.map +1 -1
  17. package/dist/dto/saml/saml-preferences.dto.d.ts +4 -4
  18. package/dist/dto/source-control/push-work-folder-request.dto.d.ts +6 -6
  19. package/dist/frontend-settings.d.ts +1 -0
  20. package/dist/index.d.ts +1 -0
  21. package/dist/index.js +3 -1
  22. package/dist/index.js.map +1 -1
  23. package/dist/schemas/binaryData.schema.d.ts +1 -0
  24. package/dist/schemas/binaryData.schema.js +24 -0
  25. package/dist/schemas/binaryData.schema.js.map +1 -0
  26. package/dist/schemas/scopes.schema.d.ts +3 -0
  27. package/dist/schemas/scopes.schema.js +13 -0
  28. package/dist/schemas/scopes.schema.js.map +1 -0
  29. package/dist/schemas/source-controlled-file.schema.d.ts +6 -6
  30. package/package.json +6 -5
@@ -10,16 +10,20 @@ declare const CreateApiKeyRequestDto_base: {
10
10
  prototype: UpdateApiKeyRequestDto;
11
11
  staticProps: {
12
12
  Label: z.ZodEffects<z.ZodString, string, string>;
13
+ Scopes: z.ZodEffects<z.ZodArray<z.ZodString, "many">, import("@n8n/permissions").ApiKeyScope[], string[]>;
13
14
  };
14
15
  Label: z.ZodEffects<z.ZodString, string, string>;
16
+ Scopes: z.ZodEffects<z.ZodArray<z.ZodString, "many">, import("@n8n/permissions").ApiKeyScope[], string[]>;
15
17
  } & import("zod-class").ZodClass<{
16
18
  expiresAt: number | null;
17
19
  } & {} & {
18
20
  label: string;
21
+ scopes: string[];
19
22
  } & {}, {
20
23
  expiresAt: number | null;
21
24
  } & {} & UpdateApiKeyRequestDto, Omit<{
22
25
  label: z.ZodEffects<z.ZodString, string, string>;
26
+ scopes: z.ZodEffects<z.ZodArray<z.ZodString, "many">, import("@n8n/permissions").ApiKeyScope[], string[]>;
23
27
  }, "expiresAt"> & {
24
28
  expiresAt: z.ZodEffects<z.ZodNullable<z.ZodNumber>, number | null, number | null>;
25
29
  }>;
@@ -2,6 +2,7 @@ import { z } from 'zod';
2
2
  import { Z } from 'zod-class';
3
3
  declare const UpdateApiKeyRequestDto_base: Z.Class<{
4
4
  label: z.ZodEffects<z.ZodString, string, string>;
5
+ scopes: z.ZodEffects<z.ZodArray<z.ZodString, "many">, import("@n8n/permissions").ApiKeyScope[], string[]>;
5
6
  }>;
6
7
  export declare class UpdateApiKeyRequestDto extends UpdateApiKeyRequestDto_base {
7
8
  }
@@ -7,12 +7,14 @@ exports.UpdateApiKeyRequestDto = void 0;
7
7
  const xss_1 = __importDefault(require("xss"));
8
8
  const zod_1 = require("zod");
9
9
  const zod_class_1 = require("zod-class");
10
+ const scopes_schema_1 = require("../../schemas/scopes.schema");
10
11
  const xssCheck = (value) => value ===
11
12
  (0, xss_1.default)(value, {
12
13
  whiteList: {},
13
14
  });
14
15
  class UpdateApiKeyRequestDto extends zod_class_1.Z.class({
15
16
  label: zod_1.z.string().max(50).min(1).refine(xssCheck),
17
+ scopes: scopes_schema_1.scopesSchema,
16
18
  }) {
17
19
  }
18
20
  exports.UpdateApiKeyRequestDto = UpdateApiKeyRequestDto;
@@ -1 +1 @@
1
- {"version":3,"file":"update-api-key-request.dto.js","sourceRoot":"","sources":["../../../src/dto/api-keys/update-api-key-request.dto.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAsB;AACtB,6BAAwB;AACxB,yCAA8B;AAE9B,MAAM,QAAQ,GAAG,CAAC,KAAa,EAAE,EAAE,CAClC,KAAK;IACL,IAAA,aAAG,EAAC,KAAK,EAAE;QACV,SAAS,EAAE,EAAE;KACb,CAAC,CAAC;AAEJ,MAAa,sBAAuB,SAAQ,aAAC,CAAC,KAAK,CAAC;IACnD,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;CACjD,CAAC;CAAG;AAFL,wDAEK"}
1
+ {"version":3,"file":"update-api-key-request.dto.js","sourceRoot":"","sources":["../../../src/dto/api-keys/update-api-key-request.dto.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAsB;AACtB,6BAAwB;AACxB,yCAA8B;AAE9B,+DAA2D;AAE3D,MAAM,QAAQ,GAAG,CAAC,KAAa,EAAE,EAAE,CAClC,KAAK;IACL,IAAA,aAAG,EAAC,KAAK,EAAE;QACV,SAAS,EAAE,EAAE;KACb,CAAC,CAAC;AAEJ,MAAa,sBAAuB,SAAQ,aAAC,CAAC,KAAK,CAAC;IACnD,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;IACjD,MAAM,EAAE,4BAAY;CACpB,CAAC;CAAG;AAHL,wDAGK"}
@@ -0,0 +1,11 @@
1
+ import { z } from 'zod';
2
+ import { Z } from 'zod-class';
3
+ declare const BinaryDataQueryDto_base: Z.Class<{
4
+ id: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
5
+ action: z.ZodEnum<["view", "download"]>;
6
+ fileName: z.ZodOptional<z.ZodString>;
7
+ mimeType: z.ZodOptional<z.ZodString>;
8
+ }>;
9
+ export declare class BinaryDataQueryDto extends BinaryDataQueryDto_base {
10
+ }
11
+ export {};
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BinaryDataQueryDto = void 0;
4
+ const zod_1 = require("zod");
5
+ const zod_class_1 = require("zod-class");
6
+ class BinaryDataQueryDto extends zod_class_1.Z.class({
7
+ id: zod_1.z
8
+ .string()
9
+ .refine((id) => id.includes(':'), {
10
+ message: 'Missing binary data mode',
11
+ })
12
+ .refine((id) => {
13
+ const [mode] = id.split(':');
14
+ return ['filesystem', 'filesystem-v2', 's3'].includes(mode);
15
+ }, {
16
+ message: 'Invalid binary data mode',
17
+ }),
18
+ action: zod_1.z.enum(['view', 'download']),
19
+ fileName: zod_1.z.string().optional(),
20
+ mimeType: zod_1.z.string().optional(),
21
+ }) {
22
+ }
23
+ exports.BinaryDataQueryDto = BinaryDataQueryDto;
24
+ //# sourceMappingURL=binary-data-query.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"binary-data-query.dto.js","sourceRoot":"","sources":["../../../src/dto/binary-data/binary-data-query.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,yCAA8B;AAE9B,MAAa,kBAAmB,SAAQ,aAAC,CAAC,KAAK,CAAC;IAC/C,EAAE,EAAE,OAAC;SACH,MAAM,EAAE;SACR,MAAM,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;QACjC,OAAO,EAAE,0BAA0B;KACnC,CAAC;SACD,MAAM,CACN,CAAC,EAAE,EAAE,EAAE;QACN,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC7B,OAAO,CAAC,YAAY,EAAE,eAAe,EAAE,IAAI,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC7D,CAAC,EACD;QACC,OAAO,EAAE,0BAA0B;KACnC,CACD;IACF,MAAM,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IACpC,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC/B,CAAC;CAAG;AAlBL,gDAkBK"}
@@ -0,0 +1,8 @@
1
+ import { z } from 'zod';
2
+ import { Z } from 'zod-class';
3
+ declare const BinaryDataSignedQueryDto_base: Z.Class<{
4
+ token: z.ZodString;
5
+ }>;
6
+ export declare class BinaryDataSignedQueryDto extends BinaryDataSignedQueryDto_base {
7
+ }
8
+ export {};
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BinaryDataSignedQueryDto = void 0;
4
+ const zod_1 = require("zod");
5
+ const zod_class_1 = require("zod-class");
6
+ class BinaryDataSignedQueryDto extends zod_class_1.Z.class({
7
+ token: zod_1.z.string().regex(/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+$/, {
8
+ message: 'Token must be a valid JWT format',
9
+ }),
10
+ }) {
11
+ }
12
+ exports.BinaryDataSignedQueryDto = BinaryDataSignedQueryDto;
13
+ //# sourceMappingURL=binary-data-signed-query.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"binary-data-signed-query.dto.js","sourceRoot":"","sources":["../../../src/dto/binary-data/binary-data-signed-query.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,yCAA8B;AAE9B,MAAa,wBAAyB,SAAQ,aAAC,CAAC,KAAK,CAAC;IACrD,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,kDAAkD,EAAE;QAC3E,OAAO,EAAE,kCAAkC;KAC3C,CAAC;CACF,CAAC;CAAG;AAJL,4DAIK"}
@@ -25,7 +25,7 @@ declare const ListFolderQueryDto_base: Z.Class<{
25
25
  } | undefined, string | undefined>;
26
26
  skip: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, number, string | undefined>, number, string | undefined>;
27
27
  take: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, number, string | undefined>, number, string | undefined>;
28
- select: z.ZodEffects<z.ZodOptional<z.ZodString>, Record<"project" | "name" | "tags" | "id" | "updatedAt" | "createdAt" | "parentFolder" | "workflowCount" | "subFolderCount", true> | undefined, string | undefined>;
28
+ select: z.ZodEffects<z.ZodOptional<z.ZodString>, Record<"project" | "id" | "name" | "tags" | "updatedAt" | "createdAt" | "parentFolder" | "workflowCount" | "subFolderCount", true> | undefined, string | undefined>;
29
29
  sortBy: z.ZodOptional<z.ZodEnum<["name:asc", "name:desc", "createdAt:asc", "createdAt:desc", "updatedAt:asc", "updatedAt:desc"]>>;
30
30
  }>;
31
31
  export declare class ListFolderQueryDto extends ListFolderQueryDto_base {
@@ -2,6 +2,8 @@ export { AiAskRequestDto } from './ai/ai-ask-request.dto';
2
2
  export { AiChatRequestDto } from './ai/ai-chat-request.dto';
3
3
  export { AiApplySuggestionRequestDto } from './ai/ai-apply-suggestion-request.dto';
4
4
  export { AiFreeCreditsRequestDto } from './ai/ai-free-credits-request.dto';
5
+ export { BinaryDataQueryDto } from './binary-data/binary-data-query.dto';
6
+ export { BinaryDataSignedQueryDto } from './binary-data/binary-data-signed-query.dto';
5
7
  export { LoginRequestDto } from './auth/login-request.dto';
6
8
  export { ResolveSignupTokenQueryDto } from './auth/resolve-signup-token-query.dto';
7
9
  export { OptionsRequestDto } from './dynamic-node-parameters/options-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.ListInsightsWorkflowQueryDto = exports.ListFolderQueryDto = exports.DeleteFolderDto = exports.UpdateFolderDto = exports.CreateFolderDto = 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;
3
+ exports.ListInsightsWorkflowQueryDto = exports.ListFolderQueryDto = exports.DeleteFolderDto = exports.UpdateFolderDto = exports.CreateFolderDto = 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.BinaryDataSignedQueryDto = exports.BinaryDataQueryDto = 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");
@@ -9,6 +9,10 @@ var ai_apply_suggestion_request_dto_1 = require("./ai/ai-apply-suggestion-reques
9
9
  Object.defineProperty(exports, "AiApplySuggestionRequestDto", { enumerable: true, get: function () { return ai_apply_suggestion_request_dto_1.AiApplySuggestionRequestDto; } });
10
10
  var ai_free_credits_request_dto_1 = require("./ai/ai-free-credits-request.dto");
11
11
  Object.defineProperty(exports, "AiFreeCreditsRequestDto", { enumerable: true, get: function () { return ai_free_credits_request_dto_1.AiFreeCreditsRequestDto; } });
12
+ var binary_data_query_dto_1 = require("./binary-data/binary-data-query.dto");
13
+ Object.defineProperty(exports, "BinaryDataQueryDto", { enumerable: true, get: function () { return binary_data_query_dto_1.BinaryDataQueryDto; } });
14
+ var binary_data_signed_query_dto_1 = require("./binary-data/binary-data-signed-query.dto");
15
+ Object.defineProperty(exports, "BinaryDataSignedQueryDto", { enumerable: true, get: function () { return binary_data_signed_query_dto_1.BinaryDataSignedQueryDto; } });
12
16
  var login_request_dto_1 = require("./auth/login-request.dto");
13
17
  Object.defineProperty(exports, "LoginRequestDto", { enumerable: true, get: function () { return login_request_dto_1.LoginRequestDto; } });
14
18
  var resolve_signup_token_query_dto_1 = require("./auth/resolve-signup-token-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;AAC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uIAAA,wBAAwB,OAAA;AACjC,0EAAsE;AAA7D,+HAAA,oBAAoB,OAAA;AAE7B,+FAA2F;AAAlF,iJAAA,6BAA6B,OAAA;AAEtC,8FAAyF;AAAhF,wIAAA,wBAAwB,OAAA;AACjC,8FAAyF;AAAhF,wIAAA,wBAAwB,OAAA;AAEjC,6EAA0E;AAAjE,4HAAA,mBAAmB,OAAA;AAC5B,qFAAgF;AAAvE,oIAAA,sBAAsB,OAAA;AAC/B,iGAA8F;AAArF,gJAAA,6BAA6B,OAAA;AACtC,mGAAgG;AAAvF,kJAAA,8BAA8B,OAAA;AACvC,2FAAgG;AAAvF,kJAAA,kCAAkC,OAAA;AAE3C,yFAAoF;AAA3E,wIAAA,wBAAwB,OAAA;AACjC,yEAAqE;AAA5D,yHAAA,iBAAiB,OAAA;AAC1B,yDAAmE;AAA1D,uHAAA,uBAAuB,OAAA;AAEhC,2FAAqF;AAA5E,+IAAA,2BAA2B,OAAA;AACpC,uEAAmE;AAA1D,6HAAA,mBAAmB,OAAA;AAE5B,oFAA+E;AAAtE,oIAAA,sBAAsB,OAAA;AAC/B,oFAA+E;AAAtE,oIAAA,sBAAsB,OAAA;AAE/B,iEAA8D;AAArD,oHAAA,eAAe,OAAA;AACxB,iEAA8D;AAArD,oHAAA,eAAe,OAAA;AACxB,iEAA8D;AAArD,oHAAA,eAAe,OAAA;AACxB,yEAAqE;AAA5D,2HAAA,kBAAkB,OAAA;AAE3B,8EAAkF;AAAzE,uIAAA,4BAA4B,OAAA"}
@@ -33,22 +33,22 @@ declare const SamlPreferences_base: Z.Class<{
33
33
  reference: z.ZodString;
34
34
  action: z.ZodEnum<["before", "after", "prepend", "append"]>;
35
35
  }, "strip", z.ZodTypeAny, {
36
- reference: string;
37
36
  action: "before" | "after" | "prepend" | "append";
38
- }, {
39
37
  reference: string;
38
+ }, {
40
39
  action: "before" | "after" | "prepend" | "append";
40
+ reference: string;
41
41
  }>;
42
42
  }, "strip", z.ZodTypeAny, {
43
43
  prefix: string;
44
44
  location: {
45
- reference: string;
46
45
  action: "before" | "after" | "prepend" | "append";
46
+ reference: string;
47
47
  };
48
48
  }, {
49
49
  location: {
50
- reference: string;
51
50
  action: "before" | "after" | "prepend" | "append";
51
+ reference: string;
52
52
  };
53
53
  prefix?: string | undefined;
54
54
  }>>;
@@ -15,21 +15,21 @@ declare const PushWorkFolderRequestDto_base: Z.Class<{
15
15
  pushed: z.ZodOptional<z.ZodBoolean>;
16
16
  }, "strip", z.ZodTypeAny, {
17
17
  status: "unknown" | "new" | "modified" | "deleted" | "created" | "renamed" | "conflicted" | "ignored" | "staged";
18
- type: "credential" | "workflow" | "tags" | "variables" | "file" | "folders";
18
+ type: "workflow" | "credential" | "file" | "tags" | "variables" | "folders";
19
+ id: string;
20
+ file: string;
19
21
  name: string;
20
22
  location: "local" | "remote";
21
- file: string;
22
- id: string;
23
23
  conflict: boolean;
24
24
  updatedAt: string;
25
25
  pushed?: boolean | undefined;
26
26
  }, {
27
27
  status: "unknown" | "new" | "modified" | "deleted" | "created" | "renamed" | "conflicted" | "ignored" | "staged";
28
- type: "credential" | "workflow" | "tags" | "variables" | "file" | "folders";
28
+ type: "workflow" | "credential" | "file" | "tags" | "variables" | "folders";
29
+ id: string;
30
+ file: string;
29
31
  name: string;
30
32
  location: "local" | "remote";
31
- file: string;
32
- id: string;
33
33
  conflict: boolean;
34
34
  updatedAt: string;
35
35
  pushed?: boolean | undefined;
@@ -130,6 +130,7 @@ export interface FrontendSettings {
130
130
  workflowHistory: boolean;
131
131
  workerView: boolean;
132
132
  advancedPermissions: boolean;
133
+ apiKeyScopes: boolean;
133
134
  projects: {
134
135
  team: {
135
136
  limit: number;
package/dist/index.d.ts CHANGED
@@ -10,6 +10,7 @@ export type { HeartbeatMessage } from './push/heartbeat';
10
10
  export { createHeartbeatMessage, heartbeatMessageSchema } from './push/heartbeat';
11
11
  export type { SendWorkerStatusMessage } from './push/worker';
12
12
  export type { BannerName } from './schemas/bannerName.schema';
13
+ export { ViewableMimeTypes } from './schemas/binaryData.schema';
13
14
  export { passwordSchema } from './schemas/password.schema';
14
15
  export type { ProjectType, ProjectIcon, ProjectRole, ProjectRelation, } from './schemas/project.schema';
15
16
  export { type SourceControlledFile, SOURCE_CONTROL_FILE_LOCATION, SOURCE_CONTROL_FILE_STATUS, SOURCE_CONTROL_FILE_TYPE, } from './schemas/source-controlled-file.schema';
package/dist/index.js CHANGED
@@ -14,11 +14,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.SOURCE_CONTROL_FILE_TYPE = exports.SOURCE_CONTROL_FILE_STATUS = exports.SOURCE_CONTROL_FILE_LOCATION = exports.passwordSchema = exports.heartbeatMessageSchema = exports.createHeartbeatMessage = void 0;
17
+ exports.SOURCE_CONTROL_FILE_TYPE = exports.SOURCE_CONTROL_FILE_STATUS = exports.SOURCE_CONTROL_FILE_LOCATION = exports.passwordSchema = exports.ViewableMimeTypes = exports.heartbeatMessageSchema = exports.createHeartbeatMessage = void 0;
18
18
  __exportStar(require("./dto"), exports);
19
19
  var heartbeat_1 = require("./push/heartbeat");
20
20
  Object.defineProperty(exports, "createHeartbeatMessage", { enumerable: true, get: function () { return heartbeat_1.createHeartbeatMessage; } });
21
21
  Object.defineProperty(exports, "heartbeatMessageSchema", { enumerable: true, get: function () { return heartbeat_1.heartbeatMessageSchema; } });
22
+ var binaryData_schema_1 = require("./schemas/binaryData.schema");
23
+ Object.defineProperty(exports, "ViewableMimeTypes", { enumerable: true, get: function () { return binaryData_schema_1.ViewableMimeTypes; } });
22
24
  var password_schema_1 = require("./schemas/password.schema");
23
25
  Object.defineProperty(exports, "passwordSchema", { enumerable: true, get: function () { return password_schema_1.passwordSchema; } });
24
26
  var source_controlled_file_schema_1 = require("./schemas/source-controlled-file.schema");
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,wCAAsB;AAStB,8CAAkF;AAAzE,mHAAA,sBAAsB,OAAA;AAAE,mHAAA,sBAAsB,OAAA;AAIvD,6DAA2D;AAAlD,iHAAA,cAAc,OAAA;AASvB,yFAKiD;AAHhD,6IAAA,4BAA4B,OAAA;AAC5B,2IAAA,0BAA0B,OAAA;AAC1B,yIAAA,wBAAwB,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,wCAAsB;AAStB,8CAAkF;AAAzE,mHAAA,sBAAsB,OAAA;AAAE,mHAAA,sBAAsB,OAAA;AAIvD,iEAAgE;AAAvD,sHAAA,iBAAiB,OAAA;AAC1B,6DAA2D;AAAlD,iHAAA,cAAc,OAAA;AASvB,yFAKiD;AAHhD,6IAAA,4BAA4B,OAAA;AAC5B,2IAAA,0BAA0B,OAAA;AAC1B,yIAAA,wBAAwB,OAAA"}
@@ -0,0 +1 @@
1
+ export declare const ViewableMimeTypes: string[];
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ViewableMimeTypes = void 0;
4
+ exports.ViewableMimeTypes = [
5
+ 'application/json',
6
+ 'audio/mpeg',
7
+ 'audio/ogg',
8
+ 'audio/wav',
9
+ 'image/bmp',
10
+ 'image/gif',
11
+ 'image/jpeg',
12
+ 'image/jpg',
13
+ 'image/png',
14
+ 'image/tiff',
15
+ 'image/webp',
16
+ 'text/css',
17
+ 'text/csv',
18
+ 'text/markdown',
19
+ 'text/plain',
20
+ 'video/mp4',
21
+ 'video/ogg',
22
+ 'video/webm',
23
+ ];
24
+ //# sourceMappingURL=binaryData.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"binaryData.schema.js","sourceRoot":"","sources":["../../src/schemas/binaryData.schema.ts"],"names":[],"mappings":";;;AAQa,QAAA,iBAAiB,GAAG;IAChC,kBAAkB;IAElB,YAAY;IACZ,WAAW;IACX,WAAW;IAEX,WAAW;IACX,WAAW;IACX,YAAY;IACZ,WAAW;IACX,WAAW;IACX,YAAY;IACZ,YAAY;IAEZ,UAAU;IACV,UAAU;IACV,eAAe;IACf,YAAY;IAEZ,WAAW;IACX,WAAW;IACX,YAAY;CACZ,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { ApiKeyScope } from '@n8n/permissions';
2
+ import { z } from 'zod';
3
+ export declare const scopesSchema: z.ZodEffects<z.ZodArray<z.ZodString, "many">, ApiKeyScope[], string[]>;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.scopesSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.scopesSchema = zod_1.z
6
+ .array(zod_1.z
7
+ .string()
8
+ .regex(/^[a-zA-Z]+:[a-zA-Z]+$/, "Each scope must follow the format '{resource}:{scope}' with only letters (e.g., 'workflow:create')"))
9
+ .min(1)
10
+ .transform((scopes) => {
11
+ return scopes;
12
+ });
13
+ //# sourceMappingURL=scopes.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scopes.schema.js","sourceRoot":"","sources":["../../src/schemas/scopes.schema.ts"],"names":[],"mappings":";;;AACA,6BAAwB;AAEX,QAAA,YAAY,GAAG,OAAC;KAC3B,KAAK,CACL,OAAC;KACC,MAAM,EAAE;KACR,KAAK,CACL,uBAAuB,EACvB,oGAAoG,CACpG,CACF;KACA,GAAG,CAAC,CAAC,CAAC;KACN,SAAS,CAAC,CAAC,MAAM,EAAE,EAAE;IACrB,OAAO,MAAuB,CAAC;AAChC,CAAC,CAAC,CAAC"}
@@ -14,21 +14,21 @@ export declare const SourceControlledFileSchema: z.ZodObject<{
14
14
  pushed: z.ZodOptional<z.ZodBoolean>;
15
15
  }, "strip", z.ZodTypeAny, {
16
16
  status: "unknown" | "new" | "modified" | "deleted" | "created" | "renamed" | "conflicted" | "ignored" | "staged";
17
- type: "credential" | "workflow" | "tags" | "variables" | "file" | "folders";
17
+ type: "workflow" | "credential" | "file" | "tags" | "variables" | "folders";
18
+ id: string;
19
+ file: string;
18
20
  name: string;
19
21
  location: "local" | "remote";
20
- file: string;
21
- id: string;
22
22
  conflict: boolean;
23
23
  updatedAt: string;
24
24
  pushed?: boolean | undefined;
25
25
  }, {
26
26
  status: "unknown" | "new" | "modified" | "deleted" | "created" | "renamed" | "conflicted" | "ignored" | "staged";
27
- type: "credential" | "workflow" | "tags" | "variables" | "file" | "folders";
27
+ type: "workflow" | "credential" | "file" | "tags" | "variables" | "folders";
28
+ id: string;
29
+ file: string;
28
30
  name: string;
29
31
  location: "local" | "remote";
30
- file: string;
31
- id: string;
32
32
  conflict: boolean;
33
33
  updatedAt: string;
34
34
  pushed?: boolean | undefined;
package/package.json CHANGED
@@ -1,23 +1,24 @@
1
1
  {
2
2
  "name": "@n8n/api-types",
3
- "version": "0.24.1",
3
+ "version": "0.25.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.md",
10
- "LICENSE_EE.md"
9
+ "LICENSE_EE.md",
10
+ "LICENSE.md"
11
11
  ],
12
12
  "devDependencies": {
13
13
  "@n8n/typescript-config": "1.2.0",
14
- "@n8n/config": "1.36.0"
14
+ "@n8n/config": "1.37.0"
15
15
  },
16
16
  "dependencies": {
17
17
  "xss": "1.0.15",
18
18
  "zod": "3.24.1",
19
19
  "zod-class": "0.0.16",
20
- "n8n-workflow": "1.87.0"
20
+ "n8n-workflow": "1.88.0",
21
+ "@n8n/permissions": "0.22.0"
21
22
  },
22
23
  "license": "SEE LICENSE IN LICENSE.md",
23
24
  "homepage": "https://n8n.io",