@n8n/api-types 1.6.1 → 1.7.1
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/build.tsbuildinfo +1 -1
- package/dist/chat-hub.d.ts +17 -0
- package/dist/chat-hub.js +6 -1
- package/dist/chat-hub.js.map +1 -1
- package/dist/dto/ai/ai-usage-settings-request.dto.d.ts +8 -0
- package/dist/dto/ai/ai-usage-settings-request.dto.js +11 -0
- package/dist/dto/ai/ai-usage-settings-request.dto.js.map +1 -0
- package/dist/dto/data-table/add-data-table-rows.dto.d.ts +1 -1
- package/dist/dto/data-table/add-data-table-rows.dto.js +1 -1
- package/dist/dto/data-table/add-data-table-rows.dto.js.map +1 -1
- package/dist/dto/data-table/list-data-table-content-query.dto.d.ts +16 -0
- package/dist/dto/data-table/list-data-table-content-query.dto.js +14 -4
- package/dist/dto/data-table/list-data-table-content-query.dto.js.map +1 -1
- package/dist/dto/data-table/list-data-table-query.dto.d.ts +14 -2
- package/dist/dto/data-table/list-data-table-query.dto.js +8 -3
- package/dist/dto/data-table/list-data-table-query.dto.js.map +1 -1
- package/dist/dto/index.d.ts +4 -3
- package/dist/dto/index.js +8 -2
- package/dist/dto/index.js.map +1 -1
- package/dist/dto/pagination/pagination.dto.d.ts +5 -1
- package/dist/dto/pagination/pagination.dto.js +27 -2
- package/dist/dto/pagination/pagination.dto.js.map +1 -1
- package/dist/dto/secrets-provider/create-secrets-provider-connection.dto.js +5 -1
- package/dist/dto/secrets-provider/create-secrets-provider-connection.dto.js.map +1 -1
- package/dist/dto/source-control/pull-work-folder-request.dto.d.ts +2 -0
- package/dist/dto/source-control/pull-work-folder-request.dto.js +4 -1
- package/dist/dto/source-control/pull-work-folder-request.dto.js.map +1 -1
- package/dist/dto/source-control/push-work-folder-request.dto.d.ts +9 -0
- package/dist/dto/user/users-list-filter.dto.d.ts +2 -0
- package/dist/dto/user/users-list-filter.dto.js +2 -0
- package/dist/dto/user/users-list-filter.dto.js.map +1 -1
- package/dist/dto/variables/create-variable-request.dto.d.ts +1 -1
- package/dist/frontend-settings.d.ts +4 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/push/chat-hub.d.ts +78 -0
- package/dist/push/chat-hub.js +3 -0
- package/dist/push/chat-hub.js.map +1 -0
- package/dist/push/index.d.ts +2 -1
- package/dist/schemas/source-controlled-file.schema.d.ts +9 -0
- package/dist/schemas/source-controlled-file.schema.js +3 -0
- package/dist/schemas/source-controlled-file.schema.js.map +1 -1
- package/dist/schemas/user.schema.d.ts +6 -6
- package/package.json +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users-list-filter.dto.js","sourceRoot":"","sources":["../../../src/dto/user/users-list-filter.dto.ts"],"names":[],"mappings":";;;AAAA,+CAAyC;AACzC,6BAAwB;AACxB,yCAA8B;AAE9B,iEAAqF;AAExE,QAAA,uBAAuB,GAAG;IACtC,eAAe;IACf,gBAAgB;IAChB,cAAc;IACd,eAAe;IACf,WAAW;IACX,YAAY;IACZ,UAAU;IACV,WAAW;IACX,gBAAgB;IAChB,iBAAiB;IACjB,kBAAkB;IAClB,mBAAmB;CACV,CAAC;AAIX,MAAM,wBAAwB,GAAG,OAAC;KAChC,KAAK,CACL,OAAC,CAAC,IAAI,CAAC,+BAAuB,EAAE;IAC/B,OAAO,EAAE,0BAA0B,+BAAuB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;CACvE,CAAC,CACF;KACA,QAAQ,EAAE,CAAC;AAEb,MAAM,gBAAgB,GAAG,OAAC,CAAC,KAAK,CAC/B,OAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,CAAC,CAAC,CAClF,CAAC;AAEF,MAAM,gBAAgB,GAAG,OAAC,CAAC,MAAM,CAAC;IACjC,OAAO,EAAE,OAAC,CAAC,OAAO,E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,CAAC,KAAK,CAAC;IAChB,CAAC;AACF,CAAC,CAAC,CAAC;AAEJ,MAAM,gBAAgB,GAAG,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,IAAI,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC;AAE/D,MAAa,kBAAmB,SAAQ,aAAC,CAAC,KAAK,CAAC;IAC/C,GAAG,iCAAgB;IACnB,IAAI,EAAE,IAAA,oCAAmB,EAAC,EAAE,EAAE,IAAI,CAAC;IACnC,MAAM,EAAE,gBAAgB,CAAC,QAAQ,EAAE;IACnC,MAAM,EAAE,qBAAqB,CAAC,QAAQ,EAAE;IACxC,MAAM,EAAE,gBAAgB,CAAC,QAAQ,EAAE;IAEnC,MAAM,EAAE,wBAAwB;CAChC,CAAC;CAAG;AARL,gDAQK"}
|
|
@@ -7,6 +7,7 @@ declare const CreateVariableRequestDto_base: {
|
|
|
7
7
|
new (input: any): T;
|
|
8
8
|
[key: string]: any;
|
|
9
9
|
}) => z.ZodType<T>;
|
|
10
|
+
Value: z.ZodString;
|
|
10
11
|
Type: z.ZodDefault<z.ZodEnum<["string"]>>;
|
|
11
12
|
prototype: BaseVariableRequestDto;
|
|
12
13
|
staticProps: {
|
|
@@ -15,7 +16,6 @@ declare const CreateVariableRequestDto_base: {
|
|
|
15
16
|
Value: z.ZodString;
|
|
16
17
|
};
|
|
17
18
|
Key: z.ZodString;
|
|
18
|
-
Value: z.ZodString;
|
|
19
19
|
} & import("zod-class").ZodClass<{} & {
|
|
20
20
|
projectId?: string | undefined;
|
|
21
21
|
} & {
|
|
@@ -56,7 +56,7 @@ export interface FrontendSettings {
|
|
|
56
56
|
settingsMode?: 'public' | 'authenticated';
|
|
57
57
|
inE2ETests: boolean;
|
|
58
58
|
isDocker: boolean;
|
|
59
|
-
databaseType: 'sqlite' | '
|
|
59
|
+
databaseType: 'sqlite' | 'postgresdb';
|
|
60
60
|
endpointForm: string;
|
|
61
61
|
endpointFormTest: string;
|
|
62
62
|
endpointFormWaiting: string;
|
|
@@ -198,6 +198,9 @@ export interface FrontendSettings {
|
|
|
198
198
|
credits: number;
|
|
199
199
|
setup: boolean;
|
|
200
200
|
};
|
|
201
|
+
ai: {
|
|
202
|
+
allowSendingParameterValues: boolean;
|
|
203
|
+
};
|
|
201
204
|
pruning?: {
|
|
202
205
|
isEnabled: boolean;
|
|
203
206
|
maxAge: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,8 @@ export type * from './frontend-settings';
|
|
|
6
6
|
export type * from './user';
|
|
7
7
|
export type * from './api-keys';
|
|
8
8
|
export type * from './community-node-types';
|
|
9
|
-
export { chatHubConversationModelSchema, type ChatModelDto, type ChatModelMetadataDto, type ChatHubInputModality, type ChatHubOpenAIModel, type ChatHubAnthropicModel, type ChatHubGoogleModel, type ChatHubBaseLLMModel, type ChatHubN8nModel, type ChatHubCustomAgentModel, type ChatHubConversationModel, type ChatHubModuleSettings, chatHubProviderSchema, chatHubLLMProviderSchema, type ChatHubProvider, type ChatHubLLMProvider, type ChatHubMessageType, type ChatHubMessageStatus, PROVIDER_CREDENTIAL_TYPE_MAP, chatModelsRequestSchema, emptyChatModelsResponse, type ChatModelsRequest, type ChatModelsResponse, chatAttachmentSchema, type ChatAttachment, ChatHubSendMessageRequest, ChatHubRegenerateMessageRequest, ChatHubEditMessageRequest, ChatHubUpdateConversationRequest, ChatHubConversationsRequest, type ChatMessageId, type ChatSessionId, type ChatHubMessageDto, type ChatHubSessionDto, type ChatHubConversationDto, type ChatHubConversationResponse, type ChatHubConversationsResponse, type ChatHubAgentDto, ChatHubCreateAgentRequest, ChatHubUpdateAgentRequest, type AgentIconOrEmoji, agentIconOrEmojiSchema, type MessageChunk, type ChatHubAgentTool, UpdateChatSettingsRequest, type ChatProviderSettingsDto, } from './chat-hub';
|
|
9
|
+
export { chatHubConversationModelSchema, type ChatModelDto, type ChatModelMetadataDto, type ChatHubInputModality, type ChatHubOpenAIModel, type ChatHubAnthropicModel, type ChatHubGoogleModel, type ChatHubBaseLLMModel, type ChatHubN8nModel, type ChatHubCustomAgentModel, type ChatHubConversationModel, type ChatHubModuleSettings, chatHubProviderSchema, chatHubLLMProviderSchema, type ChatHubProvider, type ChatHubLLMProvider, type ChatHubMessageType, type ChatHubMessageStatus, PROVIDER_CREDENTIAL_TYPE_MAP, chatModelsRequestSchema, emptyChatModelsResponse, type ChatModelsRequest, type ChatModelsResponse, chatAttachmentSchema, type ChatAttachment, ChatHubSendMessageRequest, ChatHubRegenerateMessageRequest, ChatHubEditMessageRequest, ChatHubUpdateConversationRequest, ChatHubConversationsRequest, type ChatMessageId, type ChatSessionId, type ChatHubMessageDto, type ChatHubSessionDto, type ChatHubConversationDto, type ChatHubConversationResponse, type ChatHubConversationsResponse, type ChatHubAgentDto, ChatHubCreateAgentRequest, ChatHubUpdateAgentRequest, type AgentIconOrEmoji, agentIconOrEmojiSchema, type MessageChunk, type ChatHubAgentTool, UpdateChatSettingsRequest, type ChatProviderSettingsDto, type ChatSendMessageResponse, type ChatReconnectResponse, ChatReconnectRequest, } from './chat-hub';
|
|
10
|
+
export type { ChatHubPushMessage, ChatHubStreamEvent, ChatHubStreamBegin, ChatHubStreamChunk, ChatHubStreamEnd, ChatHubStreamError, ChatHubStreamMetadata, ChatHubExecutionEvent, ChatHubExecutionBegin, ChatHubExecutionEnd, ChatHubHumanMessageCreated, ChatHubMessageEdited, ChatHubAttachmentInfo, } from './push/chat-hub';
|
|
10
11
|
export type { Collaborator } from './push/collaboration';
|
|
11
12
|
export type { HeartbeatMessage } from './push/heartbeat';
|
|
12
13
|
export { createHeartbeatMessage, heartbeatMessageSchema } from './push/heartbeat';
|
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ 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.WorkflowExecutionStatusSchema = exports.dataTableColumnNameSchema = exports.dateTimeSchema = exports.DATA_TABLE_COLUMN_ERROR_MESSAGE = exports.DATA_TABLE_COLUMN_MAX_LENGTH = exports.DATA_TABLE_COLUMN_REGEX = exports.userDetailSchema = exports.userBaseSchema = exports.usersListSchema = exports.ROLE = exports.SOURCE_CONTROL_FILE_TYPE = exports.SOURCE_CONTROL_FILE_STATUS = exports.SOURCE_CONTROL_FILE_LOCATION = exports.isSourceControlledFileStatus = exports.WORKFLOW_VERSION_DESCRIPTION_MAX_LENGTH = exports.WORKFLOW_VERSION_NAME_MAX_LENGTH = exports.credentialResolverTypesSchema = exports.credentialResolverTypeSchema = exports.credentialResolversSchema = exports.credentialResolverSchema = exports.passwordSchema = exports.ViewableMimeTypes = exports.heartbeatMessageSchema = exports.createHeartbeatMessage = exports.UpdateChatSettingsRequest = exports.agentIconOrEmojiSchema = exports.ChatHubUpdateAgentRequest = exports.ChatHubCreateAgentRequest = exports.ChatHubConversationsRequest = exports.ChatHubUpdateConversationRequest = exports.ChatHubEditMessageRequest = exports.ChatHubRegenerateMessageRequest = exports.ChatHubSendMessageRequest = exports.chatAttachmentSchema = exports.emptyChatModelsResponse = exports.chatModelsRequestSchema = exports.PROVIDER_CREDENTIAL_TYPE_MAP = exports.chatHubLLMProviderSchema = exports.chatHubProviderSchema = exports.chatHubConversationModelSchema = void 0;
|
|
17
|
+
exports.WorkflowExecutionStatusSchema = exports.dataTableColumnNameSchema = exports.dateTimeSchema = exports.DATA_TABLE_COLUMN_ERROR_MESSAGE = exports.DATA_TABLE_COLUMN_MAX_LENGTH = exports.DATA_TABLE_COLUMN_REGEX = exports.userDetailSchema = exports.userBaseSchema = exports.usersListSchema = exports.ROLE = exports.SOURCE_CONTROL_FILE_TYPE = exports.SOURCE_CONTROL_FILE_STATUS = exports.SOURCE_CONTROL_FILE_LOCATION = exports.isSourceControlledFileStatus = exports.WORKFLOW_VERSION_DESCRIPTION_MAX_LENGTH = exports.WORKFLOW_VERSION_NAME_MAX_LENGTH = exports.credentialResolverTypesSchema = exports.credentialResolverTypeSchema = exports.credentialResolversSchema = exports.credentialResolverSchema = exports.passwordSchema = exports.ViewableMimeTypes = exports.heartbeatMessageSchema = exports.createHeartbeatMessage = exports.ChatReconnectRequest = exports.UpdateChatSettingsRequest = exports.agentIconOrEmojiSchema = exports.ChatHubUpdateAgentRequest = exports.ChatHubCreateAgentRequest = exports.ChatHubConversationsRequest = exports.ChatHubUpdateConversationRequest = exports.ChatHubEditMessageRequest = exports.ChatHubRegenerateMessageRequest = exports.ChatHubSendMessageRequest = exports.chatAttachmentSchema = exports.emptyChatModelsResponse = exports.chatModelsRequestSchema = exports.PROVIDER_CREDENTIAL_TYPE_MAP = exports.chatHubLLMProviderSchema = exports.chatHubProviderSchema = exports.chatHubConversationModelSchema = void 0;
|
|
18
18
|
__exportStar(require("./dto"), exports);
|
|
19
19
|
var chat_hub_1 = require("./chat-hub");
|
|
20
20
|
Object.defineProperty(exports, "chatHubConversationModelSchema", { enumerable: true, get: function () { return chat_hub_1.chatHubConversationModelSchema; } });
|
|
@@ -33,6 +33,7 @@ Object.defineProperty(exports, "ChatHubCreateAgentRequest", { enumerable: true,
|
|
|
33
33
|
Object.defineProperty(exports, "ChatHubUpdateAgentRequest", { enumerable: true, get: function () { return chat_hub_1.ChatHubUpdateAgentRequest; } });
|
|
34
34
|
Object.defineProperty(exports, "agentIconOrEmojiSchema", { enumerable: true, get: function () { return chat_hub_1.agentIconOrEmojiSchema; } });
|
|
35
35
|
Object.defineProperty(exports, "UpdateChatSettingsRequest", { enumerable: true, get: function () { return chat_hub_1.UpdateChatSettingsRequest; } });
|
|
36
|
+
Object.defineProperty(exports, "ChatReconnectRequest", { enumerable: true, get: function () { return chat_hub_1.ChatReconnectRequest; } });
|
|
36
37
|
var heartbeat_1 = require("./push/heartbeat");
|
|
37
38
|
Object.defineProperty(exports, "createHeartbeatMessage", { enumerable: true, get: function () { return heartbeat_1.createHeartbeatMessage; } });
|
|
38
39
|
Object.defineProperty(exports, "heartbeatMessageSchema", { enumerable: true, get: function () { return heartbeat_1.heartbeatMessageSchema; } });
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,wCAAsB;AAOtB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,wCAAsB;AAOtB,uCAkDoB;AAjDnB,0HAAA,8BAA8B,OAAA;AAY9B,iHAAA,qBAAqB,OAAA;AACrB,oHAAA,wBAAwB,OAAA;AAKxB,wHAAA,4BAA4B,OAAA;AAC5B,mHAAA,uBAAuB,OAAA;AACvB,mHAAA,uBAAuB,OAAA;AAGvB,gHAAA,oBAAoB,OAAA;AAEpB,qHAAA,yBAAyB,OAAA;AACzB,2HAAA,+BAA+B,OAAA;AAC/B,qHAAA,yBAAyB,OAAA;AACzB,4HAAA,gCAAgC,OAAA;AAChC,uHAAA,2BAA2B,OAAA;AAS3B,qHAAA,yBAAyB,OAAA;AACzB,qHAAA,yBAAyB,OAAA;AAEzB,kHAAA,sBAAsB,OAAA;AAGtB,qHAAA,yBAAyB,OAAA;AAIzB,gHAAA,oBAAoB,OAAA;AAqBrB,8CAAkF;AAAzE,mHAAA,sBAAsB,OAAA;AAAE,mHAAA,sBAAsB,OAAA;AAIvD,mEAAiE;AAAxD,uHAAA,iBAAiB,OAAA;AAC1B,6DAA2D;AAAlD,iHAAA,cAAc,OAAA;AACvB,mFAO8C;AAN7C,sIAAA,wBAAwB,OAAA;AACxB,uIAAA,yBAAyB,OAAA;AACzB,0IAAA,4BAA4B,OAAA;AAC5B,2IAAA,6BAA6B,OAAA;AAI9B,6EAG2C;AAF1C,2IAAA,gCAAgC,OAAA;AAChC,kJAAA,uCAAuC,OAAA;AASxC,yFAOiD;AANhD,6IAAA,4BAA4B,OAAA;AAG5B,6IAAA,4BAA4B,OAAA;AAC5B,2IAAA,0BAA0B,OAAA;AAC1B,yIAAA,wBAAwB,OAAA;AAazB,qDAQ+B;AAP9B,mGAAA,IAAI,OAAA;AAIJ,8GAAA,eAAe,OAAA;AACf,6GAAA,cAAc,OAAA;AACd,+GAAA,gBAAgB,OAAA;AAGjB,iEAWqC;AAVpC,4HAAA,uBAAuB,OAAA;AACvB,iIAAA,4BAA4B,OAAA;AAC5B,oIAAA,+BAA+B,OAAA;AAM/B,mHAAA,cAAc,OAAA;AACd,8HAAA,yBAAyB,OAAA;AAgB1B,+FAGoD;AAFnD,iJAAA,6BAA6B,OAAA"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import type { ChatHubMessageStatus, ChatMessageId, ChatSessionId } from '../chat-hub';
|
|
2
|
+
export interface ChatHubStreamMetadata {
|
|
3
|
+
sessionId: ChatSessionId;
|
|
4
|
+
messageId: ChatMessageId;
|
|
5
|
+
sequenceNumber: number;
|
|
6
|
+
timestamp: number;
|
|
7
|
+
}
|
|
8
|
+
export type ChatHubStreamBegin = {
|
|
9
|
+
type: 'chatHubStreamBegin';
|
|
10
|
+
data: ChatHubStreamMetadata & {
|
|
11
|
+
previousMessageId: ChatMessageId | null;
|
|
12
|
+
retryOfMessageId: ChatMessageId | null;
|
|
13
|
+
executionId: number | null;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export type ChatHubStreamChunk = {
|
|
17
|
+
type: 'chatHubStreamChunk';
|
|
18
|
+
data: ChatHubStreamMetadata & {
|
|
19
|
+
content: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export type ChatHubStreamEnd = {
|
|
23
|
+
type: 'chatHubStreamEnd';
|
|
24
|
+
data: ChatHubStreamMetadata & {
|
|
25
|
+
status: ChatHubMessageStatus;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export type ChatHubStreamError = {
|
|
29
|
+
type: 'chatHubStreamError';
|
|
30
|
+
data: ChatHubStreamMetadata & {
|
|
31
|
+
error: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
export interface ChatHubAttachmentInfo {
|
|
35
|
+
id: string;
|
|
36
|
+
fileName: string;
|
|
37
|
+
mimeType: string;
|
|
38
|
+
}
|
|
39
|
+
export type ChatHubHumanMessageCreated = {
|
|
40
|
+
type: 'chatHubHumanMessageCreated';
|
|
41
|
+
data: {
|
|
42
|
+
sessionId: ChatSessionId;
|
|
43
|
+
messageId: ChatMessageId;
|
|
44
|
+
previousMessageId: ChatMessageId | null;
|
|
45
|
+
content: string;
|
|
46
|
+
attachments: ChatHubAttachmentInfo[];
|
|
47
|
+
timestamp: number;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
export type ChatHubMessageEdited = {
|
|
51
|
+
type: 'chatHubMessageEdited';
|
|
52
|
+
data: {
|
|
53
|
+
sessionId: ChatSessionId;
|
|
54
|
+
revisionOfMessageId: ChatMessageId;
|
|
55
|
+
messageId: ChatMessageId;
|
|
56
|
+
content: string;
|
|
57
|
+
attachments: ChatHubAttachmentInfo[];
|
|
58
|
+
timestamp: number;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
export type ChatHubExecutionBegin = {
|
|
62
|
+
type: 'chatHubExecutionBegin';
|
|
63
|
+
data: {
|
|
64
|
+
sessionId: ChatSessionId;
|
|
65
|
+
timestamp: number;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
export type ChatHubExecutionEnd = {
|
|
69
|
+
type: 'chatHubExecutionEnd';
|
|
70
|
+
data: {
|
|
71
|
+
sessionId: ChatSessionId;
|
|
72
|
+
status: ChatHubMessageStatus;
|
|
73
|
+
timestamp: number;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
export type ChatHubStreamEvent = ChatHubStreamBegin | ChatHubStreamChunk | ChatHubStreamEnd | ChatHubStreamError;
|
|
77
|
+
export type ChatHubExecutionEvent = ChatHubExecutionBegin | ChatHubExecutionEnd;
|
|
78
|
+
export type ChatHubPushMessage = ChatHubStreamEvent | ChatHubExecutionEvent | ChatHubHumanMessageCreated | ChatHubMessageEdited;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-hub.js","sourceRoot":"","sources":["../../src/push/chat-hub.ts"],"names":[],"mappings":""}
|
package/dist/push/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { BuilderCreditsPushMessage } from './builder-credits';
|
|
2
|
+
import type { ChatHubPushMessage } from './chat-hub';
|
|
2
3
|
import type { CollaborationPushMessage } from './collaboration';
|
|
3
4
|
import type { DebugPushMessage } from './debug';
|
|
4
5
|
import type { ExecutionPushMessage } from './execution';
|
|
@@ -6,7 +7,7 @@ import type { HotReloadPushMessage } from './hot-reload';
|
|
|
6
7
|
import type { WebhookPushMessage } from './webhook';
|
|
7
8
|
import type { WorkerPushMessage } from './worker';
|
|
8
9
|
import type { WorkflowPushMessage } from './workflow';
|
|
9
|
-
export type PushMessage = ExecutionPushMessage | WorkflowPushMessage | HotReloadPushMessage | WebhookPushMessage | WorkerPushMessage | CollaborationPushMessage | DebugPushMessage | BuilderCreditsPushMessage;
|
|
10
|
+
export type PushMessage = ExecutionPushMessage | WorkflowPushMessage | HotReloadPushMessage | WebhookPushMessage | WorkerPushMessage | CollaborationPushMessage | DebugPushMessage | BuilderCreditsPushMessage | ChatHubPushMessage;
|
|
10
11
|
export type PushType = PushMessage['type'];
|
|
11
12
|
export type PushPayload<T extends PushType> = Extract<PushMessage, {
|
|
12
13
|
type: T;
|
|
@@ -15,6 +15,8 @@ export declare const SourceControlledFileSchema: z.ZodObject<{
|
|
|
15
15
|
conflict: z.ZodBoolean;
|
|
16
16
|
updatedAt: z.ZodString;
|
|
17
17
|
pushed: z.ZodOptional<z.ZodBoolean>;
|
|
18
|
+
isLocalPublished: z.ZodOptional<z.ZodBoolean>;
|
|
19
|
+
isRemoteArchived: z.ZodOptional<z.ZodBoolean>;
|
|
18
20
|
owner: z.ZodOptional<z.ZodObject<{
|
|
19
21
|
type: z.ZodEnum<["personal", "team"]>;
|
|
20
22
|
projectId: z.ZodString;
|
|
@@ -28,6 +30,7 @@ export declare const SourceControlledFileSchema: z.ZodObject<{
|
|
|
28
30
|
projectId: string;
|
|
29
31
|
projectName: string;
|
|
30
32
|
}>>;
|
|
33
|
+
publishingError: z.ZodOptional<z.ZodString>;
|
|
31
34
|
}, "strip", z.ZodTypeAny, {
|
|
32
35
|
type: "workflow" | "project" | "credential" | "file" | "tags" | "variables" | "folders";
|
|
33
36
|
status: "unknown" | "new" | "modified" | "deleted" | "created" | "renamed" | "conflicted" | "ignored" | "staged";
|
|
@@ -38,11 +41,14 @@ export declare const SourceControlledFileSchema: z.ZodObject<{
|
|
|
38
41
|
location: "local" | "remote";
|
|
39
42
|
conflict: boolean;
|
|
40
43
|
pushed?: boolean | undefined;
|
|
44
|
+
isLocalPublished?: boolean | undefined;
|
|
45
|
+
isRemoteArchived?: boolean | undefined;
|
|
41
46
|
owner?: {
|
|
42
47
|
type: "personal" | "team";
|
|
43
48
|
projectId: string;
|
|
44
49
|
projectName: string;
|
|
45
50
|
} | undefined;
|
|
51
|
+
publishingError?: string | undefined;
|
|
46
52
|
}, {
|
|
47
53
|
type: "workflow" | "project" | "credential" | "file" | "tags" | "variables" | "folders";
|
|
48
54
|
status: "unknown" | "new" | "modified" | "deleted" | "created" | "renamed" | "conflicted" | "ignored" | "staged";
|
|
@@ -53,11 +59,14 @@ export declare const SourceControlledFileSchema: z.ZodObject<{
|
|
|
53
59
|
location: "local" | "remote";
|
|
54
60
|
conflict: boolean;
|
|
55
61
|
pushed?: boolean | undefined;
|
|
62
|
+
isLocalPublished?: boolean | undefined;
|
|
63
|
+
isRemoteArchived?: boolean | undefined;
|
|
56
64
|
owner?: {
|
|
57
65
|
type: "personal" | "team";
|
|
58
66
|
projectId: string;
|
|
59
67
|
projectName: string;
|
|
60
68
|
} | undefined;
|
|
69
|
+
publishingError?: string | undefined;
|
|
61
70
|
}>;
|
|
62
71
|
export type SourceControlledFile = z.infer<typeof SourceControlledFileSchema>;
|
|
63
72
|
export {};
|
|
@@ -45,6 +45,9 @@ exports.SourceControlledFileSchema = zod_1.z.object({
|
|
|
45
45
|
conflict: zod_1.z.boolean(),
|
|
46
46
|
updatedAt: zod_1.z.string(),
|
|
47
47
|
pushed: zod_1.z.boolean().optional(),
|
|
48
|
+
isLocalPublished: zod_1.z.boolean().optional(),
|
|
49
|
+
isRemoteArchived: zod_1.z.boolean().optional(),
|
|
48
50
|
owner: ResourceOwnerSchema.optional(),
|
|
51
|
+
publishingError: zod_1.z.string().optional(),
|
|
49
52
|
});
|
|
50
53
|
//# sourceMappingURL=source-controlled-file.schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source-controlled-file.schema.js","sourceRoot":"","sources":["../../src/schemas/source-controlled-file.schema.ts"],"names":[],"mappings":";;;AA4BA,oEAEC;AA9BD,6BAAwB;AAExB,MAAM,cAAc,GAAG,OAAC,CAAC,IAAI,CAAC;IAC7B,YAAY;IACZ,UAAU;IACV,MAAM;IACN,WAAW;IACX,MAAM;IACN,SAAS;IACT,SAAS;CACT,CAAC,CAAC;AACU,QAAA,wBAAwB,GAAG,cAAc,CAAC,MAAM,CAAC;AAE9D,MAAM,gBAAgB,GAAG,OAAC,CAAC,IAAI,CAAC;IAC/B,KAAK;IACL,UAAU;IACV,SAAS;IACT,SAAS;IACT,SAAS;IACT,YAAY;IACZ,SAAS;IACT,QAAQ;IACR,SAAS;CACT,CAAC,CAAC;AACU,QAAA,0BAA0B,GAAG,gBAAgB,CAAC,MAAM,CAAC;AAIlE,SAAgB,4BAA4B,CAAC,KAAc;IAC1D,OAAO,gBAAgB,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;AAClD,CAAC;AAED,MAAM,kBAAkB,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC;AAC1C,QAAA,4BAA4B,GAAG,kBAAkB,CAAC,MAAM,CAAC;AAEtE,MAAM,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC;IACpC,IAAI,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;IAClC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;IACrB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;CACvB,CAAC,CAAC;AAEU,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC;IAClD,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,cAAc;IACpB,MAAM,EAAE,gBAAgB;IACxB,QAAQ,EAAE,kBAAkB;IAC5B,QAAQ,EAAE,OAAC,CAAC,OAAO,EAAE;IACrB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;IACrB,MAAM,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC9B,KAAK,EAAE,mBAAmB,CAAC,QAAQ,EAAE;
|
|
1
|
+
{"version":3,"file":"source-controlled-file.schema.js","sourceRoot":"","sources":["../../src/schemas/source-controlled-file.schema.ts"],"names":[],"mappings":";;;AA4BA,oEAEC;AA9BD,6BAAwB;AAExB,MAAM,cAAc,GAAG,OAAC,CAAC,IAAI,CAAC;IAC7B,YAAY;IACZ,UAAU;IACV,MAAM;IACN,WAAW;IACX,MAAM;IACN,SAAS;IACT,SAAS;CACT,CAAC,CAAC;AACU,QAAA,wBAAwB,GAAG,cAAc,CAAC,MAAM,CAAC;AAE9D,MAAM,gBAAgB,GAAG,OAAC,CAAC,IAAI,CAAC;IAC/B,KAAK;IACL,UAAU;IACV,SAAS;IACT,SAAS;IACT,SAAS;IACT,YAAY;IACZ,SAAS;IACT,QAAQ;IACR,SAAS;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159,12 +159,12 @@ export declare const userDetailSchema: z.ZodObject<{
|
|
|
159
159
|
lastName?: string | null | undefined;
|
|
160
160
|
mfaEnabled?: boolean | undefined;
|
|
161
161
|
isOwner?: boolean | undefined;
|
|
162
|
+
isPending?: boolean | undefined;
|
|
162
163
|
projectRelations?: {
|
|
163
164
|
role: string;
|
|
164
165
|
id: string;
|
|
165
166
|
name: string;
|
|
166
167
|
}[] | null | undefined;
|
|
167
|
-
isPending?: boolean | undefined;
|
|
168
168
|
signInType?: string | undefined;
|
|
169
169
|
personalizationAnswers?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
170
170
|
lastActiveAt?: string | null | undefined;
|
|
@@ -195,12 +195,12 @@ export declare const userDetailSchema: z.ZodObject<{
|
|
|
195
195
|
lastName?: string | null | undefined;
|
|
196
196
|
mfaEnabled?: boolean | undefined;
|
|
197
197
|
isOwner?: boolean | undefined;
|
|
198
|
+
isPending?: boolean | undefined;
|
|
198
199
|
projectRelations?: {
|
|
199
200
|
role: string;
|
|
200
201
|
id: string;
|
|
201
202
|
name: string;
|
|
202
203
|
}[] | null | undefined;
|
|
203
|
-
isPending?: boolean | undefined;
|
|
204
204
|
signInType?: string | undefined;
|
|
205
205
|
personalizationAnswers?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
206
206
|
lastActiveAt?: string | null | undefined;
|
|
@@ -327,12 +327,12 @@ export declare const usersListSchema: z.ZodObject<{
|
|
|
327
327
|
lastName?: string | null | undefined;
|
|
328
328
|
mfaEnabled?: boolean | undefined;
|
|
329
329
|
isOwner?: boolean | undefined;
|
|
330
|
+
isPending?: boolean | undefined;
|
|
330
331
|
projectRelations?: {
|
|
331
332
|
role: string;
|
|
332
333
|
id: string;
|
|
333
334
|
name: string;
|
|
334
335
|
}[] | null | undefined;
|
|
335
|
-
isPending?: boolean | undefined;
|
|
336
336
|
signInType?: string | undefined;
|
|
337
337
|
personalizationAnswers?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
338
338
|
lastActiveAt?: string | null | undefined;
|
|
@@ -363,12 +363,12 @@ export declare const usersListSchema: z.ZodObject<{
|
|
|
363
363
|
lastName?: string | null | undefined;
|
|
364
364
|
mfaEnabled?: boolean | undefined;
|
|
365
365
|
isOwner?: boolean | undefined;
|
|
366
|
+
isPending?: boolean | undefined;
|
|
366
367
|
projectRelations?: {
|
|
367
368
|
role: string;
|
|
368
369
|
id: string;
|
|
369
370
|
name: string;
|
|
370
371
|
}[] | null | undefined;
|
|
371
|
-
isPending?: boolean | undefined;
|
|
372
372
|
signInType?: string | undefined;
|
|
373
373
|
personalizationAnswers?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
374
374
|
lastActiveAt?: string | null | undefined;
|
|
@@ -402,12 +402,12 @@ export declare const usersListSchema: z.ZodObject<{
|
|
|
402
402
|
lastName?: string | null | undefined;
|
|
403
403
|
mfaEnabled?: boolean | undefined;
|
|
404
404
|
isOwner?: boolean | undefined;
|
|
405
|
+
isPending?: boolean | undefined;
|
|
405
406
|
projectRelations?: {
|
|
406
407
|
role: string;
|
|
407
408
|
id: string;
|
|
408
409
|
name: string;
|
|
409
410
|
}[] | null | undefined;
|
|
410
|
-
isPending?: boolean | undefined;
|
|
411
411
|
signInType?: string | undefined;
|
|
412
412
|
personalizationAnswers?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
413
413
|
lastActiveAt?: string | null | undefined;
|
|
@@ -441,12 +441,12 @@ export declare const usersListSchema: z.ZodObject<{
|
|
|
441
441
|
lastName?: string | null | undefined;
|
|
442
442
|
mfaEnabled?: boolean | undefined;
|
|
443
443
|
isOwner?: boolean | undefined;
|
|
444
|
+
isPending?: boolean | undefined;
|
|
444
445
|
projectRelations?: {
|
|
445
446
|
role: string;
|
|
446
447
|
id: string;
|
|
447
448
|
name: string;
|
|
448
449
|
}[] | null | undefined;
|
|
449
|
-
isPending?: boolean | undefined;
|
|
450
450
|
signInType?: string | undefined;
|
|
451
451
|
personalizationAnswers?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
452
452
|
lastActiveAt?: string | null | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@n8n/api-types",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.1",
|
|
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/
|
|
14
|
-
"@n8n/config": "
|
|
13
|
+
"@n8n/config": "2.6.0",
|
|
14
|
+
"@n8n/typescript-config": "1.3.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"xss": "1.0.15",
|
|
18
18
|
"zod": "3.25.67",
|
|
19
19
|
"zod-class": "0.0.16",
|
|
20
|
-
"n8n-workflow": "2.
|
|
21
|
-
"@n8n/permissions": "0.
|
|
20
|
+
"n8n-workflow": "2.7.1",
|
|
21
|
+
"@n8n/permissions": "0.48.1"
|
|
22
22
|
},
|
|
23
23
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
24
24
|
"homepage": "https://n8n.io",
|