@n8n/api-types 0.26.0 → 0.28.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,21 @@
1
+ import type { INodeTypeDescription } from 'n8n-workflow';
2
+ export interface CommunityNodeAttributes {
3
+ authorGithubUrl: string;
4
+ authorName: string;
5
+ checksum: string;
6
+ description: string;
7
+ displayName: string;
8
+ name: string;
9
+ numberOfStars: number;
10
+ numberOfDownloads: number;
11
+ packageName: string;
12
+ createdAt: string;
13
+ updatedAt: string;
14
+ npmVersion: string;
15
+ }
16
+ export interface CommunityNodeData {
17
+ id: number;
18
+ attributes: CommunityNodeAttributes & {
19
+ nodeDescription: INodeTypeDescription;
20
+ };
21
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=community-node-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"community-node-types.js","sourceRoot":"","sources":["../src/community-node-types.ts"],"names":[],"mappings":""}
@@ -2,6 +2,7 @@ import { Z } from 'zod-class';
2
2
  declare const CredentialsGetManyRequestQuery_base: Z.Class<{
3
3
  includeScopes: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodEnum<["true", "false"]>, boolean, "true" | "false">>;
4
4
  includeData: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodEnum<["true", "false"]>, boolean, "true" | "false">>;
5
+ onlySharedWithMe: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodEnum<["true", "false"]>, boolean, "true" | "false">>;
5
6
  }>;
6
7
  export declare class CredentialsGetManyRequestQuery extends CredentialsGetManyRequestQuery_base {
7
8
  }
@@ -6,6 +6,7 @@ const booleanFromString_1 = require("../../schemas/booleanFromString");
6
6
  class CredentialsGetManyRequestQuery extends zod_class_1.Z.class({
7
7
  includeScopes: booleanFromString_1.booleanFromString.optional(),
8
8
  includeData: booleanFromString_1.booleanFromString.optional(),
9
+ onlySharedWithMe: booleanFromString_1.booleanFromString.optional(),
9
10
  }) {
10
11
  }
11
12
  exports.CredentialsGetManyRequestQuery = CredentialsGetManyRequestQuery;
@@ -1 +1 @@
1
- {"version":3,"file":"credentials-get-many-request.dto.js","sourceRoot":"","sources":["../../../src/dto/credentials/credentials-get-many-request.dto.ts"],"names":[],"mappings":";;;AAAA,yCAA8B;AAE9B,uEAAoE;AAEpE,MAAa,8BAA+B,SAAQ,aAAC,CAAC,KAAK,CAAC;IAM3D,aAAa,EAAE,qCAAiB,CAAC,QAAQ,EAAE;IAU3C,WAAW,EAAE,qCAAiB,CAAC,QAAQ,EAAE;CACzC,CAAC;CAAG;AAjBL,wEAiBK"}
1
+ {"version":3,"file":"credentials-get-many-request.dto.js","sourceRoot":"","sources":["../../../src/dto/credentials/credentials-get-many-request.dto.ts"],"names":[],"mappings":";;;AAAA,yCAA8B;AAE9B,uEAAoE;AAEpE,MAAa,8BAA+B,SAAQ,aAAC,CAAC,KAAK,CAAC;IAM3D,aAAa,EAAE,qCAAiB,CAAC,QAAQ,EAAE;IAU3C,WAAW,EAAE,qCAAiB,CAAC,QAAQ,EAAE;IAEzC,gBAAgB,EAAE,qCAAiB,CAAC,QAAQ,EAAE;CAC9C,CAAC;CAAG;AAnBL,wEAmBK"}
@@ -0,0 +1,10 @@
1
+ import { z } from 'zod';
2
+ import { Z } from 'zod-class';
3
+ declare const TransferFolderBodyDto_base: Z.Class<{
4
+ destinationProjectId: z.ZodString;
5
+ shareCredentials: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6
+ destinationParentFolderId: z.ZodString;
7
+ }>;
8
+ export declare class TransferFolderBodyDto extends TransferFolderBodyDto_base {
9
+ }
10
+ export {};
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TransferFolderBodyDto = void 0;
4
+ const zod_1 = require("zod");
5
+ const zod_class_1 = require("zod-class");
6
+ const folder_schema_1 = require("../../schemas/folder.schema");
7
+ class TransferFolderBodyDto extends zod_class_1.Z.class({
8
+ destinationProjectId: zod_1.z.string(),
9
+ shareCredentials: zod_1.z.array(zod_1.z.string()).optional(),
10
+ destinationParentFolderId: folder_schema_1.folderIdSchema,
11
+ }) {
12
+ }
13
+ exports.TransferFolderBodyDto = TransferFolderBodyDto;
14
+ //# sourceMappingURL=transfer-folder.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transfer-folder.dto.js","sourceRoot":"","sources":["../../../src/dto/folders/transfer-folder.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,yCAA8B;AAE9B,+DAA6D;AAE7D,MAAa,qBAAsB,SAAQ,aAAC,CAAC,KAAK,CAAC;IAClD,oBAAoB,EAAE,OAAC,CAAC,MAAM,EAAE;IAChC,gBAAgB,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAChD,yBAAyB,EAAE,8BAAc;CACzC,CAAC;CAAG;AAJL,sDAIK"}
@@ -47,6 +47,7 @@ export { CreateFolderDto } from './folders/create-folder.dto';
47
47
  export { UpdateFolderDto } from './folders/update-folder.dto';
48
48
  export { DeleteFolderDto } from './folders/delete-folder.dto';
49
49
  export { ListFolderQueryDto } from './folders/list-folder-query.dto';
50
+ export { TransferFolderBodyDto } from './folders/transfer-folder.dto';
50
51
  export { ListInsightsWorkflowQueryDto } from './insights/list-workflow-query.dto';
51
52
  export { InsightsDateFilterDto } from './insights/date-filter.dto';
52
53
  export { PaginationDto } from './pagination/pagination.dto';
package/dist/dto/index.js CHANGED
@@ -1,7 +1,7 @@
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.BinaryDataSignedQueryDto = exports.BinaryDataQueryDto = exports.AiFreeCreditsRequestDto = exports.AiApplySuggestionRequestDto = exports.AiBuilderChatRequestDto = exports.AiChatRequestDto = exports.AiAskRequestDto = void 0;
4
- exports.PaginationDto = exports.InsightsDateFilterDto = void 0;
3
+ exports.TransferFolderBodyDto = 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.AiBuilderChatRequestDto = exports.AiChatRequestDto = exports.AiAskRequestDto = void 0;
4
+ exports.PaginationDto = exports.InsightsDateFilterDto = exports.ListInsightsWorkflowQueryDto = void 0;
5
5
  var ai_ask_request_dto_1 = require("./ai/ai-ask-request.dto");
6
6
  Object.defineProperty(exports, "AiAskRequestDto", { enumerable: true, get: function () { return ai_ask_request_dto_1.AiAskRequestDto; } });
7
7
  var ai_chat_request_dto_1 = require("./ai/ai-chat-request.dto");
@@ -100,6 +100,8 @@ var delete_folder_dto_1 = require("./folders/delete-folder.dto");
100
100
  Object.defineProperty(exports, "DeleteFolderDto", { enumerable: true, get: function () { return delete_folder_dto_1.DeleteFolderDto; } });
101
101
  var list_folder_query_dto_1 = require("./folders/list-folder-query.dto");
102
102
  Object.defineProperty(exports, "ListFolderQueryDto", { enumerable: true, get: function () { return list_folder_query_dto_1.ListFolderQueryDto; } });
103
+ var transfer_folder_dto_1 = require("./folders/transfer-folder.dto");
104
+ Object.defineProperty(exports, "TransferFolderBodyDto", { enumerable: true, get: function () { return transfer_folder_dto_1.TransferFolderBodyDto; } });
103
105
  var list_workflow_query_dto_1 = require("./insights/list-workflow-query.dto");
104
106
  Object.defineProperty(exports, "ListInsightsWorkflowQueryDto", { enumerable: true, get: function () { return list_workflow_query_dto_1.ListInsightsWorkflowQueryDto; } });
105
107
  var date_filter_dto_1 = require("./insights/date-filter.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,kEAAoE;AAA3D,+HAAA,uBAAuB,OAAA;AAChC,wFAAmF;AAA1E,8IAAA,2BAA2B,OAAA;AACpC,gFAA2E;AAAlE,sIAAA,uBAAuB,OAAA;AAEhC,6EAAyE;AAAhE,2HAAA,kBAAkB,OAAA;AAC3B,2FAAsF;AAA7E,wIAAA,wBAAwB,OAAA;AAEjC,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;AAAx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abled: boolean;
106
+ unverifiedCommunityNodesEnabled: boolean;
106
107
  aiAssistant: {
107
108
  enabled: boolean;
108
109
  };
package/dist/index.d.ts CHANGED
@@ -5,6 +5,7 @@ export type * from './scaling';
5
5
  export type * from './frontend-settings';
6
6
  export type * from './user';
7
7
  export type * from './api-keys';
8
+ export type * from './community-node-types';
8
9
  export type { Collaborator } from './push/collaboration';
9
10
  export type { HeartbeatMessage } from './push/heartbeat';
10
11
  export { createHeartbeatMessage, heartbeatMessageSchema } from './push/heartbeat';
@@ -12,6 +13,6 @@ export type { SendWorkerStatusMessage } from './push/worker';
12
13
  export type { BannerName } from './schemas/bannerName.schema';
13
14
  export { ViewableMimeTypes } from './schemas/binaryData.schema';
14
15
  export { passwordSchema } from './schemas/password.schema';
15
- export type { ProjectType, ProjectIcon, ProjectRole, ProjectRelation, } from './schemas/project.schema';
16
+ export type { ProjectType, ProjectIcon, ProjectRelation, } from './schemas/project.schema';
16
17
  export { type SourceControlledFile, SOURCE_CONTROL_FILE_LOCATION, SOURCE_CONTROL_FILE_STATUS, SOURCE_CONTROL_FILE_TYPE, } from './schemas/source-controlled-file.schema';
17
18
  export { type InsightsSummaryType, type InsightsSummaryUnit, type InsightsSummary, type InsightsByWorkflow, type InsightsByTime, type InsightsDateRange, INSIGHTS_DATE_RANGE_KEYS, } from './schemas/insights.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,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;AAGzB,6DAQmC;AADlC,2HAAA,wBAAwB,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,wCAAsB;AAUtB,8CAAkF;AAAzE,mHAAA,sBAAsB,OAAA;AAAE,mHAAA,sBAAsB,OAAA;AAIvD,iEAAgE;AAAvD,sHAAA,iBAAiB,OAAA;AAC1B,6DAA2D;AAAlD,iHAAA,cAAc,OAAA;AAQvB,yFAKiD;AAHhD,6IAAA,4BAA4B,OAAA;AAC5B,2IAAA,0BAA0B,OAAA;AAC1B,yIAAA,wBAAwB,OAAA;AAGzB,6DAQmC;AADlC,2HAAA,wBAAwB,OAAA"}
@@ -4,7 +4,7 @@ export type Collaborator = {
4
4
  user: MinimalUser;
5
5
  lastSeen: Iso8601DateTimeString;
6
6
  };
7
- type CollaboratorsChanged = {
7
+ export type CollaboratorsChanged = {
8
8
  type: 'collaboratorsChanged';
9
9
  data: {
10
10
  workflowId: string;
@@ -12,4 +12,3 @@ type CollaboratorsChanged = {
12
12
  };
13
13
  };
14
14
  export type CollaborationPushMessage = CollaboratorsChanged;
15
- export {};
@@ -1,4 +1,4 @@
1
- type SendConsoleMessage = {
1
+ export type SendConsoleMessage = {
2
2
  type: 'sendConsoleMessage';
3
3
  data: {
4
4
  source: string;
@@ -6,4 +6,3 @@ type SendConsoleMessage = {
6
6
  };
7
7
  };
8
8
  export type DebugPushMessage = SendConsoleMessage;
9
- export {};
@@ -1,5 +1,5 @@
1
1
  import type { ExecutionStatus, ITaskData, ITaskStartedData, WorkflowExecuteMode } from 'n8n-workflow';
2
- type ExecutionStarted = {
2
+ export type ExecutionStarted = {
3
3
  type: 'executionStarted';
4
4
  data: {
5
5
  executionId: string;
@@ -11,13 +11,13 @@ type ExecutionStarted = {
11
11
  flattedRunData: string;
12
12
  };
13
13
  };
14
- type ExecutionWaiting = {
14
+ export type ExecutionWaiting = {
15
15
  type: 'executionWaiting';
16
16
  data: {
17
17
  executionId: string;
18
18
  };
19
19
  };
20
- type ExecutionFinished = {
20
+ export type ExecutionFinished = {
21
21
  type: 'executionFinished';
22
22
  data: {
23
23
  executionId: string;
@@ -26,13 +26,13 @@ type ExecutionFinished = {
26
26
  rawData?: string;
27
27
  };
28
28
  };
29
- type ExecutionRecovered = {
29
+ export type ExecutionRecovered = {
30
30
  type: 'executionRecovered';
31
31
  data: {
32
32
  executionId: string;
33
33
  };
34
34
  };
35
- type NodeExecuteBefore = {
35
+ export type NodeExecuteBefore = {
36
36
  type: 'nodeExecuteBefore';
37
37
  data: {
38
38
  executionId: string;
@@ -40,7 +40,7 @@ type NodeExecuteBefore = {
40
40
  data: ITaskStartedData;
41
41
  };
42
42
  };
43
- type NodeExecuteAfter = {
43
+ export type NodeExecuteAfter = {
44
44
  type: 'nodeExecuteAfter';
45
45
  data: {
46
46
  executionId: string;
@@ -50,4 +50,3 @@ type NodeExecuteAfter = {
50
50
  };
51
51
  };
52
52
  export type ExecutionPushMessage = ExecutionStarted | ExecutionWaiting | ExecutionFinished | ExecutionRecovered | NodeExecuteBefore | NodeExecuteAfter;
53
- export {};
@@ -1,18 +1,17 @@
1
- type NodeTypeData = {
1
+ export type NodeTypeData = {
2
2
  name: string;
3
3
  version: number;
4
4
  };
5
- type ReloadNodeType = {
5
+ export type ReloadNodeType = {
6
6
  type: 'reloadNodeType';
7
7
  data: NodeTypeData;
8
8
  };
9
- type RemoveNodeType = {
9
+ export type RemoveNodeType = {
10
10
  type: 'removeNodeType';
11
11
  data: NodeTypeData;
12
12
  };
13
- type NodeDescriptionUpdated = {
13
+ export type NodeDescriptionUpdated = {
14
14
  type: 'nodeDescriptionUpdated';
15
15
  data: {};
16
16
  };
17
17
  export type HotReloadPushMessage = ReloadNodeType | RemoveNodeType | NodeDescriptionUpdated;
18
- export {};
@@ -1,11 +1,11 @@
1
- type TestWebhookDeleted = {
1
+ export type TestWebhookDeleted = {
2
2
  type: 'testWebhookDeleted';
3
3
  data: {
4
4
  executionId?: string;
5
5
  workflowId: string;
6
6
  };
7
7
  };
8
- type TestWebhookReceived = {
8
+ export type TestWebhookReceived = {
9
9
  type: 'testWebhookReceived';
10
10
  data: {
11
11
  executionId: string;
@@ -13,4 +13,3 @@ type TestWebhookReceived = {
13
13
  };
14
14
  };
15
15
  export type WebhookPushMessage = TestWebhookDeleted | TestWebhookReceived;
16
- export {};
@@ -1,21 +1,20 @@
1
- type WorkflowActivated = {
1
+ export type WorkflowActivated = {
2
2
  type: 'workflowActivated';
3
3
  data: {
4
4
  workflowId: string;
5
5
  };
6
6
  };
7
- type WorkflowFailedToActivate = {
7
+ export type WorkflowFailedToActivate = {
8
8
  type: 'workflowFailedToActivate';
9
9
  data: {
10
10
  workflowId: string;
11
11
  errorMessage: string;
12
12
  };
13
13
  };
14
- type WorkflowDeactivated = {
14
+ export type WorkflowDeactivated = {
15
15
  type: 'workflowDeactivated';
16
16
  data: {
17
17
  workflowId: string;
18
18
  };
19
19
  };
20
20
  export type WorkflowPushMessage = WorkflowActivated | WorkflowFailedToActivate | WorkflowDeactivated;
21
- export {};
@@ -13,8 +13,6 @@ export declare const projectIconSchema: z.ZodObject<{
13
13
  type: "emoji" | "icon";
14
14
  }>;
15
15
  export type ProjectIcon = z.infer<typeof projectIconSchema>;
16
- export declare const projectRoleSchema: z.ZodEnum<["project:personalOwner", "project:admin", "project:editor", "project:viewer"]>;
17
- export type ProjectRole = z.infer<typeof projectRoleSchema>;
18
16
  export declare const projectRelationSchema: z.ZodObject<{
19
17
  userId: z.ZodString;
20
18
  role: z.ZodEnum<["project:personalOwner", "project:admin", "project:editor", "project:viewer"]>;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.projectRelationSchema = exports.projectRoleSchema = exports.projectIconSchema = exports.projectTypeSchema = exports.projectNameSchema = void 0;
3
+ exports.projectRelationSchema = exports.projectIconSchema = exports.projectTypeSchema = exports.projectNameSchema = void 0;
4
+ const permissions_1 = require("@n8n/permissions");
4
5
  const zod_1 = require("zod");
5
6
  exports.projectNameSchema = zod_1.z.string().min(1).max(255);
6
7
  exports.projectTypeSchema = zod_1.z.enum(['personal', 'team']);
@@ -8,14 +9,8 @@ exports.projectIconSchema = zod_1.z.object({
8
9
  type: zod_1.z.enum(['emoji', 'icon']),
9
10
  value: zod_1.z.string().min(1),
10
11
  });
11
- exports.projectRoleSchema = zod_1.z.enum([
12
- 'project:personalOwner',
13
- 'project:admin',
14
- 'project:editor',
15
- 'project:viewer',
16
- ]);
17
12
  exports.projectRelationSchema = zod_1.z.object({
18
13
  userId: zod_1.z.string(),
19
- role: exports.projectRoleSchema,
14
+ role: permissions_1.projectRoleSchema,
20
15
  });
21
16
  //# sourceMappingURL=project.schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"project.schema.js","sourceRoot":"","sources":["../../src/schemas/project.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,iBAAiB,GAAG,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAE/C,QAAA,iBAAiB,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC,CAAC;AAGjD,QAAA,iBAAiB,GAAG,OAAC,CAAC,MAAM,CAAC;IACzC,IAAI,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IAC/B,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CACxB,CAAC,CAAC;AAGU,QAAA,iBAAiB,GAAG,OAAC,CAAC,IAAI,CAAC;IACvC,uBAAuB;IACvB,eAAe;IACf,gBAAgB;IAChB,gBAAgB;CAChB,CAAC,CAAC;AAGU,QAAA,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,IAAI,EAAE,yBAAiB;CACvB,CAAC,CAAC"}
1
+ {"version":3,"file":"project.schema.js","sourceRoot":"","sources":["../../src/schemas/project.schema.ts"],"names":[],"mappings":";;;AAAA,kDAAqD;AACrD,6BAAwB;AAEX,QAAA,iBAAiB,GAAG,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAE/C,QAAA,iBAAiB,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC,CAAC;AAGjD,QAAA,iBAAiB,GAAG,OAAC,CAAC,MAAM,CAAC;IACzC,IAAI,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IAC/B,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CACxB,CAAC,CAAC;AAGU,QAAA,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,IAAI,EAAE,+BAAiB;CACvB,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@n8n/api-types",
3
- "version": "0.26.0",
3
+ "version": "0.28.0",
4
4
  "main": "dist/index.js",
5
5
  "module": "src/index.ts",
6
6
  "types": "dist/index.d.ts",
@@ -10,15 +10,15 @@
10
10
  "LICENSE_EE.md"
11
11
  ],
12
12
  "devDependencies": {
13
- "@n8n/config": "1.38.0",
14
- "@n8n/typescript-config": "1.2.0"
13
+ "@n8n/typescript-config": "1.2.0",
14
+ "@n8n/config": "1.39.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.89.0",
21
- "@n8n/permissions": "0.22.0"
20
+ "n8n-workflow": "1.91.0",
21
+ "@n8n/permissions": "0.24.0"
22
22
  },
23
23
  "license": "SEE LICENSE IN LICENSE.md",
24
24
  "homepage": "https://n8n.io",