@n8n/api-types 0.33.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.
@@ -7,87 +7,429 @@ export declare const ROLE: {
7
7
  };
8
8
  export type Role = (typeof ROLE)[keyof typeof ROLE];
9
9
  export declare const roleSchema: z.ZodEnum<[Role, ...Role[]]>;
10
+ export declare const userProjectSchema: z.ZodObject<{
11
+ id: z.ZodString;
12
+ role: z.ZodEnum<["project:personalOwner", "project:admin", "project:editor", "project:viewer"]>;
13
+ name: z.ZodString;
14
+ }, "strip", z.ZodTypeAny, {
15
+ id: string;
16
+ name: string;
17
+ role: "project:personalOwner" | "project:admin" | "project:editor" | "project:viewer";
18
+ }, {
19
+ id: string;
20
+ name: string;
21
+ role: "project:personalOwner" | "project:admin" | "project:editor" | "project:viewer";
22
+ }>;
10
23
  export declare const userListItemSchema: z.ZodObject<{
11
24
  id: z.ZodString;
12
- firstName: z.ZodNullable<z.ZodString>;
13
- lastName: z.ZodNullable<z.ZodString>;
14
- email: z.ZodNullable<z.ZodString>;
15
- role: z.ZodEnum<[Role, ...Role[]]>;
16
- isPending: z.ZodBoolean;
17
- lastActive: z.ZodNullable<z.ZodString>;
18
- projects: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
25
+ firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ role: z.ZodOptional<z.ZodEnum<[Role, ...Role[]]>>;
29
+ isPending: z.ZodOptional<z.ZodBoolean>;
30
+ isOwner: z.ZodOptional<z.ZodBoolean>;
31
+ signInType: z.ZodOptional<z.ZodString>;
32
+ settings: z.ZodOptional<z.ZodNullable<z.ZodObject<{
33
+ isOnboarded: z.ZodOptional<z.ZodBoolean>;
34
+ firstSuccessfulWorkflowId: z.ZodOptional<z.ZodString>;
35
+ userActivated: z.ZodOptional<z.ZodBoolean>;
36
+ userActivatedAt: z.ZodOptional<z.ZodNumber>;
37
+ allowSSOManualLogin: z.ZodOptional<z.ZodBoolean>;
38
+ npsSurvey: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
39
+ lastShownAt: z.ZodNumber;
40
+ responded: z.ZodLiteral<true>;
41
+ }, "strip", z.ZodTypeAny, {
42
+ lastShownAt: number;
43
+ responded: true;
44
+ }, {
45
+ lastShownAt: number;
46
+ responded: true;
47
+ }>, z.ZodObject<{
48
+ lastShownAt: z.ZodNumber;
49
+ waitingForResponse: z.ZodLiteral<true>;
50
+ ignoredCount: z.ZodNumber;
51
+ }, "strip", z.ZodTypeAny, {
52
+ lastShownAt: number;
53
+ waitingForResponse: true;
54
+ ignoredCount: number;
55
+ }, {
56
+ lastShownAt: number;
57
+ waitingForResponse: true;
58
+ ignoredCount: number;
59
+ }>]>>;
60
+ easyAIWorkflowOnboarded: z.ZodOptional<z.ZodBoolean>;
61
+ userClaimedAiCredits: z.ZodOptional<z.ZodBoolean>;
62
+ dismissedCallouts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
63
+ }, "strip", z.ZodTypeAny, {
64
+ userActivated?: boolean | undefined;
65
+ allowSSOManualLogin?: boolean | undefined;
66
+ easyAIWorkflowOnboarded?: boolean | undefined;
67
+ dismissedCallouts?: Record<string, boolean> | undefined;
68
+ isOnboarded?: boolean | undefined;
69
+ firstSuccessfulWorkflowId?: string | undefined;
70
+ userActivatedAt?: number | undefined;
71
+ npsSurvey?: {
72
+ lastShownAt: number;
73
+ responded: true;
74
+ } | {
75
+ lastShownAt: number;
76
+ waitingForResponse: true;
77
+ ignoredCount: number;
78
+ } | undefined;
79
+ userClaimedAiCredits?: boolean | undefined;
80
+ }, {
81
+ userActivated?: boolean | undefined;
82
+ allowSSOManualLogin?: boolean | undefined;
83
+ easyAIWorkflowOnboarded?: boolean | undefined;
84
+ dismissedCallouts?: Record<string, boolean> | undefined;
85
+ isOnboarded?: boolean | undefined;
86
+ firstSuccessfulWorkflowId?: string | undefined;
87
+ userActivatedAt?: number | undefined;
88
+ npsSurvey?: {
89
+ lastShownAt: number;
90
+ responded: true;
91
+ } | {
92
+ lastShownAt: number;
93
+ waitingForResponse: true;
94
+ ignoredCount: number;
95
+ } | undefined;
96
+ userClaimedAiCredits?: boolean | undefined;
97
+ }>>>;
98
+ personalizationAnswers: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
99
+ lastActive: z.ZodOptional<z.ZodString>;
100
+ projectRelations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
101
+ id: z.ZodString;
102
+ role: z.ZodEnum<["project:personalOwner", "project:admin", "project:editor", "project:viewer"]>;
103
+ name: z.ZodString;
104
+ }, "strip", z.ZodTypeAny, {
105
+ id: string;
106
+ name: string;
107
+ role: "project:personalOwner" | "project:admin" | "project:editor" | "project:viewer";
108
+ }, {
109
+ id: string;
110
+ name: string;
111
+ role: "project:personalOwner" | "project:admin" | "project:editor" | "project:viewer";
112
+ }>, "many">>>;
113
+ mfaEnabled: z.ZodOptional<z.ZodBoolean>;
114
+ lastActiveAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
115
  }, "strip", z.ZodTypeAny, {
20
- email: string | null;
21
116
  id: string;
22
- role: Role;
23
- firstName: string | null;
24
- lastName: string | null;
25
- isPending: boolean;
26
- lastActive: string | null;
27
- projects: string[] | null;
117
+ email?: string | null | undefined;
118
+ role?: Role | undefined;
119
+ firstName?: string | null | undefined;
120
+ lastName?: string | null | undefined;
121
+ mfaEnabled?: boolean | undefined;
122
+ isOwner?: boolean | undefined;
123
+ projectRelations?: {
124
+ id: string;
125
+ name: string;
126
+ role: "project:personalOwner" | "project:admin" | "project:editor" | "project:viewer";
127
+ }[] | null | undefined;
128
+ isPending?: boolean | undefined;
129
+ signInType?: string | undefined;
130
+ settings?: {
131
+ userActivated?: boolean | undefined;
132
+ allowSSOManualLogin?: boolean | undefined;
133
+ easyAIWorkflowOnboarded?: boolean | undefined;
134
+ dismissedCallouts?: Record<string, boolean> | undefined;
135
+ isOnboarded?: boolean | undefined;
136
+ firstSuccessfulWorkflowId?: string | undefined;
137
+ userActivatedAt?: number | undefined;
138
+ npsSurvey?: {
139
+ lastShownAt: number;
140
+ responded: true;
141
+ } | {
142
+ lastShownAt: number;
143
+ waitingForResponse: true;
144
+ ignoredCount: number;
145
+ } | undefined;
146
+ userClaimedAiCredits?: boolean | undefined;
147
+ } | null | undefined;
148
+ personalizationAnswers?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
149
+ lastActive?: string | undefined;
150
+ lastActiveAt?: string | null | undefined;
28
151
  }, {
29
- email: string | null;
30
152
  id: string;
31
- role: Role;
32
- firstName: string | null;
33
- lastName: string | null;
34
- isPending: boolean;
35
- lastActive: string | null;
36
- projects: string[] | null;
153
+ email?: string | null | undefined;
154
+ role?: Role | undefined;
155
+ firstName?: string | null | undefined;
156
+ lastName?: string | null | undefined;
157
+ mfaEnabled?: boolean | undefined;
158
+ isOwner?: boolean | undefined;
159
+ projectRelations?: {
160
+ id: string;
161
+ name: string;
162
+ role: "project:personalOwner" | "project:admin" | "project:editor" | "project:viewer";
163
+ }[] | null | undefined;
164
+ isPending?: boolean | undefined;
165
+ signInType?: string | undefined;
166
+ settings?: {
167
+ userActivated?: boolean | undefined;
168
+ allowSSOManualLogin?: boolean | undefined;
169
+ easyAIWorkflowOnboarded?: boolean | undefined;
170
+ dismissedCallouts?: Record<string, boolean> | undefined;
171
+ isOnboarded?: boolean | undefined;
172
+ firstSuccessfulWorkflowId?: string | undefined;
173
+ userActivatedAt?: number | undefined;
174
+ npsSurvey?: {
175
+ lastShownAt: number;
176
+ responded: true;
177
+ } | {
178
+ lastShownAt: number;
179
+ waitingForResponse: true;
180
+ ignoredCount: number;
181
+ } | undefined;
182
+ userClaimedAiCredits?: boolean | undefined;
183
+ } | null | undefined;
184
+ personalizationAnswers?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
185
+ lastActive?: string | undefined;
186
+ lastActiveAt?: string | null | undefined;
37
187
  }>;
38
188
  export declare const usersListSchema: z.ZodObject<{
39
189
  count: z.ZodNumber;
40
- data: z.ZodArray<z.ZodObject<{
190
+ items: z.ZodArray<z.ZodObject<{
41
191
  id: z.ZodString;
42
- firstName: z.ZodNullable<z.ZodString>;
43
- lastName: z.ZodNullable<z.ZodString>;
44
- email: z.ZodNullable<z.ZodString>;
45
- role: z.ZodEnum<[Role, ...Role[]]>;
46
- isPending: z.ZodBoolean;
47
- lastActive: z.ZodNullable<z.ZodString>;
48
- projects: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
192
+ firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
193
+ lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
194
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
195
+ role: z.ZodOptional<z.ZodEnum<[Role, ...Role[]]>>;
196
+ isPending: z.ZodOptional<z.ZodBoolean>;
197
+ isOwner: z.ZodOptional<z.ZodBoolean>;
198
+ signInType: z.ZodOptional<z.ZodString>;
199
+ settings: z.ZodOptional<z.ZodNullable<z.ZodObject<{
200
+ isOnboarded: z.ZodOptional<z.ZodBoolean>;
201
+ firstSuccessfulWorkflowId: z.ZodOptional<z.ZodString>;
202
+ userActivated: z.ZodOptional<z.ZodBoolean>;
203
+ userActivatedAt: z.ZodOptional<z.ZodNumber>;
204
+ allowSSOManualLogin: z.ZodOptional<z.ZodBoolean>;
205
+ npsSurvey: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
206
+ lastShownAt: z.ZodNumber;
207
+ responded: z.ZodLiteral<true>;
208
+ }, "strip", z.ZodTypeAny, {
209
+ lastShownAt: number;
210
+ responded: true;
211
+ }, {
212
+ lastShownAt: number;
213
+ responded: true;
214
+ }>, z.ZodObject<{
215
+ lastShownAt: z.ZodNumber;
216
+ waitingForResponse: z.ZodLiteral<true>;
217
+ ignoredCount: z.ZodNumber;
218
+ }, "strip", z.ZodTypeAny, {
219
+ lastShownAt: number;
220
+ waitingForResponse: true;
221
+ ignoredCount: number;
222
+ }, {
223
+ lastShownAt: number;
224
+ waitingForResponse: true;
225
+ ignoredCount: number;
226
+ }>]>>;
227
+ easyAIWorkflowOnboarded: z.ZodOptional<z.ZodBoolean>;
228
+ userClaimedAiCredits: z.ZodOptional<z.ZodBoolean>;
229
+ dismissedCallouts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
230
+ }, "strip", z.ZodTypeAny, {
231
+ userActivated?: boolean | undefined;
232
+ allowSSOManualLogin?: boolean | undefined;
233
+ easyAIWorkflowOnboarded?: boolean | undefined;
234
+ dismissedCallouts?: Record<string, boolean> | undefined;
235
+ isOnboarded?: boolean | undefined;
236
+ firstSuccessfulWorkflowId?: string | undefined;
237
+ userActivatedAt?: number | undefined;
238
+ npsSurvey?: {
239
+ lastShownAt: number;
240
+ responded: true;
241
+ } | {
242
+ lastShownAt: number;
243
+ waitingForResponse: true;
244
+ ignoredCount: number;
245
+ } | undefined;
246
+ userClaimedAiCredits?: boolean | undefined;
247
+ }, {
248
+ userActivated?: boolean | undefined;
249
+ allowSSOManualLogin?: boolean | undefined;
250
+ easyAIWorkflowOnboarded?: boolean | undefined;
251
+ dismissedCallouts?: Record<string, boolean> | undefined;
252
+ isOnboarded?: boolean | undefined;
253
+ firstSuccessfulWorkflowId?: string | undefined;
254
+ userActivatedAt?: number | undefined;
255
+ npsSurvey?: {
256
+ lastShownAt: number;
257
+ responded: true;
258
+ } | {
259
+ lastShownAt: number;
260
+ waitingForResponse: true;
261
+ ignoredCount: number;
262
+ } | undefined;
263
+ userClaimedAiCredits?: boolean | undefined;
264
+ }>>>;
265
+ personalizationAnswers: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
266
+ lastActive: z.ZodOptional<z.ZodString>;
267
+ projectRelations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
268
+ id: z.ZodString;
269
+ role: z.ZodEnum<["project:personalOwner", "project:admin", "project:editor", "project:viewer"]>;
270
+ name: z.ZodString;
271
+ }, "strip", z.ZodTypeAny, {
272
+ id: string;
273
+ name: string;
274
+ role: "project:personalOwner" | "project:admin" | "project:editor" | "project:viewer";
275
+ }, {
276
+ id: string;
277
+ name: string;
278
+ role: "project:personalOwner" | "project:admin" | "project:editor" | "project:viewer";
279
+ }>, "many">>>;
280
+ mfaEnabled: z.ZodOptional<z.ZodBoolean>;
281
+ lastActiveAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
49
282
  }, "strip", z.ZodTypeAny, {
50
- email: string | null;
51
283
  id: string;
52
- role: Role;
53
- firstName: string | null;
54
- lastName: string | null;
55
- isPending: boolean;
56
- lastActive: string | null;
57
- projects: string[] | null;
284
+ email?: string | null | undefined;
285
+ role?: Role | undefined;
286
+ firstName?: string | null | undefined;
287
+ lastName?: string | null | undefined;
288
+ mfaEnabled?: boolean | undefined;
289
+ isOwner?: boolean | undefined;
290
+ projectRelations?: {
291
+ id: string;
292
+ name: string;
293
+ role: "project:personalOwner" | "project:admin" | "project:editor" | "project:viewer";
294
+ }[] | null | undefined;
295
+ isPending?: boolean | undefined;
296
+ signInType?: string | undefined;
297
+ settings?: {
298
+ userActivated?: boolean | undefined;
299
+ allowSSOManualLogin?: boolean | undefined;
300
+ easyAIWorkflowOnboarded?: boolean | undefined;
301
+ dismissedCallouts?: Record<string, boolean> | undefined;
302
+ isOnboarded?: boolean | undefined;
303
+ firstSuccessfulWorkflowId?: string | undefined;
304
+ userActivatedAt?: number | undefined;
305
+ npsSurvey?: {
306
+ lastShownAt: number;
307
+ responded: true;
308
+ } | {
309
+ lastShownAt: number;
310
+ waitingForResponse: true;
311
+ ignoredCount: number;
312
+ } | undefined;
313
+ userClaimedAiCredits?: boolean | undefined;
314
+ } | null | undefined;
315
+ personalizationAnswers?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
316
+ lastActive?: string | undefined;
317
+ lastActiveAt?: string | null | undefined;
58
318
  }, {
59
- email: string | null;
60
319
  id: string;
61
- role: Role;
62
- firstName: string | null;
63
- lastName: string | null;
64
- isPending: boolean;
65
- lastActive: string | null;
66
- projects: string[] | null;
320
+ email?: string | null | undefined;
321
+ role?: Role | undefined;
322
+ firstName?: string | null | undefined;
323
+ lastName?: string | null | undefined;
324
+ mfaEnabled?: boolean | undefined;
325
+ isOwner?: boolean | undefined;
326
+ projectRelations?: {
327
+ id: string;
328
+ name: string;
329
+ role: "project:personalOwner" | "project:admin" | "project:editor" | "project:viewer";
330
+ }[] | null | undefined;
331
+ isPending?: boolean | undefined;
332
+ signInType?: string | undefined;
333
+ settings?: {
334
+ userActivated?: boolean | undefined;
335
+ allowSSOManualLogin?: boolean | undefined;
336
+ easyAIWorkflowOnboarded?: boolean | undefined;
337
+ dismissedCallouts?: Record<string, boolean> | undefined;
338
+ isOnboarded?: boolean | undefined;
339
+ firstSuccessfulWorkflowId?: string | undefined;
340
+ userActivatedAt?: number | undefined;
341
+ npsSurvey?: {
342
+ lastShownAt: number;
343
+ responded: true;
344
+ } | {
345
+ lastShownAt: number;
346
+ waitingForResponse: true;
347
+ ignoredCount: number;
348
+ } | undefined;
349
+ userClaimedAiCredits?: boolean | undefined;
350
+ } | null | undefined;
351
+ personalizationAnswers?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
352
+ lastActive?: string | undefined;
353
+ lastActiveAt?: string | null | undefined;
67
354
  }>, "many">;
68
355
  }, "strip", z.ZodTypeAny, {
69
356
  count: number;
70
- data: {
71
- email: string | null;
357
+ items: {
72
358
  id: string;
73
- role: Role;
74
- firstName: string | null;
75
- lastName: string | null;
76
- isPending: boolean;
77
- lastActive: string | null;
78
- projects: string[] | null;
359
+ email?: string | null | undefined;
360
+ role?: Role | undefined;
361
+ firstName?: string | null | undefined;
362
+ lastName?: string | null | undefined;
363
+ mfaEnabled?: boolean | undefined;
364
+ isOwner?: boolean | undefined;
365
+ projectRelations?: {
366
+ id: string;
367
+ name: string;
368
+ role: "project:personalOwner" | "project:admin" | "project:editor" | "project:viewer";
369
+ }[] | null | undefined;
370
+ isPending?: boolean | undefined;
371
+ signInType?: string | undefined;
372
+ settings?: {
373
+ userActivated?: boolean | undefined;
374
+ allowSSOManualLogin?: boolean | undefined;
375
+ easyAIWorkflowOnboarded?: boolean | undefined;
376
+ dismissedCallouts?: Record<string, boolean> | undefined;
377
+ isOnboarded?: boolean | undefined;
378
+ firstSuccessfulWorkflowId?: string | undefined;
379
+ userActivatedAt?: number | undefined;
380
+ npsSurvey?: {
381
+ lastShownAt: number;
382
+ responded: true;
383
+ } | {
384
+ lastShownAt: number;
385
+ waitingForResponse: true;
386
+ ignoredCount: number;
387
+ } | undefined;
388
+ userClaimedAiCredits?: boolean | undefined;
389
+ } | null | undefined;
390
+ personalizationAnswers?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
391
+ lastActive?: string | undefined;
392
+ lastActiveAt?: string | null | undefined;
79
393
  }[];
80
394
  }, {
81
395
  count: number;
82
- data: {
83
- email: string | null;
396
+ items: {
84
397
  id: string;
85
- role: Role;
86
- firstName: string | null;
87
- lastName: string | null;
88
- isPending: boolean;
89
- lastActive: string | null;
90
- projects: string[] | null;
398
+ email?: string | null | undefined;
399
+ role?: Role | undefined;
400
+ firstName?: string | null | undefined;
401
+ lastName?: string | null | undefined;
402
+ mfaEnabled?: boolean | undefined;
403
+ isOwner?: boolean | undefined;
404
+ projectRelations?: {
405
+ id: string;
406
+ name: string;
407
+ role: "project:personalOwner" | "project:admin" | "project:editor" | "project:viewer";
408
+ }[] | null | undefined;
409
+ isPending?: boolean | undefined;
410
+ signInType?: string | undefined;
411
+ settings?: {
412
+ userActivated?: boolean | undefined;
413
+ allowSSOManualLogin?: boolean | undefined;
414
+ easyAIWorkflowOnboarded?: boolean | undefined;
415
+ dismissedCallouts?: Record<string, boolean> | undefined;
416
+ isOnboarded?: boolean | undefined;
417
+ firstSuccessfulWorkflowId?: string | undefined;
418
+ userActivatedAt?: number | undefined;
419
+ npsSurvey?: {
420
+ lastShownAt: number;
421
+ responded: true;
422
+ } | {
423
+ lastShownAt: number;
424
+ waitingForResponse: true;
425
+ ignoredCount: number;
426
+ } | undefined;
427
+ userClaimedAiCredits?: boolean | undefined;
428
+ } | null | undefined;
429
+ personalizationAnswers?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
430
+ lastActive?: string | undefined;
431
+ lastActiveAt?: string | null | undefined;
91
432
  }[];
92
433
  }>;
434
+ export type User = z.infer<typeof userListItemSchema>;
93
435
  export type UsersList = z.infer<typeof usersListSchema>;
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.usersListSchema = exports.userListItemSchema = exports.roleSchema = exports.ROLE = void 0;
3
+ exports.usersListSchema = exports.userListItemSchema = exports.userProjectSchema = exports.roleSchema = exports.ROLE = void 0;
4
+ const permissions_1 = require("@n8n/permissions");
4
5
  const zod_1 = require("zod");
6
+ const user_settings_schema_1 = require("./user-settings.schema");
5
7
  exports.ROLE = {
6
8
  Owner: 'global:owner',
7
9
  Member: 'global:member',
@@ -10,18 +12,29 @@ exports.ROLE = {
10
12
  };
11
13
  const roleValuesForSchema = Object.values(exports.ROLE);
12
14
  exports.roleSchema = zod_1.z.enum(roleValuesForSchema);
15
+ exports.userProjectSchema = zod_1.z.object({
16
+ id: zod_1.z.string(),
17
+ role: permissions_1.projectRoleSchema,
18
+ name: zod_1.z.string(),
19
+ });
13
20
  exports.userListItemSchema = zod_1.z.object({
14
21
  id: zod_1.z.string(),
15
- firstName: zod_1.z.string().nullable(),
16
- lastName: zod_1.z.string().nullable(),
17
- email: zod_1.z.string().email().nullable(),
18
- role: exports.roleSchema,
19
- isPending: zod_1.z.boolean(),
20
- lastActive: zod_1.z.string().nullable(),
21
- projects: zod_1.z.array(zod_1.z.string()).nullable(),
22
+ firstName: zod_1.z.string().nullable().optional(),
23
+ lastName: zod_1.z.string().nullable().optional(),
24
+ email: zod_1.z.string().email().nullable().optional(),
25
+ role: exports.roleSchema.optional(),
26
+ isPending: zod_1.z.boolean().optional(),
27
+ isOwner: zod_1.z.boolean().optional(),
28
+ signInType: zod_1.z.string().optional(),
29
+ settings: user_settings_schema_1.userSettingsSchema.nullable().optional(),
30
+ personalizationAnswers: zod_1.z.object({}).passthrough().nullable().optional(),
31
+ lastActive: zod_1.z.string().optional(),
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(),
22
35
  });
23
36
  exports.usersListSchema = zod_1.z.object({
24
37
  count: zod_1.z.number(),
25
- data: zod_1.z.array(exports.userListItemSchema),
38
+ items: zod_1.z.array(exports.userListItemSchema),
26
39
  });
27
40
  //# sourceMappingURL=user.schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"user.schema.js","sourceRoot":"","sources":["../../src/schemas/user.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,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,kBAAkB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,SAAS,EAAE,OAAC,CAAC,M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-types",
3
- "version": "0.33.0",
3
+ "version": "0.35.0",
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.2.0",
14
- "@n8n/config": "1.43.0"
14
+ "@n8n/config": "1.44.0"
15
15
  },
16
16
  "dependencies": {
17
17
  "xss": "1.0.15",
18
- "zod": "3.24.1",
18
+ "zod": "3.25.67",
19
19
  "zod-class": "0.0.16",
20
- "n8n-workflow": "1.96.0",
21
- "@n8n/permissions": "0.28.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",