@n8n/api-types 1.40.0 → 1.41.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.
Files changed (127) hide show
  1. package/dist/agents/types.d.ts +2 -0
  2. package/dist/agents/types.js.map +1 -1
  3. package/dist/build.tsbuildinfo +1 -1
  4. package/dist/dto/credentials/create-credential.dto.d.ts +2 -0
  5. package/dist/dto/credentials/create-credential.dto.js +2 -0
  6. package/dist/dto/credentials/create-credential.dto.js.map +1 -1
  7. package/dist/dto/credentials/credential-public.dto.d.ts +26 -2
  8. package/dist/dto/credentials/credential-public.dto.js +31 -2
  9. package/dist/dto/credentials/credential-public.dto.js.map +1 -1
  10. package/dist/dto/credentials/test-credential-request.dto.d.ts +29 -0
  11. package/dist/dto/credentials/test-credential-request.dto.js +16 -0
  12. package/dist/dto/credentials/test-credential-request.dto.js.map +1 -0
  13. package/dist/dto/executions/compare-execution-list-items.d.ts +7 -0
  14. package/dist/dto/executions/compare-execution-list-items.js +20 -0
  15. package/dist/dto/executions/compare-execution-list-items.js.map +1 -0
  16. package/dist/dto/executions/execution-list-pagination.d.ts +9 -0
  17. package/dist/dto/executions/execution-list-pagination.js +3 -0
  18. package/dist/dto/executions/execution-list-pagination.js.map +1 -0
  19. package/dist/dto/folders/folder-public.dto.d.ts +421 -0
  20. package/dist/dto/folders/folder-public.dto.js +75 -0
  21. package/dist/dto/folders/folder-public.dto.js.map +1 -0
  22. package/dist/dto/folders/folder-public.openapi.d.ts +82 -0
  23. package/dist/dto/folders/folder-public.openapi.js +56 -0
  24. package/dist/dto/folders/folder-public.openapi.js.map +1 -0
  25. package/dist/dto/folders/list-folder-query.dto.d.ts +11 -0
  26. package/dist/dto/folders/list-folder-query.dto.js +14 -18
  27. package/dist/dto/folders/list-folder-query.dto.js.map +1 -1
  28. package/dist/dto/index.d.ts +20 -16
  29. package/dist/dto/index.js +48 -20
  30. package/dist/dto/index.js.map +1 -1
  31. package/dist/dto/insights/insights-summary-public.dto.d.ts +109 -0
  32. package/dist/dto/insights/insights-summary-public.dto.js +33 -0
  33. package/dist/dto/insights/insights-summary-public.dto.js.map +1 -0
  34. package/dist/dto/insights/insights-summary-public.openapi.d.ts +12 -0
  35. package/dist/dto/insights/insights-summary-public.openapi.js +12 -0
  36. package/dist/dto/insights/insights-summary-public.openapi.js.map +1 -0
  37. package/dist/dto/promotions/promotable-resource.dto.d.ts +101 -0
  38. package/dist/dto/promotions/promotable-resource.dto.js +8 -1
  39. package/dist/dto/promotions/promotable-resource.dto.js.map +1 -1
  40. package/dist/dto/promotions/promotion-binding-preflight.dto.d.ts +3842 -0
  41. package/dist/dto/promotions/promotion-binding-preflight.dto.js +120 -0
  42. package/dist/dto/promotions/promotion-binding-preflight.dto.js.map +1 -0
  43. package/dist/dto/promotions/promotion-config.dto.d.ts +360 -0
  44. package/dist/dto/promotions/promotion-config.dto.js +16 -1
  45. package/dist/dto/promotions/promotion-config.dto.js.map +1 -1
  46. package/dist/dto/promotions/promotion-connection.dto.d.ts +442 -12
  47. package/dist/dto/promotions/promotion-connection.dto.js +5 -2
  48. package/dist/dto/promotions/promotion-connection.dto.js.map +1 -1
  49. package/dist/dto/promotions/promotion-operations.dto.d.ts +4893 -285
  50. package/dist/dto/promotions/promotion-operations.dto.js +33 -6
  51. package/dist/dto/promotions/promotion-operations.dto.js.map +1 -1
  52. package/dist/dto/tag/tag-public.dto.d.ts +26 -0
  53. package/dist/dto/tag/tag-public.dto.js +14 -3
  54. package/dist/dto/tag/tag-public.dto.js.map +1 -1
  55. package/dist/dto/type-availability-policies/create-policy-document.dto.js.map +1 -0
  56. package/dist/dto/type-availability-policies/node-type-policy-public.dto.d.ts +565 -0
  57. package/dist/dto/type-availability-policies/node-type-policy-public.dto.js +70 -0
  58. package/dist/dto/type-availability-policies/node-type-policy-public.dto.js.map +1 -0
  59. package/dist/dto/type-availability-policies/policy-rule.schema.js.map +1 -0
  60. package/dist/dto/type-availability-policies/policy-rule.types.js.map +1 -0
  61. package/dist/dto/type-availability-policies/policy-selector.schema.js.map +1 -0
  62. package/dist/dto/type-availability-policies/put-instance-policy.dto.js.map +1 -0
  63. package/dist/dto/type-availability-policies/put-project-policy.dto.js.map +1 -0
  64. package/dist/dto/type-availability-policies/replace-attachments.dto.js.map +1 -0
  65. package/dist/dto/type-availability-policies/update-policy-document.dto.js.map +1 -0
  66. package/dist/dto/user/user-update-request.dto.d.ts +0 -6
  67. package/dist/dto/user/user-update-request.dto.js +0 -3
  68. package/dist/dto/user/user-update-request.dto.js.map +1 -1
  69. package/dist/frontend-settings.d.ts +1 -0
  70. package/dist/index.d.ts +12 -8
  71. package/dist/index.js +36 -8
  72. package/dist/index.js.map +1 -1
  73. package/dist/push/agents.d.ts +2 -0
  74. package/dist/schemas/agent-run-reducer.js +7 -1
  75. package/dist/schemas/agent-run-reducer.js.map +1 -1
  76. package/dist/schemas/ai-preference.schema.d.ts +4 -0
  77. package/dist/schemas/ai-preference.schema.js +5 -2
  78. package/dist/schemas/ai-preference.schema.js.map +1 -1
  79. package/dist/schemas/credential-description.schema.d.ts +3 -0
  80. package/dist/schemas/credential-description.schema.js +14 -0
  81. package/dist/schemas/credential-description.schema.js.map +1 -0
  82. package/dist/schemas/instance-ai-approval.schema.d.ts +380 -0
  83. package/dist/schemas/instance-ai-approval.schema.js +77 -0
  84. package/dist/schemas/instance-ai-approval.schema.js.map +1 -0
  85. package/dist/schemas/instance-ai.schema.d.ts +1766 -121
  86. package/dist/schemas/instance-ai.schema.js +171 -14
  87. package/dist/schemas/instance-ai.schema.js.map +1 -1
  88. package/dist/schemas/llm-step-display.d.ts +1 -0
  89. package/dist/schemas/llm-step-display.js +16 -5
  90. package/dist/schemas/llm-step-display.js.map +1 -1
  91. package/dist/schemas/mcp.schema.d.ts +1 -2
  92. package/dist/schemas/mcp.schema.js +3 -2
  93. package/dist/schemas/mcp.schema.js.map +1 -1
  94. package/dist/schemas/public-api-path-params.schema.d.ts +4 -0
  95. package/dist/schemas/public-api-path-params.schema.js +10 -4
  96. package/dist/schemas/public-api-path-params.schema.js.map +1 -1
  97. package/package.json +3 -3
  98. package/dist/dto/instance-ai-examples/instance-ai-examples-query.dto.d.ts +0 -15
  99. package/dist/dto/instance-ai-examples/instance-ai-examples-query.dto.js +0 -28
  100. package/dist/dto/instance-ai-examples/instance-ai-examples-query.dto.js.map +0 -1
  101. package/dist/dto/node-type-policies/create-policy-document.dto.js.map +0 -1
  102. package/dist/dto/node-type-policies/node-type-policy-public.dto.d.ts +0 -146
  103. package/dist/dto/node-type-policies/node-type-policy-public.dto.js +0 -27
  104. package/dist/dto/node-type-policies/node-type-policy-public.dto.js.map +0 -1
  105. package/dist/dto/node-type-policies/policy-rule.schema.js.map +0 -1
  106. package/dist/dto/node-type-policies/policy-rule.types.js.map +0 -1
  107. package/dist/dto/node-type-policies/policy-selector.schema.js.map +0 -1
  108. package/dist/dto/node-type-policies/put-instance-policy.dto.js.map +0 -1
  109. package/dist/dto/node-type-policies/put-project-policy.dto.js.map +0 -1
  110. package/dist/dto/node-type-policies/replace-attachments.dto.js.map +0 -1
  111. package/dist/dto/node-type-policies/update-policy-document.dto.js.map +0 -1
  112. /package/dist/dto/{node-type-policies → type-availability-policies}/create-policy-document.dto.d.ts +0 -0
  113. /package/dist/dto/{node-type-policies → type-availability-policies}/create-policy-document.dto.js +0 -0
  114. /package/dist/dto/{node-type-policies → type-availability-policies}/policy-rule.schema.d.ts +0 -0
  115. /package/dist/dto/{node-type-policies → type-availability-policies}/policy-rule.schema.js +0 -0
  116. /package/dist/dto/{node-type-policies → type-availability-policies}/policy-rule.types.d.ts +0 -0
  117. /package/dist/dto/{node-type-policies → type-availability-policies}/policy-rule.types.js +0 -0
  118. /package/dist/dto/{node-type-policies → type-availability-policies}/policy-selector.schema.d.ts +0 -0
  119. /package/dist/dto/{node-type-policies → type-availability-policies}/policy-selector.schema.js +0 -0
  120. /package/dist/dto/{node-type-policies → type-availability-policies}/put-instance-policy.dto.d.ts +0 -0
  121. /package/dist/dto/{node-type-policies → type-availability-policies}/put-instance-policy.dto.js +0 -0
  122. /package/dist/dto/{node-type-policies → type-availability-policies}/put-project-policy.dto.d.ts +0 -0
  123. /package/dist/dto/{node-type-policies → type-availability-policies}/put-project-policy.dto.js +0 -0
  124. /package/dist/dto/{node-type-policies → type-availability-policies}/replace-attachments.dto.d.ts +0 -0
  125. /package/dist/dto/{node-type-policies → type-availability-policies}/replace-attachments.dto.js +0 -0
  126. /package/dist/dto/{node-type-policies → type-availability-policies}/update-policy-document.dto.d.ts +0 -0
  127. /package/dist/dto/{node-type-policies → type-availability-policies}/update-policy-document.dto.js +0 -0
@@ -0,0 +1,421 @@
1
+ import '../../openapi-extend';
2
+ import { z } from 'zod';
3
+ export declare const folderPublicSchema: z.ZodObject<{
4
+ id: z.ZodString;
5
+ name: z.ZodOptional<z.ZodString>;
6
+ parentFolderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ createdAt: z.ZodOptional<z.ZodString>;
8
+ updatedAt: z.ZodOptional<z.ZodString>;
9
+ homeProject: z.ZodOptional<z.ZodObject<{
10
+ id: z.ZodString;
11
+ name: z.ZodString;
12
+ type: z.ZodString;
13
+ icon: z.ZodType<{
14
+ type: "emoji" | "icon";
15
+ value: string;
16
+ color?: string | undefined;
17
+ } | null, z.ZodTypeDef, {
18
+ type: "emoji" | "icon";
19
+ value: string;
20
+ color?: string | undefined;
21
+ } | null>;
22
+ }, "strip", z.ZodTypeAny, {
23
+ id: string;
24
+ name: string;
25
+ type: string;
26
+ icon: {
27
+ type: "emoji" | "icon";
28
+ value: string;
29
+ color?: string | undefined;
30
+ } | null;
31
+ }, {
32
+ id: string;
33
+ name: string;
34
+ type: string;
35
+ icon: {
36
+ type: "emoji" | "icon";
37
+ value: string;
38
+ color?: string | undefined;
39
+ } | null;
40
+ }>>;
41
+ parentFolder: z.ZodOptional<z.ZodNullable<z.ZodObject<{
42
+ id: z.ZodString;
43
+ name: z.ZodString;
44
+ parentFolderId: z.ZodNullable<z.ZodString>;
45
+ }, "strip", z.ZodTypeAny, {
46
+ id: string;
47
+ name: string;
48
+ parentFolderId: string | null;
49
+ }, {
50
+ id: string;
51
+ name: string;
52
+ parentFolderId: string | null;
53
+ }>>>;
54
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
55
+ id: z.ZodString;
56
+ name: z.ZodString;
57
+ }, "strip", z.ZodTypeAny, {
58
+ id: string;
59
+ name: string;
60
+ }, {
61
+ id: string;
62
+ name: string;
63
+ }>, "many">>;
64
+ workflowCount: z.ZodOptional<z.ZodNumber>;
65
+ subFolderCount: z.ZodOptional<z.ZodNumber>;
66
+ path: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
67
+ }, "strip", z.ZodTypeAny, {
68
+ id: string;
69
+ name?: string | undefined;
70
+ parentFolderId?: string | null | undefined;
71
+ createdAt?: string | undefined;
72
+ updatedAt?: string | undefined;
73
+ homeProject?: {
74
+ id: string;
75
+ name: string;
76
+ type: string;
77
+ icon: {
78
+ type: "emoji" | "icon";
79
+ value: string;
80
+ color?: string | undefined;
81
+ } | null;
82
+ } | undefined;
83
+ parentFolder?: {
84
+ id: string;
85
+ name: string;
86
+ parentFolderId: string | null;
87
+ } | null | undefined;
88
+ tags?: {
89
+ id: string;
90
+ name: string;
91
+ }[] | undefined;
92
+ workflowCount?: number | undefined;
93
+ subFolderCount?: number | undefined;
94
+ path?: string[] | undefined;
95
+ }, {
96
+ id: string;
97
+ name?: string | undefined;
98
+ parentFolderId?: string | null | undefined;
99
+ createdAt?: string | undefined;
100
+ updatedAt?: string | undefined;
101
+ homeProject?: {
102
+ id: string;
103
+ name: string;
104
+ type: string;
105
+ icon: {
106
+ type: "emoji" | "icon";
107
+ value: string;
108
+ color?: string | undefined;
109
+ } | null;
110
+ } | undefined;
111
+ parentFolder?: {
112
+ id: string;
113
+ name: string;
114
+ parentFolderId: string | null;
115
+ } | null | undefined;
116
+ tags?: {
117
+ id: string;
118
+ name: string;
119
+ }[] | undefined;
120
+ workflowCount?: number | undefined;
121
+ subFolderCount?: number | undefined;
122
+ path?: string[] | undefined;
123
+ }>;
124
+ export type FolderPublic = z.infer<typeof folderPublicSchema>;
125
+ declare const FolderPublicDto_base: import("../../zod-class").ZodClass<{
126
+ id: string;
127
+ name?: string | undefined;
128
+ parentFolderId?: string | null | undefined;
129
+ createdAt?: string | undefined;
130
+ updatedAt?: string | undefined;
131
+ homeProject?: {
132
+ id: string;
133
+ name: string;
134
+ type: string;
135
+ icon: {
136
+ type: "emoji" | "icon";
137
+ value: string;
138
+ color?: string | undefined;
139
+ } | null;
140
+ } | undefined;
141
+ parentFolder?: {
142
+ id: string;
143
+ name: string;
144
+ parentFolderId: string | null;
145
+ } | null | undefined;
146
+ tags?: {
147
+ id: string;
148
+ name: string;
149
+ }[] | undefined;
150
+ workflowCount?: number | undefined;
151
+ subFolderCount?: number | undefined;
152
+ path?: string[] | undefined;
153
+ }, {
154
+ id: z.ZodString;
155
+ name: z.ZodOptional<z.ZodString>;
156
+ parentFolderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
157
+ createdAt: z.ZodOptional<z.ZodString>;
158
+ updatedAt: z.ZodOptional<z.ZodString>;
159
+ homeProject: z.ZodOptional<z.ZodObject<{
160
+ id: z.ZodString;
161
+ name: z.ZodString;
162
+ type: z.ZodString;
163
+ icon: z.ZodType<{
164
+ type: "emoji" | "icon";
165
+ value: string;
166
+ color?: string | undefined;
167
+ } | null, z.ZodTypeDef, {
168
+ type: "emoji" | "icon";
169
+ value: string;
170
+ color?: string | undefined;
171
+ } | null>;
172
+ }, "strip", z.ZodTypeAny, {
173
+ id: string;
174
+ name: string;
175
+ type: string;
176
+ icon: {
177
+ type: "emoji" | "icon";
178
+ value: string;
179
+ color?: string | undefined;
180
+ } | null;
181
+ }, {
182
+ id: string;
183
+ name: string;
184
+ type: string;
185
+ icon: {
186
+ type: "emoji" | "icon";
187
+ value: string;
188
+ color?: string | undefined;
189
+ } | null;
190
+ }>>;
191
+ parentFolder: z.ZodOptional<z.ZodNullable<z.ZodObject<{
192
+ id: z.ZodString;
193
+ name: z.ZodString;
194
+ parentFolderId: z.ZodNullable<z.ZodString>;
195
+ }, "strip", z.ZodTypeAny, {
196
+ id: string;
197
+ name: string;
198
+ parentFolderId: string | null;
199
+ }, {
200
+ id: string;
201
+ name: string;
202
+ parentFolderId: string | null;
203
+ }>>>;
204
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
205
+ id: z.ZodString;
206
+ name: z.ZodString;
207
+ }, "strip", z.ZodTypeAny, {
208
+ id: string;
209
+ name: string;
210
+ }, {
211
+ id: string;
212
+ name: string;
213
+ }>, "many">>;
214
+ workflowCount: z.ZodOptional<z.ZodNumber>;
215
+ subFolderCount: z.ZodOptional<z.ZodNumber>;
216
+ path: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
217
+ }>;
218
+ export declare class FolderPublicDto extends FolderPublicDto_base {
219
+ }
220
+ declare const FolderListPublicDto_base: import("../../zod-class").ZodClass<{
221
+ count: number;
222
+ data: {
223
+ id: string;
224
+ name?: string | undefined;
225
+ parentFolderId?: string | null | undefined;
226
+ createdAt?: string | undefined;
227
+ updatedAt?: string | undefined;
228
+ homeProject?: {
229
+ id: string;
230
+ name: string;
231
+ type: string;
232
+ icon: {
233
+ type: "emoji" | "icon";
234
+ value: string;
235
+ color?: string | undefined;
236
+ } | null;
237
+ } | undefined;
238
+ parentFolder?: {
239
+ id: string;
240
+ name: string;
241
+ parentFolderId: string | null;
242
+ } | null | undefined;
243
+ tags?: {
244
+ id: string;
245
+ name: string;
246
+ }[] | undefined;
247
+ workflowCount?: number | undefined;
248
+ subFolderCount?: number | undefined;
249
+ path?: string[] | undefined;
250
+ }[];
251
+ }, {
252
+ count: z.ZodNumber;
253
+ data: z.ZodArray<z.ZodObject<{
254
+ id: z.ZodString;
255
+ name: z.ZodOptional<z.ZodString>;
256
+ parentFolderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
257
+ createdAt: z.ZodOptional<z.ZodString>;
258
+ updatedAt: z.ZodOptional<z.ZodString>;
259
+ homeProject: z.ZodOptional<z.ZodObject<{
260
+ id: z.ZodString;
261
+ name: z.ZodString;
262
+ type: z.ZodString;
263
+ icon: z.ZodType<{
264
+ type: "emoji" | "icon";
265
+ value: string;
266
+ color?: string | undefined;
267
+ } | null, z.ZodTypeDef, {
268
+ type: "emoji" | "icon";
269
+ value: string;
270
+ color?: string | undefined;
271
+ } | null>;
272
+ }, "strip", z.ZodTypeAny, {
273
+ id: string;
274
+ name: string;
275
+ type: string;
276
+ icon: {
277
+ type: "emoji" | "icon";
278
+ value: string;
279
+ color?: string | undefined;
280
+ } | null;
281
+ }, {
282
+ id: string;
283
+ name: string;
284
+ type: string;
285
+ icon: {
286
+ type: "emoji" | "icon";
287
+ value: string;
288
+ color?: string | undefined;
289
+ } | null;
290
+ }>>;
291
+ parentFolder: z.ZodOptional<z.ZodNullable<z.ZodObject<{
292
+ id: z.ZodString;
293
+ name: z.ZodString;
294
+ parentFolderId: z.ZodNullable<z.ZodString>;
295
+ }, "strip", z.ZodTypeAny, {
296
+ id: string;
297
+ name: string;
298
+ parentFolderId: string | null;
299
+ }, {
300
+ id: string;
301
+ name: string;
302
+ parentFolderId: string | null;
303
+ }>>>;
304
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
305
+ id: z.ZodString;
306
+ name: z.ZodString;
307
+ }, "strip", z.ZodTypeAny, {
308
+ id: string;
309
+ name: string;
310
+ }, {
311
+ id: string;
312
+ name: string;
313
+ }>, "many">>;
314
+ workflowCount: z.ZodOptional<z.ZodNumber>;
315
+ subFolderCount: z.ZodOptional<z.ZodNumber>;
316
+ path: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
317
+ }, "strip", z.ZodTypeAny, {
318
+ id: string;
319
+ name?: string | undefined;
320
+ parentFolderId?: string | null | undefined;
321
+ createdAt?: string | undefined;
322
+ updatedAt?: string | undefined;
323
+ homeProject?: {
324
+ id: string;
325
+ name: string;
326
+ type: string;
327
+ icon: {
328
+ type: "emoji" | "icon";
329
+ value: string;
330
+ color?: string | undefined;
331
+ } | null;
332
+ } | undefined;
333
+ parentFolder?: {
334
+ id: string;
335
+ name: string;
336
+ parentFolderId: string | null;
337
+ } | null | undefined;
338
+ tags?: {
339
+ id: string;
340
+ name: string;
341
+ }[] | undefined;
342
+ workflowCount?: number | undefined;
343
+ subFolderCount?: number | undefined;
344
+ path?: string[] | undefined;
345
+ }, {
346
+ id: string;
347
+ name?: string | undefined;
348
+ parentFolderId?: string | null | undefined;
349
+ createdAt?: string | undefined;
350
+ updatedAt?: string | undefined;
351
+ homeProject?: {
352
+ id: string;
353
+ name: string;
354
+ type: string;
355
+ icon: {
356
+ type: "emoji" | "icon";
357
+ value: string;
358
+ color?: string | undefined;
359
+ } | null;
360
+ } | undefined;
361
+ parentFolder?: {
362
+ id: string;
363
+ name: string;
364
+ parentFolderId: string | null;
365
+ } | null | undefined;
366
+ tags?: {
367
+ id: string;
368
+ name: string;
369
+ }[] | undefined;
370
+ workflowCount?: number | undefined;
371
+ subFolderCount?: number | undefined;
372
+ path?: string[] | undefined;
373
+ }>, "many">;
374
+ }>;
375
+ export declare class FolderListPublicDto extends FolderListPublicDto_base {
376
+ }
377
+ declare const ListFoldersQueryPublicDto_base: import("../../zod-class").ZodClass<{
378
+ filter?: {
379
+ parentFolderId?: string | undefined;
380
+ name?: string | undefined;
381
+ tags?: string[] | undefined;
382
+ excludeFolderIdAndDescendants?: string | undefined;
383
+ } | undefined;
384
+ select?: Record<"createdAt" | "id" | "name" | "parentFolder" | "path" | "project" | "subFolderCount" | "tags" | "updatedAt" | "workflowCount", true> | undefined;
385
+ sortBy?: "createdAt:asc" | "createdAt:desc" | "name:asc" | "name:desc" | "updatedAt:asc" | "updatedAt:desc" | undefined;
386
+ skip: number;
387
+ take: number;
388
+ }, {
389
+ filter: z.ZodEffects<z.ZodOptional<z.ZodString>, {
390
+ parentFolderId?: string | undefined;
391
+ name?: string | undefined;
392
+ tags?: string[] | undefined;
393
+ excludeFolderIdAndDescendants?: string | undefined;
394
+ } | undefined, string | undefined>;
395
+ select: z.ZodEffects<z.ZodOptional<z.ZodString>, Record<"createdAt" | "id" | "name" | "parentFolder" | "path" | "project" | "subFolderCount" | "tags" | "updatedAt" | "workflowCount", true> | undefined, string | undefined>;
396
+ sortBy: z.ZodOptional<z.ZodEnum<["name:asc", "name:desc", "createdAt:asc", "createdAt:desc", "updatedAt:asc", "updatedAt:desc"]>>;
397
+ skip: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, number, string | undefined>, number, string | undefined>;
398
+ take: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, number, string | undefined>, number, string | undefined>;
399
+ }>;
400
+ export declare class ListFoldersQueryPublicDto extends ListFoldersQueryPublicDto_base {
401
+ }
402
+ declare const FolderDetailsPublicDto_base: import("../../zod-class").ZodClass<{
403
+ id: string;
404
+ name: string;
405
+ parentFolderId: string | null;
406
+ createdAt: string;
407
+ updatedAt: string;
408
+ totalSubFolders: number;
409
+ totalWorkflows: number;
410
+ }, {
411
+ id: z.ZodString;
412
+ name: z.ZodString;
413
+ parentFolderId: z.ZodNullable<z.ZodString>;
414
+ createdAt: z.ZodString;
415
+ updatedAt: z.ZodString;
416
+ totalSubFolders: z.ZodNumber;
417
+ totalWorkflows: z.ZodNumber;
418
+ }>;
419
+ export declare class FolderDetailsPublicDto extends FolderDetailsPublicDto_base {
420
+ }
421
+ export {};
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FolderDetailsPublicDto = exports.ListFoldersQueryPublicDto = exports.FolderListPublicDto = exports.FolderPublicDto = exports.folderPublicSchema = void 0;
4
+ require("../../openapi-extend");
5
+ const zod_1 = require("zod");
6
+ const folder_public_openapi_1 = require("./folder-public.openapi");
7
+ const list_folder_query_dto_1 = require("./list-folder-query.dto");
8
+ const object_guard_schema_1 = require("../../schemas/object-guard.schema");
9
+ const project_schema_1 = require("../../schemas/project.schema");
10
+ const zod_class_1 = require("../../zod-class");
11
+ const folderProjectPublicSchema = zod_1.z.object({
12
+ id: zod_1.z.string().openapi(folder_public_openapi_1.folderProjectFieldDocs.id),
13
+ name: zod_1.z.string().openapi(folder_public_openapi_1.folderProjectFieldDocs.name),
14
+ type: zod_1.z
15
+ .string()
16
+ .openapi({ ...folder_public_openapi_1.folderProjectFieldDocs.type, enum: [...project_schema_1.projectTypeSchema.options] }),
17
+ icon: (0, object_guard_schema_1.nullableObjectGuardSchema)().openapi(folder_public_openapi_1.folderProjectIconOpenApi),
18
+ });
19
+ const folderParentPublicSchema = zod_1.z.object({
20
+ id: zod_1.z.string().openapi(folder_public_openapi_1.folderFieldDocs.id),
21
+ name: zod_1.z.string().openapi(folder_public_openapi_1.folderFieldDocs.name),
22
+ parentFolderId: zod_1.z.string().nullable(),
23
+ });
24
+ const folderTagPublicSchema = zod_1.z.object({
25
+ id: zod_1.z.string(),
26
+ name: zod_1.z.string(),
27
+ });
28
+ exports.folderPublicSchema = zod_1.z.object({
29
+ id: zod_1.z.string().openapi(folder_public_openapi_1.folderFieldDocs.id),
30
+ name: zod_1.z.string().optional().openapi(folder_public_openapi_1.folderFieldDocs.name),
31
+ parentFolderId: zod_1.z.string().nullable().optional().openapi(folder_public_openapi_1.folderFieldDocs.parentFolderId),
32
+ createdAt: zod_1.z.string().datetime().optional().openapi(folder_public_openapi_1.folderFieldDocs.createdAt),
33
+ updatedAt: zod_1.z.string().datetime().optional().openapi(folder_public_openapi_1.folderFieldDocs.updatedAt),
34
+ homeProject: folderProjectPublicSchema.optional(),
35
+ parentFolder: folderParentPublicSchema.nullable().optional(),
36
+ tags: zod_1.z.array(folderTagPublicSchema).optional(),
37
+ workflowCount: zod_1.z.number().optional().openapi(folder_public_openapi_1.folderFieldDocs.workflowCount),
38
+ subFolderCount: zod_1.z.number().optional().openapi(folder_public_openapi_1.folderFieldDocs.subFolderCount),
39
+ path: zod_1.z.array(zod_1.z.string()).optional().openapi(folder_public_openapi_1.folderFieldDocs.path),
40
+ });
41
+ class FolderPublicDto extends zod_class_1.Z.class(exports.folderPublicSchema.shape) {
42
+ }
43
+ exports.FolderPublicDto = FolderPublicDto;
44
+ class FolderListPublicDto extends zod_class_1.Z.class({
45
+ count: zod_1.z.number().int().openapi(folder_public_openapi_1.folderListFieldDocs.count),
46
+ data: zod_1.z.array(exports.folderPublicSchema),
47
+ }) {
48
+ }
49
+ exports.FolderListPublicDto = FolderListPublicDto;
50
+ class ListFoldersQueryPublicDto extends zod_class_1.Z.class({
51
+ filter: list_folder_query_dto_1.filterValidator.openapi(folder_public_openapi_1.folderListQueryFieldDocs.filter),
52
+ select: list_folder_query_dto_1.selectValidator.openapi(folder_public_openapi_1.folderListQueryFieldDocs.select),
53
+ sortBy: zod_1.z
54
+ .enum(list_folder_query_dto_1.VALID_SORT_OPTIONS, {
55
+ message: `must be equal to one of the allowed values: ${list_folder_query_dto_1.VALID_SORT_OPTIONS.join(', ')}`,
56
+ })
57
+ .optional()
58
+ .openapi(folder_public_openapi_1.folderListQueryFieldDocs.sortBy),
59
+ skip: list_folder_query_dto_1.skipValidator.openapi(folder_public_openapi_1.folderListQueryFieldDocs.skip),
60
+ take: list_folder_query_dto_1.takeValidator.openapi(folder_public_openapi_1.folderListQueryFieldDocs.take),
61
+ }, { strict: true }) {
62
+ }
63
+ exports.ListFoldersQueryPublicDto = ListFoldersQueryPublicDto;
64
+ class FolderDetailsPublicDto extends zod_class_1.Z.class({
65
+ id: zod_1.z.string().openapi(folder_public_openapi_1.folderFieldDocs.id),
66
+ name: zod_1.z.string().openapi(folder_public_openapi_1.folderFieldDocs.name),
67
+ parentFolderId: zod_1.z.string().nullable().openapi(folder_public_openapi_1.folderFieldDocs.parentFolderId),
68
+ createdAt: zod_1.z.string().datetime().openapi(folder_public_openapi_1.folderFieldDocs.createdAt),
69
+ updatedAt: zod_1.z.string().datetime().openapi(folder_public_openapi_1.folderFieldDocs.updatedAt),
70
+ totalSubFolders: zod_1.z.number().int().openapi(folder_public_openapi_1.folderContentCountFieldDocs.totalSubFolders),
71
+ totalWorkflows: zod_1.z.number().int().openapi(folder_public_openapi_1.folderContentCountFieldDocs.totalWorkflows),
72
+ }) {
73
+ }
74
+ exports.FolderDetailsPublicDto = FolderDetailsPublicDto;
75
+ //# sourceMappingURL=folder-public.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"folder-public.dto.js","sourceRoot":"","sources":["../../../src/dto/folders/folder-public.dto.ts"],"names":[],"mappings":";;;AAAA,gCAA8B;AAE9B,6BAAwB;AAExB,mEAOiC;AACjC,mEAMiC;AACjC,2EAA8E;AAC9E,iEAAmF;AACnF,+CAAoC;AAGpC,MAAM,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,8CAAsB,CAAC,EAAE,CAAC;IACjD,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,8CAAsB,CAAC,IAAI,CAAC;IAErD,IAAI,EAAE,OAAC;SACL,MAAM,EAAE;SACR,OAAO,CAAC,EAAE,GAAG,8CAAsB,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,GAAG,kCAAiB,CAAC,OAAO,CAAC,EAAE,CAAC;IACnF,IAAI,EAAE,IAAA,+CAAyB,GAAe,CAAC,OAAO,CAAC,gDAAwB,CAAC;CAChF,CAAC,CAAC;AAEH,MAAM,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IACzC,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,uCAAe,CAAC,EAAE,CAAC;IAC1C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,uCAAe,CAAC,IAAI,CAAC;IAC9C,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACrC,CAAC,CAAC;AAEH,MAAM,qBAAqB,GAAG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AC,QAAQ,EAAE,CAAC,OAAO,CAAC,uCAAe,CAAC,cAAc,CAAC;IAC7E,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,uCAAe,CAAC,SAAS,CAAC;IACnE,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,uCAAe,CAAC,SAAS,CAAC;IACnE,eAAe,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,mDAA2B,CAAC,eAAe,CAAC;IACtF,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,mDAA2B,CAAC,cAAc,CAAC;CACpF,CAAC;CAAG"}
@@ -0,0 +1,82 @@
1
+ import type { ZodOpenAPIMetadata } from '@asteasolutions/zod-to-openapi';
2
+ export declare const folderFieldDocs: {
3
+ id: {
4
+ readOnly: true;
5
+ example: string;
6
+ };
7
+ name: {
8
+ example: string;
9
+ };
10
+ parentFolderId: {
11
+ example: string;
12
+ };
13
+ createdAt: {
14
+ readOnly: true;
15
+ };
16
+ updatedAt: {
17
+ readOnly: true;
18
+ };
19
+ workflowCount: {
20
+ description: string;
21
+ readOnly: true;
22
+ };
23
+ subFolderCount: {
24
+ description: string;
25
+ readOnly: true;
26
+ };
27
+ path: {
28
+ description: string;
29
+ readOnly: true;
30
+ example: string[];
31
+ };
32
+ };
33
+ export declare const folderProjectFieldDocs: {
34
+ readonly id: {
35
+ readonly readOnly: true;
36
+ readonly example: 'VmwOO9HeTEj20kxM';
37
+ };
38
+ readonly name: {
39
+ readonly example: 'Marketing';
40
+ };
41
+ readonly type: {
42
+ readonly readOnly: true;
43
+ readonly example: 'team';
44
+ };
45
+ };
46
+ export declare const folderProjectIconOpenApi: ZodOpenAPIMetadata;
47
+ export declare const folderListFieldDocs: {
48
+ readonly count: {
49
+ readonly description: 'Total number of folders matching the query.';
50
+ };
51
+ };
52
+ export declare const folderListQueryFieldDocs: {
53
+ readonly filter: {
54
+ readonly type: 'string';
55
+ readonly description: 'JSON-encoded filter object. Supported fields — parentFolderId, name, tags (array of tag names), excludeFolderIdAndDescendants.';
56
+ readonly example: '{"parentFolderId":"abc123","name":"My Folder"}';
57
+ };
58
+ readonly select: {
59
+ readonly type: 'string';
60
+ readonly description: 'JSON-encoded array of fields to include. Valid fields — id, name, createdAt, updatedAt, project, tags, parentFolder, workflowCount, subFolderCount, path.';
61
+ readonly example: '["id","name","tags","workflowCount"]';
62
+ };
63
+ readonly sortBy: {
64
+ readonly description: 'Sort order for results.';
65
+ };
66
+ readonly skip: {
67
+ readonly type: 'string';
68
+ readonly description: 'Number of items to skip for pagination. Defaults to 0.';
69
+ };
70
+ readonly take: {
71
+ readonly type: 'string';
72
+ readonly description: 'Number of items to return. Defaults to 10.';
73
+ };
74
+ };
75
+ export declare const folderContentCountFieldDocs: {
76
+ readonly totalSubFolders: {
77
+ readonly description: 'Total number of sub-folders (recursive).';
78
+ };
79
+ readonly totalWorkflows: {
80
+ readonly description: 'Total number of workflows (recursive).';
81
+ };
82
+ };
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.folderContentCountFieldDocs = exports.folderListQueryFieldDocs = exports.folderListFieldDocs = exports.folderProjectIconOpenApi = exports.folderProjectFieldDocs = exports.folderFieldDocs = void 0;
4
+ const openapi_nullable_1 = require("../openapi-nullable");
5
+ exports.folderFieldDocs = {
6
+ id: { readOnly: true, example: 'zLXWgYyZrZ4Gn1Vk' },
7
+ name: { example: 'My Folder' },
8
+ parentFolderId: { example: 'kRZ0ewrAEAhCkTBd' },
9
+ createdAt: { readOnly: true },
10
+ updatedAt: { readOnly: true },
11
+ workflowCount: { description: 'Number of workflows the folder holds.', readOnly: true },
12
+ subFolderCount: { description: 'Number of folders the folder holds.', readOnly: true },
13
+ path: {
14
+ description: 'Names of every folder from the project root down to this folder.',
15
+ readOnly: true,
16
+ example: ['Marketing', 'Campaigns'],
17
+ },
18
+ };
19
+ exports.folderProjectFieldDocs = {
20
+ id: { readOnly: true, example: 'VmwOO9HeTEj20kxM' },
21
+ name: { example: 'Marketing' },
22
+ type: { readOnly: true, example: 'team' },
23
+ };
24
+ exports.folderProjectIconOpenApi = (0, openapi_nullable_1.alsoNullable)({
25
+ type: 'object',
26
+ description: 'Icon of the project, or null when the project has none',
27
+ properties: {
28
+ type: { type: 'string', enum: ['emoji', 'icon'] },
29
+ value: { type: 'string' },
30
+ color: { type: 'string' },
31
+ },
32
+ required: ['type', 'value'],
33
+ });
34
+ exports.folderListFieldDocs = {
35
+ count: { description: 'Total number of folders matching the query.' },
36
+ };
37
+ exports.folderListQueryFieldDocs = {
38
+ filter: {
39
+ type: 'string',
40
+ description: 'JSON-encoded filter object. Supported fields — parentFolderId, name, tags (array of tag names), excludeFolderIdAndDescendants.',
41
+ example: '{"parentFolderId":"abc123","name":"My Folder"}',
42
+ },
43
+ select: {
44
+ type: 'string',
45
+ description: 'JSON-encoded array of fields to include. Valid fields — id, name, createdAt, updatedAt, project, tags, parentFolder, workflowCount, subFolderCount, path.',
46
+ example: '["id","name","tags","workflowCount"]',
47
+ },
48
+ sortBy: { description: 'Sort order for results.' },
49
+ skip: { type: 'string', description: 'Number of items to skip for pagination. Defaults to 0.' },
50
+ take: { type: 'string', description: 'Number of items to return. Defaults to 10.' },
51
+ };
52
+ exports.folderContentCountFieldDocs = {
53
+ totalSubFolders: { description: 'Total number of sub-folders (recursive).' },
54
+ totalWorkflows: { description: 'Total number of workflows (recursive).' },
55
+ };
56
+ //# sourceMappingURL=folder-public.openapi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"folder-public.openapi.js","sourceRoot":"","sources":["../../../src/dto/folders/folder-public.openapi.ts"],"names":[],"mappings":";;;AAEA,0DAAmD;AAEtC,QAAA,eAAe,GAAG;IAC9B,EAAE,EAAE,EAAE,QAAQ,EAAE,IA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C;AAE3C,QAAA,wBAAwB,GAAG;IACvC,MAAM,EAAE;QACP,IAAI,EAAE,QAAQ;QACd,WAAW,EACV,gIAAgI;QACjI,OAAO,EAAE,gDAAgD;KACzD;IACD,MAAM,EAAE;QACP,IAAI,EAAE,QAAQ;QACd,WAAW,EACV,2JAA2J;QAC5J,OAAO,EAAE,sCAAsC;KAC/C;IACD,MAAM,EAAE,EAAE,WAAW,EAAE,yBAAyB,EAAE;IAClD,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,wDAAwD,EAAE;IAC/F,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,4CAA4C,EAAE;CAC7B,CAAC;AAE3C,QAAA,2BAA2B,GAAG;IAC1C,eAAe,EAAE,EAAE,WAAW,EAAE,0CAA0C,EAAE;IAC5E,cAAc,EAAE,EAAE,WAAW,EAAE,wCAAwC,EAAE;CACnB,CAAC"}
@@ -1,4 +1,6 @@
1
1
  import { z } from 'zod';
2
+ export declare const VALID_SELECT_FIELDS: readonly ['id', 'name', 'createdAt', 'updatedAt', 'project', 'tags', 'parentFolder', 'workflowCount', 'subFolderCount', 'path'];
3
+ export declare const VALID_SORT_OPTIONS: readonly ['name:asc', 'name:desc', 'createdAt:asc', 'createdAt:desc', 'updatedAt:asc', 'updatedAt:desc'];
2
4
  export declare const filterSchema: z.ZodObject<{
3
5
  parentFolderId: z.ZodOptional<z.ZodString>;
4
6
  name: z.ZodOptional<z.ZodString>;
@@ -15,6 +17,15 @@ export declare const filterSchema: z.ZodObject<{
15
17
  tags?: string[] | undefined;
16
18
  excludeFolderIdAndDescendants?: string | undefined;
17
19
  }>;
20
+ export declare const filterValidator: z.ZodEffects<z.ZodOptional<z.ZodString>, {
21
+ parentFolderId?: string | undefined;
22
+ name?: string | undefined;
23
+ tags?: string[] | undefined;
24
+ excludeFolderIdAndDescendants?: string | undefined;
25
+ } | undefined, string | undefined>;
26
+ export declare const skipValidator: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, number, string | undefined>, number, string | undefined>;
27
+ export declare const takeValidator: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, number, string | undefined>, number, string | undefined>;
28
+ export declare const selectValidator: z.ZodEffects<z.ZodOptional<z.ZodString>, Record<"createdAt" | "id" | "name" | "parentFolder" | "path" | "project" | "subFolderCount" | "tags" | "updatedAt" | "workflowCount", true> | undefined, string | undefined>;
18
29
  declare const ListFolderQueryDto_base: import("../../zod-class").ZodClass<{
19
30
  filter?: {
20
31
  parentFolderId?: string | undefined;