@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,951 @@
1
+ import { z } from "zod";
2
+ export declare const NodeTypeSchema: z.ZodEnum<["action", "agent", "tool", "human-gate", "subgraph"]>;
3
+ export declare const EdgeTypeSchema: z.ZodEnum<["default", "conditional"]>;
4
+ declare const NodeDefinitionDtoSchema: z.ZodObject<{
5
+ id: z.ZodString;
6
+ type: z.ZodEnum<["action", "agent", "tool", "human-gate", "subgraph"]>;
7
+ label: z.ZodString;
8
+ subgraphId: z.ZodOptional<z.ZodString>;
9
+ inputMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
10
+ outputMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
11
+ fanOut: z.ZodOptional<z.ZodObject<{
12
+ parallelTo: z.ZodArray<z.ZodString, "many">;
13
+ joinAt: z.ZodString;
14
+ }, "strip", z.ZodTypeAny, {
15
+ parallelTo: string[];
16
+ joinAt: string;
17
+ }, {
18
+ parallelTo: string[];
19
+ joinAt: string;
20
+ }>>;
21
+ retryPolicy: z.ZodOptional<z.ZodObject<{
22
+ maxAttempts: z.ZodNumber;
23
+ backoffMs: z.ZodNumber;
24
+ }, "strip", z.ZodTypeAny, {
25
+ maxAttempts: number;
26
+ backoffMs: number;
27
+ }, {
28
+ maxAttempts: number;
29
+ backoffMs: number;
30
+ }>>;
31
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
32
+ }, "strip", z.ZodTypeAny, {
33
+ type: "action" | "agent" | "tool" | "human-gate" | "subgraph";
34
+ id: string;
35
+ label: string;
36
+ subgraphId?: string | undefined;
37
+ inputMapping?: Record<string, string> | undefined;
38
+ outputMapping?: Record<string, string> | undefined;
39
+ fanOut?: {
40
+ parallelTo: string[];
41
+ joinAt: string;
42
+ } | undefined;
43
+ retryPolicy?: {
44
+ maxAttempts: number;
45
+ backoffMs: number;
46
+ } | undefined;
47
+ metadata?: Record<string, unknown> | undefined;
48
+ }, {
49
+ type: "action" | "agent" | "tool" | "human-gate" | "subgraph";
50
+ id: string;
51
+ label: string;
52
+ subgraphId?: string | undefined;
53
+ inputMapping?: Record<string, string> | undefined;
54
+ outputMapping?: Record<string, string> | undefined;
55
+ fanOut?: {
56
+ parallelTo: string[];
57
+ joinAt: string;
58
+ } | undefined;
59
+ retryPolicy?: {
60
+ maxAttempts: number;
61
+ backoffMs: number;
62
+ } | undefined;
63
+ metadata?: Record<string, unknown> | undefined;
64
+ }>;
65
+ declare const EdgeDefinitionDtoSchema: z.ZodObject<{
66
+ id: z.ZodString;
67
+ from: z.ZodString;
68
+ to: z.ZodString;
69
+ type: z.ZodEnum<["default", "conditional"]>;
70
+ condition: z.ZodOptional<z.ZodString>;
71
+ }, "strip", z.ZodTypeAny, {
72
+ type: "default" | "conditional";
73
+ to: string;
74
+ id: string;
75
+ from: string;
76
+ condition?: string | undefined;
77
+ }, {
78
+ type: "default" | "conditional";
79
+ to: string;
80
+ id: string;
81
+ from: string;
82
+ condition?: string | undefined;
83
+ }>;
84
+ declare const ChannelDefinitionDtoSchema: z.ZodObject<{
85
+ type: z.ZodString;
86
+ reducer: z.ZodEnum<["replace", "append", "merge"]>;
87
+ default: z.ZodOptional<z.ZodUnknown>;
88
+ /** ADR 0032: never emit this channel's value in run events/logs (masked; still checkpointed). */
89
+ noLog: z.ZodOptional<z.ZodBoolean>;
90
+ }, "strip", z.ZodTypeAny, {
91
+ type: string;
92
+ reducer: "replace" | "append" | "merge";
93
+ default?: unknown;
94
+ noLog?: boolean | undefined;
95
+ }, {
96
+ type: string;
97
+ reducer: "replace" | "append" | "merge";
98
+ default?: unknown;
99
+ noLog?: boolean | undefined;
100
+ }>;
101
+ declare const ChannelsDtoSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
102
+ type: z.ZodString;
103
+ reducer: z.ZodEnum<["replace", "append", "merge"]>;
104
+ default: z.ZodOptional<z.ZodUnknown>;
105
+ /** ADR 0032: never emit this channel's value in run events/logs (masked; still checkpointed). */
106
+ noLog: z.ZodOptional<z.ZodBoolean>;
107
+ }, "strip", z.ZodTypeAny, {
108
+ type: string;
109
+ reducer: "replace" | "append" | "merge";
110
+ default?: unknown;
111
+ noLog?: boolean | undefined;
112
+ }, {
113
+ type: string;
114
+ reducer: "replace" | "append" | "merge";
115
+ default?: unknown;
116
+ noLog?: boolean | undefined;
117
+ }>>;
118
+ export declare const CreateGraphDtoSchema: z.ZodObject<{
119
+ version: z.ZodString;
120
+ name: z.ZodString;
121
+ recursionLimit: z.ZodOptional<z.ZodNumber>;
122
+ channels: z.ZodRecord<z.ZodString, z.ZodObject<{
123
+ type: z.ZodString;
124
+ reducer: z.ZodEnum<["replace", "append", "merge"]>;
125
+ default: z.ZodOptional<z.ZodUnknown>;
126
+ /** ADR 0032: never emit this channel's value in run events/logs (masked; still checkpointed). */
127
+ noLog: z.ZodOptional<z.ZodBoolean>;
128
+ }, "strip", z.ZodTypeAny, {
129
+ type: string;
130
+ reducer: "replace" | "append" | "merge";
131
+ default?: unknown;
132
+ noLog?: boolean | undefined;
133
+ }, {
134
+ type: string;
135
+ reducer: "replace" | "append" | "merge";
136
+ default?: unknown;
137
+ noLog?: boolean | undefined;
138
+ }>>;
139
+ nodes: z.ZodArray<z.ZodObject<{
140
+ id: z.ZodString;
141
+ type: z.ZodEnum<["action", "agent", "tool", "human-gate", "subgraph"]>;
142
+ label: z.ZodString;
143
+ subgraphId: z.ZodOptional<z.ZodString>;
144
+ inputMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
145
+ outputMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
146
+ fanOut: z.ZodOptional<z.ZodObject<{
147
+ parallelTo: z.ZodArray<z.ZodString, "many">;
148
+ joinAt: z.ZodString;
149
+ }, "strip", z.ZodTypeAny, {
150
+ parallelTo: string[];
151
+ joinAt: string;
152
+ }, {
153
+ parallelTo: string[];
154
+ joinAt: string;
155
+ }>>;
156
+ retryPolicy: z.ZodOptional<z.ZodObject<{
157
+ maxAttempts: z.ZodNumber;
158
+ backoffMs: z.ZodNumber;
159
+ }, "strip", z.ZodTypeAny, {
160
+ maxAttempts: number;
161
+ backoffMs: number;
162
+ }, {
163
+ maxAttempts: number;
164
+ backoffMs: number;
165
+ }>>;
166
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
167
+ }, "strip", z.ZodTypeAny, {
168
+ type: "action" | "agent" | "tool" | "human-gate" | "subgraph";
169
+ id: string;
170
+ label: string;
171
+ subgraphId?: string | undefined;
172
+ inputMapping?: Record<string, string> | undefined;
173
+ outputMapping?: Record<string, string> | undefined;
174
+ fanOut?: {
175
+ parallelTo: string[];
176
+ joinAt: string;
177
+ } | undefined;
178
+ retryPolicy?: {
179
+ maxAttempts: number;
180
+ backoffMs: number;
181
+ } | undefined;
182
+ metadata?: Record<string, unknown> | undefined;
183
+ }, {
184
+ type: "action" | "agent" | "tool" | "human-gate" | "subgraph";
185
+ id: string;
186
+ label: string;
187
+ subgraphId?: string | undefined;
188
+ inputMapping?: Record<string, string> | undefined;
189
+ outputMapping?: Record<string, string> | undefined;
190
+ fanOut?: {
191
+ parallelTo: string[];
192
+ joinAt: string;
193
+ } | undefined;
194
+ retryPolicy?: {
195
+ maxAttempts: number;
196
+ backoffMs: number;
197
+ } | undefined;
198
+ metadata?: Record<string, unknown> | undefined;
199
+ }>, "many">;
200
+ edges: z.ZodArray<z.ZodObject<{
201
+ id: z.ZodString;
202
+ from: z.ZodString;
203
+ to: z.ZodString;
204
+ type: z.ZodEnum<["default", "conditional"]>;
205
+ condition: z.ZodOptional<z.ZodString>;
206
+ }, "strip", z.ZodTypeAny, {
207
+ type: "default" | "conditional";
208
+ to: string;
209
+ id: string;
210
+ from: string;
211
+ condition?: string | undefined;
212
+ }, {
213
+ type: "default" | "conditional";
214
+ to: string;
215
+ id: string;
216
+ from: string;
217
+ condition?: string | undefined;
218
+ }>, "many">;
219
+ entryNodeId: z.ZodString;
220
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
221
+ }, "strip", z.ZodTypeAny, {
222
+ name: string;
223
+ version: string;
224
+ channels: Record<string, {
225
+ type: string;
226
+ reducer: "replace" | "append" | "merge";
227
+ default?: unknown;
228
+ noLog?: boolean | undefined;
229
+ }>;
230
+ nodes: {
231
+ type: "action" | "agent" | "tool" | "human-gate" | "subgraph";
232
+ id: string;
233
+ label: string;
234
+ subgraphId?: string | undefined;
235
+ inputMapping?: Record<string, string> | undefined;
236
+ outputMapping?: Record<string, string> | undefined;
237
+ fanOut?: {
238
+ parallelTo: string[];
239
+ joinAt: string;
240
+ } | undefined;
241
+ retryPolicy?: {
242
+ maxAttempts: number;
243
+ backoffMs: number;
244
+ } | undefined;
245
+ metadata?: Record<string, unknown> | undefined;
246
+ }[];
247
+ edges: {
248
+ type: "default" | "conditional";
249
+ to: string;
250
+ id: string;
251
+ from: string;
252
+ condition?: string | undefined;
253
+ }[];
254
+ entryNodeId: string;
255
+ metadata?: Record<string, unknown> | undefined;
256
+ recursionLimit?: number | undefined;
257
+ }, {
258
+ name: string;
259
+ version: string;
260
+ channels: Record<string, {
261
+ type: string;
262
+ reducer: "replace" | "append" | "merge";
263
+ default?: unknown;
264
+ noLog?: boolean | undefined;
265
+ }>;
266
+ nodes: {
267
+ type: "action" | "agent" | "tool" | "human-gate" | "subgraph";
268
+ id: string;
269
+ label: string;
270
+ subgraphId?: string | undefined;
271
+ inputMapping?: Record<string, string> | undefined;
272
+ outputMapping?: Record<string, string> | undefined;
273
+ fanOut?: {
274
+ parallelTo: string[];
275
+ joinAt: string;
276
+ } | undefined;
277
+ retryPolicy?: {
278
+ maxAttempts: number;
279
+ backoffMs: number;
280
+ } | undefined;
281
+ metadata?: Record<string, unknown> | undefined;
282
+ }[];
283
+ edges: {
284
+ type: "default" | "conditional";
285
+ to: string;
286
+ id: string;
287
+ from: string;
288
+ condition?: string | undefined;
289
+ }[];
290
+ entryNodeId: string;
291
+ metadata?: Record<string, unknown> | undefined;
292
+ recursionLimit?: number | undefined;
293
+ }>;
294
+ export declare const GraphDtoSchema: z.ZodObject<{
295
+ id: z.ZodString;
296
+ version: z.ZodString;
297
+ name: z.ZodString;
298
+ recursionLimit: z.ZodOptional<z.ZodNumber>;
299
+ channels: z.ZodRecord<z.ZodString, z.ZodObject<{
300
+ type: z.ZodString;
301
+ reducer: z.ZodEnum<["replace", "append", "merge"]>;
302
+ default: z.ZodOptional<z.ZodUnknown>;
303
+ /** ADR 0032: never emit this channel's value in run events/logs (masked; still checkpointed). */
304
+ noLog: z.ZodOptional<z.ZodBoolean>;
305
+ }, "strip", z.ZodTypeAny, {
306
+ type: string;
307
+ reducer: "replace" | "append" | "merge";
308
+ default?: unknown;
309
+ noLog?: boolean | undefined;
310
+ }, {
311
+ type: string;
312
+ reducer: "replace" | "append" | "merge";
313
+ default?: unknown;
314
+ noLog?: boolean | undefined;
315
+ }>>;
316
+ nodes: z.ZodArray<z.ZodObject<{
317
+ id: z.ZodString;
318
+ type: z.ZodEnum<["action", "agent", "tool", "human-gate", "subgraph"]>;
319
+ label: z.ZodString;
320
+ subgraphId: z.ZodOptional<z.ZodString>;
321
+ inputMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
322
+ outputMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
323
+ fanOut: z.ZodOptional<z.ZodObject<{
324
+ parallelTo: z.ZodArray<z.ZodString, "many">;
325
+ joinAt: z.ZodString;
326
+ }, "strip", z.ZodTypeAny, {
327
+ parallelTo: string[];
328
+ joinAt: string;
329
+ }, {
330
+ parallelTo: string[];
331
+ joinAt: string;
332
+ }>>;
333
+ retryPolicy: z.ZodOptional<z.ZodObject<{
334
+ maxAttempts: z.ZodNumber;
335
+ backoffMs: z.ZodNumber;
336
+ }, "strip", z.ZodTypeAny, {
337
+ maxAttempts: number;
338
+ backoffMs: number;
339
+ }, {
340
+ maxAttempts: number;
341
+ backoffMs: number;
342
+ }>>;
343
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
344
+ }, "strip", z.ZodTypeAny, {
345
+ type: "action" | "agent" | "tool" | "human-gate" | "subgraph";
346
+ id: string;
347
+ label: string;
348
+ subgraphId?: string | undefined;
349
+ inputMapping?: Record<string, string> | undefined;
350
+ outputMapping?: Record<string, string> | undefined;
351
+ fanOut?: {
352
+ parallelTo: string[];
353
+ joinAt: string;
354
+ } | undefined;
355
+ retryPolicy?: {
356
+ maxAttempts: number;
357
+ backoffMs: number;
358
+ } | undefined;
359
+ metadata?: Record<string, unknown> | undefined;
360
+ }, {
361
+ type: "action" | "agent" | "tool" | "human-gate" | "subgraph";
362
+ id: string;
363
+ label: string;
364
+ subgraphId?: string | undefined;
365
+ inputMapping?: Record<string, string> | undefined;
366
+ outputMapping?: Record<string, string> | undefined;
367
+ fanOut?: {
368
+ parallelTo: string[];
369
+ joinAt: string;
370
+ } | undefined;
371
+ retryPolicy?: {
372
+ maxAttempts: number;
373
+ backoffMs: number;
374
+ } | undefined;
375
+ metadata?: Record<string, unknown> | undefined;
376
+ }>, "many">;
377
+ edges: z.ZodArray<z.ZodObject<{
378
+ id: z.ZodString;
379
+ from: z.ZodString;
380
+ to: z.ZodString;
381
+ type: z.ZodEnum<["default", "conditional"]>;
382
+ condition: z.ZodOptional<z.ZodString>;
383
+ }, "strip", z.ZodTypeAny, {
384
+ type: "default" | "conditional";
385
+ to: string;
386
+ id: string;
387
+ from: string;
388
+ condition?: string | undefined;
389
+ }, {
390
+ type: "default" | "conditional";
391
+ to: string;
392
+ id: string;
393
+ from: string;
394
+ condition?: string | undefined;
395
+ }>, "many">;
396
+ entryNodeId: z.ZodString;
397
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
398
+ /** Owning tenant (tenancy). Optional for pre-tenancy rows backfilled to `default`. */
399
+ tenantId: z.ZodOptional<z.ZodString>;
400
+ /** Id of the principal who created the graph. */
401
+ createdBy: z.ZodOptional<z.ZodString>;
402
+ }, "strip", z.ZodTypeAny, {
403
+ id: string;
404
+ name: string;
405
+ version: string;
406
+ channels: Record<string, {
407
+ type: string;
408
+ reducer: "replace" | "append" | "merge";
409
+ default?: unknown;
410
+ noLog?: boolean | undefined;
411
+ }>;
412
+ nodes: {
413
+ type: "action" | "agent" | "tool" | "human-gate" | "subgraph";
414
+ id: string;
415
+ label: string;
416
+ subgraphId?: string | undefined;
417
+ inputMapping?: Record<string, string> | undefined;
418
+ outputMapping?: Record<string, string> | undefined;
419
+ fanOut?: {
420
+ parallelTo: string[];
421
+ joinAt: string;
422
+ } | undefined;
423
+ retryPolicy?: {
424
+ maxAttempts: number;
425
+ backoffMs: number;
426
+ } | undefined;
427
+ metadata?: Record<string, unknown> | undefined;
428
+ }[];
429
+ edges: {
430
+ type: "default" | "conditional";
431
+ to: string;
432
+ id: string;
433
+ from: string;
434
+ condition?: string | undefined;
435
+ }[];
436
+ entryNodeId: string;
437
+ tenantId?: string | undefined;
438
+ metadata?: Record<string, unknown> | undefined;
439
+ recursionLimit?: number | undefined;
440
+ createdBy?: string | undefined;
441
+ }, {
442
+ id: string;
443
+ name: string;
444
+ version: string;
445
+ channels: Record<string, {
446
+ type: string;
447
+ reducer: "replace" | "append" | "merge";
448
+ default?: unknown;
449
+ noLog?: boolean | undefined;
450
+ }>;
451
+ nodes: {
452
+ type: "action" | "agent" | "tool" | "human-gate" | "subgraph";
453
+ id: string;
454
+ label: string;
455
+ subgraphId?: string | undefined;
456
+ inputMapping?: Record<string, string> | undefined;
457
+ outputMapping?: Record<string, string> | undefined;
458
+ fanOut?: {
459
+ parallelTo: string[];
460
+ joinAt: string;
461
+ } | undefined;
462
+ retryPolicy?: {
463
+ maxAttempts: number;
464
+ backoffMs: number;
465
+ } | undefined;
466
+ metadata?: Record<string, unknown> | undefined;
467
+ }[];
468
+ edges: {
469
+ type: "default" | "conditional";
470
+ to: string;
471
+ id: string;
472
+ from: string;
473
+ condition?: string | undefined;
474
+ }[];
475
+ entryNodeId: string;
476
+ tenantId?: string | undefined;
477
+ metadata?: Record<string, unknown> | undefined;
478
+ recursionLimit?: number | undefined;
479
+ createdBy?: string | undefined;
480
+ }>;
481
+ export type NodeTypeDto = z.infer<typeof NodeTypeSchema>;
482
+ export type EdgeTypeDto = z.infer<typeof EdgeTypeSchema>;
483
+ export type NodeDefinitionDto = z.infer<typeof NodeDefinitionDtoSchema>;
484
+ export type EdgeDefinitionDto = z.infer<typeof EdgeDefinitionDtoSchema>;
485
+ export type ChannelDefinitionDto = z.infer<typeof ChannelDefinitionDtoSchema>;
486
+ export type ChannelsDto = z.infer<typeof ChannelsDtoSchema>;
487
+ export type CreateGraphDto = z.infer<typeof CreateGraphDtoSchema>;
488
+ export type GraphDto = z.infer<typeof GraphDtoSchema>;
489
+ /**
490
+ * The serializable graph shape an example graph carries. Wire-compatible with the
491
+ * engine `GraphDefinition` (version / name / channels / nodes / edges / entryNodeId),
492
+ * carrying everything the Studio's reactflow preview and create-graph flow need —
493
+ * without the Studio ever importing the engine or the SDK. The `id` is optional
494
+ * because example definitions are authored in code, not yet persisted.
495
+ */
496
+ export declare const ExampleGraphDefinitionDtoSchema: z.ZodObject<{
497
+ id: z.ZodOptional<z.ZodString>;
498
+ version: z.ZodString;
499
+ name: z.ZodString;
500
+ recursionLimit: z.ZodOptional<z.ZodNumber>;
501
+ channels: z.ZodRecord<z.ZodString, z.ZodObject<{
502
+ type: z.ZodString;
503
+ reducer: z.ZodEnum<["replace", "append", "merge"]>;
504
+ default: z.ZodOptional<z.ZodUnknown>;
505
+ /** ADR 0032: never emit this channel's value in run events/logs (masked; still checkpointed). */
506
+ noLog: z.ZodOptional<z.ZodBoolean>;
507
+ }, "strip", z.ZodTypeAny, {
508
+ type: string;
509
+ reducer: "replace" | "append" | "merge";
510
+ default?: unknown;
511
+ noLog?: boolean | undefined;
512
+ }, {
513
+ type: string;
514
+ reducer: "replace" | "append" | "merge";
515
+ default?: unknown;
516
+ noLog?: boolean | undefined;
517
+ }>>;
518
+ nodes: z.ZodArray<z.ZodObject<{
519
+ id: z.ZodString;
520
+ type: z.ZodEnum<["action", "agent", "tool", "human-gate", "subgraph"]>;
521
+ label: z.ZodString;
522
+ subgraphId: z.ZodOptional<z.ZodString>;
523
+ inputMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
524
+ outputMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
525
+ fanOut: z.ZodOptional<z.ZodObject<{
526
+ parallelTo: z.ZodArray<z.ZodString, "many">;
527
+ joinAt: z.ZodString;
528
+ }, "strip", z.ZodTypeAny, {
529
+ parallelTo: string[];
530
+ joinAt: string;
531
+ }, {
532
+ parallelTo: string[];
533
+ joinAt: string;
534
+ }>>;
535
+ retryPolicy: z.ZodOptional<z.ZodObject<{
536
+ maxAttempts: z.ZodNumber;
537
+ backoffMs: z.ZodNumber;
538
+ }, "strip", z.ZodTypeAny, {
539
+ maxAttempts: number;
540
+ backoffMs: number;
541
+ }, {
542
+ maxAttempts: number;
543
+ backoffMs: number;
544
+ }>>;
545
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
546
+ }, "strip", z.ZodTypeAny, {
547
+ type: "action" | "agent" | "tool" | "human-gate" | "subgraph";
548
+ id: string;
549
+ label: string;
550
+ subgraphId?: string | undefined;
551
+ inputMapping?: Record<string, string> | undefined;
552
+ outputMapping?: Record<string, string> | undefined;
553
+ fanOut?: {
554
+ parallelTo: string[];
555
+ joinAt: string;
556
+ } | undefined;
557
+ retryPolicy?: {
558
+ maxAttempts: number;
559
+ backoffMs: number;
560
+ } | undefined;
561
+ metadata?: Record<string, unknown> | undefined;
562
+ }, {
563
+ type: "action" | "agent" | "tool" | "human-gate" | "subgraph";
564
+ id: string;
565
+ label: string;
566
+ subgraphId?: string | undefined;
567
+ inputMapping?: Record<string, string> | undefined;
568
+ outputMapping?: Record<string, string> | undefined;
569
+ fanOut?: {
570
+ parallelTo: string[];
571
+ joinAt: string;
572
+ } | undefined;
573
+ retryPolicy?: {
574
+ maxAttempts: number;
575
+ backoffMs: number;
576
+ } | undefined;
577
+ metadata?: Record<string, unknown> | undefined;
578
+ }>, "many">;
579
+ edges: z.ZodArray<z.ZodObject<{
580
+ id: z.ZodString;
581
+ from: z.ZodString;
582
+ to: z.ZodString;
583
+ type: z.ZodEnum<["default", "conditional"]>;
584
+ condition: z.ZodOptional<z.ZodString>;
585
+ }, "strip", z.ZodTypeAny, {
586
+ type: "default" | "conditional";
587
+ to: string;
588
+ id: string;
589
+ from: string;
590
+ condition?: string | undefined;
591
+ }, {
592
+ type: "default" | "conditional";
593
+ to: string;
594
+ id: string;
595
+ from: string;
596
+ condition?: string | undefined;
597
+ }>, "many">;
598
+ entryNodeId: z.ZodString;
599
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
600
+ }, "strip", z.ZodTypeAny, {
601
+ name: string;
602
+ version: string;
603
+ channels: Record<string, {
604
+ type: string;
605
+ reducer: "replace" | "append" | "merge";
606
+ default?: unknown;
607
+ noLog?: boolean | undefined;
608
+ }>;
609
+ nodes: {
610
+ type: "action" | "agent" | "tool" | "human-gate" | "subgraph";
611
+ id: string;
612
+ label: string;
613
+ subgraphId?: string | undefined;
614
+ inputMapping?: Record<string, string> | undefined;
615
+ outputMapping?: Record<string, string> | undefined;
616
+ fanOut?: {
617
+ parallelTo: string[];
618
+ joinAt: string;
619
+ } | undefined;
620
+ retryPolicy?: {
621
+ maxAttempts: number;
622
+ backoffMs: number;
623
+ } | undefined;
624
+ metadata?: Record<string, unknown> | undefined;
625
+ }[];
626
+ edges: {
627
+ type: "default" | "conditional";
628
+ to: string;
629
+ id: string;
630
+ from: string;
631
+ condition?: string | undefined;
632
+ }[];
633
+ entryNodeId: string;
634
+ id?: string | undefined;
635
+ metadata?: Record<string, unknown> | undefined;
636
+ recursionLimit?: number | undefined;
637
+ }, {
638
+ name: string;
639
+ version: string;
640
+ channels: Record<string, {
641
+ type: string;
642
+ reducer: "replace" | "append" | "merge";
643
+ default?: unknown;
644
+ noLog?: boolean | undefined;
645
+ }>;
646
+ nodes: {
647
+ type: "action" | "agent" | "tool" | "human-gate" | "subgraph";
648
+ id: string;
649
+ label: string;
650
+ subgraphId?: string | undefined;
651
+ inputMapping?: Record<string, string> | undefined;
652
+ outputMapping?: Record<string, string> | undefined;
653
+ fanOut?: {
654
+ parallelTo: string[];
655
+ joinAt: string;
656
+ } | undefined;
657
+ retryPolicy?: {
658
+ maxAttempts: number;
659
+ backoffMs: number;
660
+ } | undefined;
661
+ metadata?: Record<string, unknown> | undefined;
662
+ }[];
663
+ edges: {
664
+ type: "default" | "conditional";
665
+ to: string;
666
+ id: string;
667
+ from: string;
668
+ condition?: string | undefined;
669
+ }[];
670
+ entryNodeId: string;
671
+ id?: string | undefined;
672
+ metadata?: Record<string, unknown> | undefined;
673
+ recursionLimit?: number | undefined;
674
+ }>;
675
+ /**
676
+ * One example graph authored with `@ailu-ai/graph-sdk` and served by the control
677
+ * plane so the (commercial) Studio can render it — a name/description, plus the
678
+ * plain `definition` for the reactflow preview and the import-into-control-plane flow.
679
+ */
680
+ export declare const ExampleGraphDtoSchema: z.ZodObject<{
681
+ slug: z.ZodString;
682
+ name: z.ZodString;
683
+ description: z.ZodString;
684
+ definition: z.ZodObject<{
685
+ id: z.ZodOptional<z.ZodString>;
686
+ version: z.ZodString;
687
+ name: z.ZodString;
688
+ recursionLimit: z.ZodOptional<z.ZodNumber>;
689
+ channels: z.ZodRecord<z.ZodString, z.ZodObject<{
690
+ type: z.ZodString;
691
+ reducer: z.ZodEnum<["replace", "append", "merge"]>;
692
+ default: z.ZodOptional<z.ZodUnknown>;
693
+ /** ADR 0032: never emit this channel's value in run events/logs (masked; still checkpointed). */
694
+ noLog: z.ZodOptional<z.ZodBoolean>;
695
+ }, "strip", z.ZodTypeAny, {
696
+ type: string;
697
+ reducer: "replace" | "append" | "merge";
698
+ default?: unknown;
699
+ noLog?: boolean | undefined;
700
+ }, {
701
+ type: string;
702
+ reducer: "replace" | "append" | "merge";
703
+ default?: unknown;
704
+ noLog?: boolean | undefined;
705
+ }>>;
706
+ nodes: z.ZodArray<z.ZodObject<{
707
+ id: z.ZodString;
708
+ type: z.ZodEnum<["action", "agent", "tool", "human-gate", "subgraph"]>;
709
+ label: z.ZodString;
710
+ subgraphId: z.ZodOptional<z.ZodString>;
711
+ inputMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
712
+ outputMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
713
+ fanOut: z.ZodOptional<z.ZodObject<{
714
+ parallelTo: z.ZodArray<z.ZodString, "many">;
715
+ joinAt: z.ZodString;
716
+ }, "strip", z.ZodTypeAny, {
717
+ parallelTo: string[];
718
+ joinAt: string;
719
+ }, {
720
+ parallelTo: string[];
721
+ joinAt: string;
722
+ }>>;
723
+ retryPolicy: z.ZodOptional<z.ZodObject<{
724
+ maxAttempts: z.ZodNumber;
725
+ backoffMs: z.ZodNumber;
726
+ }, "strip", z.ZodTypeAny, {
727
+ maxAttempts: number;
728
+ backoffMs: number;
729
+ }, {
730
+ maxAttempts: number;
731
+ backoffMs: number;
732
+ }>>;
733
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
734
+ }, "strip", z.ZodTypeAny, {
735
+ type: "action" | "agent" | "tool" | "human-gate" | "subgraph";
736
+ id: string;
737
+ label: string;
738
+ subgraphId?: string | undefined;
739
+ inputMapping?: Record<string, string> | undefined;
740
+ outputMapping?: Record<string, string> | undefined;
741
+ fanOut?: {
742
+ parallelTo: string[];
743
+ joinAt: string;
744
+ } | undefined;
745
+ retryPolicy?: {
746
+ maxAttempts: number;
747
+ backoffMs: number;
748
+ } | undefined;
749
+ metadata?: Record<string, unknown> | undefined;
750
+ }, {
751
+ type: "action" | "agent" | "tool" | "human-gate" | "subgraph";
752
+ id: string;
753
+ label: string;
754
+ subgraphId?: string | undefined;
755
+ inputMapping?: Record<string, string> | undefined;
756
+ outputMapping?: Record<string, string> | undefined;
757
+ fanOut?: {
758
+ parallelTo: string[];
759
+ joinAt: string;
760
+ } | undefined;
761
+ retryPolicy?: {
762
+ maxAttempts: number;
763
+ backoffMs: number;
764
+ } | undefined;
765
+ metadata?: Record<string, unknown> | undefined;
766
+ }>, "many">;
767
+ edges: z.ZodArray<z.ZodObject<{
768
+ id: z.ZodString;
769
+ from: z.ZodString;
770
+ to: z.ZodString;
771
+ type: z.ZodEnum<["default", "conditional"]>;
772
+ condition: z.ZodOptional<z.ZodString>;
773
+ }, "strip", z.ZodTypeAny, {
774
+ type: "default" | "conditional";
775
+ to: string;
776
+ id: string;
777
+ from: string;
778
+ condition?: string | undefined;
779
+ }, {
780
+ type: "default" | "conditional";
781
+ to: string;
782
+ id: string;
783
+ from: string;
784
+ condition?: string | undefined;
785
+ }>, "many">;
786
+ entryNodeId: z.ZodString;
787
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
788
+ }, "strip", z.ZodTypeAny, {
789
+ name: string;
790
+ version: string;
791
+ channels: Record<string, {
792
+ type: string;
793
+ reducer: "replace" | "append" | "merge";
794
+ default?: unknown;
795
+ noLog?: boolean | undefined;
796
+ }>;
797
+ nodes: {
798
+ type: "action" | "agent" | "tool" | "human-gate" | "subgraph";
799
+ id: string;
800
+ label: string;
801
+ subgraphId?: string | undefined;
802
+ inputMapping?: Record<string, string> | undefined;
803
+ outputMapping?: Record<string, string> | undefined;
804
+ fanOut?: {
805
+ parallelTo: string[];
806
+ joinAt: string;
807
+ } | undefined;
808
+ retryPolicy?: {
809
+ maxAttempts: number;
810
+ backoffMs: number;
811
+ } | undefined;
812
+ metadata?: Record<string, unknown> | undefined;
813
+ }[];
814
+ edges: {
815
+ type: "default" | "conditional";
816
+ to: string;
817
+ id: string;
818
+ from: string;
819
+ condition?: string | undefined;
820
+ }[];
821
+ entryNodeId: string;
822
+ id?: string | undefined;
823
+ metadata?: Record<string, unknown> | undefined;
824
+ recursionLimit?: number | undefined;
825
+ }, {
826
+ name: string;
827
+ version: string;
828
+ channels: Record<string, {
829
+ type: string;
830
+ reducer: "replace" | "append" | "merge";
831
+ default?: unknown;
832
+ noLog?: boolean | undefined;
833
+ }>;
834
+ nodes: {
835
+ type: "action" | "agent" | "tool" | "human-gate" | "subgraph";
836
+ id: string;
837
+ label: string;
838
+ subgraphId?: string | undefined;
839
+ inputMapping?: Record<string, string> | undefined;
840
+ outputMapping?: Record<string, string> | undefined;
841
+ fanOut?: {
842
+ parallelTo: string[];
843
+ joinAt: string;
844
+ } | undefined;
845
+ retryPolicy?: {
846
+ maxAttempts: number;
847
+ backoffMs: number;
848
+ } | undefined;
849
+ metadata?: Record<string, unknown> | undefined;
850
+ }[];
851
+ edges: {
852
+ type: "default" | "conditional";
853
+ to: string;
854
+ id: string;
855
+ from: string;
856
+ condition?: string | undefined;
857
+ }[];
858
+ entryNodeId: string;
859
+ id?: string | undefined;
860
+ metadata?: Record<string, unknown> | undefined;
861
+ recursionLimit?: number | undefined;
862
+ }>;
863
+ }, "strip", z.ZodTypeAny, {
864
+ name: string;
865
+ slug: string;
866
+ description: string;
867
+ definition: {
868
+ name: string;
869
+ version: string;
870
+ channels: Record<string, {
871
+ type: string;
872
+ reducer: "replace" | "append" | "merge";
873
+ default?: unknown;
874
+ noLog?: boolean | undefined;
875
+ }>;
876
+ nodes: {
877
+ type: "action" | "agent" | "tool" | "human-gate" | "subgraph";
878
+ id: string;
879
+ label: string;
880
+ subgraphId?: string | undefined;
881
+ inputMapping?: Record<string, string> | undefined;
882
+ outputMapping?: Record<string, string> | undefined;
883
+ fanOut?: {
884
+ parallelTo: string[];
885
+ joinAt: string;
886
+ } | undefined;
887
+ retryPolicy?: {
888
+ maxAttempts: number;
889
+ backoffMs: number;
890
+ } | undefined;
891
+ metadata?: Record<string, unknown> | undefined;
892
+ }[];
893
+ edges: {
894
+ type: "default" | "conditional";
895
+ to: string;
896
+ id: string;
897
+ from: string;
898
+ condition?: string | undefined;
899
+ }[];
900
+ entryNodeId: string;
901
+ id?: string | undefined;
902
+ metadata?: Record<string, unknown> | undefined;
903
+ recursionLimit?: number | undefined;
904
+ };
905
+ }, {
906
+ name: string;
907
+ slug: string;
908
+ description: string;
909
+ definition: {
910
+ name: string;
911
+ version: string;
912
+ channels: Record<string, {
913
+ type: string;
914
+ reducer: "replace" | "append" | "merge";
915
+ default?: unknown;
916
+ noLog?: boolean | undefined;
917
+ }>;
918
+ nodes: {
919
+ type: "action" | "agent" | "tool" | "human-gate" | "subgraph";
920
+ id: string;
921
+ label: string;
922
+ subgraphId?: string | undefined;
923
+ inputMapping?: Record<string, string> | undefined;
924
+ outputMapping?: Record<string, string> | undefined;
925
+ fanOut?: {
926
+ parallelTo: string[];
927
+ joinAt: string;
928
+ } | undefined;
929
+ retryPolicy?: {
930
+ maxAttempts: number;
931
+ backoffMs: number;
932
+ } | undefined;
933
+ metadata?: Record<string, unknown> | undefined;
934
+ }[];
935
+ edges: {
936
+ type: "default" | "conditional";
937
+ to: string;
938
+ id: string;
939
+ from: string;
940
+ condition?: string | undefined;
941
+ }[];
942
+ entryNodeId: string;
943
+ id?: string | undefined;
944
+ metadata?: Record<string, unknown> | undefined;
945
+ recursionLimit?: number | undefined;
946
+ };
947
+ }>;
948
+ export type ExampleGraphDefinitionDto = z.infer<typeof ExampleGraphDefinitionDtoSchema>;
949
+ export type ExampleGraphDto = z.infer<typeof ExampleGraphDtoSchema>;
950
+ export {};
951
+ //# sourceMappingURL=graphs.d.ts.map