@n8n/api-types 0.34.0 → 0.35.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/dto/user/users-list-filter.dto.d.ts +2 -1
- package/dist/dto/user/users-list-filter.dto.js +3 -0
- package/dist/dto/user/users-list-filter.dto.js.map +1 -1
- package/dist/frontend-settings.d.ts +2 -0
- package/dist/schemas/insights.schema.d.ts +31 -0
- package/dist/schemas/insights.schema.js +12 -1
- package/dist/schemas/insights.schema.js.map +1 -1
- package/dist/schemas/user.schema.d.ts +16 -0
- package/dist/schemas/user.schema.js +2 -0
- package/dist/schemas/user.schema.js.map +1 -1
- package/package.json +7 -7
|
@@ -7,11 +7,12 @@ declare const UsersListFilterDto_base: Z.Class<{
|
|
|
7
7
|
email?: string | undefined;
|
|
8
8
|
firstName?: string | undefined;
|
|
9
9
|
lastName?: string | undefined;
|
|
10
|
+
mfaEnabled?: boolean | undefined;
|
|
10
11
|
isOwner?: boolean | undefined;
|
|
11
12
|
fullText?: string | undefined;
|
|
12
13
|
} | undefined, string | undefined>>;
|
|
13
14
|
expand: z.ZodOptional<z.ZodArray<z.ZodEnum<["projectRelations"]>, "many">>;
|
|
14
|
-
sortBy: z.ZodOptional<z.ZodArray<z.ZodEnum<["firstName:asc", "firstName:desc", "lastName:asc", "lastName:desc", "role:asc", "role:desc"]>, "many">>;
|
|
15
|
+
sortBy: z.ZodOptional<z.ZodArray<z.ZodEnum<["firstName:asc", "firstName:desc", "lastName:asc", "lastName:desc", "role:asc", "role:desc", "mfaEnabled:asc", "mfaEnabled:desc"]>, "many">>;
|
|
15
16
|
skip: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, number, string | undefined>, number, string | undefined>, number, string | undefined>;
|
|
16
17
|
}>;
|
|
17
18
|
export declare class UsersListFilterDto extends UsersListFilterDto_base {
|
|
@@ -12,6 +12,8 @@ const USERS_LIST_SORT_OPTIONS = [
|
|
|
12
12
|
'lastName:desc',
|
|
13
13
|
'role:asc',
|
|
14
14
|
'role:desc',
|
|
15
|
+
'mfaEnabled:asc',
|
|
16
|
+
'mfaEnabled:desc',
|
|
15
17
|
];
|
|
16
18
|
const usersListSortByValidator = zod_1.z
|
|
17
19
|
.array(zod_1.z.enum(USERS_LIST_SORT_OPTIONS, {
|
|
@@ -24,6 +26,7 @@ const userFilterSchema = zod_1.z.object({
|
|
|
24
26
|
firstName: zod_1.z.string().optional(),
|
|
25
27
|
lastName: zod_1.z.string().optional(),
|
|
26
28
|
email: zod_1.z.string().optional(),
|
|
29
|
+
mfaEnabled: zod_1.z.boolean().optional(),
|
|
27
30
|
fullText: zod_1.z.string().optional(),
|
|
28
31
|
});
|
|
29
32
|
const filterValidatorSchema = zod_1.z
|
|
@@ -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;AAErF,MAAM,uBAAuB,GAAG;IAC/B,eAAe;IACf,gBAAgB;IAChB,cAAc;IACd,eAAe;IACf,UAAU;IACV,WAAW;
|
|
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;AAErF,MAAM,uBAAuB,GAAG;IAC/B,eAAe;IACf,gBAAgB;IAChB,cAAc;IACd,eAAe;IACf,UAAU;IACV,WAAW;IACX,gBAAgB;IAChB,iBAAiB;CAGR,CAAC;AAEX,MAAM,wBAAwB,GAAG,OAAC;KAChC,KAAK,CACL,OAAC,CAAC,IAAI,CAAC,uBAAuB,EAAE;IAC/B,OAAO,EAAE,0BAA0B,uBAAuB,CAAC,IAAI,CAAC,IAAI,CAA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C,KAAK,CAAC;QAChB,CAAC;IACF,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACZ,GAAG,CAAC,QAAQ,CAAC;YACZ,IAAI,EAAE,OAAC,CAAC,YAAY,CAAC,MAAM;YAC3B,OAAO,EAAE,uBAAuB;YAChC,IAAI,EAAE,CAAC,QAAQ,CAAC;SAChB,CAAC,CAAC;QACH,OAAO,OAAC,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"}
|
|
@@ -3,6 +3,8 @@ import { type InsightsDateRange } from './schemas/insights.schema';
|
|
|
3
3
|
export interface IVersionNotificationSettings {
|
|
4
4
|
enabled: boolean;
|
|
5
5
|
endpoint: string;
|
|
6
|
+
whatsNewEnabled: boolean;
|
|
7
|
+
whatsNewEndpoint: string;
|
|
6
8
|
infoUrl: string;
|
|
7
9
|
}
|
|
8
10
|
export interface ITelemetryClientConfig {
|
|
@@ -372,6 +372,37 @@ export declare const insightsByTimeSchema: z.ZodObject<{
|
|
|
372
372
|
date: string;
|
|
373
373
|
}>;
|
|
374
374
|
export type InsightsByTime = z.infer<typeof insightsByTimeSchema>;
|
|
375
|
+
export declare const restrictedInsightsByTimeDataSchema: {
|
|
376
|
+
readonly date: z.ZodEffects<z.ZodString, string, string>;
|
|
377
|
+
readonly values: z.ZodObject<{
|
|
378
|
+
timeSaved: z.ZodNumber;
|
|
379
|
+
}, "strict", z.ZodTypeAny, {
|
|
380
|
+
timeSaved: number;
|
|
381
|
+
}, {
|
|
382
|
+
timeSaved: number;
|
|
383
|
+
}>;
|
|
384
|
+
};
|
|
385
|
+
export declare const restrictedInsightsByTimeSchema: z.ZodObject<{
|
|
386
|
+
readonly date: z.ZodEffects<z.ZodString, string, string>;
|
|
387
|
+
readonly values: z.ZodObject<{
|
|
388
|
+
timeSaved: z.ZodNumber;
|
|
389
|
+
}, "strict", z.ZodTypeAny, {
|
|
390
|
+
timeSaved: number;
|
|
391
|
+
}, {
|
|
392
|
+
timeSaved: number;
|
|
393
|
+
}>;
|
|
394
|
+
}, "strict", z.ZodTypeAny, {
|
|
395
|
+
values: {
|
|
396
|
+
timeSaved: number;
|
|
397
|
+
};
|
|
398
|
+
date: string;
|
|
399
|
+
}, {
|
|
400
|
+
values: {
|
|
401
|
+
timeSaved: number;
|
|
402
|
+
};
|
|
403
|
+
date: string;
|
|
404
|
+
}>;
|
|
405
|
+
export type RestrictedInsightsByTime = z.infer<typeof restrictedInsightsByTimeSchema>;
|
|
375
406
|
export declare const insightsDateRangeSchema: z.ZodObject<{
|
|
376
407
|
key: z.ZodEnum<["day", "week", "2weeks", "month", "quarter", "6months", "year"]>;
|
|
377
408
|
licensed: z.ZodBoolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.insightsDateRangeSchema = exports.insightsByTimeSchema = exports.insightsByTimeDataSchemas = exports.insightsByWorkflowSchema = exports.insightsByWorkflowDataSchemas = exports.insightsSummarySchema = exports.insightsSummaryDataSchemas = exports.insightsSummaryUnitSchema = exports.insightsSummaryTypeSchema = void 0;
|
|
3
|
+
exports.insightsDateRangeSchema = exports.restrictedInsightsByTimeSchema = exports.restrictedInsightsByTimeDataSchema = exports.insightsByTimeSchema = exports.insightsByTimeDataSchemas = exports.insightsByWorkflowSchema = exports.insightsByWorkflowDataSchemas = exports.insightsSummarySchema = exports.insightsSummaryDataSchemas = exports.insightsSummaryUnitSchema = exports.insightsSummaryTypeSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.insightsSummaryTypeSchema = zod_1.z.enum([
|
|
6
6
|
'total',
|
|
@@ -73,6 +73,17 @@ exports.insightsByTimeDataSchemas = {
|
|
|
73
73
|
.strict(),
|
|
74
74
|
};
|
|
75
75
|
exports.insightsByTimeSchema = zod_1.z.object(exports.insightsByTimeDataSchemas).strict();
|
|
76
|
+
exports.restrictedInsightsByTimeDataSchema = {
|
|
77
|
+
date: zod_1.z.string().refine((val) => !isNaN(Date.parse(val)) && new Date(val).toISOString() === val, {
|
|
78
|
+
message: 'Invalid date format, must be ISO 8601 format',
|
|
79
|
+
}),
|
|
80
|
+
values: zod_1.z
|
|
81
|
+
.object({
|
|
82
|
+
timeSaved: zod_1.z.number(),
|
|
83
|
+
})
|
|
84
|
+
.strict(),
|
|
85
|
+
};
|
|
86
|
+
exports.restrictedInsightsByTimeSchema = zod_1.z.object(exports.restrictedInsightsByTimeDataSchema).strict();
|
|
76
87
|
exports.insightsDateRangeSchema = zod_1.z
|
|
77
88
|
.object({
|
|
78
89
|
key: zod_1.z.enum(['day', 'week', '2weeks', 'month', 'quarter', '6months', 'year']),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"insights.schema.js","sourceRoot":"","sources":["../../src/schemas/insights.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,yBAAyB,GAAG,OAAC,CAAC,IAAI,CAAC;IAC/C,OAAO;IACP,QAAQ;IACR,aAAa;IACb,WAAW;IACX,gBAAgB;CAChB,CAAC,CAAC;AAGU,QAAA,yBAAyB,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,QAAQ,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,12 +110,15 @@ export declare const userListItemSchema: z.ZodObject<{
|
|
|
110
110
|
name: string;
|
|
111
111
|
role: "project:personalOwner" | "project:admin" | "project:editor" | "project:viewer";
|
|
112
112
|
}>, "many">>>;
|
|
113
|
+
mfaEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
114
|
+
lastActiveAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
113
115
|
}, "strip", z.ZodTypeAny, {
|
|
114
116
|
id: string;
|
|
115
117
|
email?: string | null | undefined;
|
|
116
118
|
role?: Role | undefined;
|
|
117
119
|
firstName?: string | null | undefined;
|
|
118
120
|
lastName?: string | null | undefined;
|
|
121
|
+
mfaEnabled?: boolean | undefined;
|
|
119
122
|
isOwner?: boolean | undefined;
|
|
120
123
|
projectRelations?: {
|
|
121
124
|
id: string;
|
|
@@ -144,12 +147,14 @@ export declare const userListItemSchema: z.ZodObject<{
|
|
|
144
147
|
} | null | undefined;
|
|
145
148
|
personalizationAnswers?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
146
149
|
lastActive?: string | undefined;
|
|
150
|
+
lastActiveAt?: string | null | undefined;
|
|
147
151
|
}, {
|
|
148
152
|
id: string;
|
|
149
153
|
email?: string | null | undefined;
|
|
150
154
|
role?: Role | undefined;
|
|
151
155
|
firstName?: string | null | undefined;
|
|
152
156
|
lastName?: string | null | undefined;
|
|
157
|
+
mfaEnabled?: boolean | undefined;
|
|
153
158
|
isOwner?: boolean | undefined;
|
|
154
159
|
projectRelations?: {
|
|
155
160
|
id: string;
|
|
@@ -178,6 +183,7 @@ export declare const userListItemSchema: z.ZodObject<{
|
|
|
178
183
|
} | null | undefined;
|
|
179
184
|
personalizationAnswers?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
180
185
|
lastActive?: string | undefined;
|
|
186
|
+
lastActiveAt?: string | null | undefined;
|
|
181
187
|
}>;
|
|
182
188
|
export declare const usersListSchema: z.ZodObject<{
|
|
183
189
|
count: z.ZodNumber;
|
|
@@ -271,12 +277,15 @@ export declare const usersListSchema: z.ZodObject<{
|
|
|
271
277
|
name: string;
|
|
272
278
|
role: "project:personalOwner" | "project:admin" | "project:editor" | "project:viewer";
|
|
273
279
|
}>, "many">>>;
|
|
280
|
+
mfaEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
281
|
+
lastActiveAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
274
282
|
}, "strip", z.ZodTypeAny, {
|
|
275
283
|
id: string;
|
|
276
284
|
email?: string | null | undefined;
|
|
277
285
|
role?: Role | undefined;
|
|
278
286
|
firstName?: string | null | undefined;
|
|
279
287
|
lastName?: string | null | undefined;
|
|
288
|
+
mfaEnabled?: boolean | undefined;
|
|
280
289
|
isOwner?: boolean | undefined;
|
|
281
290
|
projectRelations?: {
|
|
282
291
|
id: string;
|
|
@@ -305,12 +314,14 @@ export declare const usersListSchema: z.ZodObject<{
|
|
|
305
314
|
} | null | undefined;
|
|
306
315
|
personalizationAnswers?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
307
316
|
lastActive?: string | undefined;
|
|
317
|
+
lastActiveAt?: string | null | undefined;
|
|
308
318
|
}, {
|
|
309
319
|
id: string;
|
|
310
320
|
email?: string | null | undefined;
|
|
311
321
|
role?: Role | undefined;
|
|
312
322
|
firstName?: string | null | undefined;
|
|
313
323
|
lastName?: string | null | undefined;
|
|
324
|
+
mfaEnabled?: boolean | undefined;
|
|
314
325
|
isOwner?: boolean | undefined;
|
|
315
326
|
projectRelations?: {
|
|
316
327
|
id: string;
|
|
@@ -339,6 +350,7 @@ export declare const usersListSchema: z.ZodObject<{
|
|
|
339
350
|
} | null | undefined;
|
|
340
351
|
personalizationAnswers?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
341
352
|
lastActive?: string | undefined;
|
|
353
|
+
lastActiveAt?: string | null | undefined;
|
|
342
354
|
}>, "many">;
|
|
343
355
|
}, "strip", z.ZodTypeAny, {
|
|
344
356
|
count: number;
|
|
@@ -348,6 +360,7 @@ export declare const usersListSchema: z.ZodObject<{
|
|
|
348
360
|
role?: Role | undefined;
|
|
349
361
|
firstName?: string | null | undefined;
|
|
350
362
|
lastName?: string | null | undefined;
|
|
363
|
+
mfaEnabled?: boolean | undefined;
|
|
351
364
|
isOwner?: boolean | undefined;
|
|
352
365
|
projectRelations?: {
|
|
353
366
|
id: string;
|
|
@@ -376,6 +389,7 @@ export declare const usersListSchema: z.ZodObject<{
|
|
|
376
389
|
} | null | undefined;
|
|
377
390
|
personalizationAnswers?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
378
391
|
lastActive?: string | undefined;
|
|
392
|
+
lastActiveAt?: string | null | undefined;
|
|
379
393
|
}[];
|
|
380
394
|
}, {
|
|
381
395
|
count: number;
|
|
@@ -385,6 +399,7 @@ export declare const usersListSchema: z.ZodObject<{
|
|
|
385
399
|
role?: Role | undefined;
|
|
386
400
|
firstName?: string | null | undefined;
|
|
387
401
|
lastName?: string | null | undefined;
|
|
402
|
+
mfaEnabled?: boolean | undefined;
|
|
388
403
|
isOwner?: boolean | undefined;
|
|
389
404
|
projectRelations?: {
|
|
390
405
|
id: string;
|
|
@@ -413,6 +428,7 @@ export declare const usersListSchema: z.ZodObject<{
|
|
|
413
428
|
} | null | undefined;
|
|
414
429
|
personalizationAnswers?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
415
430
|
lastActive?: string | undefined;
|
|
431
|
+
lastActiveAt?: string | null | undefined;
|
|
416
432
|
}[];
|
|
417
433
|
}>;
|
|
418
434
|
export type User = z.infer<typeof userListItemSchema>;
|
|
@@ -30,6 +30,8 @@ exports.userListItemSchema = zod_1.z.object({
|
|
|
30
30
|
personalizationAnswers: zod_1.z.object({}).passthrough().nullable().optional(),
|
|
31
31
|
lastActive: zod_1.z.string().optional(),
|
|
32
32
|
projectRelations: zod_1.z.array(exports.userProjectSchema).nullable().optional(),
|
|
33
|
+
mfaEnabled: zod_1.z.boolean().optional(),
|
|
34
|
+
lastActiveAt: zod_1.z.string().nullable().optional(),
|
|
33
35
|
});
|
|
34
36
|
exports.usersListSchema = zod_1.z.object({
|
|
35
37
|
count: zod_1.z.number(),
|
|
@@ -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,kBAAkB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,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;IAC3B,SAAS,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EA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
|
"module": "src/index.ts",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist/**/*",
|
|
9
|
-
"
|
|
10
|
-
"
|
|
9
|
+
"LICENSE_EE.md",
|
|
10
|
+
"LICENSE.md"
|
|
11
11
|
],
|
|
12
12
|
"devDependencies": {
|
|
13
13
|
"@n8n/typescript-config": "1.2.0",
|
|
14
|
-
"@n8n/config": "1.
|
|
14
|
+
"@n8n/config": "1.44.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": "1.
|
|
21
|
-
"@n8n/permissions": "0.
|
|
20
|
+
"n8n-workflow": "1.98.0",
|
|
21
|
+
"@n8n/permissions": "0.29.0"
|
|
22
22
|
},
|
|
23
23
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
24
24
|
"homepage": "https://n8n.io",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"build": "tsc -p tsconfig.build.json",
|
|
38
38
|
"format": "biome format --write .",
|
|
39
39
|
"format:check": "biome ci .",
|
|
40
|
-
"lint": "eslint .",
|
|
40
|
+
"lint": "eslint . --quiet",
|
|
41
41
|
"lintfix": "eslint . --fix",
|
|
42
42
|
"watch": "tsc -p tsconfig.build.json --watch",
|
|
43
43
|
"test": "jest",
|