@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.
- package/dist/build.tsbuildinfo +1 -1
- package/dist/chat-hub.d.ts +104 -66
- package/dist/chat-hub.js +30 -15
- package/dist/chat-hub.js.map +1 -1
- package/dist/dto/ai/ai-build-request.dto.d.ts +12 -5
- package/dist/dto/ai/ai-build-request.dto.js +9 -1
- package/dist/dto/ai/ai-build-request.dto.js.map +1 -1
- package/dist/dto/ai/ai-session-metadata-response.dto.d.ts +8 -0
- package/dist/dto/ai/ai-session-metadata-response.dto.js +11 -0
- package/dist/dto/ai/ai-session-metadata-response.dto.js.map +1 -0
- package/dist/dto/index.d.ts +2 -0
- package/dist/dto/index.js +6 -2
- package/dist/dto/index.js.map +1 -1
- package/dist/dto/invitation/invite-users-request.dto.d.ts +2 -2
- package/dist/dto/project/add-users-to-project.dto.d.ts +2 -2
- package/dist/dto/project/update-project.dto.d.ts +2 -2
- package/dist/dto/provisioning/config.dto.d.ts +13 -0
- package/dist/dto/provisioning/config.dto.js +16 -0
- package/dist/dto/provisioning/config.dto.js.map +1 -0
- package/dist/dto/workflows/import-workflow-from-url.dto.js +1 -1
- package/dist/dto/workflows/import-workflow-from-url.dto.js.map +1 -1
- package/dist/frontend-settings.d.ts +3 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/schemas/insights.schema.d.ts +6 -6
- package/dist/schemas/project.schema.d.ts +2 -2
- package/dist/schemas/user.schema.d.ts +8 -8
- package/package.json +4 -4
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.passwordSchema = exports.ViewableMimeTypes = exports.heartbeatMessageSchema = exports.createHeartbeatMessage = exports.ChatHubSendMessageRequest = exports.chatModelsRequestSchema = exports.PROVIDER_CREDENTIAL_TYPE_MAP = exports.chatHubProviderSchema = exports.chatHubConversationModelSchema = void 0;
|
|
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.passwordSchema = exports.ViewableMimeTypes = exports.heartbeatMessageSchema = exports.createHeartbeatMessage = exports.ChatHubChangeConversationTitleRequest = exports.ChatHubEditMessageRequest = exports.ChatHubRegenerateMessageRequest = exports.ChatHubSendMessageRequest = exports.chatModelsRequestSchema = exports.PROVIDER_CREDENTIAL_TYPE_MAP = 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; } });
|
|
@@ -22,6 +22,9 @@ Object.defineProperty(exports, "chatHubProviderSchema", { enumerable: true, get:
|
|
|
22
22
|
Object.defineProperty(exports, "PROVIDER_CREDENTIAL_TYPE_MAP", { enumerable: true, get: function () { return chat_hub_1.PROVIDER_CREDENTIAL_TYPE_MAP; } });
|
|
23
23
|
Object.defineProperty(exports, "chatModelsRequestSchema", { enumerable: true, get: function () { return chat_hub_1.chatModelsRequestSchema; } });
|
|
24
24
|
Object.defineProperty(exports, "ChatHubSendMessageRequest", { enumerable: true, get: function () { return chat_hub_1.ChatHubSendMessageRequest; } });
|
|
25
|
+
Object.defineProperty(exports, "ChatHubRegenerateMessageRequest", { enumerable: true, get: function () { return chat_hub_1.ChatHubRegenerateMessageRequest; } });
|
|
26
|
+
Object.defineProperty(exports, "ChatHubEditMessageRequest", { enumerable: true, get: function () { return chat_hub_1.ChatHubEditMessageRequest; } });
|
|
27
|
+
Object.defineProperty(exports, "ChatHubChangeConversationTitleRequest", { enumerable: true, get: function () { return chat_hub_1.ChatHubChangeConversationTitleRequest; } });
|
|
25
28
|
var heartbeat_1 = require("./push/heartbeat");
|
|
26
29
|
Object.defineProperty(exports, "createHeartbeatMessage", { enumerable: true, get: function () { return heartbeat_1.createHeartbeatMessage; } });
|
|
27
30
|
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,uCAsBoB;AArBnB,0HAAA,8BAA8B,OAAA;AAE9B,iHAAA,qBAAqB,OAAA;AAIrB,wHAAA,4BAA4B,OAAA;AAC5B,mHAAA,uBAAuB,OAAA;AAGvB,qHAAA,yBAAyB,OAAA;AACzB,2HAAA,+BAA+B,OAAA;AAC/B,qHAAA,yBAAyB,OAAA;AACzB,iIAAA,qCAAqC,OAAA;AAYtC,8CAAkF;AAAzE,mHAAA,sBAAsB,OAAA;AAAE,mHAAA,sBAAsB,OAAA;AAIvD,mEAAiE;AAAxD,uHAAA,iBAAiB,OAAA;AAC1B,6DAA2D;AAAlD,iHAAA,cAAc,OAAA;AAQvB,yFAKiD;AAHhD,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"}
|
|
@@ -205,24 +205,24 @@ export declare const insightsByWorkflowDataSchemas: {
|
|
|
205
205
|
averageRunTime: z.ZodNumber;
|
|
206
206
|
timeSaved: z.ZodNumber;
|
|
207
207
|
}, "strict", z.ZodTypeAny, {
|
|
208
|
+
workflowId: string | null;
|
|
208
209
|
total: number;
|
|
209
210
|
failed: number;
|
|
210
211
|
failureRate: number;
|
|
211
212
|
timeSaved: number;
|
|
212
213
|
averageRunTime: number;
|
|
213
|
-
workflowId: string | null;
|
|
214
214
|
workflowName: string;
|
|
215
215
|
projectId: string | null;
|
|
216
216
|
projectName: string;
|
|
217
217
|
succeeded: number;
|
|
218
218
|
runTime: number;
|
|
219
219
|
}, {
|
|
220
|
+
workflowId: string | null;
|
|
220
221
|
total: number;
|
|
221
222
|
failed: number;
|
|
222
223
|
failureRate: number;
|
|
223
224
|
timeSaved: number;
|
|
224
225
|
averageRunTime: number;
|
|
225
|
-
workflowId: string | null;
|
|
226
226
|
workflowName: string;
|
|
227
227
|
projectId: string | null;
|
|
228
228
|
projectName: string;
|
|
@@ -245,24 +245,24 @@ export declare const insightsByWorkflowSchema: z.ZodObject<{
|
|
|
245
245
|
averageRunTime: z.ZodNumber;
|
|
246
246
|
timeSaved: z.ZodNumber;
|
|
247
247
|
}, "strict", z.ZodTypeAny, {
|
|
248
|
+
workflowId: string | null;
|
|
248
249
|
total: number;
|
|
249
250
|
failed: number;
|
|
250
251
|
failureRate: number;
|
|
251
252
|
timeSaved: number;
|
|
252
253
|
averageRunTime: number;
|
|
253
|
-
workflowId: string | null;
|
|
254
254
|
workflowName: string;
|
|
255
255
|
projectId: string | null;
|
|
256
256
|
projectName: string;
|
|
257
257
|
succeeded: number;
|
|
258
258
|
runTime: number;
|
|
259
259
|
}, {
|
|
260
|
+
workflowId: string | null;
|
|
260
261
|
total: number;
|
|
261
262
|
failed: number;
|
|
262
263
|
failureRate: number;
|
|
263
264
|
timeSaved: number;
|
|
264
265
|
averageRunTime: number;
|
|
265
|
-
workflowId: string | null;
|
|
266
266
|
workflowName: string;
|
|
267
267
|
projectId: string | null;
|
|
268
268
|
projectName: string;
|
|
@@ -272,12 +272,12 @@ export declare const insightsByWorkflowSchema: z.ZodObject<{
|
|
|
272
272
|
}, "strict", z.ZodTypeAny, {
|
|
273
273
|
count: number;
|
|
274
274
|
data: {
|
|
275
|
+
workflowId: string | null;
|
|
275
276
|
total: number;
|
|
276
277
|
failed: number;
|
|
277
278
|
failureRate: number;
|
|
278
279
|
timeSaved: number;
|
|
279
280
|
averageRunTime: number;
|
|
280
|
-
workflowId: string | null;
|
|
281
281
|
workflowName: string;
|
|
282
282
|
projectId: string | null;
|
|
283
283
|
projectName: string;
|
|
@@ -287,12 +287,12 @@ export declare const insightsByWorkflowSchema: z.ZodObject<{
|
|
|
287
287
|
}, {
|
|
288
288
|
count: number;
|
|
289
289
|
data: {
|
|
290
|
+
workflowId: string | null;
|
|
290
291
|
total: number;
|
|
291
292
|
failed: number;
|
|
292
293
|
failureRate: number;
|
|
293
294
|
timeSaved: number;
|
|
294
295
|
averageRunTime: number;
|
|
295
|
-
workflowId: string | null;
|
|
296
296
|
workflowName: string;
|
|
297
297
|
projectId: string | null;
|
|
298
298
|
projectName: string;
|
|
@@ -18,10 +18,10 @@ export declare const projectRelationSchema: z.ZodObject<{
|
|
|
18
18
|
userId: z.ZodString;
|
|
19
19
|
role: z.ZodUnion<[z.ZodEnum<["project:admin", "project:editor", "project:viewer"]>, z.ZodEffects<z.ZodString, string, string>]>;
|
|
20
20
|
}, "strip", z.ZodTypeAny, {
|
|
21
|
-
role: string;
|
|
22
21
|
userId: string;
|
|
23
|
-
}, {
|
|
24
22
|
role: string;
|
|
23
|
+
}, {
|
|
25
24
|
userId: string;
|
|
25
|
+
role: string;
|
|
26
26
|
}>;
|
|
27
27
|
export type ProjectRelation = z.infer<typeof projectRelationSchema>;
|
|
@@ -28,14 +28,14 @@ export declare const userBaseSchema: z.ZodObject<{
|
|
|
28
28
|
role: z.ZodOptional<z.ZodEnum<[Role, ...Role[]]>>;
|
|
29
29
|
}, "strip", z.ZodTypeAny, {
|
|
30
30
|
id: string;
|
|
31
|
-
role?: Role | undefined;
|
|
32
31
|
email?: string | null | undefined;
|
|
32
|
+
role?: Role | undefined;
|
|
33
33
|
firstName?: string | null | undefined;
|
|
34
34
|
lastName?: string | null | undefined;
|
|
35
35
|
}, {
|
|
36
36
|
id: string;
|
|
37
|
-
role?: Role | undefined;
|
|
38
37
|
email?: string | null | undefined;
|
|
38
|
+
role?: Role | undefined;
|
|
39
39
|
firstName?: string | null | undefined;
|
|
40
40
|
lastName?: string | null | undefined;
|
|
41
41
|
}>;
|
|
@@ -134,8 +134,8 @@ export declare const userDetailSchema: z.ZodObject<{
|
|
|
134
134
|
inviteAcceptUrl: z.ZodOptional<z.ZodString>;
|
|
135
135
|
}, "strip", z.ZodTypeAny, {
|
|
136
136
|
id: string;
|
|
137
|
-
role?: Role | undefined;
|
|
138
137
|
email?: string | null | undefined;
|
|
138
|
+
role?: Role | undefined;
|
|
139
139
|
settings?: {
|
|
140
140
|
userActivated?: boolean | undefined;
|
|
141
141
|
allowSSOManualLogin?: boolean | undefined;
|
|
@@ -170,8 +170,8 @@ export declare const userDetailSchema: z.ZodObject<{
|
|
|
170
170
|
inviteAcceptUrl?: string | undefined;
|
|
171
171
|
}, {
|
|
172
172
|
id: string;
|
|
173
|
-
role?: Role | undefined;
|
|
174
173
|
email?: string | null | undefined;
|
|
174
|
+
role?: Role | undefined;
|
|
175
175
|
settings?: {
|
|
176
176
|
userActivated?: boolean | undefined;
|
|
177
177
|
allowSSOManualLogin?: boolean | undefined;
|
|
@@ -302,8 +302,8 @@ export declare const usersListSchema: z.ZodObject<{
|
|
|
302
302
|
inviteAcceptUrl: z.ZodOptional<z.ZodString>;
|
|
303
303
|
}, "strip", z.ZodTypeAny, {
|
|
304
304
|
id: string;
|
|
305
|
-
role?: Role | undefined;
|
|
306
305
|
email?: string | null | undefined;
|
|
306
|
+
role?: Role | undefined;
|
|
307
307
|
settings?: {
|
|
308
308
|
userActivated?: boolean | undefined;
|
|
309
309
|
allowSSOManualLogin?: boolean | undefined;
|
|
@@ -338,8 +338,8 @@ export declare const usersListSchema: z.ZodObject<{
|
|
|
338
338
|
inviteAcceptUrl?: string | undefined;
|
|
339
339
|
}, {
|
|
340
340
|
id: string;
|
|
341
|
-
role?: Role | undefined;
|
|
342
341
|
email?: string | null | undefined;
|
|
342
|
+
role?: Role | undefined;
|
|
343
343
|
settings?: {
|
|
344
344
|
userActivated?: boolean | undefined;
|
|
345
345
|
allowSSOManualLogin?: boolean | undefined;
|
|
@@ -377,8 +377,8 @@ export declare const usersListSchema: z.ZodObject<{
|
|
|
377
377
|
count: number;
|
|
378
378
|
items: {
|
|
379
379
|
id: string;
|
|
380
|
-
role?: Role | undefined;
|
|
381
380
|
email?: string | null | undefined;
|
|
381
|
+
role?: Role | undefined;
|
|
382
382
|
settings?: {
|
|
383
383
|
userActivated?: boolean | undefined;
|
|
384
384
|
allowSSOManualLogin?: boolean | undefined;
|
|
@@ -416,8 +416,8 @@ export declare const usersListSchema: z.ZodObject<{
|
|
|
416
416
|
count: number;
|
|
417
417
|
items: {
|
|
418
418
|
id: string;
|
|
419
|
-
role?: Role | undefined;
|
|
420
419
|
email?: string | null | undefined;
|
|
420
|
+
role?: Role | undefined;
|
|
421
421
|
settings?: {
|
|
422
422
|
userActivated?: boolean | undefined;
|
|
423
423
|
allowSSOManualLogin?: boolean | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@n8n/api-types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.51.1",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "src/index.ts",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -11,14 +11,14 @@
|
|
|
11
11
|
],
|
|
12
12
|
"devDependencies": {
|
|
13
13
|
"@n8n/typescript-config": "1.3.0",
|
|
14
|
-
"@n8n/config": "1.
|
|
14
|
+
"@n8n/config": "1.59.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
|
|
21
|
-
"
|
|
20
|
+
"@n8n/permissions": "0.40.0",
|
|
21
|
+
"n8n-workflow": "1.114.0"
|
|
22
22
|
},
|
|
23
23
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
24
24
|
"homepage": "https://n8n.io",
|