@ailu-ai/contracts 2.0.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 (142) hide show
  1. package/LICENSE +201 -0
  2. package/dist/admin.d.ts +99 -0
  3. package/dist/admin.d.ts.map +1 -0
  4. package/dist/admin.js +59 -0
  5. package/dist/admin.js.map +1 -0
  6. package/dist/admin.test.d.ts +2 -0
  7. package/dist/admin.test.d.ts.map +1 -0
  8. package/dist/admin.test.js +42 -0
  9. package/dist/admin.test.js.map +1 -0
  10. package/dist/approvals.d.ts +58 -0
  11. package/dist/approvals.d.ts.map +1 -0
  12. package/dist/approvals.js +28 -0
  13. package/dist/approvals.js.map +1 -0
  14. package/dist/artifacts.d.ts +22 -0
  15. package/dist/artifacts.d.ts.map +1 -0
  16. package/dist/artifacts.js +9 -0
  17. package/dist/artifacts.js.map +1 -0
  18. package/dist/catalog.d.ts +626 -0
  19. package/dist/catalog.d.ts.map +1 -0
  20. package/dist/catalog.js +69 -0
  21. package/dist/catalog.js.map +1 -0
  22. package/dist/catalog.test.d.ts +2 -0
  23. package/dist/catalog.test.d.ts.map +1 -0
  24. package/dist/catalog.test.js +98 -0
  25. package/dist/catalog.test.js.map +1 -0
  26. package/dist/compliance.d.ts +428 -0
  27. package/dist/compliance.d.ts.map +1 -0
  28. package/dist/compliance.js +80 -0
  29. package/dist/compliance.js.map +1 -0
  30. package/dist/connectors.d.ts +161 -0
  31. package/dist/connectors.d.ts.map +1 -0
  32. package/dist/connectors.js +49 -0
  33. package/dist/connectors.js.map +1 -0
  34. package/dist/error-envelope.d.ts +16 -0
  35. package/dist/error-envelope.d.ts.map +1 -0
  36. package/dist/error-envelope.js +7 -0
  37. package/dist/error-envelope.js.map +1 -0
  38. package/dist/eval.d.ts +144 -0
  39. package/dist/eval.d.ts.map +1 -0
  40. package/dist/eval.js +36 -0
  41. package/dist/eval.js.map +1 -0
  42. package/dist/events.d.ts +359 -0
  43. package/dist/events.d.ts.map +1 -0
  44. package/dist/events.js +134 -0
  45. package/dist/events.js.map +1 -0
  46. package/dist/fleet.d.ts +147 -0
  47. package/dist/fleet.d.ts.map +1 -0
  48. package/dist/fleet.js +34 -0
  49. package/dist/fleet.js.map +1 -0
  50. package/dist/fs-policy.d.ts +101 -0
  51. package/dist/fs-policy.d.ts.map +1 -0
  52. package/dist/fs-policy.js +36 -0
  53. package/dist/fs-policy.js.map +1 -0
  54. package/dist/fs-policy.test.d.ts +2 -0
  55. package/dist/fs-policy.test.d.ts.map +1 -0
  56. package/dist/fs-policy.test.js +35 -0
  57. package/dist/fs-policy.test.js.map +1 -0
  58. package/dist/fs.d.ts +182 -0
  59. package/dist/fs.d.ts.map +1 -0
  60. package/dist/fs.js +59 -0
  61. package/dist/fs.js.map +1 -0
  62. package/dist/fs.test.d.ts +2 -0
  63. package/dist/fs.test.d.ts.map +1 -0
  64. package/dist/fs.test.js +35 -0
  65. package/dist/fs.test.js.map +1 -0
  66. package/dist/graphs.d.ts +951 -0
  67. package/dist/graphs.d.ts.map +1 -0
  68. package/dist/graphs.js +94 -0
  69. package/dist/graphs.js.map +1 -0
  70. package/dist/graphs.test.d.ts +2 -0
  71. package/dist/graphs.test.d.ts.map +1 -0
  72. package/dist/graphs.test.js +65 -0
  73. package/dist/graphs.test.js.map +1 -0
  74. package/dist/index.d.ts +25 -0
  75. package/dist/index.d.ts.map +1 -0
  76. package/dist/index.js +25 -0
  77. package/dist/index.js.map +1 -0
  78. package/dist/index.test.d.ts +2 -0
  79. package/dist/index.test.d.ts.map +1 -0
  80. package/dist/index.test.js +9 -0
  81. package/dist/index.test.js.map +1 -0
  82. package/dist/knowledge.d.ts +315 -0
  83. package/dist/knowledge.d.ts.map +1 -0
  84. package/dist/knowledge.js +111 -0
  85. package/dist/knowledge.js.map +1 -0
  86. package/dist/knowledge.test.d.ts +2 -0
  87. package/dist/knowledge.test.d.ts.map +1 -0
  88. package/dist/knowledge.test.js +22 -0
  89. package/dist/knowledge.test.js.map +1 -0
  90. package/dist/node-metadata.d.ts +3096 -0
  91. package/dist/node-metadata.d.ts.map +1 -0
  92. package/dist/node-metadata.js +184 -0
  93. package/dist/node-metadata.js.map +1 -0
  94. package/dist/node-metadata.test.d.ts +2 -0
  95. package/dist/node-metadata.test.d.ts.map +1 -0
  96. package/dist/node-metadata.test.js +126 -0
  97. package/dist/node-metadata.test.js.map +1 -0
  98. package/dist/observability.d.ts +154 -0
  99. package/dist/observability.d.ts.map +1 -0
  100. package/dist/observability.js +34 -0
  101. package/dist/observability.js.map +1 -0
  102. package/dist/pii.d.ts +88 -0
  103. package/dist/pii.d.ts.map +1 -0
  104. package/dist/pii.js +42 -0
  105. package/dist/pii.js.map +1 -0
  106. package/dist/principal.d.ts +81 -0
  107. package/dist/principal.d.ts.map +1 -0
  108. package/dist/principal.js +48 -0
  109. package/dist/principal.js.map +1 -0
  110. package/dist/principal.test.d.ts +2 -0
  111. package/dist/principal.test.d.ts.map +1 -0
  112. package/dist/principal.test.js +44 -0
  113. package/dist/principal.test.js.map +1 -0
  114. package/dist/registries.d.ts +26 -0
  115. package/dist/registries.d.ts.map +1 -0
  116. package/dist/registries.js +11 -0
  117. package/dist/registries.js.map +1 -0
  118. package/dist/router.d.ts +48 -0
  119. package/dist/router.d.ts.map +1 -0
  120. package/dist/router.js +22 -0
  121. package/dist/router.js.map +1 -0
  122. package/dist/runs.d.ts +270 -0
  123. package/dist/runs.d.ts.map +1 -0
  124. package/dist/runs.js +108 -0
  125. package/dist/runs.js.map +1 -0
  126. package/dist/runs.test.d.ts +2 -0
  127. package/dist/runs.test.d.ts.map +1 -0
  128. package/dist/runs.test.js +79 -0
  129. package/dist/runs.test.js.map +1 -0
  130. package/dist/search.d.ts +88 -0
  131. package/dist/search.d.ts.map +1 -0
  132. package/dist/search.js +23 -0
  133. package/dist/search.js.map +1 -0
  134. package/dist/skills.d.ts +208 -0
  135. package/dist/skills.d.ts.map +1 -0
  136. package/dist/skills.js +63 -0
  137. package/dist/skills.js.map +1 -0
  138. package/dist/tenant.d.ts +204 -0
  139. package/dist/tenant.d.ts.map +1 -0
  140. package/dist/tenant.js +46 -0
  141. package/dist/tenant.js.map +1 -0
  142. package/package.json +33 -0
@@ -0,0 +1,626 @@
1
+ import { z } from "zod";
2
+ /**
3
+ * The component / prebuilt-agent / model-tier catalog contract: the shape the API
4
+ * serves so Studio can render the building-block library without importing the engine
5
+ * or the SDK. The SDK owns the source metadata (`@ailu-ai/graph-sdk` `catalog`); the
6
+ * API validates it against these schemas and forwards it unchanged.
7
+ */
8
+ /** A single parameter a component factory accepts. */
9
+ export declare const ComponentParamDtoSchema: z.ZodObject<{
10
+ name: z.ZodString;
11
+ type: z.ZodString;
12
+ required: z.ZodBoolean;
13
+ description: z.ZodString;
14
+ }, "strip", z.ZodTypeAny, {
15
+ type: string;
16
+ name: string;
17
+ required: boolean;
18
+ description: string;
19
+ }, {
20
+ type: string;
21
+ name: string;
22
+ required: boolean;
23
+ description: string;
24
+ }>;
25
+ /** The category buckets a component falls into in the library. */
26
+ export declare const ComponentCategoryDtoSchema: z.ZodEnum<["prompt", "validation", "parsing", "routing", "retrieval", "text", "data", "integration", "splitter", "generation", "evaluation", "writer"]>;
27
+ /** One entry in the component library: a `kind` plus its presentation + params. */
28
+ export declare const ComponentCatalogEntryDtoSchema: z.ZodObject<{
29
+ kind: z.ZodString;
30
+ title: z.ZodString;
31
+ category: z.ZodEnum<["prompt", "validation", "parsing", "routing", "retrieval", "text", "data", "integration", "splitter", "generation", "evaluation", "writer"]>;
32
+ description: z.ZodString;
33
+ params: z.ZodArray<z.ZodObject<{
34
+ name: z.ZodString;
35
+ type: z.ZodString;
36
+ required: z.ZodBoolean;
37
+ description: z.ZodString;
38
+ }, "strip", z.ZodTypeAny, {
39
+ type: string;
40
+ name: string;
41
+ required: boolean;
42
+ description: string;
43
+ }, {
44
+ type: string;
45
+ name: string;
46
+ required: boolean;
47
+ description: string;
48
+ }>, "many">;
49
+ /** `true` for vendor-I/O integration components (httpFetch / webSearch). */
50
+ integration: z.ZodBoolean;
51
+ }, "strip", z.ZodTypeAny, {
52
+ params: {
53
+ type: string;
54
+ name: string;
55
+ required: boolean;
56
+ description: string;
57
+ }[];
58
+ description: string;
59
+ integration: boolean;
60
+ kind: string;
61
+ title: string;
62
+ category: "validation" | "prompt" | "parsing" | "routing" | "retrieval" | "text" | "data" | "integration" | "splitter" | "generation" | "evaluation" | "writer";
63
+ }, {
64
+ params: {
65
+ type: string;
66
+ name: string;
67
+ required: boolean;
68
+ description: string;
69
+ }[];
70
+ description: string;
71
+ integration: boolean;
72
+ kind: string;
73
+ title: string;
74
+ category: "validation" | "prompt" | "parsing" | "routing" | "retrieval" | "text" | "data" | "integration" | "splitter" | "generation" | "evaluation" | "writer";
75
+ }>;
76
+ /** The four capability tiers, wire-compatible (camelCase) with the engine `ModelTier`. */
77
+ export declare const ModelTierDtoSchema: z.ZodEnum<["frontier", "balanced", "fast", "creative"]>;
78
+ /** One entry in the prebuilt-agent catalog, mirroring the Rust `PrebuiltAgent` table. */
79
+ export declare const PrebuiltAgentCatalogEntryDtoSchema: z.ZodObject<{
80
+ name: z.ZodString;
81
+ title: z.ZodString;
82
+ description: z.ZodString;
83
+ tier: z.ZodEnum<["frontier", "balanced", "fast", "creative"]>;
84
+ tools: z.ZodArray<z.ZodString, "many">;
85
+ suspendForApproval: z.ZodBoolean;
86
+ outputChannel: z.ZodString;
87
+ }, "strip", z.ZodTypeAny, {
88
+ name: string;
89
+ description: string;
90
+ title: string;
91
+ tier: "frontier" | "balanced" | "fast" | "creative";
92
+ tools: string[];
93
+ suspendForApproval: boolean;
94
+ outputChannel: string;
95
+ }, {
96
+ name: string;
97
+ description: string;
98
+ title: string;
99
+ tier: "frontier" | "balanced" | "fast" | "creative";
100
+ tools: string[];
101
+ suspendForApproval: boolean;
102
+ outputChannel: string;
103
+ }>;
104
+ /** Describes one capability tier plus its recommended per-provider models. */
105
+ export declare const ModelTierInfoDtoSchema: z.ZodObject<{
106
+ tier: z.ZodEnum<["frontier", "balanced", "fast", "creative"]>;
107
+ description: z.ZodString;
108
+ /** `provider -> model` recommended defaults for this tier. */
109
+ models: z.ZodRecord<z.ZodString, z.ZodString>;
110
+ }, "strip", z.ZodTypeAny, {
111
+ description: string;
112
+ tier: "frontier" | "balanced" | "fast" | "creative";
113
+ models: Record<string, string>;
114
+ }, {
115
+ description: string;
116
+ tier: "frontier" | "balanced" | "fast" | "creative";
117
+ models: Record<string, string>;
118
+ }>;
119
+ /** The full catalog the API serves to Studio. */
120
+ export declare const CatalogDtoSchema: z.ZodObject<{
121
+ components: z.ZodArray<z.ZodObject<{
122
+ kind: z.ZodString;
123
+ title: z.ZodString;
124
+ category: z.ZodEnum<["prompt", "validation", "parsing", "routing", "retrieval", "text", "data", "integration", "splitter", "generation", "evaluation", "writer"]>;
125
+ description: z.ZodString;
126
+ params: z.ZodArray<z.ZodObject<{
127
+ name: z.ZodString;
128
+ type: z.ZodString;
129
+ required: z.ZodBoolean;
130
+ description: z.ZodString;
131
+ }, "strip", z.ZodTypeAny, {
132
+ type: string;
133
+ name: string;
134
+ required: boolean;
135
+ description: string;
136
+ }, {
137
+ type: string;
138
+ name: string;
139
+ required: boolean;
140
+ description: string;
141
+ }>, "many">;
142
+ /** `true` for vendor-I/O integration components (httpFetch / webSearch). */
143
+ integration: z.ZodBoolean;
144
+ }, "strip", z.ZodTypeAny, {
145
+ params: {
146
+ type: string;
147
+ name: string;
148
+ required: boolean;
149
+ description: string;
150
+ }[];
151
+ description: string;
152
+ integration: boolean;
153
+ kind: string;
154
+ title: string;
155
+ category: "validation" | "prompt" | "parsing" | "routing" | "retrieval" | "text" | "data" | "integration" | "splitter" | "generation" | "evaluation" | "writer";
156
+ }, {
157
+ params: {
158
+ type: string;
159
+ name: string;
160
+ required: boolean;
161
+ description: string;
162
+ }[];
163
+ description: string;
164
+ integration: boolean;
165
+ kind: string;
166
+ title: string;
167
+ category: "validation" | "prompt" | "parsing" | "routing" | "retrieval" | "text" | "data" | "integration" | "splitter" | "generation" | "evaluation" | "writer";
168
+ }>, "many">;
169
+ prebuilt: z.ZodArray<z.ZodObject<{
170
+ name: z.ZodString;
171
+ title: z.ZodString;
172
+ description: z.ZodString;
173
+ tier: z.ZodEnum<["frontier", "balanced", "fast", "creative"]>;
174
+ tools: z.ZodArray<z.ZodString, "many">;
175
+ suspendForApproval: z.ZodBoolean;
176
+ outputChannel: z.ZodString;
177
+ }, "strip", z.ZodTypeAny, {
178
+ name: string;
179
+ description: string;
180
+ title: string;
181
+ tier: "frontier" | "balanced" | "fast" | "creative";
182
+ tools: string[];
183
+ suspendForApproval: boolean;
184
+ outputChannel: string;
185
+ }, {
186
+ name: string;
187
+ description: string;
188
+ title: string;
189
+ tier: "frontier" | "balanced" | "fast" | "creative";
190
+ tools: string[];
191
+ suspendForApproval: boolean;
192
+ outputChannel: string;
193
+ }>, "many">;
194
+ tiers: z.ZodArray<z.ZodObject<{
195
+ tier: z.ZodEnum<["frontier", "balanced", "fast", "creative"]>;
196
+ description: z.ZodString;
197
+ /** `provider -> model` recommended defaults for this tier. */
198
+ models: z.ZodRecord<z.ZodString, z.ZodString>;
199
+ }, "strip", z.ZodTypeAny, {
200
+ description: string;
201
+ tier: "frontier" | "balanced" | "fast" | "creative";
202
+ models: Record<string, string>;
203
+ }, {
204
+ description: string;
205
+ tier: "frontier" | "balanced" | "fast" | "creative";
206
+ models: Record<string, string>;
207
+ }>, "many">;
208
+ /** SDK-authored example graphs, served so Studio can render + import them. */
209
+ exampleGraphs: z.ZodArray<z.ZodObject<{
210
+ slug: z.ZodString;
211
+ name: z.ZodString;
212
+ description: z.ZodString;
213
+ definition: z.ZodObject<{
214
+ id: z.ZodOptional<z.ZodString>;
215
+ version: z.ZodString;
216
+ name: z.ZodString;
217
+ recursionLimit: z.ZodOptional<z.ZodNumber>;
218
+ channels: z.ZodRecord<z.ZodString, z.ZodObject<{
219
+ type: z.ZodString;
220
+ reducer: z.ZodEnum<["replace", "append", "merge"]>;
221
+ default: z.ZodOptional<z.ZodUnknown>;
222
+ noLog: z.ZodOptional<z.ZodBoolean>;
223
+ }, "strip", z.ZodTypeAny, {
224
+ type: string;
225
+ reducer: "replace" | "append" | "merge";
226
+ default?: unknown;
227
+ noLog?: boolean | undefined;
228
+ }, {
229
+ type: string;
230
+ reducer: "replace" | "append" | "merge";
231
+ default?: unknown;
232
+ noLog?: boolean | undefined;
233
+ }>>;
234
+ nodes: z.ZodArray<z.ZodObject<{
235
+ id: z.ZodString;
236
+ type: z.ZodEnum<["action", "agent", "tool", "human-gate", "subgraph"]>;
237
+ label: z.ZodString;
238
+ subgraphId: z.ZodOptional<z.ZodString>;
239
+ inputMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
240
+ outputMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
241
+ fanOut: z.ZodOptional<z.ZodObject<{
242
+ parallelTo: z.ZodArray<z.ZodString, "many">;
243
+ joinAt: z.ZodString;
244
+ }, "strip", z.ZodTypeAny, {
245
+ parallelTo: string[];
246
+ joinAt: string;
247
+ }, {
248
+ parallelTo: string[];
249
+ joinAt: string;
250
+ }>>;
251
+ retryPolicy: z.ZodOptional<z.ZodObject<{
252
+ maxAttempts: z.ZodNumber;
253
+ backoffMs: z.ZodNumber;
254
+ }, "strip", z.ZodTypeAny, {
255
+ maxAttempts: number;
256
+ backoffMs: number;
257
+ }, {
258
+ maxAttempts: number;
259
+ backoffMs: number;
260
+ }>>;
261
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
262
+ }, "strip", z.ZodTypeAny, {
263
+ type: "action" | "agent" | "tool" | "human-gate" | "subgraph";
264
+ id: string;
265
+ label: string;
266
+ subgraphId?: string | undefined;
267
+ inputMapping?: Record<string, string> | undefined;
268
+ outputMapping?: Record<string, string> | undefined;
269
+ fanOut?: {
270
+ parallelTo: string[];
271
+ joinAt: string;
272
+ } | undefined;
273
+ retryPolicy?: {
274
+ maxAttempts: number;
275
+ backoffMs: number;
276
+ } | undefined;
277
+ metadata?: Record<string, unknown> | undefined;
278
+ }, {
279
+ type: "action" | "agent" | "tool" | "human-gate" | "subgraph";
280
+ id: string;
281
+ label: string;
282
+ subgraphId?: string | undefined;
283
+ inputMapping?: Record<string, string> | undefined;
284
+ outputMapping?: Record<string, string> | undefined;
285
+ fanOut?: {
286
+ parallelTo: string[];
287
+ joinAt: string;
288
+ } | undefined;
289
+ retryPolicy?: {
290
+ maxAttempts: number;
291
+ backoffMs: number;
292
+ } | undefined;
293
+ metadata?: Record<string, unknown> | undefined;
294
+ }>, "many">;
295
+ edges: z.ZodArray<z.ZodObject<{
296
+ id: z.ZodString;
297
+ from: z.ZodString;
298
+ to: z.ZodString;
299
+ type: z.ZodEnum<["default", "conditional"]>;
300
+ condition: z.ZodOptional<z.ZodString>;
301
+ }, "strip", z.ZodTypeAny, {
302
+ type: "default" | "conditional";
303
+ to: string;
304
+ id: string;
305
+ from: string;
306
+ condition?: string | undefined;
307
+ }, {
308
+ type: "default" | "conditional";
309
+ to: string;
310
+ id: string;
311
+ from: string;
312
+ condition?: string | undefined;
313
+ }>, "many">;
314
+ entryNodeId: z.ZodString;
315
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
316
+ }, "strip", z.ZodTypeAny, {
317
+ name: string;
318
+ version: string;
319
+ channels: Record<string, {
320
+ type: string;
321
+ reducer: "replace" | "append" | "merge";
322
+ default?: unknown;
323
+ noLog?: boolean | undefined;
324
+ }>;
325
+ nodes: {
326
+ type: "action" | "agent" | "tool" | "human-gate" | "subgraph";
327
+ id: string;
328
+ label: string;
329
+ subgraphId?: string | undefined;
330
+ inputMapping?: Record<string, string> | undefined;
331
+ outputMapping?: Record<string, string> | undefined;
332
+ fanOut?: {
333
+ parallelTo: string[];
334
+ joinAt: string;
335
+ } | undefined;
336
+ retryPolicy?: {
337
+ maxAttempts: number;
338
+ backoffMs: number;
339
+ } | undefined;
340
+ metadata?: Record<string, unknown> | undefined;
341
+ }[];
342
+ edges: {
343
+ type: "default" | "conditional";
344
+ to: string;
345
+ id: string;
346
+ from: string;
347
+ condition?: string | undefined;
348
+ }[];
349
+ entryNodeId: string;
350
+ id?: string | undefined;
351
+ metadata?: Record<string, unknown> | undefined;
352
+ recursionLimit?: number | undefined;
353
+ }, {
354
+ name: string;
355
+ version: string;
356
+ channels: Record<string, {
357
+ type: string;
358
+ reducer: "replace" | "append" | "merge";
359
+ default?: unknown;
360
+ noLog?: boolean | undefined;
361
+ }>;
362
+ nodes: {
363
+ type: "action" | "agent" | "tool" | "human-gate" | "subgraph";
364
+ id: string;
365
+ label: string;
366
+ subgraphId?: string | undefined;
367
+ inputMapping?: Record<string, string> | undefined;
368
+ outputMapping?: Record<string, string> | undefined;
369
+ fanOut?: {
370
+ parallelTo: string[];
371
+ joinAt: string;
372
+ } | undefined;
373
+ retryPolicy?: {
374
+ maxAttempts: number;
375
+ backoffMs: number;
376
+ } | undefined;
377
+ metadata?: Record<string, unknown> | undefined;
378
+ }[];
379
+ edges: {
380
+ type: "default" | "conditional";
381
+ to: string;
382
+ id: string;
383
+ from: string;
384
+ condition?: string | undefined;
385
+ }[];
386
+ entryNodeId: string;
387
+ id?: string | undefined;
388
+ metadata?: Record<string, unknown> | undefined;
389
+ recursionLimit?: number | undefined;
390
+ }>;
391
+ }, "strip", z.ZodTypeAny, {
392
+ name: string;
393
+ slug: string;
394
+ description: string;
395
+ definition: {
396
+ name: string;
397
+ version: string;
398
+ channels: Record<string, {
399
+ type: string;
400
+ reducer: "replace" | "append" | "merge";
401
+ default?: unknown;
402
+ noLog?: boolean | undefined;
403
+ }>;
404
+ nodes: {
405
+ type: "action" | "agent" | "tool" | "human-gate" | "subgraph";
406
+ id: string;
407
+ label: string;
408
+ subgraphId?: string | undefined;
409
+ inputMapping?: Record<string, string> | undefined;
410
+ outputMapping?: Record<string, string> | undefined;
411
+ fanOut?: {
412
+ parallelTo: string[];
413
+ joinAt: string;
414
+ } | undefined;
415
+ retryPolicy?: {
416
+ maxAttempts: number;
417
+ backoffMs: number;
418
+ } | undefined;
419
+ metadata?: Record<string, unknown> | undefined;
420
+ }[];
421
+ edges: {
422
+ type: "default" | "conditional";
423
+ to: string;
424
+ id: string;
425
+ from: string;
426
+ condition?: string | undefined;
427
+ }[];
428
+ entryNodeId: string;
429
+ id?: string | undefined;
430
+ metadata?: Record<string, unknown> | undefined;
431
+ recursionLimit?: number | undefined;
432
+ };
433
+ }, {
434
+ name: string;
435
+ slug: string;
436
+ description: string;
437
+ definition: {
438
+ name: string;
439
+ version: string;
440
+ channels: Record<string, {
441
+ type: string;
442
+ reducer: "replace" | "append" | "merge";
443
+ default?: unknown;
444
+ noLog?: boolean | undefined;
445
+ }>;
446
+ nodes: {
447
+ type: "action" | "agent" | "tool" | "human-gate" | "subgraph";
448
+ id: string;
449
+ label: string;
450
+ subgraphId?: string | undefined;
451
+ inputMapping?: Record<string, string> | undefined;
452
+ outputMapping?: Record<string, string> | undefined;
453
+ fanOut?: {
454
+ parallelTo: string[];
455
+ joinAt: string;
456
+ } | undefined;
457
+ retryPolicy?: {
458
+ maxAttempts: number;
459
+ backoffMs: number;
460
+ } | undefined;
461
+ metadata?: Record<string, unknown> | undefined;
462
+ }[];
463
+ edges: {
464
+ type: "default" | "conditional";
465
+ to: string;
466
+ id: string;
467
+ from: string;
468
+ condition?: string | undefined;
469
+ }[];
470
+ entryNodeId: string;
471
+ id?: string | undefined;
472
+ metadata?: Record<string, unknown> | undefined;
473
+ recursionLimit?: number | undefined;
474
+ };
475
+ }>, "many">;
476
+ }, "strip", z.ZodTypeAny, {
477
+ components: {
478
+ params: {
479
+ type: string;
480
+ name: string;
481
+ required: boolean;
482
+ description: string;
483
+ }[];
484
+ description: string;
485
+ integration: boolean;
486
+ kind: string;
487
+ title: string;
488
+ category: "validation" | "prompt" | "parsing" | "routing" | "retrieval" | "text" | "data" | "integration" | "splitter" | "generation" | "evaluation" | "writer";
489
+ }[];
490
+ prebuilt: {
491
+ name: string;
492
+ description: string;
493
+ title: string;
494
+ tier: "frontier" | "balanced" | "fast" | "creative";
495
+ tools: string[];
496
+ suspendForApproval: boolean;
497
+ outputChannel: string;
498
+ }[];
499
+ tiers: {
500
+ description: string;
501
+ tier: "frontier" | "balanced" | "fast" | "creative";
502
+ models: Record<string, string>;
503
+ }[];
504
+ exampleGraphs: {
505
+ name: string;
506
+ slug: string;
507
+ description: string;
508
+ definition: {
509
+ name: string;
510
+ version: string;
511
+ channels: Record<string, {
512
+ type: string;
513
+ reducer: "replace" | "append" | "merge";
514
+ default?: unknown;
515
+ noLog?: boolean | undefined;
516
+ }>;
517
+ nodes: {
518
+ type: "action" | "agent" | "tool" | "human-gate" | "subgraph";
519
+ id: string;
520
+ label: string;
521
+ subgraphId?: string | undefined;
522
+ inputMapping?: Record<string, string> | undefined;
523
+ outputMapping?: Record<string, string> | undefined;
524
+ fanOut?: {
525
+ parallelTo: string[];
526
+ joinAt: string;
527
+ } | undefined;
528
+ retryPolicy?: {
529
+ maxAttempts: number;
530
+ backoffMs: number;
531
+ } | undefined;
532
+ metadata?: Record<string, unknown> | undefined;
533
+ }[];
534
+ edges: {
535
+ type: "default" | "conditional";
536
+ to: string;
537
+ id: string;
538
+ from: string;
539
+ condition?: string | undefined;
540
+ }[];
541
+ entryNodeId: string;
542
+ id?: string | undefined;
543
+ metadata?: Record<string, unknown> | undefined;
544
+ recursionLimit?: number | undefined;
545
+ };
546
+ }[];
547
+ }, {
548
+ components: {
549
+ params: {
550
+ type: string;
551
+ name: string;
552
+ required: boolean;
553
+ description: string;
554
+ }[];
555
+ description: string;
556
+ integration: boolean;
557
+ kind: string;
558
+ title: string;
559
+ category: "validation" | "prompt" | "parsing" | "routing" | "retrieval" | "text" | "data" | "integration" | "splitter" | "generation" | "evaluation" | "writer";
560
+ }[];
561
+ prebuilt: {
562
+ name: string;
563
+ description: string;
564
+ title: string;
565
+ tier: "frontier" | "balanced" | "fast" | "creative";
566
+ tools: string[];
567
+ suspendForApproval: boolean;
568
+ outputChannel: string;
569
+ }[];
570
+ tiers: {
571
+ description: string;
572
+ tier: "frontier" | "balanced" | "fast" | "creative";
573
+ models: Record<string, string>;
574
+ }[];
575
+ exampleGraphs: {
576
+ name: string;
577
+ slug: string;
578
+ description: string;
579
+ definition: {
580
+ name: string;
581
+ version: string;
582
+ channels: Record<string, {
583
+ type: string;
584
+ reducer: "replace" | "append" | "merge";
585
+ default?: unknown;
586
+ noLog?: boolean | undefined;
587
+ }>;
588
+ nodes: {
589
+ type: "action" | "agent" | "tool" | "human-gate" | "subgraph";
590
+ id: string;
591
+ label: string;
592
+ subgraphId?: string | undefined;
593
+ inputMapping?: Record<string, string> | undefined;
594
+ outputMapping?: Record<string, string> | undefined;
595
+ fanOut?: {
596
+ parallelTo: string[];
597
+ joinAt: string;
598
+ } | undefined;
599
+ retryPolicy?: {
600
+ maxAttempts: number;
601
+ backoffMs: number;
602
+ } | undefined;
603
+ metadata?: Record<string, unknown> | undefined;
604
+ }[];
605
+ edges: {
606
+ type: "default" | "conditional";
607
+ to: string;
608
+ id: string;
609
+ from: string;
610
+ condition?: string | undefined;
611
+ }[];
612
+ entryNodeId: string;
613
+ id?: string | undefined;
614
+ metadata?: Record<string, unknown> | undefined;
615
+ recursionLimit?: number | undefined;
616
+ };
617
+ }[];
618
+ }>;
619
+ export type ComponentParamDto = z.infer<typeof ComponentParamDtoSchema>;
620
+ export type ComponentCategoryDto = z.infer<typeof ComponentCategoryDtoSchema>;
621
+ export type ComponentCatalogEntryDto = z.infer<typeof ComponentCatalogEntryDtoSchema>;
622
+ export type ModelTierDto = z.infer<typeof ModelTierDtoSchema>;
623
+ export type PrebuiltAgentCatalogEntryDto = z.infer<typeof PrebuiltAgentCatalogEntryDtoSchema>;
624
+ export type ModelTierInfoDto = z.infer<typeof ModelTierInfoDtoSchema>;
625
+ export type CatalogDto = z.infer<typeof CatalogDtoSchema>;
626
+ //# sourceMappingURL=catalog.d.ts.map
@@ -0,0 +1 @@
1
+ {"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