@n8n/api-types 0.36.1 → 0.38.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.
@@ -12,13 +12,13 @@ export declare const userProjectSchema: z.ZodObject<{
12
12
  role: z.ZodEnum<["project:personalOwner", "project:admin", "project:editor", "project:viewer"]>;
13
13
  name: z.ZodString;
14
14
  }, "strip", z.ZodTypeAny, {
15
+ role: "project:personalOwner" | "project:admin" | "project:editor" | "project:viewer";
15
16
  id: string;
16
17
  name: string;
17
- role: "project:personalOwner" | "project:admin" | "project:editor" | "project:viewer";
18
18
  }, {
19
+ role: "project:personalOwner" | "project:admin" | "project:editor" | "project:viewer";
19
20
  id: string;
20
21
  name: string;
21
- role: "project:personalOwner" | "project:admin" | "project:editor" | "project:viewer";
22
22
  }>;
23
23
  export declare const userListItemSchema: z.ZodObject<{
24
24
  id: z.ZodString;
@@ -96,19 +96,18 @@ export declare const userListItemSchema: z.ZodObject<{
96
96
  userClaimedAiCredits?: boolean | undefined;
97
97
  }>>>;
98
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
99
  projectRelations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
101
100
  id: z.ZodString;
102
101
  role: z.ZodEnum<["project:personalOwner", "project:admin", "project:editor", "project:viewer"]>;
103
102
  name: z.ZodString;
104
103
  }, "strip", z.ZodTypeAny, {
104
+ role: "project:personalOwner" | "project:admin" | "project:editor" | "project:viewer";
105
105
  id: string;
106
106
  name: string;
107
- role: "project:personalOwner" | "project:admin" | "project:editor" | "project:viewer";
108
107
  }, {
108
+ role: "project:personalOwner" | "project:admin" | "project:editor" | "project:viewer";
109
109
  id: string;
110
110
  name: string;
111
- role: "project:personalOwner" | "project:admin" | "project:editor" | "project:viewer";
112
111
  }>, "many">>>;
113
112
  mfaEnabled: z.ZodOptional<z.ZodBoolean>;
114
113
  lastActiveAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -117,17 +116,6 @@ export declare const userListItemSchema: z.ZodObject<{
117
116
  id: string;
118
117
  email?: string | null | undefined;
119
118
  role?: Role | undefined;
120
- firstName?: string | null | undefined;
121
- lastName?: string | null | undefined;
122
- mfaEnabled?: boolean | undefined;
123
- isOwner?: boolean | undefined;
124
- projectRelations?: {
125
- id: string;
126
- name: string;
127
- role: "project:personalOwner" | "project:admin" | "project:editor" | "project:viewer";
128
- }[] | null | undefined;
129
- isPending?: boolean | undefined;
130
- signInType?: string | undefined;
131
119
  settings?: {
132
120
  userActivated?: boolean | undefined;
133
121
  allowSSOManualLogin?: boolean | undefined;
@@ -146,25 +134,24 @@ export declare const userListItemSchema: z.ZodObject<{
146
134
  } | undefined;
147
135
  userClaimedAiCredits?: boolean | undefined;
148
136
  } | null | undefined;
149
- personalizationAnswers?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
150
- lastActive?: string | undefined;
151
- lastActiveAt?: string | null | undefined;
152
- inviteAcceptUrl?: string | undefined;
153
- }, {
154
- id: string;
155
- email?: string | null | undefined;
156
- role?: Role | undefined;
157
137
  firstName?: string | null | undefined;
158
138
  lastName?: string | null | undefined;
159
139
  mfaEnabled?: boolean | undefined;
160
140
  isOwner?: boolean | undefined;
161
141
  projectRelations?: {
142
+ role: "project:personalOwner" | "project:admin" | "project:editor" | "project:viewer";
162
143
  id: string;
163
144
  name: string;
164
- role: "project:personalOwner" | "project:admin" | "project:editor" | "project:viewer";
165
145
  }[] | null | undefined;
166
146
  isPending?: boolean | undefined;
167
147
  signInType?: string | undefined;
148
+ personalizationAnswers?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
149
+ lastActiveAt?: string | null | undefined;
150
+ inviteAcceptUrl?: string | undefined;
151
+ }, {
152
+ id: string;
153
+ email?: string | null | undefined;
154
+ role?: Role | undefined;
168
155
  settings?: {
169
156
  userActivated?: boolean | undefined;
170
157
  allowSSOManualLogin?: boolean | undefined;
@@ -183,8 +170,18 @@ export declare const userListItemSchema: z.ZodObject<{
183
170
  } | undefined;
184
171
  userClaimedAiCredits?: boolean | undefined;
185
172
  } | null | undefined;
173
+ firstName?: string | null | undefined;
174
+ lastName?: string | null | undefined;
175
+ mfaEnabled?: boolean | undefined;
176
+ isOwner?: boolean | undefined;
177
+ projectRelations?: {
178
+ role: "project:personalOwner" | "project:admin" | "project:editor" | "project:viewer";
179
+ id: string;
180
+ name: string;
181
+ }[] | null | undefined;
182
+ isPending?: boolean | undefined;
183
+ signInType?: string | undefined;
186
184
  personalizationAnswers?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
187
- lastActive?: string | undefined;
188
185
  lastActiveAt?: string | null | undefined;
189
186
  inviteAcceptUrl?: string | undefined;
190
187
  }>;
@@ -266,19 +263,18 @@ export declare const usersListSchema: z.ZodObject<{
266
263
  userClaimedAiCredits?: boolean | undefined;
267
264
  }>>>;
268
265
  personalizationAnswers: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
269
- lastActive: z.ZodOptional<z.ZodString>;
270
266
  projectRelations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
271
267
  id: z.ZodString;
272
268
  role: z.ZodEnum<["project:personalOwner", "project:admin", "project:editor", "project:viewer"]>;
273
269
  name: z.ZodString;
274
270
  }, "strip", z.ZodTypeAny, {
271
+ role: "project:personalOwner" | "project:admin" | "project:editor" | "project:viewer";
275
272
  id: string;
276
273
  name: string;
277
- role: "project:personalOwner" | "project:admin" | "project:editor" | "project:viewer";
278
274
  }, {
275
+ role: "project:personalOwner" | "project:admin" | "project:editor" | "project:viewer";
279
276
  id: string;
280
277
  name: string;
281
- role: "project:personalOwner" | "project:admin" | "project:editor" | "project:viewer";
282
278
  }>, "many">>>;
283
279
  mfaEnabled: z.ZodOptional<z.ZodBoolean>;
284
280
  lastActiveAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -287,17 +283,6 @@ export declare const usersListSchema: z.ZodObject<{
287
283
  id: string;
288
284
  email?: string | null | undefined;
289
285
  role?: Role | undefined;
290
- firstName?: string | null | undefined;
291
- lastName?: string | null | undefined;
292
- mfaEnabled?: boolean | undefined;
293
- isOwner?: boolean | undefined;
294
- projectRelations?: {
295
- id: string;
296
- name: string;
297
- role: "project:personalOwner" | "project:admin" | "project:editor" | "project:viewer";
298
- }[] | null | undefined;
299
- isPending?: boolean | undefined;
300
- signInType?: string | undefined;
301
286
  settings?: {
302
287
  userActivated?: boolean | undefined;
303
288
  allowSSOManualLogin?: boolean | undefined;
@@ -316,25 +301,24 @@ export declare const usersListSchema: z.ZodObject<{
316
301
  } | undefined;
317
302
  userClaimedAiCredits?: boolean | undefined;
318
303
  } | null | undefined;
319
- personalizationAnswers?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
320
- lastActive?: string | undefined;
321
- lastActiveAt?: string | null | undefined;
322
- inviteAcceptUrl?: string | undefined;
323
- }, {
324
- id: string;
325
- email?: string | null | undefined;
326
- role?: Role | undefined;
327
304
  firstName?: string | null | undefined;
328
305
  lastName?: string | null | undefined;
329
306
  mfaEnabled?: boolean | undefined;
330
307
  isOwner?: boolean | undefined;
331
308
  projectRelations?: {
309
+ role: "project:personalOwner" | "project:admin" | "project:editor" | "project:viewer";
332
310
  id: string;
333
311
  name: string;
334
- role: "project:personalOwner" | "project:admin" | "project:editor" | "project:viewer";
335
312
  }[] | null | undefined;
336
313
  isPending?: boolean | undefined;
337
314
  signInType?: string | undefined;
315
+ personalizationAnswers?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
316
+ lastActiveAt?: string | null | undefined;
317
+ inviteAcceptUrl?: string | undefined;
318
+ }, {
319
+ id: string;
320
+ email?: string | null | undefined;
321
+ role?: Role | undefined;
338
322
  settings?: {
339
323
  userActivated?: boolean | undefined;
340
324
  allowSSOManualLogin?: boolean | undefined;
@@ -353,28 +337,27 @@ export declare const usersListSchema: z.ZodObject<{
353
337
  } | undefined;
354
338
  userClaimedAiCredits?: boolean | undefined;
355
339
  } | null | undefined;
356
- personalizationAnswers?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
357
- lastActive?: string | undefined;
358
- lastActiveAt?: string | null | undefined;
359
- inviteAcceptUrl?: string | undefined;
360
- }>, "many">;
361
- }, "strip", z.ZodTypeAny, {
362
- count: number;
363
- items: {
364
- id: string;
365
- email?: string | null | undefined;
366
- role?: Role | undefined;
367
340
  firstName?: string | null | undefined;
368
341
  lastName?: string | null | undefined;
369
342
  mfaEnabled?: boolean | undefined;
370
343
  isOwner?: boolean | undefined;
371
344
  projectRelations?: {
345
+ role: "project:personalOwner" | "project:admin" | "project:editor" | "project:viewer";
372
346
  id: string;
373
347
  name: string;
374
- role: "project:personalOwner" | "project:admin" | "project:editor" | "project:viewer";
375
348
  }[] | null | undefined;
376
349
  isPending?: boolean | undefined;
377
350
  signInType?: string | undefined;
351
+ personalizationAnswers?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
352
+ lastActiveAt?: string | null | undefined;
353
+ inviteAcceptUrl?: string | undefined;
354
+ }>, "many">;
355
+ }, "strip", z.ZodTypeAny, {
356
+ count: number;
357
+ items: {
358
+ id: string;
359
+ email?: string | null | undefined;
360
+ role?: Role | undefined;
378
361
  settings?: {
379
362
  userActivated?: boolean | undefined;
380
363
  allowSSOManualLogin?: boolean | undefined;
@@ -393,28 +376,27 @@ export declare const usersListSchema: z.ZodObject<{
393
376
  } | undefined;
394
377
  userClaimedAiCredits?: boolean | undefined;
395
378
  } | null | undefined;
396
- personalizationAnswers?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
397
- lastActive?: string | undefined;
398
- lastActiveAt?: string | null | undefined;
399
- inviteAcceptUrl?: string | undefined;
400
- }[];
401
- }, {
402
- count: number;
403
- items: {
404
- id: string;
405
- email?: string | null | undefined;
406
- role?: Role | undefined;
407
379
  firstName?: string | null | undefined;
408
380
  lastName?: string | null | undefined;
409
381
  mfaEnabled?: boolean | undefined;
410
382
  isOwner?: boolean | undefined;
411
383
  projectRelations?: {
384
+ role: "project:personalOwner" | "project:admin" | "project:editor" | "project:viewer";
412
385
  id: string;
413
386
  name: string;
414
- role: "project:personalOwner" | "project:admin" | "project:editor" | "project:viewer";
415
387
  }[] | null | undefined;
416
388
  isPending?: boolean | undefined;
417
389
  signInType?: string | undefined;
390
+ personalizationAnswers?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
391
+ lastActiveAt?: string | null | undefined;
392
+ inviteAcceptUrl?: string | undefined;
393
+ }[];
394
+ }, {
395
+ count: number;
396
+ items: {
397
+ id: string;
398
+ email?: string | null | undefined;
399
+ role?: Role | undefined;
418
400
  settings?: {
419
401
  userActivated?: boolean | undefined;
420
402
  allowSSOManualLogin?: boolean | undefined;
@@ -433,8 +415,18 @@ export declare const usersListSchema: z.ZodObject<{
433
415
  } | undefined;
434
416
  userClaimedAiCredits?: boolean | undefined;
435
417
  } | null | undefined;
418
+ firstName?: string | null | undefined;
419
+ lastName?: string | null | undefined;
420
+ mfaEnabled?: boolean | undefined;
421
+ isOwner?: boolean | undefined;
422
+ projectRelations?: {
423
+ role: "project:personalOwner" | "project:admin" | "project:editor" | "project:viewer";
424
+ id: string;
425
+ name: string;
426
+ }[] | null | undefined;
427
+ isPending?: boolean | undefined;
428
+ signInType?: string | undefined;
436
429
  personalizationAnswers?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
437
- lastActive?: string | undefined;
438
430
  lastActiveAt?: string | null | undefined;
439
431
  inviteAcceptUrl?: string | undefined;
440
432
  }[];
@@ -28,7 +28,6 @@ exports.userListItemSchema = zod_1.z.object({
28
28
  signInType: zod_1.z.string().optional(),
29
29
  settings: user_settings_schema_1.userSettingsSchema.nullable().optional(),
30
30
  personalizationAnswers: zod_1.z.object({}).passthrough().nullable().optional(),
31
- lastActive: zod_1.z.string().optional(),
32
31
  projectRelations: zod_1.z.array(exports.userProjectSchema).nullable().optional(),
33
32
  mfaEnabled: zod_1.z.boolean().optional(),
34
33
  lastActiveAt: zod_1.z.string().nullable().optional(),
@@ -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;I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AY,EAAE,OAAC,CAAC,MAAM,EAAE,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,0BAAkB,CAAC;CAClC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@n8n/api-types",
3
- "version": "0.36.1",
3
+ "version": "0.38.0",
4
4
  "main": "dist/index.js",
5
5
  "module": "src/index.ts",
6
6
  "types": "dist/index.d.ts",
@@ -11,13 +11,13 @@
11
11
  ],
12
12
  "devDependencies": {
13
13
  "@n8n/typescript-config": "1.3.0",
14
- "@n8n/config": "1.45.0"
14
+ "@n8n/config": "1.47.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.99.1",
20
+ "n8n-workflow": "1.101.0",
21
21
  "@n8n/permissions": "0.30.0"
22
22
  },
23
23
  "license": "SEE LICENSE IN LICENSE.md",