@n8n/api-types 0.50.0 → 0.51.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.
@@ -6,12 +6,15 @@ export declare const PROVIDER_CREDENTIAL_TYPE_MAP: Record<ChatHubProvider, strin
6
6
  export declare const chatHubConversationModelSchema: z.ZodObject<{
7
7
  provider: z.ZodEnum<["openai", "anthropic", "google"]>;
8
8
  model: z.ZodString;
9
+ workflowId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
9
10
  }, "strip", z.ZodTypeAny, {
10
11
  provider: "openai" | "anthropic" | "google";
11
12
  model: string;
13
+ workflowId: string | null;
12
14
  }, {
13
15
  provider: "openai" | "anthropic" | "google";
14
16
  model: string;
17
+ workflowId?: string | null | undefined;
15
18
  }>;
16
19
  export type ChatHubConversationModel = z.infer<typeof chatHubConversationModelSchema>;
17
20
  export declare const chatModelsRequestSchema: z.ZodObject<{
@@ -31,17 +34,22 @@ export type ChatModelsResponse = Record<ChatHubProvider, {
31
34
  declare const ChatHubSendMessageRequest_base: Z.Class<{
32
35
  messageId: z.ZodString;
33
36
  sessionId: z.ZodString;
37
+ replyId: z.ZodString;
34
38
  message: z.ZodString;
35
39
  model: z.ZodObject<{
36
40
  provider: z.ZodEnum<["openai", "anthropic", "google"]>;
37
41
  model: z.ZodString;
42
+ workflowId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
38
43
  }, "strip", z.ZodTypeAny, {
39
44
  provider: "openai" | "anthropic" | "google";
40
45
  model: string;
46
+ workflowId: string | null;
41
47
  }, {
42
48
  provider: "openai" | "anthropic" | "google";
43
49
  model: string;
50
+ workflowId?: string | null | undefined;
44
51
  }>;
52
+ previousMessageId: z.ZodNullable<z.ZodString>;
45
53
  credentials: z.ZodRecord<z.ZodString, z.ZodObject<{
46
54
  id: z.ZodString;
47
55
  name: z.ZodString;
@@ -55,78 +63,108 @@ declare const ChatHubSendMessageRequest_base: Z.Class<{
55
63
  }>;
56
64
  export declare class ChatHubSendMessageRequest extends ChatHubSendMessageRequest_base {
57
65
  }
58
- export declare const chatHubMessageSchema: z.ZodObject<{
59
- id: z.ZodString;
60
- conversationId: z.ZodString;
61
- role: z.ZodEnum<["user", "assistant"]>;
62
- content: z.ZodString;
63
- createdAt: z.ZodString;
64
- }, "strip", z.ZodTypeAny, {
65
- id: string;
66
- conversationId: string;
67
- role: "user" | "assistant";
68
- content: string;
69
- createdAt: string;
70
- }, {
71
- id: string;
72
- conversationId: string;
73
- role: "user" | "assistant";
74
- content: string;
75
- createdAt: string;
66
+ declare const ChatHubRegenerateMessageRequest_base: Z.Class<{
67
+ replyId: z.ZodString;
68
+ model: z.ZodObject<{
69
+ provider: z.ZodEnum<["openai", "anthropic", "google"]>;
70
+ model: z.ZodString;
71
+ workflowId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
72
+ }, "strip", z.ZodTypeAny, {
73
+ provider: "openai" | "anthropic" | "google";
74
+ model: string;
75
+ workflowId: string | null;
76
+ }, {
77
+ provider: "openai" | "anthropic" | "google";
78
+ model: string;
79
+ workflowId?: string | null | undefined;
80
+ }>;
81
+ credentials: z.ZodRecord<z.ZodString, z.ZodObject<{
82
+ id: z.ZodString;
83
+ name: z.ZodString;
84
+ }, "strip", z.ZodTypeAny, {
85
+ id: string;
86
+ name: string;
87
+ }, {
88
+ id: string;
89
+ name: string;
90
+ }>>;
76
91
  }>;
77
- export type ChatHubMessage = z.infer<typeof chatHubMessageSchema>;
78
- export declare const chatHubConversationSchema: z.ZodObject<{
79
- id: z.ZodString;
80
- title: z.ZodString;
81
- createdAt: z.ZodString;
82
- updatedAt: z.ZodString;
83
- }, "strip", z.ZodTypeAny, {
84
- id: string;
85
- createdAt: string;
86
- title: string;
87
- updatedAt: string;
88
- }, {
89
- id: string;
90
- createdAt: string;
91
- title: string;
92
- updatedAt: string;
92
+ export declare class ChatHubRegenerateMessageRequest extends ChatHubRegenerateMessageRequest_base {
93
+ }
94
+ declare const ChatHubEditMessageRequest_base: Z.Class<{
95
+ message: z.ZodString;
96
+ messageId: z.ZodString;
97
+ replyId: z.ZodString;
98
+ model: z.ZodObject<{
99
+ provider: z.ZodEnum<["openai", "anthropic", "google"]>;
100
+ model: z.ZodString;
101
+ workflowId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
102
+ }, "strip", z.ZodTypeAny, {
103
+ provider: "openai" | "anthropic" | "google";
104
+ model: string;
105
+ workflowId: string | null;
106
+ }, {
107
+ provider: "openai" | "anthropic" | "google";
108
+ model: string;
109
+ workflowId?: string | null | undefined;
110
+ }>;
111
+ credentials: z.ZodRecord<z.ZodString, z.ZodObject<{
112
+ id: z.ZodString;
113
+ name: z.ZodString;
114
+ }, "strip", z.ZodTypeAny, {
115
+ id: string;
116
+ name: string;
117
+ }, {
118
+ id: string;
119
+ name: string;
120
+ }>>;
93
121
  }>;
94
- export type ChatHubConversation = z.infer<typeof chatHubConversationSchema>;
95
- export declare const chatHubConversationsResponseSchema: z.ZodArray<z.ZodObject<{
96
- id: z.ZodString;
122
+ export declare class ChatHubEditMessageRequest extends ChatHubEditMessageRequest_base {
123
+ }
124
+ declare const ChatHubChangeConversationTitleRequest_base: Z.Class<{
97
125
  title: z.ZodString;
98
- createdAt: z.ZodString;
99
- updatedAt: z.ZodString;
100
- }, "strip", z.ZodTypeAny, {
101
- id: string;
102
- createdAt: string;
126
+ }>;
127
+ export declare class ChatHubChangeConversationTitleRequest extends ChatHubChangeConversationTitleRequest_base {
128
+ }
129
+ export type ChatHubMessageType = 'human' | 'ai' | 'system' | 'tool' | 'generic';
130
+ export type ChatHubMessageStatus = 'success' | 'error' | 'running' | 'cancelled';
131
+ export type ChatSessionId = string;
132
+ export type ChatMessageId = string;
133
+ export interface ChatHubSessionDto {
134
+ id: ChatSessionId;
103
135
  title: string;
104
- updatedAt: string;
105
- }, {
106
- id: string;
136
+ ownerId: string;
137
+ lastMessageAt: string | null;
138
+ credentialId: string | null;
139
+ provider: ChatHubProvider | null;
140
+ model: string | null;
141
+ workflowId: string | null;
107
142
  createdAt: string;
108
- title: string;
109
143
  updatedAt: string;
110
- }>, "many">;
111
- export type ChatHubConversationsResponse = z.infer<typeof chatHubConversationsResponseSchema>;
112
- export declare const chatHubMessagesResponseSchema: z.ZodArray<z.ZodObject<{
113
- id: z.ZodString;
114
- conversationId: z.ZodString;
115
- role: z.ZodEnum<["user", "assistant"]>;
116
- content: z.ZodString;
117
- createdAt: z.ZodString;
118
- }, "strip", z.ZodTypeAny, {
119
- id: string;
120
- conversationId: string;
121
- role: "user" | "assistant";
122
- content: string;
123
- createdAt: string;
124
- }, {
125
- id: string;
126
- conversationId: string;
127
- role: "user" | "assistant";
144
+ }
145
+ export interface ChatHubMessageDto {
146
+ id: ChatMessageId;
147
+ sessionId: ChatSessionId;
148
+ type: ChatHubMessageType;
149
+ name: string;
128
150
  content: string;
151
+ provider: ChatHubProvider | null;
152
+ model: string | null;
153
+ workflowId: string | null;
154
+ executionId: number | null;
155
+ status: ChatHubMessageStatus;
129
156
  createdAt: string;
130
- }>, "many">;
131
- export type ChatHubMessagesResponse = z.infer<typeof chatHubMessagesResponseSchema>;
157
+ updatedAt: string;
158
+ previousMessageId: ChatMessageId | null;
159
+ retryOfMessageId: ChatMessageId | null;
160
+ revisionOfMessageId: ChatMessageId | null;
161
+ }
162
+ export type ChatHubConversationsResponse = ChatHubSessionDto[];
163
+ export interface ChatHubConversationDto {
164
+ messages: Record<ChatMessageId, ChatHubMessageDto>;
165
+ }
166
+ export interface ChatHubConversationResponse {
167
+ session: ChatHubSessionDto;
168
+ conversation: ChatHubConversationDto;
169
+ }
132
170
  export {};
package/dist/chat-hub.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.chatHubMessagesResponseSchema = exports.chatHubConversationsResponseSchema = exports.chatHubConversationSchema = exports.chatHubMessageSchema = exports.ChatHubSendMessageRequest = exports.chatModelsRequestSchema = exports.chatHubConversationModelSchema = exports.PROVIDER_CREDENTIAL_TYPE_MAP = exports.chatHubProviderSchema = void 0;
3
+ exports.ChatHubChangeConversationTitleRequest = exports.ChatHubEditMessageRequest = exports.ChatHubRegenerateMessageRequest = exports.ChatHubSendMessageRequest = exports.chatModelsRequestSchema = exports.chatHubConversationModelSchema = exports.PROVIDER_CREDENTIAL_TYPE_MAP = exports.chatHubProviderSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const zod_class_1 = require("zod-class");
6
6
  exports.chatHubProviderSchema = zod_1.z.enum(['openai', 'anthropic', 'google']);
@@ -12,6 +12,7 @@ exports.PROVIDER_CREDENTIAL_TYPE_MAP = {
12
12
  exports.chatHubConversationModelSchema = zod_1.z.object({
13
13
  provider: exports.chatHubProviderSchema,
14
14
  model: zod_1.z.string(),
15
+ workflowId: zod_1.z.string().nullable().default(null),
15
16
  });
16
17
  exports.chatModelsRequestSchema = zod_1.z.object({
17
18
  credentials: zod_1.z.record(exports.chatHubProviderSchema, zod_1.z.string().nullable()),
@@ -19,8 +20,10 @@ exports.chatModelsRequestSchema = zod_1.z.object({
19
20
  class ChatHubSendMessageRequest extends zod_class_1.Z.class({
20
21
  messageId: zod_1.z.string().uuid(),
21
22
  sessionId: zod_1.z.string().uuid(),
23
+ replyId: zod_1.z.string().uuid(),
22
24
  message: zod_1.z.string(),
23
25
  model: exports.chatHubConversationModelSchema,
26
+ previousMessageId: zod_1.z.string().uuid().nullable(),
24
27
  credentials: zod_1.z.record(zod_1.z.object({
25
28
  id: zod_1.z.string(),
26
29
  name: zod_1.z.string(),
@@ -28,19 +31,31 @@ class ChatHubSendMessageRequest extends zod_class_1.Z.class({
28
31
  }) {
29
32
  }
30
33
  exports.ChatHubSendMessageRequest = ChatHubSendMessageRequest;
31
- exports.chatHubMessageSchema = zod_1.z.object({
32
- id: zod_1.z.string().uuid(),
33
- conversationId: zod_1.z.string().uuid(),
34
- role: zod_1.z.enum(['user', 'assistant']),
35
- content: zod_1.z.string(),
36
- createdAt: zod_1.z.string().datetime(),
37
- });
38
- exports.chatHubConversationSchema = zod_1.z.object({
39
- id: zod_1.z.string().uuid(),
34
+ class ChatHubRegenerateMessageRequest extends zod_class_1.Z.class({
35
+ replyId: zod_1.z.string().uuid(),
36
+ model: exports.chatHubConversationModelSchema,
37
+ credentials: zod_1.z.record(zod_1.z.object({
38
+ id: zod_1.z.string(),
39
+ name: zod_1.z.string(),
40
+ })),
41
+ }) {
42
+ }
43
+ exports.ChatHubRegenerateMessageRequest = ChatHubRegenerateMessageRequest;
44
+ class ChatHubEditMessageRequest extends zod_class_1.Z.class({
45
+ message: zod_1.z.string(),
46
+ messageId: zod_1.z.string().uuid(),
47
+ replyId: zod_1.z.string().uuid(),
48
+ model: exports.chatHubConversationModelSchema,
49
+ credentials: zod_1.z.record(zod_1.z.object({
50
+ id: zod_1.z.string(),
51
+ name: zod_1.z.string(),
52
+ })),
53
+ }) {
54
+ }
55
+ exports.ChatHubEditMessageRequest = ChatHubEditMessageRequest;
56
+ class ChatHubChangeConversationTitleRequest extends zod_class_1.Z.class({
40
57
  title: zod_1.z.string(),
41
- createdAt: zod_1.z.string().datetime(),
42
- updatedAt: zod_1.z.string().datetime(),
43
- });
44
- exports.chatHubConversationsResponseSchema = zod_1.z.array(exports.chatHubConversationSchema);
45
- exports.chatHubMessagesResponseSchema = zod_1.z.array(exports.chatHubMessageSchema);
58
+ }) {
59
+ }
60
+ exports.ChatHubChangeConversationTitleRequest = ChatHubChangeConversationTitleRequest;
46
61
  //# sourceMappingURL=chat-hub.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"chat-hub.js","sourceRoot":"","sources":["../src/chat-hub.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,yCAA8B;AAKjB,QAAA,qBAAqB,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAC,CAAC;AAOlE,QAAA,4BAA4B,GAAoC;IAC5E,MAAM,EAAE,WAAW;IACnB,SAAS,EAA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AAEL,MAAa,qCAAsC,SAAQ,aAAC,CAAC,KAAK,CAAC;IAClE,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;CACjB,CAAC;CAAG;AAFL,sFAEK"}
@@ -1,6 +1,11 @@
1
1
  import type { IWorkflowBase, NodeExecutionSchema } from 'n8n-workflow';
2
2
  import { z } from 'zod';
3
3
  import { Z } from 'zod-class';
4
+ export interface ExpressionValue {
5
+ expression: string;
6
+ resolvedValue: unknown;
7
+ nodeType?: string;
8
+ }
4
9
  declare const AiBuilderChatRequestDto_base: Z.Class<{
5
10
  payload: z.ZodObject<{
6
11
  role: z.ZodLiteral<"user">;
@@ -22,6 +27,7 @@ declare const AiBuilderChatRequestDto_base: Z.Class<{
22
27
  metadata?: Record<string, string>;
23
28
  }>>;
24
29
  executionSchema: z.ZodOptional<z.ZodType<NodeExecutionSchema[], z.ZodTypeDef, NodeExecutionSchema[]>>;
30
+ expressionValues: z.ZodOptional<z.ZodType<Record<string, ExpressionValue[]>, z.ZodTypeDef, Record<string, ExpressionValue[]>>>;
25
31
  }, "strip", z.ZodTypeAny, {
26
32
  currentWorkflow?: Partial<IWorkflowBase> | undefined;
27
33
  executionData?: {
@@ -32,6 +38,7 @@ declare const AiBuilderChatRequestDto_base: Z.Class<{
32
38
  metadata?: Record<string, string>;
33
39
  } | undefined;
34
40
  executionSchema?: NodeExecutionSchema[] | undefined;
41
+ expressionValues?: Record<string, ExpressionValue[]> | undefined;
35
42
  }, {
36
43
  currentWorkflow?: Partial<IWorkflowBase> | undefined;
37
44
  executionData?: {
@@ -42,12 +49,12 @@ declare const AiBuilderChatRequestDto_base: Z.Class<{
42
49
  metadata?: Record<string, string>;
43
50
  } | undefined;
44
51
  executionSchema?: NodeExecutionSchema[] | undefined;
52
+ expressionValues?: Record<string, ExpressionValue[]> | undefined;
45
53
  }>;
46
- useDeprecatedCredentials: z.ZodDefault<z.ZodBoolean>;
47
54
  }, "strip", z.ZodTypeAny, {
48
55
  type: "message";
49
- role: "user";
50
56
  text: string;
57
+ role: "user";
51
58
  workflowContext: {
52
59
  currentWorkflow?: Partial<IWorkflowBase> | undefined;
53
60
  executionData?: {
@@ -58,12 +65,12 @@ declare const AiBuilderChatRequestDto_base: Z.Class<{
58
65
  metadata?: Record<string, string>;
59
66
  } | undefined;
60
67
  executionSchema?: NodeExecutionSchema[] | undefined;
68
+ expressionValues?: Record<string, ExpressionValue[]> | undefined;
61
69
  };
62
- useDeprecatedCredentials: boolean;
63
70
  }, {
64
71
  type: "message";
65
- role: "user";
66
72
  text: string;
73
+ role: "user";
67
74
  workflowContext: {
68
75
  currentWorkflow?: Partial<IWorkflowBase> | undefined;
69
76
  executionData?: {
@@ -74,8 +81,8 @@ declare const AiBuilderChatRequestDto_base: Z.Class<{
74
81
  metadata?: Record<string, string>;
75
82
  } | undefined;
76
83
  executionSchema?: NodeExecutionSchema[] | undefined;
84
+ expressionValues?: Record<string, ExpressionValue[]> | undefined;
77
85
  };
78
- useDeprecatedCredentials?: boolean | undefined;
79
86
  }>;
80
87
  }>;
81
88
  export declare class AiBuilderChatRequestDto extends AiBuilderChatRequestDto_base {
@@ -33,8 +33,16 @@ class AiBuilderChatRequestDto extends zod_class_1.Z.class({
33
33
  return val;
34
34
  })
35
35
  .optional(),
36
+ expressionValues: zod_1.z
37
+ .custom((val) => {
38
+ const keys = Object.keys(val);
39
+ if (keys.length > 0 && keys.every((key) => val[key].every((v) => !v.expression))) {
40
+ return false;
41
+ }
42
+ return val;
43
+ })
44
+ .optional(),
36
45
  }),
37
- useDeprecatedCredentials: zod_1.z.boolean().default(false),
38
46
  }),
39
47
  }) {
40
48
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ai-build-request.dto.js","sourceRoot":"","sources":["../../../src/dto/ai/ai-build-request.dto.ts"],"names":[],"mappings":";;;AACA,6BAAwB;AACxB,yCAA8B;AAE9B,MAAa,uBAAwB,SAAQ,aAAC,CAAC,KAAK,CAAC;IACpD,OAAO,EAAE,OAAC,CAAC,MAAM,CAA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gB,EAAE,OAAC;iBACjB,MAAM,CAAoC,CAAC,GAAsC,EAAE,EAAE;gBACrF,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBAE9B,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC;oBAClF,OAAO,KAAK,CAAC;gBACd,CAAC;gBAED,OAAO,GAAG,CAAC;YACZ,CAAC,CAAC;iBACD,QAAQ,EAAE;SACZ,CAAC;KACF,CAAC;CACF,CAAC;CAAG;AAlDL,0DAkDK"}
@@ -0,0 +1,8 @@
1
+ import { z } from 'zod';
2
+ import { Z } from 'zod-class';
3
+ declare const AiSessionMetadataResponseDto_base: Z.Class<{
4
+ hasMessages: z.ZodBoolean;
5
+ }>;
6
+ export declare class AiSessionMetadataResponseDto extends AiSessionMetadataResponseDto_base {
7
+ }
8
+ export {};
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AiSessionMetadataResponseDto = void 0;
4
+ const zod_1 = require("zod");
5
+ const zod_class_1 = require("zod-class");
6
+ class AiSessionMetadataResponseDto extends zod_class_1.Z.class({
7
+ hasMessages: zod_1.z.boolean(),
8
+ }) {
9
+ }
10
+ exports.AiSessionMetadataResponseDto = AiSessionMetadataResponseDto;
11
+ //# sourceMappingURL=ai-session-metadata-response.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ai-session-metadata-response.dto.js","sourceRoot":"","sources":["../../../src/dto/ai/ai-session-metadata-response.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,yCAA8B;AAE9B,MAAa,4BAA6B,SAAQ,aAAC,CAAC,KAAK,CAAC;IACzD,WAAW,EAAE,OAAC,CAAC,OAAO,EAAE;CACxB,CAAC;CAAG;AAFL,oEAEK"}
@@ -4,6 +4,7 @@ export { AiBuilderChatRequestDto } from './ai/ai-build-request.dto';
4
4
  export { AiApplySuggestionRequestDto } from './ai/ai-apply-suggestion-request.dto';
5
5
  export { AiFreeCreditsRequestDto } from './ai/ai-free-credits-request.dto';
6
6
  export { AiSessionRetrievalRequestDto } from './ai/ai-session-retrieval-request.dto';
7
+ export { AiSessionMetadataResponseDto } from './ai/ai-session-metadata-response.dto';
7
8
  export { BinaryDataQueryDto } from './binary-data/binary-data-query.dto';
8
9
  export { BinaryDataSignedQueryDto } from './binary-data/binary-data-signed-query.dto';
9
10
  export { LoginRequestDto } from './auth/login-request.dto';
@@ -72,3 +73,4 @@ export { CreateDataTableColumnDto } from './data-table/create-data-table-column.
72
73
  export { AddDataTableRowsDto } from './data-table/add-data-table-rows.dto';
73
74
  export { AddDataTableColumnDto } from './data-table/add-data-table-column.dto';
74
75
  export { MoveDataTableColumnDto } from './data-table/move-data-table-column.dto';
76
+ export { ProvisioningConfigDto } from './provisioning/config.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.CreateApiKeyRequestDto = exports.UpdateApiKeyRequestDto = exports.RetrieveTagQueryDto = exports.CreateOrUpdateTagRequestDto = exports.TransferWorkflowBodyDto = exports.ImportWorkflowFromUrlDto = exports.GenerateCredentialNameRequestQuery = exports.CredentialsGetManyRequestQuery = exports.CredentialsGetOneRequestQuery = exports.UpdateVariableRequestDto = exports.CreateVariableRequestDto = 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.ChangeUserRoleInProject = exports.AddUsersToProjectDto = exports.DeleteProjectDto = exports.UpdateProjectWithRelationsDto = 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.AiSessionRetrievalRequestDto = exports.AiFreeCreditsRequestDto = exports.AiApplySuggestionRequestDto = exports.AiBuilderChatRequestDto = exports.AiChatRequestDto = exports.AiAskRequestDto = void 0;
4
- exports.MoveDataTableColumnDto = exports.AddDataTableColumnDto = exports.AddDataTableRowsDto = exports.CreateDataTableColumnDto = exports.ListDataTableContentQueryDto = exports.ListDataTableQueryDto = exports.UpsertDataTableRowDto = exports.DeleteDataTableRowsDto = exports.UpdateDataTableRowDto = exports.UpdateDataTableDto = exports.CreateDataTableDto = exports.OidcConfigDto = exports.RoleGetQueryDto = exports.RoleListQueryDto = exports.CreateRoleDto = exports.UpdateRoleDto = exports.USERS_LIST_SORT_OPTIONS = exports.UsersListFilterDto = exports.PaginationDto = exports.InsightsDateFilterDto = exports.ListInsightsWorkflowQueryDto = exports.TransferFolderBodyDto = exports.ListFolderQueryDto = exports.DeleteFolderDto = exports.UpdateFolderDto = exports.CreateFolderDto = void 0;
3
+ exports.UpdateApiKeyRequestDto = exports.RetrieveTagQueryDto = exports.CreateOrUpdateTagRequestDto = exports.TransferWorkflowBodyDto = exports.ImportWorkflowFromUrlDto = exports.GenerateCredentialNameRequestQuery = exports.CredentialsGetManyRequestQuery = exports.CredentialsGetOneRequestQuery = exports.UpdateVariableRequestDto = exports.CreateVariableRequestDto = 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.ChangeUserRoleInProject = exports.AddUsersToProjectDto = exports.DeleteProjectDto = exports.UpdateProjectWithRelationsDto = 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.AiSessionMetadataResponseDto = exports.AiSessionRetrievalRequestDto = exports.AiFreeCreditsRequestDto = exports.AiApplySuggestionRequestDto = exports.AiBuilderChatRequestDto = exports.AiChatRequestDto = exports.AiAskRequestDto = void 0;
4
+ exports.ProvisioningConfigDto = exports.MoveDataTableColumnDto = exports.AddDataTableColumnDto = exports.AddDataTableRowsDto = exports.CreateDataTableColumnDto = exports.ListDataTableContentQueryDto = exports.ListDataTableQueryDto = exports.UpsertDataTableRowDto = exports.DeleteDataTableRowsDto = exports.UpdateDataTableRowDto = exports.UpdateDataTableDto = exports.CreateDataTableDto = exports.OidcConfigDto = exports.RoleGetQueryDto = exports.RoleListQueryDto = exports.CreateRoleDto = exports.UpdateRoleDto = exports.USERS_LIST_SORT_OPTIONS = exports.UsersListFilterDto = exports.PaginationDto = exports.InsightsDateFilterDto = exports.ListInsightsWorkflowQueryDto = exports.TransferFolderBodyDto = exports.ListFolderQueryDto = exports.DeleteFolderDto = exports.UpdateFolderDto = exports.CreateFolderDto = exports.CreateApiKeyRequestDto = 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");
@@ -14,6 +14,8 @@ var ai_free_credits_request_dto_1 = require("./ai/ai-free-credits-request.dto");
14
14
  Object.defineProperty(exports, "AiFreeCreditsRequestDto", { enumerable: true, get: function () { return ai_free_credits_request_dto_1.AiFreeCreditsRequestDto; } });
15
15
  var ai_session_retrieval_request_dto_1 = require("./ai/ai-session-retrieval-request.dto");
16
16
  Object.defineProperty(exports, "AiSessionRetrievalRequestDto", { enumerable: true, get: function () { return ai_session_retrieval_request_dto_1.AiSessionRetrievalRequestDto; } });
17
+ var ai_session_metadata_response_dto_1 = require("./ai/ai-session-metadata-response.dto");
18
+ Object.defineProperty(exports, "AiSessionMetadataResponseDto", { enumerable: true, get: function () { return ai_session_metadata_response_dto_1.AiSessionMetadataResponseDto; } });
17
19
  var binary_data_query_dto_1 = require("./binary-data/binary-data-query.dto");
18
20
  Object.defineProperty(exports, "BinaryDataQueryDto", { enumerable: true, get: function () { return binary_data_query_dto_1.BinaryDataQueryDto; } });
19
21
  var binary_data_signed_query_dto_1 = require("./binary-data/binary-data-signed-query.dto");
@@ -152,4 +154,6 @@ var add_data_table_column_dto_1 = require("./data-table/add-data-table-column.dt
152
154
  Object.defineProperty(exports, "AddDataTableColumnDto", { enumerable: true, get: function () { return add_data_table_column_dto_1.AddDataTableColumnDto; } });
153
155
  var move_data_table_column_dto_1 = require("./data-table/move-data-table-column.dto");
154
156
  Object.defineProperty(exports, "MoveDataTableColumnDto", { enumerable: true, get: function () { return move_data_table_column_dto_1.MoveDataTableColumnDto; } });
157
+ var config_dto_2 = require("./provisioning/config.dto");
158
+ Object.defineProperty(exports, "ProvisioningConfigDto", { enumerable: true, get: function () { return config_dto_2.ProvisioningConfigDto; } });
155
159
  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B,OAAA;AACzB,iEAA6D;AAApD,qHAAA,eAAe,OAAA;AAExB,gDAAkD;AAAzC,2GAAA,aAAa,OAAA;AAEtB,4EAAwE;AAA/D,2HAAA,kBAAkB,OAAA;AAC3B,4EAAwE;AAA/D,2HAAA,kBAAkB,OAAA;AAC3B,oFAA+E;AAAtE,kIAAA,qBAAqB,OAAA;AAC9B,sFAAiF;AAAxE,oIAAA,sBAAsB,OAAA;AAC/B,oFAA+E;AAAtE,kIAAA,qBAAqB,OAAA;AAC9B,oFAA+E;AAAtE,kIAAA,qBAAqB,OAAA;AAC9B,oGAA8F;AAArF,iJAAA,4BAA4B,OAAA;AACrC,0FAAqF;AAA5E,wIAAA,wBAAwB,OAAA;AACjC,gFAA2E;AAAlE,8HAAA,mBAAmB,OAAA;AAC5B,oFAA+E;AAAtE,kIAAA,qBAAqB,OAAA;AAC9B,sFAAiF;AAAxE,oIAAA,sBAAsB,OAAA;AAE/B,wDAAkE;AAAzD,mHAAA,qBAAqB,OAAA"}
@@ -3,8 +3,8 @@ declare const invitedUserSchema: z.ZodObject<{
3
3
  email: z.ZodString;
4
4
  role: z.ZodDefault<z.ZodUnion<[z.ZodEnum<["global:admin", "global:member"]>, z.ZodEffects<z.ZodString, string, string>]>>;
5
5
  }, "strip", z.ZodTypeAny, {
6
- role: string;
7
6
  email: string;
7
+ role: string;
8
8
  }, {
9
9
  email: string;
10
10
  role?: string | undefined;
@@ -14,8 +14,8 @@ export declare class InviteUsersRequestDto extends Array<z.infer<typeof invitedU
14
14
  email: string;
15
15
  role?: string | undefined;
16
16
  }[], {
17
- role: string;
18
17
  email: string;
18
+ role: string;
19
19
  }[]>;
20
20
  }
21
21
  export {};
@@ -5,11 +5,11 @@ declare const AddUsersToProjectDto_base: Z.Class<{
5
5
  userId: z.ZodString;
6
6
  role: z.ZodUnion<[z.ZodEnum<["project:admin", "project:editor", "project:viewer"]>, z.ZodEffects<z.ZodString, string, string>]>;
7
7
  }, "strip", z.ZodTypeAny, {
8
- role: string;
9
8
  userId: string;
10
- }, {
11
9
  role: string;
10
+ }, {
12
11
  userId: string;
12
+ role: string;
13
13
  }>, "many">;
14
14
  }>;
15
15
  export declare class AddUsersToProjectDto extends AddUsersToProjectDto_base {
@@ -21,11 +21,11 @@ declare const UpdateProjectWithRelationsDto_base: Z.Class<{
21
21
  userId: z.ZodString;
22
22
  role: z.ZodUnion<[z.ZodEnum<["project:admin", "project:editor", "project:viewer"]>, z.ZodEffects<z.ZodString, string, string>]>;
23
23
  }, "strip", z.ZodTypeAny, {
24
- role: string;
25
24
  userId: string;
26
- }, {
27
25
  role: string;
26
+ }, {
28
27
  userId: string;
28
+ role: string;
29
29
  }>, "many">>;
30
30
  name: z.ZodOptional<z.ZodString>;
31
31
  icon: z.ZodOptional<z.ZodObject<{
@@ -0,0 +1,13 @@
1
+ import { z } from 'zod';
2
+ import { Z } from 'zod-class';
3
+ declare const ProvisioningConfigDto_base: Z.Class<{
4
+ scopesProvisionInstanceRole: z.ZodBoolean;
5
+ scopesProvisionProjectRoles: z.ZodBoolean;
6
+ scopesProvisioningFrequency: z.ZodEnum<["never", "first_login", "every_login"]>;
7
+ scopesName: z.ZodString;
8
+ scopesInstanceRoleClaimName: z.ZodString;
9
+ scopesProjectsRolesClaimName: z.ZodString;
10
+ }>;
11
+ export declare class ProvisioningConfigDto extends ProvisioningConfigDto_base {
12
+ }
13
+ export {};
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProvisioningConfigDto = void 0;
4
+ const zod_1 = require("zod");
5
+ const zod_class_1 = require("zod-class");
6
+ class ProvisioningConfigDto extends zod_class_1.Z.class({
7
+ scopesProvisionInstanceRole: zod_1.z.boolean(),
8
+ scopesProvisionProjectRoles: zod_1.z.boolean(),
9
+ scopesProvisioningFrequency: zod_1.z.enum(['never', 'first_login', 'every_login']),
10
+ scopesName: zod_1.z.string(),
11
+ scopesInstanceRoleClaimName: zod_1.z.string(),
12
+ scopesProjectsRolesClaimName: zod_1.z.string(),
13
+ }) {
14
+ }
15
+ exports.ProvisioningConfigDto = ProvisioningConfigDto;
16
+ //# sourceMappingURL=config.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.dto.js","sourceRoot":"","sources":["../../../src/dto/provisioning/config.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,yCAA8B;AAE9B,MAAa,qBAAsB,SAAQ,aAAC,CAAC,KAAK,CAAC;IAClD,2BAA2B,EAAE,OAAC,CAAC,OAAO,EAAE;IACxC,2BAA2B,EAAE,OAAC,CAAC,OAAO,EAAE;IACxC,2BAA2B,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,aAAa,EAAE,aAAa,CAAC,CAAC;IAC5E,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE;IACtB,2BAA2B,EAAE,OAAC,CAAC,MAAM,EAAE;IACvC,4BAA4B,EAAE,OAAC,CAAC,MAAM,EAAE;CACxC,CAAC;CAAG;AAPL,sDAOK"}
@@ -4,7 +4,7 @@ exports.ImportWorkflowFromUrlDto = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const zod_class_1 = require("zod-class");
6
6
  class ImportWorkflowFromUrlDto extends zod_class_1.Z.class({
7
- url: zod_1.z.string().url().endsWith('.json'),
7
+ url: zod_1.z.string().url(),
8
8
  }) {
9
9
  }
10
10
  exports.ImportWorkflowFromUrlDto = ImportWorkflowFromUrlDto;
@@ -1 +1 @@
1
- {"version":3,"file":"import-workflow-from-url.dto.js","sourceRoot":"","sources":["../../../src/dto/workflows/import-workflow-from-url.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,yCAA8B;AAE9B,MAAa,wBAAyB,SAAQ,aAAC,CAAC,KAAK,CAAC;IACrD,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,OAAO,CAAC;CACvC,CAAC;CAAG;AAFL,4DAEK"}
1
+ {"version":3,"file":"import-workflow-from-url.dto.js","sourceRoot":"","sources":["../../../src/dto/workflows/import-workflow-from-url.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,yCAA8B;AAE9B,MAAa,wBAAyB,SAAQ,aAAC,CAAC,KAAK,CAAC;IACrD,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;CACrB,CAAC;CAAG;AAFL,4DAEK"}
@@ -128,6 +128,7 @@ export interface FrontendSettings {
128
128
  };
129
129
  aiBuilder: {
130
130
  enabled: boolean;
131
+ setup: boolean;
131
132
  };
132
133
  deployment: {
133
134
  type: string;
@@ -156,11 +157,13 @@ export interface FrontendSettings {
156
157
  advancedPermissions: boolean;
157
158
  apiKeyScopes: boolean;
158
159
  workflowDiffs: boolean;
160
+ provisioning: boolean;
159
161
  projects: {
160
162
  team: {
161
163
  limit: number;
162
164
  };
163
165
  };
166
+ customRoles: boolean;
164
167
  };
165
168
  hideUsagePage: boolean;
166
169
  license: {
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 ChatHubConversationModel, chatHubProviderSchema, type ChatHubProvider, PROVIDER_CREDENTIAL_TYPE_MAP, chatModelsRequestSchema, type ChatModelsRequest, type ChatModelsResponse, ChatHubSendMessageRequest, type ChatHubConversationsResponse, type ChatHubMessagesResponse, type ChatHubConversation, type ChatHubMessage, } from './chat-hub';
9
+ export { chatHubConversationModelSchema, type ChatHubConversationModel, chatHubProviderSchema, type ChatHubProvider, type ChatHubMessageType, type ChatHubMessageStatus, PROVIDER_CREDENTIAL_TYPE_MAP, chatModelsRequestSchema, type ChatModelsRequest, type ChatModelsResponse, ChatHubSendMessageRequest, ChatHubRegenerateMessageRequest, ChatHubEditMessageRequest, ChatHubChangeConversationTitleRequest, type ChatMessageId, type ChatSessionId, type ChatHubMessageDto, type ChatHubSessionDto, type ChatHubConversationDto, type ChatHubConversationResponse, type ChatHubConversationsResponse, } 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';