@flowrunner/cli 0.1.19-dev.2 → 0.1.19-dev.3

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 (29) hide show
  1. package/ai-docs/instructions/service-code-format/02-zod-types.md +6 -5
  2. package/ai-docs/instructions/service-code-format/17-client-certificates.md +4 -5
  3. package/dist/cli.js +96 -79
  4. package/dist/cli.js.map +3 -3
  5. package/dist/index.js +111 -91
  6. package/dist/index.js.map +3 -3
  7. package/dist/types/packages/cli/src/constants/testing.d.ts +13 -6
  8. package/dist/types/shared/src/constants/error-codes.d.ts +14 -0
  9. package/dist/types/shared/src/constants/flow-catalog.d.ts +54 -0
  10. package/dist/types/shared/src/constants/index.d.ts +1 -0
  11. package/dist/types/shared/src/errors/flow-catalog.d.ts +37 -0
  12. package/dist/types/shared/src/errors/index.d.ts +1 -0
  13. package/dist/types/shared/src/scheme/flow-catalog/analysis.d.ts +190 -0
  14. package/dist/types/shared/src/scheme/flow-catalog/index.d.ts +6 -0
  15. package/dist/types/shared/src/scheme/flow-catalog/pack.d.ts +144 -0
  16. package/dist/types/shared/src/scheme/flow-catalog/requests.d.ts +664 -0
  17. package/dist/types/shared/src/scheme/flow-catalog/summary.d.ts +69 -0
  18. package/dist/types/shared/src/scheme/flow-catalog/version.d.ts +132 -0
  19. package/dist/types/shared/src/scheme/flowrunner/java.dto.d.ts +76 -0
  20. package/dist/types/shared/src/scheme/index.d.ts +1 -0
  21. package/dist/types/shared/src/scheme/knowledge-base/dto.d.ts +12 -12
  22. package/dist/types/shared/src/scheme/properties/index.d.ts +1 -0
  23. package/dist/types/shared/src/scheme/properties/secret.d.ts +12 -0
  24. package/dist/types/shared/src/scheme/remote-mcp-server/dto.d.ts +0 -11
  25. package/dist/types/shared/src/scheme/shared-extensions/config.d.ts +20 -2
  26. package/dist/types/shared/src/scheme/shared-extensions/rest.d.ts +1 -0
  27. package/dist/types/shared/src/scheme/shared-extensions/usage-stats.d.ts +6 -6
  28. package/package.json +1 -4
  29. package/project-files/sandbox/nock-mock.js +61 -5
@@ -0,0 +1,664 @@
1
+ import { z } from 'zod';
2
+ export declare const FLOW_CATALOG_PREFIX_MAX_LENGTH = 100;
3
+ export declare const FLOW_CATALOG_PACK_NAME_MAX_LENGTH = 200;
4
+ export declare const FLOW_CATALOG_PACK_DESCRIPTION_MAX_LENGTH = 5000;
5
+ export declare const PackIdParamsSchema: z.ZodObject<{
6
+ packId: z.ZodGUID;
7
+ }, z.core.$strip>;
8
+ export declare const PackVersionParamsSchema: z.ZodObject<{
9
+ packId: z.ZodGUID;
10
+ versionHash: z.ZodString;
11
+ }, z.core.$strip>;
12
+ export declare const FlowVersionParamsSchema: z.ZodObject<{
13
+ flowVersionId: z.ZodGUID;
14
+ }, z.core.$strip>;
15
+ export declare const PackDetailsDTOSchema: z.ZodObject<{
16
+ pack: z.ZodObject<{
17
+ packId: z.ZodString;
18
+ versionHash: z.ZodString;
19
+ versionName: z.ZodNumber;
20
+ name: z.ZodString;
21
+ description: z.ZodString;
22
+ flows: z.ZodArray<z.ZodObject<{
23
+ packFlowKey: z.ZodString;
24
+ name: z.ZodString;
25
+ flowHash: z.ZodString;
26
+ }, z.core.$strip>>;
27
+ enabled: z.ZodBoolean;
28
+ requirements: z.ZodObject<{
29
+ connections: z.ZodArray<z.ZodObject<{
30
+ hostType: z.ZodEnum<{
31
+ APP: "APP";
32
+ SHARED: "SHARED";
33
+ }>;
34
+ packageId: z.ZodOptional<z.ZodString>;
35
+ serviceId: z.ZodString;
36
+ label: z.ZodString;
37
+ usedBy: z.ZodArray<z.ZodObject<{
38
+ elementId: z.ZodString;
39
+ elementName: z.ZodString;
40
+ toolId: z.ZodOptional<z.ZodString>;
41
+ subFlowName: z.ZodOptional<z.ZodString>;
42
+ }, z.core.$strip>>;
43
+ }, z.core.$strip>>;
44
+ aiKeys: z.ZodArray<z.ZodObject<{
45
+ providerId: z.ZodString;
46
+ label: z.ZodString;
47
+ usedBy: z.ZodArray<z.ZodObject<{
48
+ elementId: z.ZodString;
49
+ elementName: z.ZodString;
50
+ toolId: z.ZodOptional<z.ZodString>;
51
+ subFlowName: z.ZodOptional<z.ZodString>;
52
+ }, z.core.$strip>>;
53
+ }, z.core.$strip>>;
54
+ placeholders: z.ZodArray<z.ZodObject<{
55
+ name: z.ZodString;
56
+ type: z.ZodString;
57
+ description: z.ZodOptional<z.ZodString>;
58
+ }, z.core.$strip>>;
59
+ sharedExtensions: z.ZodArray<z.ZodObject<{
60
+ serviceId: z.ZodString;
61
+ packageId: z.ZodOptional<z.ZodString>;
62
+ label: z.ZodString;
63
+ }, z.core.$strip>>;
64
+ }, z.core.$strip>;
65
+ source: z.ZodObject<{
66
+ workspaceId: z.ZodString;
67
+ flowId: z.ZodString;
68
+ flowVersionId: z.ZodString;
69
+ flowName: z.ZodString;
70
+ versionNumber: z.ZodNumber;
71
+ }, z.core.$strip>;
72
+ publisherId: z.ZodString;
73
+ publisherName: z.ZodString;
74
+ _id: z.ZodString;
75
+ createdAt: z.ZodCoercedDate<unknown>;
76
+ updatedAt: z.ZodCoercedDate<unknown>;
77
+ status: z.ZodEnum<{
78
+ readonly PUBLISHED: "published";
79
+ readonly UNPUBLISHED: "unpublished";
80
+ }>;
81
+ versionsCount: z.ZodNumber;
82
+ }, z.core.$strip>;
83
+ versions: z.ZodArray<z.ZodObject<{
84
+ packId: z.ZodString;
85
+ versionHash: z.ZodString;
86
+ versionName: z.ZodNumber;
87
+ name: z.ZodString;
88
+ description: z.ZodString;
89
+ flows: z.ZodArray<z.ZodObject<{
90
+ packFlowKey: z.ZodString;
91
+ name: z.ZodString;
92
+ flowHash: z.ZodString;
93
+ }, z.core.$strip>>;
94
+ enabled: z.ZodBoolean;
95
+ requirements: z.ZodObject<{
96
+ connections: z.ZodArray<z.ZodObject<{
97
+ hostType: z.ZodEnum<{
98
+ APP: "APP";
99
+ SHARED: "SHARED";
100
+ }>;
101
+ packageId: z.ZodOptional<z.ZodString>;
102
+ serviceId: z.ZodString;
103
+ label: z.ZodString;
104
+ usedBy: z.ZodArray<z.ZodObject<{
105
+ elementId: z.ZodString;
106
+ elementName: z.ZodString;
107
+ toolId: z.ZodOptional<z.ZodString>;
108
+ subFlowName: z.ZodOptional<z.ZodString>;
109
+ }, z.core.$strip>>;
110
+ }, z.core.$strip>>;
111
+ aiKeys: z.ZodArray<z.ZodObject<{
112
+ providerId: z.ZodString;
113
+ label: z.ZodString;
114
+ usedBy: z.ZodArray<z.ZodObject<{
115
+ elementId: z.ZodString;
116
+ elementName: z.ZodString;
117
+ toolId: z.ZodOptional<z.ZodString>;
118
+ subFlowName: z.ZodOptional<z.ZodString>;
119
+ }, z.core.$strip>>;
120
+ }, z.core.$strip>>;
121
+ placeholders: z.ZodArray<z.ZodObject<{
122
+ name: z.ZodString;
123
+ type: z.ZodString;
124
+ description: z.ZodOptional<z.ZodString>;
125
+ }, z.core.$strip>>;
126
+ sharedExtensions: z.ZodArray<z.ZodObject<{
127
+ serviceId: z.ZodString;
128
+ packageId: z.ZodOptional<z.ZodString>;
129
+ label: z.ZodString;
130
+ }, z.core.$strip>>;
131
+ }, z.core.$strip>;
132
+ source: z.ZodObject<{
133
+ workspaceId: z.ZodString;
134
+ flowId: z.ZodString;
135
+ flowVersionId: z.ZodString;
136
+ flowName: z.ZodString;
137
+ versionNumber: z.ZodNumber;
138
+ }, z.core.$strip>;
139
+ publisherId: z.ZodString;
140
+ publisherName: z.ZodString;
141
+ _id: z.ZodString;
142
+ createdAt: z.ZodCoercedDate<unknown>;
143
+ updatedAt: z.ZodCoercedDate<unknown>;
144
+ }, z.core.$strip>>;
145
+ }, z.core.$strip>;
146
+ export declare const AnalyzeRequestSchema: z.ZodObject<{
147
+ flowVersionId: z.ZodGUID;
148
+ packId: z.ZodOptional<z.ZodGUID>;
149
+ name: z.ZodOptional<z.ZodString>;
150
+ description: z.ZodOptional<z.ZodString>;
151
+ }, z.core.$strip>;
152
+ export declare const PackDuplicateOfSchema: z.ZodObject<{
153
+ versionName: z.ZodNumber;
154
+ enabled: z.ZodBoolean;
155
+ }, z.core.$strip>;
156
+ export declare const AnalyzeResponseSchema: z.ZodObject<{
157
+ report: z.ZodObject<{
158
+ blocking: z.ZodArray<z.ZodObject<{
159
+ code: z.ZodEnum<{
160
+ readonly MCP_BLOCK: "MCP_BLOCK";
161
+ readonly KNOWLEDGE_BASE_BLOCK: "KNOWLEDGE_BASE_BLOCK";
162
+ readonly CUSTOM_EXTENSION_BLOCK: "CUSTOM_EXTENSION_BLOCK";
163
+ readonly CALLS_ANOTHER_FLOW: "CALLS_ANOTHER_FLOW";
164
+ readonly SCHEDULED_RUNS_OTHER_FLOW: "SCHEDULED_RUNS_OTHER_FLOW";
165
+ readonly CALL_FLOW_BY_NAME: "CALL_FLOW_BY_NAME";
166
+ readonly SELF_CALL: "SELF_CALL";
167
+ readonly INLINE_AI_KEY: "INLINE_AI_KEY";
168
+ readonly AUTH_HEADER_LITERAL: "AUTH_HEADER_LITERAL";
169
+ readonly LANGSMITH_KEY: "LANGSMITH_KEY";
170
+ readonly UNKNOWN_BLOCK: "UNKNOWN_BLOCK";
171
+ readonly SUBFLOW_SETUP_REQUIRED: "SUBFLOW_SETUP_REQUIRED";
172
+ readonly SECRET_LITERAL: "SECRET_LITERAL";
173
+ readonly SOURCE_OF_OTHER_PACK: "SOURCE_OF_OTHER_PACK";
174
+ readonly INSTALLED_COPY: "INSTALLED_COPY";
175
+ readonly NOT_PACK_SOURCE: "NOT_PACK_SOURCE";
176
+ readonly SECRET_LIKE_STRING: "SECRET_LIKE_STRING";
177
+ }>;
178
+ severity: z.ZodEnum<{
179
+ readonly BLOCK: "block";
180
+ readonly WARN: "warn";
181
+ }>;
182
+ element: z.ZodOptional<z.ZodObject<{
183
+ elementId: z.ZodString;
184
+ elementName: z.ZodString;
185
+ toolId: z.ZodOptional<z.ZodString>;
186
+ subFlowName: z.ZodOptional<z.ZodString>;
187
+ }, z.core.$strip>>;
188
+ path: z.ZodString;
189
+ message: z.ZodString;
190
+ hint: z.ZodOptional<z.ZodString>;
191
+ maskedValue: z.ZodOptional<z.ZodString>;
192
+ pattern: z.ZodOptional<z.ZodObject<{
193
+ id: z.ZodString;
194
+ providerName: z.ZodOptional<z.ZodString>;
195
+ }, z.core.$strip>>;
196
+ }, z.core.$strip>>;
197
+ warnings: z.ZodArray<z.ZodObject<{
198
+ code: z.ZodEnum<{
199
+ readonly MCP_BLOCK: "MCP_BLOCK";
200
+ readonly KNOWLEDGE_BASE_BLOCK: "KNOWLEDGE_BASE_BLOCK";
201
+ readonly CUSTOM_EXTENSION_BLOCK: "CUSTOM_EXTENSION_BLOCK";
202
+ readonly CALLS_ANOTHER_FLOW: "CALLS_ANOTHER_FLOW";
203
+ readonly SCHEDULED_RUNS_OTHER_FLOW: "SCHEDULED_RUNS_OTHER_FLOW";
204
+ readonly CALL_FLOW_BY_NAME: "CALL_FLOW_BY_NAME";
205
+ readonly SELF_CALL: "SELF_CALL";
206
+ readonly INLINE_AI_KEY: "INLINE_AI_KEY";
207
+ readonly AUTH_HEADER_LITERAL: "AUTH_HEADER_LITERAL";
208
+ readonly LANGSMITH_KEY: "LANGSMITH_KEY";
209
+ readonly UNKNOWN_BLOCK: "UNKNOWN_BLOCK";
210
+ readonly SUBFLOW_SETUP_REQUIRED: "SUBFLOW_SETUP_REQUIRED";
211
+ readonly SECRET_LITERAL: "SECRET_LITERAL";
212
+ readonly SOURCE_OF_OTHER_PACK: "SOURCE_OF_OTHER_PACK";
213
+ readonly INSTALLED_COPY: "INSTALLED_COPY";
214
+ readonly NOT_PACK_SOURCE: "NOT_PACK_SOURCE";
215
+ readonly SECRET_LIKE_STRING: "SECRET_LIKE_STRING";
216
+ }>;
217
+ severity: z.ZodEnum<{
218
+ readonly BLOCK: "block";
219
+ readonly WARN: "warn";
220
+ }>;
221
+ element: z.ZodOptional<z.ZodObject<{
222
+ elementId: z.ZodString;
223
+ elementName: z.ZodString;
224
+ toolId: z.ZodOptional<z.ZodString>;
225
+ subFlowName: z.ZodOptional<z.ZodString>;
226
+ }, z.core.$strip>>;
227
+ path: z.ZodString;
228
+ message: z.ZodString;
229
+ hint: z.ZodOptional<z.ZodString>;
230
+ maskedValue: z.ZodOptional<z.ZodString>;
231
+ pattern: z.ZodOptional<z.ZodObject<{
232
+ id: z.ZodString;
233
+ providerName: z.ZodOptional<z.ZodString>;
234
+ }, z.core.$strip>>;
235
+ }, z.core.$strip>>;
236
+ removed: z.ZodArray<z.ZodObject<{
237
+ code: z.ZodEnum<{
238
+ readonly PLACEHOLDER_VALUES: "PLACEHOLDER_VALUES";
239
+ readonly CONNECTIONS: "CONNECTIONS";
240
+ readonly AI_KEYS: "AI_KEYS";
241
+ readonly TEST_DATA: "TEST_DATA";
242
+ readonly LEARNED_DATA: "LEARNED_DATA";
243
+ readonly SHARED_MEMORY: "SHARED_MEMORY";
244
+ readonly WAS_LIVE: "WAS_LIVE";
245
+ }>;
246
+ count: z.ZodNumber;
247
+ }, z.core.$strip>>;
248
+ requirements: z.ZodObject<{
249
+ connections: z.ZodArray<z.ZodObject<{
250
+ hostType: z.ZodEnum<{
251
+ APP: "APP";
252
+ SHARED: "SHARED";
253
+ }>;
254
+ packageId: z.ZodOptional<z.ZodString>;
255
+ serviceId: z.ZodString;
256
+ label: z.ZodString;
257
+ usedBy: z.ZodArray<z.ZodObject<{
258
+ elementId: z.ZodString;
259
+ elementName: z.ZodString;
260
+ toolId: z.ZodOptional<z.ZodString>;
261
+ subFlowName: z.ZodOptional<z.ZodString>;
262
+ }, z.core.$strip>>;
263
+ }, z.core.$strip>>;
264
+ aiKeys: z.ZodArray<z.ZodObject<{
265
+ providerId: z.ZodString;
266
+ label: z.ZodString;
267
+ usedBy: z.ZodArray<z.ZodObject<{
268
+ elementId: z.ZodString;
269
+ elementName: z.ZodString;
270
+ toolId: z.ZodOptional<z.ZodString>;
271
+ subFlowName: z.ZodOptional<z.ZodString>;
272
+ }, z.core.$strip>>;
273
+ }, z.core.$strip>>;
274
+ placeholders: z.ZodArray<z.ZodObject<{
275
+ name: z.ZodString;
276
+ type: z.ZodString;
277
+ description: z.ZodOptional<z.ZodString>;
278
+ }, z.core.$strip>>;
279
+ sharedExtensions: z.ZodArray<z.ZodObject<{
280
+ serviceId: z.ZodString;
281
+ packageId: z.ZodOptional<z.ZodString>;
282
+ label: z.ZodString;
283
+ }, z.core.$strip>>;
284
+ }, z.core.$strip>;
285
+ kept: z.ZodArray<z.ZodString>;
286
+ }, z.core.$strip>;
287
+ versionHash: z.ZodString;
288
+ versionName: z.ZodNumber;
289
+ duplicateOf: z.ZodOptional<z.ZodObject<{
290
+ versionName: z.ZodNumber;
291
+ enabled: z.ZodBoolean;
292
+ }, z.core.$strip>>;
293
+ cleanedFlow: z.ZodRecord<z.ZodString, z.ZodUnknown>;
294
+ manifest: z.ZodObject<{
295
+ schemaVersion: z.ZodLiteral<1>;
296
+ packId: z.ZodString;
297
+ versionHash: z.ZodString;
298
+ versionName: z.ZodNumber;
299
+ name: z.ZodString;
300
+ description: z.ZodString;
301
+ flows: z.ZodArray<z.ZodObject<{
302
+ packFlowKey: z.ZodString;
303
+ name: z.ZodString;
304
+ flowHash: z.ZodString;
305
+ }, z.core.$strip>>;
306
+ requirements: z.ZodObject<{
307
+ connections: z.ZodArray<z.ZodObject<{
308
+ hostType: z.ZodEnum<{
309
+ APP: "APP";
310
+ SHARED: "SHARED";
311
+ }>;
312
+ packageId: z.ZodOptional<z.ZodString>;
313
+ serviceId: z.ZodString;
314
+ label: z.ZodString;
315
+ usedBy: z.ZodArray<z.ZodObject<{
316
+ elementId: z.ZodString;
317
+ elementName: z.ZodString;
318
+ toolId: z.ZodOptional<z.ZodString>;
319
+ subFlowName: z.ZodOptional<z.ZodString>;
320
+ }, z.core.$strip>>;
321
+ }, z.core.$strip>>;
322
+ aiKeys: z.ZodArray<z.ZodObject<{
323
+ providerId: z.ZodString;
324
+ label: z.ZodString;
325
+ usedBy: z.ZodArray<z.ZodObject<{
326
+ elementId: z.ZodString;
327
+ elementName: z.ZodString;
328
+ toolId: z.ZodOptional<z.ZodString>;
329
+ subFlowName: z.ZodOptional<z.ZodString>;
330
+ }, z.core.$strip>>;
331
+ }, z.core.$strip>>;
332
+ placeholders: z.ZodArray<z.ZodObject<{
333
+ name: z.ZodString;
334
+ type: z.ZodString;
335
+ description: z.ZodOptional<z.ZodString>;
336
+ }, z.core.$strip>>;
337
+ sharedExtensions: z.ZodArray<z.ZodObject<{
338
+ serviceId: z.ZodString;
339
+ packageId: z.ZodOptional<z.ZodString>;
340
+ label: z.ZodString;
341
+ }, z.core.$strip>>;
342
+ }, z.core.$strip>;
343
+ publishedAt: z.ZodOptional<z.ZodString>;
344
+ }, z.core.$strip>;
345
+ }, z.core.$strip>;
346
+ export declare const PublishRequestSchema: z.ZodObject<{
347
+ flowVersionId: z.ZodGUID;
348
+ name: z.ZodString;
349
+ description: z.ZodOptional<z.ZodString>;
350
+ packId: z.ZodOptional<z.ZodGUID>;
351
+ acknowledgeWarnings: z.ZodBoolean;
352
+ }, z.core.$strip>;
353
+ export declare const InstallPrefixSchema: z.ZodString;
354
+ export declare const InstallCheckRequestSchema: z.ZodObject<{
355
+ prefix: z.ZodString;
356
+ }, z.core.$strip>;
357
+ export declare const InstallCheckNameSchema: z.ZodObject<{
358
+ packFlowKey: z.ZodString;
359
+ name: z.ZodString;
360
+ exists: z.ZodBoolean;
361
+ }, z.core.$strip>;
362
+ export declare const InstallCheckResponseSchema: z.ZodObject<{
363
+ names: z.ZodArray<z.ZodObject<{
364
+ packFlowKey: z.ZodString;
365
+ name: z.ZodString;
366
+ exists: z.ZodBoolean;
367
+ }, z.core.$strip>>;
368
+ }, z.core.$strip>;
369
+ export declare const InstallRequestSchema: z.ZodObject<{
370
+ prefix: z.ZodString;
371
+ }, z.core.$strip>;
372
+ export declare const InstalledFlowSchema: z.ZodObject<{
373
+ flowId: z.ZodString;
374
+ flowVersionId: z.ZodString;
375
+ name: z.ZodString;
376
+ }, z.core.$strip>;
377
+ export declare const InstallResponseSchema: z.ZodObject<{
378
+ installId: z.ZodString;
379
+ flows: z.ZodArray<z.ZodObject<{
380
+ flowId: z.ZodString;
381
+ flowVersionId: z.ZodString;
382
+ name: z.ZodString;
383
+ }, z.core.$strip>>;
384
+ }, z.core.$strip>;
385
+ export declare const CloneFlowVersionResponseSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
386
+ export declare const SetupServiceInfoSchema: z.ZodObject<{
387
+ hostType: z.ZodEnum<{
388
+ APP: "APP";
389
+ SHARED: "SHARED";
390
+ }>;
391
+ packageId: z.ZodString;
392
+ serviceId: z.ZodString;
393
+ serviceName: z.ZodString;
394
+ appConfigDescriptions: z.ZodArray<z.ZodObject<{
395
+ shared: z.ZodBoolean;
396
+ name: z.ZodString;
397
+ type: z.ZodEnum<{
398
+ readonly STRING: "string";
399
+ readonly BOOL: "bool";
400
+ readonly DATE: "date";
401
+ readonly CHOICE: "choice";
402
+ readonly TEXT: "text";
403
+ }>;
404
+ required: z.ZodBoolean;
405
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
406
+ label: z.ZodString;
407
+ defaultValue: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
408
+ options: z.ZodOptional<z.ZodArray<z.ZodString>>;
409
+ }, z.core.$strip>>;
410
+ configSchema: z.ZodOptional<z.ZodNullable<z.ZodObject<{
411
+ v: z.ZodNumber;
412
+ fields: z.ZodArray<z.ZodType<import("../shared-extensions").ParamsSchemaField, unknown, z.core.$ZodTypeInternals<import("../shared-extensions").ParamsSchemaField, unknown>>>;
413
+ }, z.core.$loose>>>;
414
+ }, z.core.$strip>;
415
+ export declare const SetupConnectionSchema: z.ZodObject<{
416
+ hostType: z.ZodEnum<{
417
+ APP: "APP";
418
+ SHARED: "SHARED";
419
+ }>;
420
+ packageId: z.ZodOptional<z.ZodString>;
421
+ serviceId: z.ZodString;
422
+ label: z.ZodString;
423
+ usedBy: z.ZodArray<z.ZodObject<{
424
+ elementId: z.ZodString;
425
+ elementName: z.ZodString;
426
+ toolId: z.ZodOptional<z.ZodString>;
427
+ subFlowName: z.ZodOptional<z.ZodString>;
428
+ }, z.core.$strip>>;
429
+ connectionId: z.ZodOptional<z.ZodString>;
430
+ }, z.core.$strip>;
431
+ export declare const SetupAiKeySchema: z.ZodObject<{
432
+ providerId: z.ZodString;
433
+ label: z.ZodString;
434
+ usedBy: z.ZodArray<z.ZodObject<{
435
+ elementId: z.ZodString;
436
+ elementName: z.ZodString;
437
+ toolId: z.ZodOptional<z.ZodString>;
438
+ subFlowName: z.ZodOptional<z.ZodString>;
439
+ }, z.core.$strip>>;
440
+ keySetupId: z.ZodOptional<z.ZodString>;
441
+ }, z.core.$strip>;
442
+ export declare const SetupPlaceholderSchema: z.ZodObject<{
443
+ name: z.ZodString;
444
+ type: z.ZodString;
445
+ description: z.ZodOptional<z.ZodString>;
446
+ value: z.ZodOptional<z.ZodString>;
447
+ used: z.ZodBoolean;
448
+ }, z.core.$strip>;
449
+ export declare const SetupSharedExtensionSchema: z.ZodObject<{
450
+ serviceId: z.ZodString;
451
+ packageId: z.ZodOptional<z.ZodString>;
452
+ label: z.ZodString;
453
+ serviceInfo: z.ZodObject<{
454
+ hostType: z.ZodEnum<{
455
+ APP: "APP";
456
+ SHARED: "SHARED";
457
+ }>;
458
+ packageId: z.ZodString;
459
+ serviceId: z.ZodString;
460
+ serviceName: z.ZodString;
461
+ appConfigDescriptions: z.ZodArray<z.ZodObject<{
462
+ shared: z.ZodBoolean;
463
+ name: z.ZodString;
464
+ type: z.ZodEnum<{
465
+ readonly STRING: "string";
466
+ readonly BOOL: "bool";
467
+ readonly DATE: "date";
468
+ readonly CHOICE: "choice";
469
+ readonly TEXT: "text";
470
+ }>;
471
+ required: z.ZodBoolean;
472
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
473
+ label: z.ZodString;
474
+ defaultValue: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
475
+ options: z.ZodOptional<z.ZodArray<z.ZodString>>;
476
+ }, z.core.$strip>>;
477
+ configSchema: z.ZodOptional<z.ZodNullable<z.ZodObject<{
478
+ v: z.ZodNumber;
479
+ fields: z.ZodArray<z.ZodType<import("../shared-extensions").ParamsSchemaField, unknown, z.core.$ZodTypeInternals<import("../shared-extensions").ParamsSchemaField, unknown>>>;
480
+ }, z.core.$loose>>>;
481
+ }, z.core.$strip>;
482
+ configured: z.ZodBoolean;
483
+ missingFields: z.ZodArray<z.ZodString>;
484
+ }, z.core.$strip>;
485
+ export declare const SetupStateDTOSchema: z.ZodObject<{
486
+ flowVersionId: z.ZodString;
487
+ connections: z.ZodArray<z.ZodObject<{
488
+ hostType: z.ZodEnum<{
489
+ APP: "APP";
490
+ SHARED: "SHARED";
491
+ }>;
492
+ packageId: z.ZodOptional<z.ZodString>;
493
+ serviceId: z.ZodString;
494
+ label: z.ZodString;
495
+ usedBy: z.ZodArray<z.ZodObject<{
496
+ elementId: z.ZodString;
497
+ elementName: z.ZodString;
498
+ toolId: z.ZodOptional<z.ZodString>;
499
+ subFlowName: z.ZodOptional<z.ZodString>;
500
+ }, z.core.$strip>>;
501
+ connectionId: z.ZodOptional<z.ZodString>;
502
+ }, z.core.$strip>>;
503
+ aiKeys: z.ZodArray<z.ZodObject<{
504
+ providerId: z.ZodString;
505
+ label: z.ZodString;
506
+ usedBy: z.ZodArray<z.ZodObject<{
507
+ elementId: z.ZodString;
508
+ elementName: z.ZodString;
509
+ toolId: z.ZodOptional<z.ZodString>;
510
+ subFlowName: z.ZodOptional<z.ZodString>;
511
+ }, z.core.$strip>>;
512
+ keySetupId: z.ZodOptional<z.ZodString>;
513
+ }, z.core.$strip>>;
514
+ placeholders: z.ZodArray<z.ZodObject<{
515
+ name: z.ZodString;
516
+ type: z.ZodString;
517
+ description: z.ZodOptional<z.ZodString>;
518
+ value: z.ZodOptional<z.ZodString>;
519
+ used: z.ZodBoolean;
520
+ }, z.core.$strip>>;
521
+ sharedExtensions: z.ZodArray<z.ZodObject<{
522
+ serviceId: z.ZodString;
523
+ packageId: z.ZodOptional<z.ZodString>;
524
+ label: z.ZodString;
525
+ serviceInfo: z.ZodObject<{
526
+ hostType: z.ZodEnum<{
527
+ APP: "APP";
528
+ SHARED: "SHARED";
529
+ }>;
530
+ packageId: z.ZodString;
531
+ serviceId: z.ZodString;
532
+ serviceName: z.ZodString;
533
+ appConfigDescriptions: z.ZodArray<z.ZodObject<{
534
+ shared: z.ZodBoolean;
535
+ name: z.ZodString;
536
+ type: z.ZodEnum<{
537
+ readonly STRING: "string";
538
+ readonly BOOL: "bool";
539
+ readonly DATE: "date";
540
+ readonly CHOICE: "choice";
541
+ readonly TEXT: "text";
542
+ }>;
543
+ required: z.ZodBoolean;
544
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
545
+ label: z.ZodString;
546
+ defaultValue: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
547
+ options: z.ZodOptional<z.ZodArray<z.ZodString>>;
548
+ }, z.core.$strip>>;
549
+ configSchema: z.ZodOptional<z.ZodNullable<z.ZodObject<{
550
+ v: z.ZodNumber;
551
+ fields: z.ZodArray<z.ZodType<import("../shared-extensions").ParamsSchemaField, unknown, z.core.$ZodTypeInternals<import("../shared-extensions").ParamsSchemaField, unknown>>>;
552
+ }, z.core.$loose>>>;
553
+ }, z.core.$strip>;
554
+ configured: z.ZodBoolean;
555
+ missingFields: z.ZodArray<z.ZodString>;
556
+ }, z.core.$strip>>;
557
+ missingCount: z.ZodNumber;
558
+ status: z.ZodNullable<z.ZodString>;
559
+ }, z.core.$strip>;
560
+ export declare const ApplySetupRequestSchema: z.ZodObject<{
561
+ connections: z.ZodRecord<z.ZodString, z.ZodString>;
562
+ aiKeys: z.ZodRecord<z.ZodString, z.ZodString>;
563
+ placeholders: z.ZodRecord<z.ZodString, z.ZodString>;
564
+ start: z.ZodBoolean;
565
+ }, z.core.$strip>;
566
+ export declare const PackLookupRefSchema: z.ZodObject<{
567
+ packId: z.ZodGUID;
568
+ versionHash: z.ZodString;
569
+ }, z.core.$strip>;
570
+ export declare const FLOW_CATALOG_LOOKUP_MAX_REFS = 200;
571
+ export declare const PackLookupRequestSchema: z.ZodObject<{
572
+ refs: z.ZodArray<z.ZodObject<{
573
+ packId: z.ZodGUID;
574
+ versionHash: z.ZodString;
575
+ }, z.core.$strip>>;
576
+ }, z.core.$strip>;
577
+ export declare const PackLookupResponseSchema: z.ZodObject<{
578
+ versions: z.ZodArray<z.ZodObject<{
579
+ packId: z.ZodString;
580
+ versionHash: z.ZodString;
581
+ versionName: z.ZodNumber;
582
+ name: z.ZodString;
583
+ description: z.ZodString;
584
+ flows: z.ZodArray<z.ZodObject<{
585
+ packFlowKey: z.ZodString;
586
+ name: z.ZodString;
587
+ flowHash: z.ZodString;
588
+ }, z.core.$strip>>;
589
+ enabled: z.ZodBoolean;
590
+ requirements: z.ZodObject<{
591
+ connections: z.ZodArray<z.ZodObject<{
592
+ hostType: z.ZodEnum<{
593
+ APP: "APP";
594
+ SHARED: "SHARED";
595
+ }>;
596
+ packageId: z.ZodOptional<z.ZodString>;
597
+ serviceId: z.ZodString;
598
+ label: z.ZodString;
599
+ usedBy: z.ZodArray<z.ZodObject<{
600
+ elementId: z.ZodString;
601
+ elementName: z.ZodString;
602
+ toolId: z.ZodOptional<z.ZodString>;
603
+ subFlowName: z.ZodOptional<z.ZodString>;
604
+ }, z.core.$strip>>;
605
+ }, z.core.$strip>>;
606
+ aiKeys: z.ZodArray<z.ZodObject<{
607
+ providerId: z.ZodString;
608
+ label: z.ZodString;
609
+ usedBy: z.ZodArray<z.ZodObject<{
610
+ elementId: z.ZodString;
611
+ elementName: z.ZodString;
612
+ toolId: z.ZodOptional<z.ZodString>;
613
+ subFlowName: z.ZodOptional<z.ZodString>;
614
+ }, z.core.$strip>>;
615
+ }, z.core.$strip>>;
616
+ placeholders: z.ZodArray<z.ZodObject<{
617
+ name: z.ZodString;
618
+ type: z.ZodString;
619
+ description: z.ZodOptional<z.ZodString>;
620
+ }, z.core.$strip>>;
621
+ sharedExtensions: z.ZodArray<z.ZodObject<{
622
+ serviceId: z.ZodString;
623
+ packageId: z.ZodOptional<z.ZodString>;
624
+ label: z.ZodString;
625
+ }, z.core.$strip>>;
626
+ }, z.core.$strip>;
627
+ source: z.ZodObject<{
628
+ workspaceId: z.ZodString;
629
+ flowId: z.ZodString;
630
+ flowVersionId: z.ZodString;
631
+ flowName: z.ZodString;
632
+ versionNumber: z.ZodNumber;
633
+ }, z.core.$strip>;
634
+ publisherId: z.ZodString;
635
+ publisherName: z.ZodString;
636
+ _id: z.ZodString;
637
+ createdAt: z.ZodCoercedDate<unknown>;
638
+ updatedAt: z.ZodCoercedDate<unknown>;
639
+ }, z.core.$strip>>;
640
+ }, z.core.$strip>;
641
+ export type PackIdParams = z.infer<typeof PackIdParamsSchema>;
642
+ export type PackVersionParams = z.infer<typeof PackVersionParamsSchema>;
643
+ export type FlowVersionParams = z.infer<typeof FlowVersionParamsSchema>;
644
+ export type PackDetailsDTO = z.infer<typeof PackDetailsDTOSchema>;
645
+ export type AnalyzeRequest = z.infer<typeof AnalyzeRequestSchema>;
646
+ export type PackDuplicateOf = z.infer<typeof PackDuplicateOfSchema>;
647
+ export type AnalyzeResponse = z.infer<typeof AnalyzeResponseSchema>;
648
+ export type PublishRequest = z.infer<typeof PublishRequestSchema>;
649
+ export type InstallCheckRequest = z.infer<typeof InstallCheckRequestSchema>;
650
+ export type InstallCheckName = z.infer<typeof InstallCheckNameSchema>;
651
+ export type InstallCheckResponse = z.infer<typeof InstallCheckResponseSchema>;
652
+ export type InstallRequest = z.infer<typeof InstallRequestSchema>;
653
+ export type InstalledFlow = z.infer<typeof InstalledFlowSchema>;
654
+ export type InstallResponse = z.infer<typeof InstallResponseSchema>;
655
+ export type SetupServiceInfo = z.infer<typeof SetupServiceInfoSchema>;
656
+ export type SetupConnection = z.infer<typeof SetupConnectionSchema>;
657
+ export type SetupAiKey = z.infer<typeof SetupAiKeySchema>;
658
+ export type SetupPlaceholder = z.infer<typeof SetupPlaceholderSchema>;
659
+ export type SetupSharedExtension = z.infer<typeof SetupSharedExtensionSchema>;
660
+ export type SetupStateDTO = z.infer<typeof SetupStateDTOSchema>;
661
+ export type ApplySetupRequest = z.infer<typeof ApplySetupRequestSchema>;
662
+ export type PackLookupRef = z.infer<typeof PackLookupRefSchema>;
663
+ export type PackLookupRequest = z.infer<typeof PackLookupRequestSchema>;
664
+ export type PackLookupResponse = z.infer<typeof PackLookupResponseSchema>;