@n8n/api-types 1.0.1 → 1.1.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.
- package/dist/build.tsbuildinfo +1 -1
- package/dist/chat-hub.d.ts +79 -4
- package/dist/chat-hub.js +36 -2
- package/dist/chat-hub.js.map +1 -1
- package/dist/dto/ai/ai-build-request.dto.d.ts +8 -0
- package/dist/dto/ai/ai-build-request.dto.js +2 -0
- package/dist/dto/ai/ai-build-request.dto.js.map +1 -1
- package/dist/dto/credential-resolver/create-credential-resolver.dto.d.ts +9 -0
- package/dist/dto/credential-resolver/create-credential-resolver.dto.js +13 -0
- package/dist/dto/credential-resolver/create-credential-resolver.dto.js.map +1 -0
- package/dist/dto/credential-resolver/update-credential-resolver.dto.d.ts +9 -0
- package/dist/dto/credential-resolver/update-credential-resolver.dto.js +13 -0
- package/dist/dto/credential-resolver/update-credential-resolver.dto.js.map +1 -0
- package/dist/dto/credentials/create-credential.dto.d.ts +1 -0
- package/dist/dto/credentials/create-credential.dto.js +1 -0
- package/dist/dto/credentials/create-credential.dto.js.map +1 -1
- package/dist/dto/data-table/rename-data-table-column.dto.d.ts +7 -0
- package/dist/dto/data-table/rename-data-table-column.dto.js +11 -0
- package/dist/dto/data-table/rename-data-table-column.dto.js.map +1 -0
- package/dist/dto/index.d.ts +3 -0
- package/dist/dto/index.js +8 -2
- package/dist/dto/index.js.map +1 -1
- package/dist/dto/invitation/invite-users-request.dto.d.ts +1 -1
- package/dist/dto/project/add-users-to-project.dto.d.ts +1 -1
- package/dist/dto/project/change-user-role-in-project.dto.d.ts +1 -1
- package/dist/dto/project/create-project.dto.d.ts +2 -2
- package/dist/dto/project/update-project.dto.d.ts +5 -5
- package/dist/dto/source-control/push-work-folder-request.dto.d.ts +2 -2
- package/dist/dto/user/role-change-request.dto.d.ts +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.js +10 -1
- package/dist/index.js.map +1 -1
- package/dist/scaling.d.ts +17 -0
- package/dist/schemas/credential-resolver.schema.d.ts +89 -0
- package/dist/schemas/credential-resolver.schema.js +26 -0
- package/dist/schemas/credential-resolver.schema.js.map +1 -0
- package/dist/schemas/project.schema.d.ts +3 -3
- package/dist/schemas/source-controlled-file.schema.d.ts +6 -2
- package/dist/schemas/source-controlled-file.schema.js +4 -0
- package/dist/schemas/source-controlled-file.schema.js.map +1 -1
- package/dist/schemas/user.schema.d.ts +4 -3
- package/dist/schemas/user.schema.js +1 -0
- package/dist/schemas/user.schema.js.map +1 -1
- package/dist/schemas/workflow-execution-status.schema.d.ts +40 -0
- package/dist/schemas/workflow-execution-status.schema.js +17 -0
- package/dist/schemas/workflow-execution-status.schema.js.map +1 -0
- package/package.json +5 -5
|
@@ -7,10 +7,10 @@ declare const UpdateProjectDto_base: Z.Class<{
|
|
|
7
7
|
value: z.ZodString;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
9
|
value: string;
|
|
10
|
-
type: "
|
|
10
|
+
type: "icon" | "emoji";
|
|
11
11
|
}, {
|
|
12
12
|
value: string;
|
|
13
|
-
type: "
|
|
13
|
+
type: "icon" | "emoji";
|
|
14
14
|
}>>;
|
|
15
15
|
description: z.ZodOptional<z.ZodString>;
|
|
16
16
|
}>;
|
|
@@ -19,7 +19,7 @@ export declare class UpdateProjectDto extends UpdateProjectDto_base {
|
|
|
19
19
|
declare const UpdateProjectWithRelationsDto_base: Z.Class<{
|
|
20
20
|
relations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
21
21
|
userId: z.ZodString;
|
|
22
|
-
role: z.ZodUnion<[z.ZodEnum<["project:admin", "project:editor", "project:viewer"]>, z.ZodEffects<z.ZodString, string, string>]>;
|
|
22
|
+
role: z.ZodUnion<[z.ZodEnum<["project:admin", "project:editor", "project:viewer", "project:chatUser"]>, z.ZodEffects<z.ZodString, string, string>]>;
|
|
23
23
|
}, "strip", z.ZodTypeAny, {
|
|
24
24
|
userId: string;
|
|
25
25
|
role: string;
|
|
@@ -33,10 +33,10 @@ declare const UpdateProjectWithRelationsDto_base: Z.Class<{
|
|
|
33
33
|
value: z.ZodString;
|
|
34
34
|
}, "strip", z.ZodTypeAny, {
|
|
35
35
|
value: string;
|
|
36
|
-
type: "
|
|
36
|
+
type: "icon" | "emoji";
|
|
37
37
|
}, {
|
|
38
38
|
value: string;
|
|
39
|
-
type: "
|
|
39
|
+
type: "icon" | "emoji";
|
|
40
40
|
}>>;
|
|
41
41
|
description: z.ZodOptional<z.ZodString>;
|
|
42
42
|
}>;
|
|
@@ -29,10 +29,10 @@ declare const PushWorkFolderRequestDto_base: Z.Class<{
|
|
|
29
29
|
}, "strip", z.ZodTypeAny, {
|
|
30
30
|
type: "workflow" | "project" | "credential" | "file" | "tags" | "variables" | "folders";
|
|
31
31
|
status: "unknown" | "new" | "modified" | "deleted" | "created" | "renamed" | "conflicted" | "ignored" | "staged";
|
|
32
|
+
file: string;
|
|
32
33
|
id: string;
|
|
33
34
|
name: string;
|
|
34
35
|
updatedAt: string;
|
|
35
|
-
file: string;
|
|
36
36
|
location: "local" | "remote";
|
|
37
37
|
conflict: boolean;
|
|
38
38
|
pushed?: boolean | undefined;
|
|
@@ -44,10 +44,10 @@ declare const PushWorkFolderRequestDto_base: Z.Class<{
|
|
|
44
44
|
}, {
|
|
45
45
|
type: "workflow" | "project" | "credential" | "file" | "tags" | "variables" | "folders";
|
|
46
46
|
status: "unknown" | "new" | "modified" | "deleted" | "created" | "renamed" | "conflicted" | "ignored" | "staged";
|
|
47
|
+
file: string;
|
|
47
48
|
id: string;
|
|
48
49
|
name: string;
|
|
49
50
|
updatedAt: string;
|
|
50
|
-
file: string;
|
|
51
51
|
location: "local" | "remote";
|
|
52
52
|
conflict: boolean;
|
|
53
53
|
pushed?: boolean | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Z } from 'zod-class';
|
|
2
2
|
declare const RoleChangeRequestDto_base: Z.Class<{
|
|
3
|
-
newRoleName: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodUnion<[import("zod").ZodEnum<["global:admin", "global:member"]>, import("zod").ZodEffects<import("zod").ZodString, string, string>]>>>, string, string | null | undefined>;
|
|
3
|
+
newRoleName: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodUnion<[import("zod").ZodEnum<["global:admin", "global:member", "global:chatUser"]>, import("zod").ZodEffects<import("zod").ZodString, string, string>]>>>, string, string | null | undefined>;
|
|
4
4
|
}>;
|
|
5
5
|
export declare class RoleChangeRequestDto extends RoleChangeRequestDto_base {
|
|
6
6
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ 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 ChatHubOpenAIModel, type ChatHubAnthropicModel, type ChatHubGoogleModel, type ChatHubBaseLLMModel, type ChatHubN8nModel, type ChatHubCustomAgentModel, type ChatHubConversationModel, 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 EnrichedStructuredChunk, 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, 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 EnrichedStructuredChunk, type ChatHubAgentTool, UpdateChatSettingsRequest, type ChatProviderSettingsDto, } from './chat-hub';
|
|
10
10
|
export type { Collaborator } from './push/collaboration';
|
|
11
11
|
export type { HeartbeatMessage } from './push/heartbeat';
|
|
12
12
|
export { createHeartbeatMessage, heartbeatMessageSchema } from './push/heartbeat';
|
|
@@ -14,13 +14,15 @@ export type { SendWorkerStatusMessage } from './push/worker';
|
|
|
14
14
|
export type { BannerName } from './schemas/banner-name.schema';
|
|
15
15
|
export { ViewableMimeTypes } from './schemas/binary-data.schema';
|
|
16
16
|
export { passwordSchema } from './schemas/password.schema';
|
|
17
|
+
export { credentialResolverSchema, credentialResolversSchema, credentialResolverTypeSchema, credentialResolverTypesSchema, type CredentialResolver, type CredentialResolverType, } from './schemas/credential-resolver.schema';
|
|
17
18
|
export { WORKFLOW_VERSION_NAME_MAX_LENGTH, WORKFLOW_VERSION_DESCRIPTION_MAX_LENGTH, } from './schemas/workflow-version.schema';
|
|
18
19
|
export type { ProjectType, ProjectIcon, ProjectRelation, } from './schemas/project.schema';
|
|
19
|
-
export { type SourceControlledFile, SOURCE_CONTROL_FILE_LOCATION, SOURCE_CONTROL_FILE_STATUS, SOURCE_CONTROL_FILE_TYPE, } from './schemas/source-controlled-file.schema';
|
|
20
|
+
export { isSourceControlledFileStatus, type SourceControlledFileStatus, type SourceControlledFile, SOURCE_CONTROL_FILE_LOCATION, SOURCE_CONTROL_FILE_STATUS, SOURCE_CONTROL_FILE_TYPE, } from './schemas/source-controlled-file.schema';
|
|
20
21
|
export { type InsightsSummaryType, type InsightsSummaryUnit, type InsightsSummary, type InsightsByWorkflow, type InsightsByTime, type InsightsDateRange, type RestrictedInsightsByTime, } from './schemas/insights.schema';
|
|
21
22
|
export { ROLE, type Role, type User, type UsersList, usersListSchema, userBaseSchema, userDetailSchema, } from './schemas/user.schema';
|
|
22
23
|
export { DATA_TABLE_COLUMN_REGEX, DATA_TABLE_COLUMN_MAX_LENGTH, DATA_TABLE_COLUMN_ERROR_MESSAGE, type DataTable, type DataTableColumn, type DataTableCreateColumnSchema, type DataTableListFilter, type DataTableListOptions, dateTimeSchema, dataTableColumnNameSchema, } from './schemas/data-table.schema';
|
|
23
24
|
export type { DataTableFilter, DataTableFilterConditionType, } from './schemas/data-table-filter.schema';
|
|
24
25
|
export type { ExternalSecretsProvider, ExternalSecretsProviderSecret, ExternalSecretsProviderData, ExternalSecretsProviderProperty, ExternalSecretsProviderState, } from './schemas/external-secrets.schema';
|
|
26
|
+
export { WorkflowExecutionStatusSchema, type WorkflowExecutionStatus, } from './schemas/workflow-execution-status.schema';
|
|
25
27
|
export type { UsageState } from './schemas/usage.schema';
|
|
26
28
|
export type { BreakingChangeRuleSeverity, BreakingChangeRecommendation, BreakingChangeAffectedWorkflow, BreakingChangeInstanceIssue, BreakingChangeWorkflowIssue, BreakingChangeInstanceRuleResult, BreakingChangeWorkflowRuleResult, BreakingChangeReportResult, BreakingChangeLightReportResult, BreakingChangeVersion, } from './schemas/breaking-changes.schema';
|
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.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.WORKFLOW_VERSION_DESCRIPTION_MAX_LENGTH = exports.WORKFLOW_VERSION_NAME_MAX_LENGTH = exports.passwordSchema = exports.ViewableMimeTypes = exports.heartbeatMessageSchema = exports.createHeartbeatMessage = exports.UpdateChatSettingsRequest = 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.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; } });
|
|
@@ -31,6 +31,7 @@ Object.defineProperty(exports, "ChatHubUpdateConversationRequest", { enumerable:
|
|
|
31
31
|
Object.defineProperty(exports, "ChatHubConversationsRequest", { enumerable: true, get: function () { return chat_hub_1.ChatHubConversationsRequest; } });
|
|
32
32
|
Object.defineProperty(exports, "ChatHubCreateAgentRequest", { enumerable: true, get: function () { return chat_hub_1.ChatHubCreateAgentRequest; } });
|
|
33
33
|
Object.defineProperty(exports, "ChatHubUpdateAgentRequest", { enumerable: true, get: function () { return chat_hub_1.ChatHubUpdateAgentRequest; } });
|
|
34
|
+
Object.defineProperty(exports, "agentIconOrEmojiSchema", { enumerable: true, get: function () { return chat_hub_1.agentIconOrEmojiSchema; } });
|
|
34
35
|
Object.defineProperty(exports, "UpdateChatSettingsRequest", { enumerable: true, get: function () { return chat_hub_1.UpdateChatSettingsRequest; } });
|
|
35
36
|
var heartbeat_1 = require("./push/heartbeat");
|
|
36
37
|
Object.defineProperty(exports, "createHeartbeatMessage", { enumerable: true, get: function () { return heartbeat_1.createHeartbeatMessage; } });
|
|
@@ -39,10 +40,16 @@ var binary_data_schema_1 = require("./schemas/binary-data.schema");
|
|
|
39
40
|
Object.defineProperty(exports, "ViewableMimeTypes", { enumerable: true, get: function () { return binary_data_schema_1.ViewableMimeTypes; } });
|
|
40
41
|
var password_schema_1 = require("./schemas/password.schema");
|
|
41
42
|
Object.defineProperty(exports, "passwordSchema", { enumerable: true, get: function () { return password_schema_1.passwordSchema; } });
|
|
43
|
+
var credential_resolver_schema_1 = require("./schemas/credential-resolver.schema");
|
|
44
|
+
Object.defineProperty(exports, "credentialResolverSchema", { enumerable: true, get: function () { return credential_resolver_schema_1.credentialResolverSchema; } });
|
|
45
|
+
Object.defineProperty(exports, "credentialResolversSchema", { enumerable: true, get: function () { return credential_resolver_schema_1.credentialResolversSchema; } });
|
|
46
|
+
Object.defineProperty(exports, "credentialResolverTypeSchema", { enumerable: true, get: function () { return credential_resolver_schema_1.credentialResolverTypeSchema; } });
|
|
47
|
+
Object.defineProperty(exports, "credentialResolverTypesSchema", { enumerable: true, get: function () { return credential_resolver_schema_1.credentialResolverTypesSchema; } });
|
|
42
48
|
var workflow_version_schema_1 = require("./schemas/workflow-version.schema");
|
|
43
49
|
Object.defineProperty(exports, "WORKFLOW_VERSION_NAME_MAX_LENGTH", { enumerable: true, get: function () { return workflow_version_schema_1.WORKFLOW_VERSION_NAME_MAX_LENGTH; } });
|
|
44
50
|
Object.defineProperty(exports, "WORKFLOW_VERSION_DESCRIPTION_MAX_LENGTH", { enumerable: true, get: function () { return workflow_version_schema_1.WORKFLOW_VERSION_DESCRIPTION_MAX_LENGTH; } });
|
|
45
51
|
var source_controlled_file_schema_1 = require("./schemas/source-controlled-file.schema");
|
|
52
|
+
Object.defineProperty(exports, "isSourceControlledFileStatus", { enumerable: true, get: function () { return source_controlled_file_schema_1.isSourceControlledFileStatus; } });
|
|
46
53
|
Object.defineProperty(exports, "SOURCE_CONTROL_FILE_LOCATION", { enumerable: true, get: function () { return source_controlled_file_schema_1.SOURCE_CONTROL_FILE_LOCATION; } });
|
|
47
54
|
Object.defineProperty(exports, "SOURCE_CONTROL_FILE_STATUS", { enumerable: true, get: function () { return source_controlled_file_schema_1.SOURCE_CONTROL_FILE_STATUS; } });
|
|
48
55
|
Object.defineProperty(exports, "SOURCE_CONTROL_FILE_TYPE", { enumerable: true, get: function () { return source_controlled_file_schema_1.SOURCE_CONTROL_FILE_TYPE; } });
|
|
@@ -57,4 +64,6 @@ Object.defineProperty(exports, "DATA_TABLE_COLUMN_MAX_LENGTH", { enumerable: tru
|
|
|
57
64
|
Object.defineProperty(exports, "DATA_TABLE_COLUMN_ERROR_MESSAGE", { enumerable: true, get: function () { return data_table_schema_1.DATA_TABLE_COLUMN_ERROR_MESSAGE; } });
|
|
58
65
|
Object.defineProperty(exports, "dateTimeSchema", { enumerable: true, get: function () { return data_table_schema_1.dateTimeSchema; } });
|
|
59
66
|
Object.defineProperty(exports, "dataTableColumnNameSchema", { enumerable: true, get: function () { return data_table_schema_1.dataTableColumnNameSchema; } });
|
|
67
|
+
var workflow_execution_status_schema_1 = require("./schemas/workflow-execution-status.schema");
|
|
68
|
+
Object.defineProperty(exports, "WorkflowExecutionStatusSchema", { enumerable: true, get: function () { return workflow_execution_status_schema_1.WorkflowExecutionStatusSchema; } });
|
|
60
69
|
//# sourceMappingURL=index.js.map
|
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":";;;;;;;;;;;;;;;;;A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BAAyB,OAAA;AAgB1B,+FAGoD;AAFnD,iJAAA,6BAA6B,OAAA"}
|
package/dist/scaling.d.ts
CHANGED
|
@@ -11,6 +11,23 @@ export type RunningJobSummary = {
|
|
|
11
11
|
export type WorkerStatus = {
|
|
12
12
|
senderId: string;
|
|
13
13
|
runningJobsSummary: RunningJobSummary[];
|
|
14
|
+
isInContainer: boolean;
|
|
15
|
+
process: {
|
|
16
|
+
memory: {
|
|
17
|
+
available: number;
|
|
18
|
+
constraint: number;
|
|
19
|
+
rss: number;
|
|
20
|
+
heapTotal: number;
|
|
21
|
+
heapUsed: number;
|
|
22
|
+
};
|
|
23
|
+
uptime: number;
|
|
24
|
+
};
|
|
25
|
+
host: {
|
|
26
|
+
memory: {
|
|
27
|
+
total: number;
|
|
28
|
+
free: number;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
14
31
|
freeMem: number;
|
|
15
32
|
totalMem: number;
|
|
16
33
|
uptime: number;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const credentialResolverIdSchema: z.ZodString;
|
|
3
|
+
export declare const credentialResolverNameSchema: z.ZodString;
|
|
4
|
+
export declare const credentialResolverTypeNameSchema: z.ZodString;
|
|
5
|
+
export declare const credentialResolverConfigSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
6
|
+
export declare const credentialResolverSchema: z.ZodObject<{
|
|
7
|
+
id: z.ZodString;
|
|
8
|
+
name: z.ZodString;
|
|
9
|
+
type: z.ZodString;
|
|
10
|
+
config: z.ZodString;
|
|
11
|
+
decryptedConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
12
|
+
createdAt: z.ZodDate;
|
|
13
|
+
updatedAt: z.ZodDate;
|
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
type: string;
|
|
16
|
+
id: string;
|
|
17
|
+
name: string;
|
|
18
|
+
createdAt: Date;
|
|
19
|
+
updatedAt: Date;
|
|
20
|
+
config: string;
|
|
21
|
+
decryptedConfig?: Record<string, unknown> | undefined;
|
|
22
|
+
}, {
|
|
23
|
+
type: string;
|
|
24
|
+
id: string;
|
|
25
|
+
name: string;
|
|
26
|
+
createdAt: Date;
|
|
27
|
+
updatedAt: Date;
|
|
28
|
+
config: string;
|
|
29
|
+
decryptedConfig?: Record<string, unknown> | undefined;
|
|
30
|
+
}>;
|
|
31
|
+
export declare const credentialResolverTypeSchema: z.ZodObject<{
|
|
32
|
+
name: z.ZodString;
|
|
33
|
+
displayName: z.ZodString;
|
|
34
|
+
description: z.ZodOptional<z.ZodString>;
|
|
35
|
+
options: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
|
|
36
|
+
}, "strip", z.ZodTypeAny, {
|
|
37
|
+
name: string;
|
|
38
|
+
displayName: string;
|
|
39
|
+
options?: Record<string, unknown>[] | undefined;
|
|
40
|
+
description?: string | undefined;
|
|
41
|
+
}, {
|
|
42
|
+
name: string;
|
|
43
|
+
displayName: string;
|
|
44
|
+
options?: Record<string, unknown>[] | undefined;
|
|
45
|
+
description?: string | undefined;
|
|
46
|
+
}>;
|
|
47
|
+
export declare const credentialResolverTypesSchema: z.ZodArray<z.ZodObject<{
|
|
48
|
+
name: z.ZodString;
|
|
49
|
+
displayName: z.ZodString;
|
|
50
|
+
description: z.ZodOptional<z.ZodString>;
|
|
51
|
+
options: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
|
|
52
|
+
}, "strip", z.ZodTypeAny, {
|
|
53
|
+
name: string;
|
|
54
|
+
displayName: string;
|
|
55
|
+
options?: Record<string, unknown>[] | undefined;
|
|
56
|
+
description?: string | undefined;
|
|
57
|
+
}, {
|
|
58
|
+
name: string;
|
|
59
|
+
displayName: string;
|
|
60
|
+
options?: Record<string, unknown>[] | undefined;
|
|
61
|
+
description?: string | undefined;
|
|
62
|
+
}>, "many">;
|
|
63
|
+
export type CredentialResolverType = z.infer<typeof credentialResolverTypeSchema>;
|
|
64
|
+
export declare const credentialResolversSchema: z.ZodArray<z.ZodObject<{
|
|
65
|
+
id: z.ZodString;
|
|
66
|
+
name: z.ZodString;
|
|
67
|
+
type: z.ZodString;
|
|
68
|
+
config: z.ZodString;
|
|
69
|
+
decryptedConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
70
|
+
createdAt: z.ZodDate;
|
|
71
|
+
updatedAt: z.ZodDate;
|
|
72
|
+
}, "strip", z.ZodTypeAny, {
|
|
73
|
+
type: string;
|
|
74
|
+
id: string;
|
|
75
|
+
name: string;
|
|
76
|
+
createdAt: Date;
|
|
77
|
+
updatedAt: Date;
|
|
78
|
+
config: string;
|
|
79
|
+
decryptedConfig?: Record<string, unknown> | undefined;
|
|
80
|
+
}, {
|
|
81
|
+
type: string;
|
|
82
|
+
id: string;
|
|
83
|
+
name: string;
|
|
84
|
+
createdAt: Date;
|
|
85
|
+
updatedAt: Date;
|
|
86
|
+
config: string;
|
|
87
|
+
decryptedConfig?: Record<string, unknown> | undefined;
|
|
88
|
+
}>, "many">;
|
|
89
|
+
export type CredentialResolver = z.infer<typeof credentialResolverSchema>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.credentialResolversSchema = exports.credentialResolverTypesSchema = exports.credentialResolverTypeSchema = exports.credentialResolverSchema = exports.credentialResolverConfigSchema = exports.credentialResolverTypeNameSchema = exports.credentialResolverNameSchema = exports.credentialResolverIdSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.credentialResolverIdSchema = zod_1.z.string().max(36);
|
|
6
|
+
exports.credentialResolverNameSchema = zod_1.z.string().trim().min(1).max(255);
|
|
7
|
+
exports.credentialResolverTypeNameSchema = zod_1.z.string().trim().min(1).max(255);
|
|
8
|
+
exports.credentialResolverConfigSchema = zod_1.z.record(zod_1.z.unknown());
|
|
9
|
+
exports.credentialResolverSchema = zod_1.z.object({
|
|
10
|
+
id: exports.credentialResolverIdSchema,
|
|
11
|
+
name: exports.credentialResolverNameSchema,
|
|
12
|
+
type: exports.credentialResolverTypeNameSchema,
|
|
13
|
+
config: zod_1.z.string(),
|
|
14
|
+
decryptedConfig: exports.credentialResolverConfigSchema.optional(),
|
|
15
|
+
createdAt: zod_1.z.coerce.date(),
|
|
16
|
+
updatedAt: zod_1.z.coerce.date(),
|
|
17
|
+
});
|
|
18
|
+
exports.credentialResolverTypeSchema = zod_1.z.object({
|
|
19
|
+
name: exports.credentialResolverTypeNameSchema,
|
|
20
|
+
displayName: zod_1.z.string().trim().min(1).max(255),
|
|
21
|
+
description: zod_1.z.string().trim().max(1024).optional(),
|
|
22
|
+
options: zod_1.z.array(zod_1.z.record(zod_1.z.unknown())).optional(),
|
|
23
|
+
});
|
|
24
|
+
exports.credentialResolverTypesSchema = zod_1.z.array(exports.credentialResolverTypeSchema);
|
|
25
|
+
exports.credentialResolversSchema = zod_1.z.array(exports.credentialResolverSchema);
|
|
26
|
+
//# sourceMappingURL=credential-resolver.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credential-resolver.schema.js","sourceRoot":"","sources":["../../src/schemas/credential-resolver.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;AAChD,QAAA,4BAA4B,GAAG,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AACjE,QAAA,gCAAgC,GAAG,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AACrE,QAAA,8BAA8B,GAAG,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC,CAAC;AAEvD,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,EAAE,EAAE,kCAA0B;IAC9B,IAAI,EAAE,oCAA4B;IAClC,IAAI,EAAE,wCAAgC;IACtC,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,eAAe,EAAE,sCAA8B,CAAC,QAAQ,EAAE;IAC1D,SAAS,EAAE,OAAC,CAAC,MAAM,CAAC,IAAI,EAAE;IAC1B,SAAS,EAAE,OAAC,CAAC,MAAM,CAAC,IAAI,EAAE;CAC1B,CAAC,CAAC;AAEU,QAAA,4BAA4B,GAAG,OAAC,CAAC,MAAM,CAAC;IACpD,IAAI,EAAE,wCAAgC;IACtC,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IAC9C,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE;IACnD,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;CAClD,CAAC,CAAC;AAEU,QAAA,6BAA6B,GAAG,OAAC,CAAC,KAAK,CAAC,oCAA4B,CAAC,CAAC;AAItE,QAAA,yBAAyB,GAAG,OAAC,CAAC,KAAK,CAAC,gCAAwB,CAAC,CAAC"}
|
|
@@ -7,16 +7,16 @@ export declare const projectIconSchema: z.ZodObject<{
|
|
|
7
7
|
value: z.ZodString;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
9
|
value: string;
|
|
10
|
-
type: "
|
|
10
|
+
type: "icon" | "emoji";
|
|
11
11
|
}, {
|
|
12
12
|
value: string;
|
|
13
|
-
type: "
|
|
13
|
+
type: "icon" | "emoji";
|
|
14
14
|
}>;
|
|
15
15
|
export type ProjectIcon = z.infer<typeof projectIconSchema>;
|
|
16
16
|
export declare const projectDescriptionSchema: z.ZodString;
|
|
17
17
|
export declare const projectRelationSchema: z.ZodObject<{
|
|
18
18
|
userId: z.ZodString;
|
|
19
|
-
role: z.ZodUnion<[z.ZodEnum<["project:admin", "project:editor", "project:viewer"]>, z.ZodEffects<z.ZodString, string, string>]>;
|
|
19
|
+
role: z.ZodUnion<[z.ZodEnum<["project:admin", "project:editor", "project:viewer", "project:chatUser"]>, z.ZodEffects<z.ZodString, string, string>]>;
|
|
20
20
|
}, "strip", z.ZodTypeAny, {
|
|
21
21
|
userId: string;
|
|
22
22
|
role: string;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const SOURCE_CONTROL_FILE_TYPE: z.Values<["credential", "workflow", "tags", "variables", "file", "folders", "project"]>;
|
|
3
|
+
declare const FileStatusSchema: z.ZodEnum<["new", "modified", "deleted", "created", "renamed", "conflicted", "ignored", "staged", "unknown"]>;
|
|
3
4
|
export declare const SOURCE_CONTROL_FILE_STATUS: z.Values<["new", "modified", "deleted", "created", "renamed", "conflicted", "ignored", "staged", "unknown"]>;
|
|
5
|
+
export type SourceControlledFileStatus = z.infer<typeof FileStatusSchema>;
|
|
6
|
+
export declare function isSourceControlledFileStatus(value: unknown): value is SourceControlledFileStatus;
|
|
4
7
|
export declare const SOURCE_CONTROL_FILE_LOCATION: z.Values<["local", "remote"]>;
|
|
5
8
|
export declare const SourceControlledFileSchema: z.ZodObject<{
|
|
6
9
|
file: z.ZodString;
|
|
@@ -28,10 +31,10 @@ export declare const SourceControlledFileSchema: z.ZodObject<{
|
|
|
28
31
|
}, "strip", z.ZodTypeAny, {
|
|
29
32
|
type: "workflow" | "project" | "credential" | "file" | "tags" | "variables" | "folders";
|
|
30
33
|
status: "unknown" | "new" | "modified" | "deleted" | "created" | "renamed" | "conflicted" | "ignored" | "staged";
|
|
34
|
+
file: string;
|
|
31
35
|
id: string;
|
|
32
36
|
name: string;
|
|
33
37
|
updatedAt: string;
|
|
34
|
-
file: string;
|
|
35
38
|
location: "local" | "remote";
|
|
36
39
|
conflict: boolean;
|
|
37
40
|
pushed?: boolean | undefined;
|
|
@@ -43,10 +46,10 @@ export declare const SourceControlledFileSchema: z.ZodObject<{
|
|
|
43
46
|
}, {
|
|
44
47
|
type: "workflow" | "project" | "credential" | "file" | "tags" | "variables" | "folders";
|
|
45
48
|
status: "unknown" | "new" | "modified" | "deleted" | "created" | "renamed" | "conflicted" | "ignored" | "staged";
|
|
49
|
+
file: string;
|
|
46
50
|
id: string;
|
|
47
51
|
name: string;
|
|
48
52
|
updatedAt: string;
|
|
49
|
-
file: string;
|
|
50
53
|
location: "local" | "remote";
|
|
51
54
|
conflict: boolean;
|
|
52
55
|
pushed?: boolean | undefined;
|
|
@@ -57,3 +60,4 @@ export declare const SourceControlledFileSchema: z.ZodObject<{
|
|
|
57
60
|
} | undefined;
|
|
58
61
|
}>;
|
|
59
62
|
export type SourceControlledFile = z.infer<typeof SourceControlledFileSchema>;
|
|
63
|
+
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SourceControlledFileSchema = exports.SOURCE_CONTROL_FILE_LOCATION = exports.SOURCE_CONTROL_FILE_STATUS = exports.SOURCE_CONTROL_FILE_TYPE = void 0;
|
|
4
|
+
exports.isSourceControlledFileStatus = isSourceControlledFileStatus;
|
|
4
5
|
const zod_1 = require("zod");
|
|
5
6
|
const FileTypeSchema = zod_1.z.enum([
|
|
6
7
|
'credential',
|
|
@@ -24,6 +25,9 @@ const FileStatusSchema = zod_1.z.enum([
|
|
|
24
25
|
'unknown',
|
|
25
26
|
]);
|
|
26
27
|
exports.SOURCE_CONTROL_FILE_STATUS = FileStatusSchema.Values;
|
|
28
|
+
function isSourceControlledFileStatus(value) {
|
|
29
|
+
return FileStatusSchema.safeParse(value).success;
|
|
30
|
+
}
|
|
27
31
|
const FileLocationSchema = zod_1.z.enum(['local', 'remote']);
|
|
28
32
|
exports.SOURCE_CONTROL_FILE_LOCATION = FileLocationSchema.Values;
|
|
29
33
|
const ResourceOwnerSchema = zod_1.z.object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source-controlled-file.schema.js","sourceRoot":"","sources":["../../src/schemas/source-controlled-file.schema.ts"],"names":[],"mappings":";;;
|
|
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;CACrC,CAAC,CAAC"}
|
|
@@ -3,13 +3,14 @@ export declare const ROLE: {
|
|
|
3
3
|
readonly Owner: "global:owner";
|
|
4
4
|
readonly Member: "global:member";
|
|
5
5
|
readonly Admin: "global:admin";
|
|
6
|
+
readonly ChatUser: "global:chatUser";
|
|
6
7
|
readonly Default: "default";
|
|
7
8
|
};
|
|
8
9
|
export type Role = (typeof ROLE)[keyof typeof ROLE];
|
|
9
10
|
export declare const roleSchema: z.ZodEnum<[Role, ...Role[]]>;
|
|
10
11
|
export declare const userProjectSchema: z.ZodObject<{
|
|
11
12
|
id: z.ZodString;
|
|
12
|
-
role: z.ZodUnion<[z.ZodUnion<[z.ZodEnum<["project:personalOwner"]>, z.ZodEnum<["project:admin", "project:editor", "project:viewer"]>]>, z.ZodEffects<z.ZodString, string, string>]>;
|
|
13
|
+
role: z.ZodUnion<[z.ZodUnion<[z.ZodEnum<["project:personalOwner"]>, z.ZodEnum<["project:admin", "project:editor", "project:viewer", "project:chatUser"]>]>, z.ZodEffects<z.ZodString, string, string>]>;
|
|
13
14
|
name: z.ZodString;
|
|
14
15
|
}, "strip", z.ZodTypeAny, {
|
|
15
16
|
id: string;
|
|
@@ -118,7 +119,7 @@ export declare const userDetailSchema: z.ZodObject<{
|
|
|
118
119
|
personalizationAnswers: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
|
|
119
120
|
projectRelations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
120
121
|
id: z.ZodString;
|
|
121
|
-
role: z.ZodUnion<[z.ZodUnion<[z.ZodEnum<["project:personalOwner"]>, z.ZodEnum<["project:admin", "project:editor", "project:viewer"]>]>, z.ZodEffects<z.ZodString, string, string>]>;
|
|
122
|
+
role: z.ZodUnion<[z.ZodUnion<[z.ZodEnum<["project:personalOwner"]>, z.ZodEnum<["project:admin", "project:editor", "project:viewer", "project:chatUser"]>]>, z.ZodEffects<z.ZodString, string, string>]>;
|
|
122
123
|
name: z.ZodString;
|
|
123
124
|
}, "strip", z.ZodTypeAny, {
|
|
124
125
|
id: string;
|
|
@@ -286,7 +287,7 @@ export declare const usersListSchema: z.ZodObject<{
|
|
|
286
287
|
personalizationAnswers: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
|
|
287
288
|
projectRelations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
288
289
|
id: z.ZodString;
|
|
289
|
-
role: z.ZodUnion<[z.ZodUnion<[z.ZodEnum<["project:personalOwner"]>, z.ZodEnum<["project:admin", "project:editor", "project:viewer"]>]>, z.ZodEffects<z.ZodString, string, string>]>;
|
|
290
|
+
role: z.ZodUnion<[z.ZodUnion<[z.ZodEnum<["project:personalOwner"]>, z.ZodEnum<["project:admin", "project:editor", "project:viewer", "project:chatUser"]>]>, z.ZodEffects<z.ZodString, string, string>]>;
|
|
290
291
|
name: z.ZodString;
|
|
291
292
|
}, "strip", z.ZodTypeAny, {
|
|
292
293
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.schema.js","sourceRoot":"","sources":["../../src/schemas/user.schema.ts"],"names":[],"mappings":";;;AAAA,kDAAqD;AACrD,6BAAwB;AAExB,iEAA4D;AAE/C,QAAA,IAAI,GAAG;IACnB,KAAK,EAAE,cAAc;IACrB,MAAM,EAAE,eAAe;IACvB,KAAK,EAAE,cAAc;IACrB,OAAO,EAAE,SAAS;CACT,CAAC;AAKX,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,YAAI,CAAsB,CAAC;AACxD,QAAA,UAAU,GAAG,OAAC,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;AAEzC,QAAA,iBAAiB,GAAG,OAAC,CAAC,MAAM,CAAC;IACzC,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,+BAAiB;IACvB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;CAChB,CAAC,CAAC;AAEU,QAAA,cAAc,GAAG,OAAC,CAAC,MAAM,CAAC;IACtC,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC3C,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC1C,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC/C,IAAI,EAAE,kBAAU,CAAC,QAAQ,EAAE;CAC3B,CAAC,CAAC;AAEU,QAAA,gBAAgB,GAAG,sBAAc,CAAC,MAAM,CAAC;IACrD,SAAS,EAAE,OAAC,CAA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,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC9C,eAAe,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACtC,CAAC,CAAC;AAEU,QAAA,eAAe,GAAG,OAAC,CAAC,MAAM,CAAC;IACvC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,KAAK,EAAE,OAAC,CAAC,KAAK,CAAC,wBAAgB,CAAC;CAChC,CAAC,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const WorkflowExecutionStatusSchema: z.ZodObject<{
|
|
3
|
+
workflowId: z.ZodString;
|
|
4
|
+
credentials: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5
|
+
credentialId: z.ZodString;
|
|
6
|
+
credentialType: z.ZodString;
|
|
7
|
+
credentialStatus: z.ZodEnum<["missing", "configured"]>;
|
|
8
|
+
authorizationUrl: z.ZodOptional<z.ZodString>;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
credentialId: string;
|
|
11
|
+
credentialType: string;
|
|
12
|
+
credentialStatus: "missing" | "configured";
|
|
13
|
+
authorizationUrl?: string | undefined;
|
|
14
|
+
}, {
|
|
15
|
+
credentialId: string;
|
|
16
|
+
credentialType: string;
|
|
17
|
+
credentialStatus: "missing" | "configured";
|
|
18
|
+
authorizationUrl?: string | undefined;
|
|
19
|
+
}>, "many">>;
|
|
20
|
+
readyToExecute: z.ZodBoolean;
|
|
21
|
+
}, "strip", z.ZodTypeAny, {
|
|
22
|
+
workflowId: string;
|
|
23
|
+
readyToExecute: boolean;
|
|
24
|
+
credentials?: {
|
|
25
|
+
credentialId: string;
|
|
26
|
+
credentialType: string;
|
|
27
|
+
credentialStatus: "missing" | "configured";
|
|
28
|
+
authorizationUrl?: string | undefined;
|
|
29
|
+
}[] | undefined;
|
|
30
|
+
}, {
|
|
31
|
+
workflowId: string;
|
|
32
|
+
readyToExecute: boolean;
|
|
33
|
+
credentials?: {
|
|
34
|
+
credentialId: string;
|
|
35
|
+
credentialType: string;
|
|
36
|
+
credentialStatus: "missing" | "configured";
|
|
37
|
+
authorizationUrl?: string | undefined;
|
|
38
|
+
}[] | undefined;
|
|
39
|
+
}>;
|
|
40
|
+
export type WorkflowExecutionStatus = z.infer<typeof WorkflowExecutionStatusSchema>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WorkflowExecutionStatusSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.WorkflowExecutionStatusSchema = zod_1.z.object({
|
|
6
|
+
workflowId: zod_1.z.string(),
|
|
7
|
+
credentials: zod_1.z
|
|
8
|
+
.array(zod_1.z.object({
|
|
9
|
+
credentialId: zod_1.z.string(),
|
|
10
|
+
credentialType: zod_1.z.string(),
|
|
11
|
+
credentialStatus: zod_1.z.enum(['missing', 'configured']),
|
|
12
|
+
authorizationUrl: zod_1.z.string().optional(),
|
|
13
|
+
}))
|
|
14
|
+
.optional(),
|
|
15
|
+
readyToExecute: zod_1.z.boolean(),
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=workflow-execution-status.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-execution-status.schema.js","sourceRoot":"","sources":["../../src/schemas/workflow-execution-status.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,6BAA6B,GAAG,OAAC,CAAC,MAAM,CAAC;IACrD,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE;IACtB,WAAW,EAAE,OAAC;SACZ,KAAK,CACL,OAAC,CAAC,MAAM,CAAC;QACR,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE;QACxB,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE;QAC1B,gBAAgB,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,YAAY,CAAC,CAAC;QACnD,gBAAgB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KACvC,CAAC,CACF;SACA,QAAQ,EAAE;IACZ,cAAc,EAAE,OAAC,CAAC,OAAO,EAAE;CAC3B,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@n8n/api-types",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.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/
|
|
14
|
-
"@n8n/config": "
|
|
13
|
+
"@n8n/config": "2.0.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.0
|
|
21
|
-
"@n8n/permissions": "0.
|
|
20
|
+
"n8n-workflow": "2.1.0",
|
|
21
|
+
"@n8n/permissions": "0.44.0"
|
|
22
22
|
},
|
|
23
23
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
24
24
|
"homepage": "https://n8n.io",
|