@tai42/api-client 14.0.0 → 16.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.
package/dist/schemas.d.ts CHANGED
@@ -5,6 +5,629 @@
5
5
  * auto-form renderer interprets them at runtime.
6
6
  */
7
7
  import { z } from 'zod';
8
+ export { templatedText, requiredTemplatedText } from './templated-text';
9
+ export type { TemplatedText } from './templated-text';
10
+ export declare const stateInjection: z.ZodObject<{
11
+ into: z.ZodString;
12
+ jq: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
13
+ content: z.ZodOptional<z.ZodString>;
14
+ id: z.ZodOptional<z.ZodString>;
15
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
16
+ }, z.core.$strict>, z.ZodNull]>>;
17
+ template_jq: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
18
+ }, z.core.$strict>;
19
+ export type StateInjection = z.infer<typeof stateInjection>;
20
+ export declare const stateUpdate: z.ZodObject<{
21
+ adapter: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
22
+ content: z.ZodOptional<z.ZodString>;
23
+ id: z.ZodOptional<z.ZodString>;
24
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
25
+ }, z.core.$strict>, z.ZodNull]>>;
26
+ jq: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
27
+ content: z.ZodOptional<z.ZodString>;
28
+ id: z.ZodOptional<z.ZodString>;
29
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
30
+ }, z.core.$strict>, z.ZodNull]>>;
31
+ op_id: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
32
+ content: z.ZodOptional<z.ZodString>;
33
+ id: z.ZodOptional<z.ZodString>;
34
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
35
+ }, z.core.$strict>, z.ZodNull]>>;
36
+ template_jq: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
37
+ }, z.core.$strict>;
38
+ export type StateUpdate = z.infer<typeof stateUpdate>;
39
+ export declare const stateAttach: z.ZodObject<{
40
+ input_injections: z.ZodDefault<z.ZodArray<z.ZodObject<{
41
+ into: z.ZodString;
42
+ jq: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
43
+ content: z.ZodOptional<z.ZodString>;
44
+ id: z.ZodOptional<z.ZodString>;
45
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
46
+ }, z.core.$strict>, z.ZodNull]>>;
47
+ template_jq: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
48
+ }, z.core.$strict>>>;
49
+ scope_expr: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
50
+ content: z.ZodOptional<z.ZodString>;
51
+ id: z.ZodOptional<z.ZodString>;
52
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
53
+ }, z.core.$strict>, z.ZodNull]>>;
54
+ state: z.ZodString;
55
+ subject_expr: z.ZodObject<{
56
+ content: z.ZodOptional<z.ZodString>;
57
+ id: z.ZodOptional<z.ZodString>;
58
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
59
+ }, z.core.$strict>;
60
+ templates: z.ZodDefault<z.ZodArray<z.ZodString>>;
61
+ updates: z.ZodDefault<z.ZodArray<z.ZodObject<{
62
+ adapter: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
63
+ content: z.ZodOptional<z.ZodString>;
64
+ id: z.ZodOptional<z.ZodString>;
65
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
66
+ }, z.core.$strict>, z.ZodNull]>>;
67
+ jq: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
68
+ content: z.ZodOptional<z.ZodString>;
69
+ id: z.ZodOptional<z.ZodString>;
70
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
71
+ }, z.core.$strict>, z.ZodNull]>>;
72
+ op_id: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
73
+ content: z.ZodOptional<z.ZodString>;
74
+ id: z.ZodOptional<z.ZodString>;
75
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
76
+ }, z.core.$strict>, z.ZodNull]>>;
77
+ template_jq: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
78
+ }, z.core.$strict>>>;
79
+ }, z.core.$strict>;
80
+ export type StateAttach = z.infer<typeof stateAttach>;
81
+ export declare const stateBinding: z.ZodObject<{
82
+ states: z.ZodArray<z.ZodObject<{
83
+ input_injections: z.ZodDefault<z.ZodArray<z.ZodObject<{
84
+ into: z.ZodString;
85
+ jq: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
86
+ content: z.ZodOptional<z.ZodString>;
87
+ id: z.ZodOptional<z.ZodString>;
88
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
89
+ }, z.core.$strict>, z.ZodNull]>>;
90
+ template_jq: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
91
+ }, z.core.$strict>>>;
92
+ scope_expr: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
93
+ content: z.ZodOptional<z.ZodString>;
94
+ id: z.ZodOptional<z.ZodString>;
95
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
96
+ }, z.core.$strict>, z.ZodNull]>>;
97
+ state: z.ZodString;
98
+ subject_expr: z.ZodObject<{
99
+ content: z.ZodOptional<z.ZodString>;
100
+ id: z.ZodOptional<z.ZodString>;
101
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
102
+ }, z.core.$strict>;
103
+ templates: z.ZodDefault<z.ZodArray<z.ZodString>>;
104
+ updates: z.ZodDefault<z.ZodArray<z.ZodObject<{
105
+ adapter: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
106
+ content: z.ZodOptional<z.ZodString>;
107
+ id: z.ZodOptional<z.ZodString>;
108
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
109
+ }, z.core.$strict>, z.ZodNull]>>;
110
+ jq: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
111
+ content: z.ZodOptional<z.ZodString>;
112
+ id: z.ZodOptional<z.ZodString>;
113
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
114
+ }, z.core.$strict>, z.ZodNull]>>;
115
+ op_id: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
116
+ content: z.ZodOptional<z.ZodString>;
117
+ id: z.ZodOptional<z.ZodString>;
118
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
119
+ }, z.core.$strict>, z.ZodNull]>>;
120
+ template_jq: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
121
+ }, z.core.$strict>>>;
122
+ }, z.core.$strict>>;
123
+ }, z.core.$strict>;
124
+ export type StateBinding = z.infer<typeof stateBinding>;
125
+ export declare const presetBody: z.ZodObject<{
126
+ base_tool: z.ZodString;
127
+ description: z.ZodDefault<z.ZodString>;
128
+ extensions: z.ZodDefault<z.ZodArray<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>>;
129
+ fixed_kwargs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
130
+ input_schema: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
131
+ content: z.ZodOptional<z.ZodString>;
132
+ id: z.ZodOptional<z.ZodString>;
133
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
134
+ }, z.core.$strict>, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodNull]>>;
135
+ output_schema: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
136
+ content: z.ZodOptional<z.ZodString>;
137
+ id: z.ZodOptional<z.ZodString>;
138
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
139
+ }, z.core.$strict>, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodNull]>>;
140
+ state_binding: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
141
+ states: z.ZodArray<z.ZodObject<{
142
+ input_injections: z.ZodDefault<z.ZodArray<z.ZodObject<{
143
+ into: z.ZodString;
144
+ jq: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
145
+ content: z.ZodOptional<z.ZodString>;
146
+ id: z.ZodOptional<z.ZodString>;
147
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
148
+ }, z.core.$strict>, z.ZodNull]>>;
149
+ template_jq: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
150
+ }, z.core.$strict>>>;
151
+ scope_expr: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
152
+ content: z.ZodOptional<z.ZodString>;
153
+ id: z.ZodOptional<z.ZodString>;
154
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
155
+ }, z.core.$strict>, z.ZodNull]>>;
156
+ state: z.ZodString;
157
+ subject_expr: z.ZodObject<{
158
+ content: z.ZodOptional<z.ZodString>;
159
+ id: z.ZodOptional<z.ZodString>;
160
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
161
+ }, z.core.$strict>;
162
+ templates: z.ZodDefault<z.ZodArray<z.ZodString>>;
163
+ updates: z.ZodDefault<z.ZodArray<z.ZodObject<{
164
+ adapter: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
165
+ content: z.ZodOptional<z.ZodString>;
166
+ id: z.ZodOptional<z.ZodString>;
167
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
168
+ }, z.core.$strict>, z.ZodNull]>>;
169
+ jq: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
170
+ content: z.ZodOptional<z.ZodString>;
171
+ id: z.ZodOptional<z.ZodString>;
172
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
173
+ }, z.core.$strict>, z.ZodNull]>>;
174
+ op_id: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
175
+ content: z.ZodOptional<z.ZodString>;
176
+ id: z.ZodOptional<z.ZodString>;
177
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
178
+ }, z.core.$strict>, z.ZodNull]>>;
179
+ template_jq: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
180
+ }, z.core.$strict>>>;
181
+ }, z.core.$strict>>;
182
+ }, z.core.$strict>, z.ZodNull]>>;
183
+ }, z.core.$strip>;
184
+ export type PresetBody = z.input<typeof presetBody>;
185
+ export declare const conversationRoute: z.ZodObject<{
186
+ callback_secret: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
187
+ callback_url: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
188
+ channel: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
189
+ door: z.ZodEnum<{
190
+ channel: "channel";
191
+ api: "api";
192
+ }>;
193
+ error_reply_text: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
194
+ execution_key: z.ZodString;
195
+ execution_key_fingerprint: z.ZodString;
196
+ initial_mode: z.ZodDefault<z.ZodEnum<{
197
+ agent: "agent";
198
+ manual: "manual";
199
+ }>>;
200
+ locale: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
201
+ our_identity: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
202
+ payload_expr: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
203
+ content: z.ZodOptional<z.ZodString>;
204
+ id: z.ZodOptional<z.ZodString>;
205
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
206
+ }, z.core.$strict>, z.ZodNull]>>;
207
+ reply_expr: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
208
+ content: z.ZodOptional<z.ZodString>;
209
+ id: z.ZodOptional<z.ZodString>;
210
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
211
+ }, z.core.$strict>, z.ZodNull]>>;
212
+ route_name: z.ZodString;
213
+ target_kind: z.ZodEnum<{
214
+ tool: "tool";
215
+ agent: "agent";
216
+ }>;
217
+ target_name: z.ZodString;
218
+ turns_per_hour_override: z.ZodDefault<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
219
+ }, z.core.$strip>;
220
+ export type ConversationRoute = z.infer<typeof conversationRoute>;
221
+ export declare const conversationRouteCreate: z.ZodObject<{
222
+ callback_url: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
223
+ channel: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
224
+ door: z.ZodEnum<{
225
+ channel: "channel";
226
+ api: "api";
227
+ }>;
228
+ error_reply_text: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
229
+ execution_key: z.ZodString;
230
+ initial_mode: z.ZodDefault<z.ZodEnum<{
231
+ agent: "agent";
232
+ manual: "manual";
233
+ }>>;
234
+ locale: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
235
+ our_identity: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
236
+ payload_expr: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
237
+ content: z.ZodOptional<z.ZodString>;
238
+ id: z.ZodOptional<z.ZodString>;
239
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
240
+ }, z.core.$strict>, z.ZodNull]>>;
241
+ reply_expr: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
242
+ content: z.ZodOptional<z.ZodString>;
243
+ id: z.ZodOptional<z.ZodString>;
244
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
245
+ }, z.core.$strict>, z.ZodNull]>>;
246
+ route_name: z.ZodString;
247
+ target_kind: z.ZodEnum<{
248
+ tool: "tool";
249
+ agent: "agent";
250
+ }>;
251
+ target_name: z.ZodString;
252
+ turns_per_hour_override: z.ZodDefault<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
253
+ }, z.core.$strip>;
254
+ export type ConversationRouteCreate = z.input<typeof conversationRouteCreate>;
255
+ export declare const targetConversationConfig: z.ZodObject<{
256
+ greeting_template: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
257
+ multichannel: z.ZodDefault<z.ZodBoolean>;
258
+ state_binding: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
259
+ states: z.ZodArray<z.ZodObject<{
260
+ input_injections: z.ZodDefault<z.ZodArray<z.ZodObject<{
261
+ into: z.ZodString;
262
+ jq: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
263
+ content: z.ZodOptional<z.ZodString>;
264
+ id: z.ZodOptional<z.ZodString>;
265
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
266
+ }, z.core.$strict>, z.ZodNull]>>;
267
+ template_jq: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
268
+ }, z.core.$strict>>>;
269
+ scope_expr: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
270
+ content: z.ZodOptional<z.ZodString>;
271
+ id: z.ZodOptional<z.ZodString>;
272
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
273
+ }, z.core.$strict>, z.ZodNull]>>;
274
+ state: z.ZodString;
275
+ subject_expr: z.ZodObject<{
276
+ content: z.ZodOptional<z.ZodString>;
277
+ id: z.ZodOptional<z.ZodString>;
278
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
279
+ }, z.core.$strict>;
280
+ templates: z.ZodDefault<z.ZodArray<z.ZodString>>;
281
+ updates: z.ZodDefault<z.ZodArray<z.ZodObject<{
282
+ adapter: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
283
+ content: z.ZodOptional<z.ZodString>;
284
+ id: z.ZodOptional<z.ZodString>;
285
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
286
+ }, z.core.$strict>, z.ZodNull]>>;
287
+ jq: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
288
+ content: z.ZodOptional<z.ZodString>;
289
+ id: z.ZodOptional<z.ZodString>;
290
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
291
+ }, z.core.$strict>, z.ZodNull]>>;
292
+ op_id: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
293
+ content: z.ZodOptional<z.ZodString>;
294
+ id: z.ZodOptional<z.ZodString>;
295
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
296
+ }, z.core.$strict>, z.ZodNull]>>;
297
+ template_jq: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
298
+ }, z.core.$strict>>>;
299
+ }, z.core.$strict>>;
300
+ }, z.core.$strict>, z.ZodNull]>>;
301
+ target_kind: z.ZodEnum<{
302
+ tool: "tool";
303
+ agent: "agent";
304
+ }>;
305
+ target_name: z.ZodString;
306
+ }, z.core.$strip>;
307
+ export type TargetConversationConfig = z.input<typeof targetConversationConfig>;
308
+ export declare const channelTemplate: z.ZodObject<{
309
+ body_parameters: z.ZodDefault<z.ZodArray<z.ZodString>>;
310
+ buttons: z.ZodDefault<z.ZodArray<z.ZodUnknown>>;
311
+ header_media: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
312
+ caption: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
313
+ filename: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
314
+ kind: z.ZodEnum<{
315
+ image: "image";
316
+ link: "link";
317
+ document: "document";
318
+ video: "video";
319
+ audio: "audio";
320
+ }>;
321
+ url: z.ZodString;
322
+ }, z.core.$strip>, z.ZodNull]>>;
323
+ language: z.ZodString;
324
+ name: z.ZodString;
325
+ }, z.core.$strip>;
326
+ export type ChannelTemplate = z.infer<typeof channelTemplate>;
327
+ export declare const hookSubject: z.ZodObject<{
328
+ key_expr: z.ZodObject<{
329
+ content: z.ZodOptional<z.ZodString>;
330
+ id: z.ZodOptional<z.ZodString>;
331
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
332
+ }, z.core.$strict>;
333
+ kind: z.ZodString;
334
+ target_kind: z.ZodEnum<{
335
+ tool: "tool";
336
+ agent: "agent";
337
+ }>;
338
+ target_name: z.ZodString;
339
+ }, z.core.$strict>;
340
+ export type HookSubject = z.infer<typeof hookSubject>;
341
+ export declare const hookParams: z.ZodObject<{
342
+ condition: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
343
+ content: z.ZodOptional<z.ZodString>;
344
+ id: z.ZodOptional<z.ZodString>;
345
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
346
+ }, z.core.$strict>, z.ZodNull]>>;
347
+ execution_key: z.ZodString;
348
+ execution_key_fingerprint: z.ZodString;
349
+ expr: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
350
+ content: z.ZodOptional<z.ZodString>;
351
+ id: z.ZodOptional<z.ZodString>;
352
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
353
+ }, z.core.$strict>, z.ZodNull]>>;
354
+ name: z.ZodString;
355
+ state_binding: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
356
+ states: z.ZodArray<z.ZodObject<{
357
+ input_injections: z.ZodDefault<z.ZodArray<z.ZodObject<{
358
+ into: z.ZodString;
359
+ jq: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
360
+ content: z.ZodOptional<z.ZodString>;
361
+ id: z.ZodOptional<z.ZodString>;
362
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
363
+ }, z.core.$strict>, z.ZodNull]>>;
364
+ template_jq: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
365
+ }, z.core.$strict>>>;
366
+ scope_expr: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
367
+ content: z.ZodOptional<z.ZodString>;
368
+ id: z.ZodOptional<z.ZodString>;
369
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
370
+ }, z.core.$strict>, z.ZodNull]>>;
371
+ state: z.ZodString;
372
+ subject_expr: z.ZodObject<{
373
+ content: z.ZodOptional<z.ZodString>;
374
+ id: z.ZodOptional<z.ZodString>;
375
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
376
+ }, z.core.$strict>;
377
+ templates: z.ZodDefault<z.ZodArray<z.ZodString>>;
378
+ updates: z.ZodDefault<z.ZodArray<z.ZodObject<{
379
+ adapter: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
380
+ content: z.ZodOptional<z.ZodString>;
381
+ id: z.ZodOptional<z.ZodString>;
382
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
383
+ }, z.core.$strict>, z.ZodNull]>>;
384
+ jq: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
385
+ content: z.ZodOptional<z.ZodString>;
386
+ id: z.ZodOptional<z.ZodString>;
387
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
388
+ }, z.core.$strict>, z.ZodNull]>>;
389
+ op_id: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
390
+ content: z.ZodOptional<z.ZodString>;
391
+ id: z.ZodOptional<z.ZodString>;
392
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
393
+ }, z.core.$strict>, z.ZodNull]>>;
394
+ template_jq: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
395
+ }, z.core.$strict>>>;
396
+ }, z.core.$strict>>;
397
+ }, z.core.$strict>, z.ZodNull]>>;
398
+ subject: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
399
+ key_expr: z.ZodObject<{
400
+ content: z.ZodOptional<z.ZodString>;
401
+ id: z.ZodOptional<z.ZodString>;
402
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
403
+ }, z.core.$strict>;
404
+ kind: z.ZodString;
405
+ target_kind: z.ZodEnum<{
406
+ tool: "tool";
407
+ agent: "agent";
408
+ }>;
409
+ target_name: z.ZodString;
410
+ }, z.core.$strict>, z.ZodNull]>>;
411
+ tool: z.ZodString;
412
+ tool_kwargs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
413
+ topic: z.ZodString;
414
+ }, z.core.$strip>;
415
+ export type HookParams = z.infer<typeof hookParams>;
416
+ export declare const hookRegister: z.ZodObject<{
417
+ condition: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
418
+ content: z.ZodOptional<z.ZodString>;
419
+ id: z.ZodOptional<z.ZodString>;
420
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
421
+ }, z.core.$strict>, z.ZodNull]>>;
422
+ execution_key: z.ZodString;
423
+ expr: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
424
+ content: z.ZodOptional<z.ZodString>;
425
+ id: z.ZodOptional<z.ZodString>;
426
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
427
+ }, z.core.$strict>, z.ZodNull]>>;
428
+ name: z.ZodString;
429
+ state_binding: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
430
+ states: z.ZodArray<z.ZodObject<{
431
+ input_injections: z.ZodDefault<z.ZodArray<z.ZodObject<{
432
+ into: z.ZodString;
433
+ jq: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
434
+ content: z.ZodOptional<z.ZodString>;
435
+ id: z.ZodOptional<z.ZodString>;
436
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
437
+ }, z.core.$strict>, z.ZodNull]>>;
438
+ template_jq: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
439
+ }, z.core.$strict>>>;
440
+ scope_expr: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
441
+ content: z.ZodOptional<z.ZodString>;
442
+ id: z.ZodOptional<z.ZodString>;
443
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
444
+ }, z.core.$strict>, z.ZodNull]>>;
445
+ state: z.ZodString;
446
+ subject_expr: z.ZodObject<{
447
+ content: z.ZodOptional<z.ZodString>;
448
+ id: z.ZodOptional<z.ZodString>;
449
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
450
+ }, z.core.$strict>;
451
+ templates: z.ZodDefault<z.ZodArray<z.ZodString>>;
452
+ updates: z.ZodDefault<z.ZodArray<z.ZodObject<{
453
+ adapter: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
454
+ content: z.ZodOptional<z.ZodString>;
455
+ id: z.ZodOptional<z.ZodString>;
456
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
457
+ }, z.core.$strict>, z.ZodNull]>>;
458
+ jq: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
459
+ content: z.ZodOptional<z.ZodString>;
460
+ id: z.ZodOptional<z.ZodString>;
461
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
462
+ }, z.core.$strict>, z.ZodNull]>>;
463
+ op_id: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
464
+ content: z.ZodOptional<z.ZodString>;
465
+ id: z.ZodOptional<z.ZodString>;
466
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
467
+ }, z.core.$strict>, z.ZodNull]>>;
468
+ template_jq: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
469
+ }, z.core.$strict>>>;
470
+ }, z.core.$strict>>;
471
+ }, z.core.$strict>, z.ZodNull]>>;
472
+ subject: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
473
+ key_expr: z.ZodObject<{
474
+ content: z.ZodOptional<z.ZodString>;
475
+ id: z.ZodOptional<z.ZodString>;
476
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
477
+ }, z.core.$strict>;
478
+ kind: z.ZodString;
479
+ target_kind: z.ZodEnum<{
480
+ tool: "tool";
481
+ agent: "agent";
482
+ }>;
483
+ target_name: z.ZodString;
484
+ }, z.core.$strict>, z.ZodNull]>>;
485
+ tool: z.ZodString;
486
+ tool_kwargs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
487
+ topic: z.ZodString;
488
+ }, z.core.$strip>;
489
+ export type HookRegister = z.input<typeof hookRegister>;
490
+ export declare const stateDeclaration: z.ZodObject<{
491
+ default_subject_kind: z.ZodString;
492
+ description: z.ZodDefault<z.ZodString>;
493
+ effective_schema: z.ZodDefault<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodNull]>>;
494
+ name: z.ZodString;
495
+ regimes: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>, z.ZodNull]>>;
496
+ retention_days: z.ZodDefault<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
497
+ schema: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
498
+ content: z.ZodOptional<z.ZodString>;
499
+ id: z.ZodOptional<z.ZodString>;
500
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
501
+ }, z.core.$strict>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
502
+ subject_kinds: z.ZodArray<z.ZodString>;
503
+ updated_at: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
504
+ }, z.core.$strict>;
505
+ export type StateDeclaration = z.infer<typeof stateDeclaration>;
506
+ export declare const stateTemplateDocument: z.ZodObject<{
507
+ declarations: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
508
+ check: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
509
+ content: z.ZodOptional<z.ZodString>;
510
+ id: z.ZodOptional<z.ZodString>;
511
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
512
+ }, z.core.$strict>, z.ZodNull]>>;
513
+ schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
514
+ }, z.core.$strict>, z.ZodNull]>>;
515
+ description: z.ZodDefault<z.ZodString>;
516
+ kind: z.ZodDefault<z.ZodLiteral<"state-template">>;
517
+ name: z.ZodString;
518
+ parameters: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
519
+ reconcile: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
520
+ close: z.ZodObject<{
521
+ content: z.ZodOptional<z.ZodString>;
522
+ id: z.ZodOptional<z.ZodString>;
523
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
524
+ }, z.core.$strict>;
525
+ orphans: z.ZodObject<{
526
+ content: z.ZodOptional<z.ZodString>;
527
+ id: z.ZodOptional<z.ZodString>;
528
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
529
+ }, z.core.$strict>;
530
+ resolutions: z.ZodObject<{
531
+ content: z.ZodOptional<z.ZodString>;
532
+ id: z.ZodOptional<z.ZodString>;
533
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
534
+ }, z.core.$strict>;
535
+ }, z.core.$strict>, z.ZodNull]>>;
536
+ regimes: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
537
+ schema: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
538
+ content: z.ZodOptional<z.ZodString>;
539
+ id: z.ZodOptional<z.ZodString>;
540
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
541
+ }, z.core.$strict>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
542
+ template_jq: z.ZodDefault<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodObject<{
543
+ description: z.ZodDefault<z.ZodString>;
544
+ jq: z.ZodObject<{
545
+ content: z.ZodOptional<z.ZodString>;
546
+ id: z.ZodOptional<z.ZodString>;
547
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
548
+ }, z.core.$strict>;
549
+ params: z.ZodDefault<z.ZodArray<z.ZodString>>;
550
+ purpose: z.ZodEnum<{
551
+ input: "input";
552
+ update: "update";
553
+ }>;
554
+ reads: z.ZodDefault<z.ZodArray<z.ZodArray<z.ZodString>>>;
555
+ writes: z.ZodDefault<z.ZodArray<z.ZodArray<z.ZodString>>>;
556
+ }, z.core.$strict>>, z.ZodNull]>>;
557
+ trace: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
558
+ }, z.core.$strict>;
559
+ export type StateTemplateDocument = z.infer<typeof stateTemplateDocument>;
560
+ export declare const templateJq: z.ZodObject<{
561
+ description: z.ZodDefault<z.ZodString>;
562
+ jq: z.ZodObject<{
563
+ content: z.ZodOptional<z.ZodString>;
564
+ id: z.ZodOptional<z.ZodString>;
565
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
566
+ }, z.core.$strict>;
567
+ params: z.ZodDefault<z.ZodArray<z.ZodString>>;
568
+ purpose: z.ZodEnum<{
569
+ input: "input";
570
+ update: "update";
571
+ }>;
572
+ reads: z.ZodDefault<z.ZodArray<z.ZodArray<z.ZodString>>>;
573
+ writes: z.ZodDefault<z.ZodArray<z.ZodArray<z.ZodString>>>;
574
+ }, z.core.$strict>;
575
+ export type TemplateJq = z.infer<typeof templateJq>;
576
+ export declare const templateReconcile: z.ZodObject<{
577
+ close: z.ZodObject<{
578
+ content: z.ZodOptional<z.ZodString>;
579
+ id: z.ZodOptional<z.ZodString>;
580
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
581
+ }, z.core.$strict>;
582
+ orphans: z.ZodObject<{
583
+ content: z.ZodOptional<z.ZodString>;
584
+ id: z.ZodOptional<z.ZodString>;
585
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
586
+ }, z.core.$strict>;
587
+ resolutions: z.ZodObject<{
588
+ content: z.ZodOptional<z.ZodString>;
589
+ id: z.ZodOptional<z.ZodString>;
590
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
591
+ }, z.core.$strict>;
592
+ }, z.core.$strict>;
593
+ export type TemplateReconcile = z.infer<typeof templateReconcile>;
594
+ export declare const templateDeclarations: z.ZodObject<{
595
+ check: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
596
+ content: z.ZodOptional<z.ZodString>;
597
+ id: z.ZodOptional<z.ZodString>;
598
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
599
+ }, z.core.$strict>, z.ZodNull]>>;
600
+ schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
601
+ }, z.core.$strict>;
602
+ export type TemplateDeclarations = z.infer<typeof templateDeclarations>;
603
+ export declare const policyBody: z.ZodObject<{
604
+ condition: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
605
+ content: z.ZodOptional<z.ZodString>;
606
+ id: z.ZodOptional<z.ZodString>;
607
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
608
+ }, z.core.$strict>, z.ZodNull]>>;
609
+ policy_data: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
610
+ scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
611
+ }, z.core.$strip>;
612
+ export type PolicyBody = z.infer<typeof policyBody>;
613
+ export declare const roleBody: z.ZodObject<{
614
+ allow_all: z.ZodDefault<z.ZodBoolean>;
615
+ base_tier: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
616
+ condition: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
617
+ content: z.ZodOptional<z.ZodString>;
618
+ id: z.ZodOptional<z.ZodString>;
619
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
620
+ }, z.core.$strict>, z.ZodNull]>>;
621
+ description: z.ZodString;
622
+ grants: z.ZodRecord<z.ZodString, z.ZodEnum<{
623
+ none: "none";
624
+ read: "read";
625
+ write: "write";
626
+ }>>;
627
+ name: z.ZodString;
628
+ scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
629
+ }, z.core.$strip>;
630
+ export type RoleBody = z.infer<typeof roleBody>;
8
631
  /** An arbitrary JSON value (tool results, rendered payloads). */
9
632
  export declare const jsonValue: z.ZodType;
10
633
  /** A JSON Schema object (Pydantic-emitted). Permissive; parsed by the auto-form. */
@@ -176,121 +799,6 @@ export declare const presetDetail: z.ZodObject<{
176
799
  fixed_kwargs: z.ZodRecord<z.ZodString, z.ZodUnknown>;
177
800
  }, z.core.$strip>;
178
801
  export type PresetDetail = z.infer<typeof presetDetail>;
179
- /**
180
- * One input injection of a state binding: BEFORE the run, a value is produced and
181
- * placed into the run input under `into` (the run-input field name). A template
182
- * `input` jq (`template_jq`, named `name` or attachment-qualified `template.name`) reads the
183
- * record — its input is the record (`.`), with declared params bound as `$params`; a
184
- * custom `jq` reads `{record, input}` → the value. Exactly one of `template_jq`/`jq`
185
- * carries the program; the other is `null`.
186
- */
187
- export declare const stateInjection: z.ZodObject<{
188
- template_jq: z.ZodDefault<z.ZodNullable<z.ZodString>>;
189
- jq: z.ZodDefault<z.ZodNullable<z.ZodString>>;
190
- into: z.ZodString;
191
- }, z.core.$strip>;
192
- export type StateInjection = z.infer<typeof stateInjection>;
193
- /**
194
- * One update of a state binding: AFTER the run, a template-relative op batch is
195
- * applied through the store. A NAMED update (`template_jq`) runs the template `update`
196
- * jq over `{record, input}` where `input` is built by `adapter` — a jq over
197
- * `{output, input}` that constructs the update jq's declared input object. A custom
198
- * `jq` runs over `{record, output, input}` → `[{op, path, value}]` and carries no
199
- * adapter. `op_id` is an optional idempotency-key expression. Exactly one of
200
- * `template_jq`/`jq` carries the program.
201
- */
202
- export declare const stateUpdate: z.ZodObject<{
203
- template_jq: z.ZodDefault<z.ZodNullable<z.ZodString>>;
204
- jq: z.ZodDefault<z.ZodNullable<z.ZodString>>;
205
- adapter: z.ZodDefault<z.ZodNullable<z.ZodString>>;
206
- op_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
207
- }, z.core.$strip>;
208
- export type StateUpdate = z.infer<typeof stateUpdate>;
209
- /**
210
- * One attached state of a binding: the `state`, one or more `templates`
211
- * (attach-on-use — attached to the state on the binding's save), the `subject_expr`
212
- * (a jq yielding the record KEY — a bare key string OR a full subject object — that
213
- * this binding reads and updates), an optional `scope_expr` (a boolean jq predicate;
214
- * when it is false this state is skipped for the run), and the ordered
215
- * `input_injections` (before the run) and `updates` (after it).
216
- */
217
- export declare const stateAttach: z.ZodObject<{
218
- state: z.ZodString;
219
- templates: z.ZodDefault<z.ZodArray<z.ZodString>>;
220
- subject_expr: z.ZodString;
221
- scope_expr: z.ZodDefault<z.ZodNullable<z.ZodString>>;
222
- input_injections: z.ZodDefault<z.ZodArray<z.ZodObject<{
223
- template_jq: z.ZodDefault<z.ZodNullable<z.ZodString>>;
224
- jq: z.ZodDefault<z.ZodNullable<z.ZodString>>;
225
- into: z.ZodString;
226
- }, z.core.$strip>>>;
227
- updates: z.ZodDefault<z.ZodArray<z.ZodObject<{
228
- template_jq: z.ZodDefault<z.ZodNullable<z.ZodString>>;
229
- jq: z.ZodDefault<z.ZodNullable<z.ZodString>>;
230
- adapter: z.ZodDefault<z.ZodNullable<z.ZodString>>;
231
- op_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
232
- }, z.core.$strip>>>;
233
- }, z.core.$strip>;
234
- export type StateAttach = z.infer<typeof stateAttach>;
235
- /**
236
- * The one generic binding shape carried, optionally, on every runnable definition
237
- * (a preset, a channel route, a schedule, a hook) and repeated per node by the
238
- * flow engine. It attaches one or more states, each with its templates, subject,
239
- * injections and updates. `null` on a definition means no binding. Mirrors the
240
- * platform `StateBinding` document.
241
- */
242
- export declare const stateBinding: z.ZodObject<{
243
- states: z.ZodArray<z.ZodObject<{
244
- state: z.ZodString;
245
- templates: z.ZodDefault<z.ZodArray<z.ZodString>>;
246
- subject_expr: z.ZodString;
247
- scope_expr: z.ZodDefault<z.ZodNullable<z.ZodString>>;
248
- input_injections: z.ZodDefault<z.ZodArray<z.ZodObject<{
249
- template_jq: z.ZodDefault<z.ZodNullable<z.ZodString>>;
250
- jq: z.ZodDefault<z.ZodNullable<z.ZodString>>;
251
- into: z.ZodString;
252
- }, z.core.$strip>>>;
253
- updates: z.ZodDefault<z.ZodArray<z.ZodObject<{
254
- template_jq: z.ZodDefault<z.ZodNullable<z.ZodString>>;
255
- jq: z.ZodDefault<z.ZodNullable<z.ZodString>>;
256
- adapter: z.ZodDefault<z.ZodNullable<z.ZodString>>;
257
- op_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
258
- }, z.core.$strip>>>;
259
- }, z.core.$strip>>;
260
- }, z.core.$strip>;
261
- export type StateBinding = z.infer<typeof stateBinding>;
262
- /** The full version body a preset stores under `kind="preset"`. */
263
- export declare const presetBody: z.ZodObject<{
264
- base_tool: z.ZodString;
265
- description: z.ZodString;
266
- fixed_kwargs: z.ZodRecord<z.ZodString, z.ZodUnknown>;
267
- extensions: z.ZodArray<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
268
- name: z.ZodString;
269
- config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
270
- }, z.core.$strip>]>>>;
271
- output_schema: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
272
- input_schema: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
273
- state_binding: z.ZodDefault<z.ZodNullable<z.ZodObject<{
274
- states: z.ZodArray<z.ZodObject<{
275
- state: z.ZodString;
276
- templates: z.ZodDefault<z.ZodArray<z.ZodString>>;
277
- subject_expr: z.ZodString;
278
- scope_expr: z.ZodDefault<z.ZodNullable<z.ZodString>>;
279
- input_injections: z.ZodDefault<z.ZodArray<z.ZodObject<{
280
- template_jq: z.ZodDefault<z.ZodNullable<z.ZodString>>;
281
- jq: z.ZodDefault<z.ZodNullable<z.ZodString>>;
282
- into: z.ZodString;
283
- }, z.core.$strip>>>;
284
- updates: z.ZodDefault<z.ZodArray<z.ZodObject<{
285
- template_jq: z.ZodDefault<z.ZodNullable<z.ZodString>>;
286
- jq: z.ZodDefault<z.ZodNullable<z.ZodString>>;
287
- adapter: z.ZodDefault<z.ZodNullable<z.ZodString>>;
288
- op_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
289
- }, z.core.$strip>>>;
290
- }, z.core.$strip>>;
291
- }, z.core.$strip>>>;
292
- }, z.core.$strip>;
293
- export type PresetBody = z.infer<typeof presetBody>;
294
802
  /**
295
803
  * One immutable version row (`GET /api/presets/{name}/versions[/{version}]`).
296
804
  * `is_current` flags the active version; `tags` here is the GENERIC per-version
@@ -301,33 +809,62 @@ export declare const presetVersion: z.ZodObject<{
301
809
  version: z.ZodNumber;
302
810
  body: z.ZodObject<{
303
811
  base_tool: z.ZodString;
304
- description: z.ZodString;
305
- fixed_kwargs: z.ZodRecord<z.ZodString, z.ZodUnknown>;
306
- extensions: z.ZodArray<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
307
- name: z.ZodString;
308
- config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
309
- }, z.core.$strip>]>>>;
310
- output_schema: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
311
- input_schema: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
312
- state_binding: z.ZodDefault<z.ZodNullable<z.ZodObject<{
812
+ description: z.ZodDefault<z.ZodString>;
813
+ extensions: z.ZodDefault<z.ZodArray<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>>;
814
+ fixed_kwargs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
815
+ input_schema: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
816
+ content: z.ZodOptional<z.ZodString>;
817
+ id: z.ZodOptional<z.ZodString>;
818
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
819
+ }, z.core.$strict>, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodNull]>>;
820
+ output_schema: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
821
+ content: z.ZodOptional<z.ZodString>;
822
+ id: z.ZodOptional<z.ZodString>;
823
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
824
+ }, z.core.$strict>, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodNull]>>;
825
+ state_binding: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
313
826
  states: z.ZodArray<z.ZodObject<{
314
- state: z.ZodString;
315
- templates: z.ZodDefault<z.ZodArray<z.ZodString>>;
316
- subject_expr: z.ZodString;
317
- scope_expr: z.ZodDefault<z.ZodNullable<z.ZodString>>;
318
827
  input_injections: z.ZodDefault<z.ZodArray<z.ZodObject<{
319
- template_jq: z.ZodDefault<z.ZodNullable<z.ZodString>>;
320
- jq: z.ZodDefault<z.ZodNullable<z.ZodString>>;
321
828
  into: z.ZodString;
322
- }, z.core.$strip>>>;
829
+ jq: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
830
+ content: z.ZodOptional<z.ZodString>;
831
+ id: z.ZodOptional<z.ZodString>;
832
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
833
+ }, z.core.$strict>, z.ZodNull]>>;
834
+ template_jq: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
835
+ }, z.core.$strict>>>;
836
+ scope_expr: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
837
+ content: z.ZodOptional<z.ZodString>;
838
+ id: z.ZodOptional<z.ZodString>;
839
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
840
+ }, z.core.$strict>, z.ZodNull]>>;
841
+ state: z.ZodString;
842
+ subject_expr: z.ZodObject<{
843
+ content: z.ZodOptional<z.ZodString>;
844
+ id: z.ZodOptional<z.ZodString>;
845
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
846
+ }, z.core.$strict>;
847
+ templates: z.ZodDefault<z.ZodArray<z.ZodString>>;
323
848
  updates: z.ZodDefault<z.ZodArray<z.ZodObject<{
324
- template_jq: z.ZodDefault<z.ZodNullable<z.ZodString>>;
325
- jq: z.ZodDefault<z.ZodNullable<z.ZodString>>;
326
- adapter: z.ZodDefault<z.ZodNullable<z.ZodString>>;
327
- op_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
328
- }, z.core.$strip>>>;
329
- }, z.core.$strip>>;
330
- }, z.core.$strip>>>;
849
+ adapter: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
850
+ content: z.ZodOptional<z.ZodString>;
851
+ id: z.ZodOptional<z.ZodString>;
852
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
853
+ }, z.core.$strict>, z.ZodNull]>>;
854
+ jq: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
855
+ content: z.ZodOptional<z.ZodString>;
856
+ id: z.ZodOptional<z.ZodString>;
857
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
858
+ }, z.core.$strict>, z.ZodNull]>>;
859
+ op_id: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
860
+ content: z.ZodOptional<z.ZodString>;
861
+ id: z.ZodOptional<z.ZodString>;
862
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
863
+ }, z.core.$strict>, z.ZodNull]>>;
864
+ template_jq: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
865
+ }, z.core.$strict>>>;
866
+ }, z.core.$strict>>;
867
+ }, z.core.$strict>, z.ZodNull]>>;
331
868
  }, z.core.$strip>;
332
869
  tags: z.ZodArray<z.ZodString>;
333
870
  created_at: z.ZodString;
@@ -338,33 +875,62 @@ export declare const presetVersionList: z.ZodArray<z.ZodObject<{
338
875
  version: z.ZodNumber;
339
876
  body: z.ZodObject<{
340
877
  base_tool: z.ZodString;
341
- description: z.ZodString;
342
- fixed_kwargs: z.ZodRecord<z.ZodString, z.ZodUnknown>;
343
- extensions: z.ZodArray<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
344
- name: z.ZodString;
345
- config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
346
- }, z.core.$strip>]>>>;
347
- output_schema: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
348
- input_schema: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
349
- state_binding: z.ZodDefault<z.ZodNullable<z.ZodObject<{
878
+ description: z.ZodDefault<z.ZodString>;
879
+ extensions: z.ZodDefault<z.ZodArray<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>>;
880
+ fixed_kwargs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
881
+ input_schema: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
882
+ content: z.ZodOptional<z.ZodString>;
883
+ id: z.ZodOptional<z.ZodString>;
884
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
885
+ }, z.core.$strict>, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodNull]>>;
886
+ output_schema: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
887
+ content: z.ZodOptional<z.ZodString>;
888
+ id: z.ZodOptional<z.ZodString>;
889
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
890
+ }, z.core.$strict>, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodNull]>>;
891
+ state_binding: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
350
892
  states: z.ZodArray<z.ZodObject<{
351
- state: z.ZodString;
352
- templates: z.ZodDefault<z.ZodArray<z.ZodString>>;
353
- subject_expr: z.ZodString;
354
- scope_expr: z.ZodDefault<z.ZodNullable<z.ZodString>>;
355
893
  input_injections: z.ZodDefault<z.ZodArray<z.ZodObject<{
356
- template_jq: z.ZodDefault<z.ZodNullable<z.ZodString>>;
357
- jq: z.ZodDefault<z.ZodNullable<z.ZodString>>;
358
894
  into: z.ZodString;
359
- }, z.core.$strip>>>;
895
+ jq: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
896
+ content: z.ZodOptional<z.ZodString>;
897
+ id: z.ZodOptional<z.ZodString>;
898
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
899
+ }, z.core.$strict>, z.ZodNull]>>;
900
+ template_jq: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
901
+ }, z.core.$strict>>>;
902
+ scope_expr: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
903
+ content: z.ZodOptional<z.ZodString>;
904
+ id: z.ZodOptional<z.ZodString>;
905
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
906
+ }, z.core.$strict>, z.ZodNull]>>;
907
+ state: z.ZodString;
908
+ subject_expr: z.ZodObject<{
909
+ content: z.ZodOptional<z.ZodString>;
910
+ id: z.ZodOptional<z.ZodString>;
911
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
912
+ }, z.core.$strict>;
913
+ templates: z.ZodDefault<z.ZodArray<z.ZodString>>;
360
914
  updates: z.ZodDefault<z.ZodArray<z.ZodObject<{
361
- template_jq: z.ZodDefault<z.ZodNullable<z.ZodString>>;
362
- jq: z.ZodDefault<z.ZodNullable<z.ZodString>>;
363
- adapter: z.ZodDefault<z.ZodNullable<z.ZodString>>;
364
- op_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
365
- }, z.core.$strip>>>;
366
- }, z.core.$strip>>;
367
- }, z.core.$strip>>>;
915
+ adapter: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
916
+ content: z.ZodOptional<z.ZodString>;
917
+ id: z.ZodOptional<z.ZodString>;
918
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
919
+ }, z.core.$strict>, z.ZodNull]>>;
920
+ jq: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
921
+ content: z.ZodOptional<z.ZodString>;
922
+ id: z.ZodOptional<z.ZodString>;
923
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
924
+ }, z.core.$strict>, z.ZodNull]>>;
925
+ op_id: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
926
+ content: z.ZodOptional<z.ZodString>;
927
+ id: z.ZodOptional<z.ZodString>;
928
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
929
+ }, z.core.$strict>, z.ZodNull]>>;
930
+ template_jq: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
931
+ }, z.core.$strict>>>;
932
+ }, z.core.$strict>>;
933
+ }, z.core.$strict>, z.ZodNull]>>;
368
934
  }, z.core.$strip>;
369
935
  tags: z.ZodArray<z.ZodString>;
370
936
  created_at: z.ZodString;
@@ -1287,8 +1853,8 @@ export declare const providerView: z.ZodObject<{
1287
1853
  description: z.ZodString;
1288
1854
  icon_url: z.ZodURL;
1289
1855
  kind: z.ZodEnum<{
1290
- oauth: "oauth";
1291
1856
  none: "none";
1857
+ oauth: "oauth";
1292
1858
  }>;
1293
1859
  origin: z.ZodEnum<{
1294
1860
  system: "system";
@@ -1336,8 +1902,8 @@ export declare const providers: z.ZodObject<{
1336
1902
  description: z.ZodString;
1337
1903
  icon_url: z.ZodURL;
1338
1904
  kind: z.ZodEnum<{
1339
- oauth: "oauth";
1340
1905
  none: "none";
1906
+ oauth: "oauth";
1341
1907
  }>;
1342
1908
  origin: z.ZodEnum<{
1343
1909
  system: "system";
@@ -1373,8 +1939,8 @@ export declare const connectionView: z.ZodObject<{
1373
1939
  provider_id: z.ZodString;
1374
1940
  alias: z.ZodString;
1375
1941
  kind: z.ZodEnum<{
1376
- oauth: "oauth";
1377
1942
  none: "none";
1943
+ oauth: "oauth";
1378
1944
  }>;
1379
1945
  account_identity: z.ZodNullable<z.ZodString>;
1380
1946
  enabled_sub_services: z.ZodArray<z.ZodString>;
@@ -1394,8 +1960,8 @@ export declare const connectionsList: z.ZodObject<{
1394
1960
  provider_id: z.ZodString;
1395
1961
  alias: z.ZodString;
1396
1962
  kind: z.ZodEnum<{
1397
- oauth: "oauth";
1398
1963
  none: "none";
1964
+ oauth: "oauth";
1399
1965
  }>;
1400
1966
  account_identity: z.ZodNullable<z.ZodString>;
1401
1967
  enabled_sub_services: z.ZodArray<z.ZodString>;
@@ -1682,8 +2248,8 @@ export declare const answerFormat: z.ZodEnum<{
1682
2248
  export type AnswerFormat = z.infer<typeof answerFormat>;
1683
2249
  /** The kind of a question's display-only media item: a remote/inline image, or a link. */
1684
2250
  export declare const mediaKind: z.ZodEnum<{
1685
- link: "link";
1686
2251
  image: "image";
2252
+ link: "link";
1687
2253
  }>;
1688
2254
  export type MediaKind = z.infer<typeof mediaKind>;
1689
2255
  /**
@@ -1701,8 +2267,8 @@ export type MediaKind = z.infer<typeof mediaKind>;
1701
2267
  */
1702
2268
  export declare const interactionMediaItem: z.ZodObject<{
1703
2269
  kind: z.ZodEnum<{
1704
- link: "link";
1705
2270
  image: "image";
2271
+ link: "link";
1706
2272
  }>;
1707
2273
  url: z.ZodString;
1708
2274
  caption: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1884,164 +2450,45 @@ export declare const conversationRecordOrigin: z.ZodEnum<{
1884
2450
  operator: "operator";
1885
2451
  }>;
1886
2452
  export type ConversationRecordOrigin = z.infer<typeof conversationRecordOrigin>;
1887
- /**
1888
- * A stored routing row as a read door returns it, its `callback_secret` withheld.
1889
- *
1890
- * `initial_mode`, `turns_per_hour_override`, and `error_reply_text` carry defaults
1891
- * because a stored row always returns them, while a hand-built stub/fixture may
1892
- * omit them — the default keeps such a payload valid without inventing a field the
1893
- * server never sends.
1894
- */
1895
- export declare const conversationRoute: z.ZodObject<{
1896
- route_name: z.ZodString;
1897
- door: z.ZodEnum<{
1898
- channel: "channel";
1899
- api: "api";
1900
- }>;
1901
- target_kind: z.ZodEnum<{
1902
- tool: "tool";
1903
- agent: "agent";
1904
- }>;
1905
- target_name: z.ZodString;
1906
- payload_expr: z.ZodNullable<z.ZodString>;
1907
- reply_expr: z.ZodNullable<z.ZodString>;
1908
- initial_mode: z.ZodDefault<z.ZodEnum<{
1909
- agent: "agent";
1910
- manual: "manual";
1911
- }>>;
1912
- execution_key: z.ZodString;
1913
- channel: z.ZodNullable<z.ZodString>;
1914
- our_identity: z.ZodNullable<z.ZodString>;
1915
- callback_url: z.ZodNullable<z.ZodString>;
1916
- turns_per_hour_override: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1917
- error_reply_text: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1918
- execution_key_fingerprint: z.ZodString;
1919
- state_binding: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1920
- states: z.ZodArray<z.ZodObject<{
1921
- state: z.ZodString;
1922
- templates: z.ZodDefault<z.ZodArray<z.ZodString>>;
1923
- subject_expr: z.ZodString;
1924
- scope_expr: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1925
- input_injections: z.ZodDefault<z.ZodArray<z.ZodObject<{
1926
- template_jq: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1927
- jq: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1928
- into: z.ZodString;
1929
- }, z.core.$strip>>>;
1930
- updates: z.ZodDefault<z.ZodArray<z.ZodObject<{
1931
- template_jq: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1932
- jq: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1933
- adapter: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1934
- op_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1935
- }, z.core.$strip>>>;
1936
- }, z.core.$strip>>;
1937
- }, z.core.$strip>>>;
1938
- }, z.core.$strip>;
1939
- export type ConversationRoute = z.infer<typeof conversationRoute>;
1940
2453
  export declare const conversationRoutes: z.ZodObject<{
1941
2454
  items: z.ZodArray<z.ZodObject<{
1942
- route_name: z.ZodString;
2455
+ callback_secret: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
2456
+ callback_url: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
2457
+ channel: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
1943
2458
  door: z.ZodEnum<{
1944
2459
  channel: "channel";
1945
2460
  api: "api";
1946
2461
  }>;
2462
+ error_reply_text: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
2463
+ execution_key: z.ZodString;
2464
+ execution_key_fingerprint: z.ZodString;
2465
+ initial_mode: z.ZodDefault<z.ZodEnum<{
2466
+ agent: "agent";
2467
+ manual: "manual";
2468
+ }>>;
2469
+ locale: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
2470
+ our_identity: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
2471
+ payload_expr: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
2472
+ content: z.ZodOptional<z.ZodString>;
2473
+ id: z.ZodOptional<z.ZodString>;
2474
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2475
+ }, z.core.$strict>, z.ZodNull]>>;
2476
+ reply_expr: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
2477
+ content: z.ZodOptional<z.ZodString>;
2478
+ id: z.ZodOptional<z.ZodString>;
2479
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2480
+ }, z.core.$strict>, z.ZodNull]>>;
2481
+ route_name: z.ZodString;
1947
2482
  target_kind: z.ZodEnum<{
1948
2483
  tool: "tool";
1949
2484
  agent: "agent";
1950
2485
  }>;
1951
2486
  target_name: z.ZodString;
1952
- payload_expr: z.ZodNullable<z.ZodString>;
1953
- reply_expr: z.ZodNullable<z.ZodString>;
1954
- initial_mode: z.ZodDefault<z.ZodEnum<{
1955
- agent: "agent";
1956
- manual: "manual";
1957
- }>>;
1958
- execution_key: z.ZodString;
1959
- channel: z.ZodNullable<z.ZodString>;
1960
- our_identity: z.ZodNullable<z.ZodString>;
1961
- callback_url: z.ZodNullable<z.ZodString>;
1962
- turns_per_hour_override: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1963
- error_reply_text: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1964
- execution_key_fingerprint: z.ZodString;
1965
- state_binding: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1966
- states: z.ZodArray<z.ZodObject<{
1967
- state: z.ZodString;
1968
- templates: z.ZodDefault<z.ZodArray<z.ZodString>>;
1969
- subject_expr: z.ZodString;
1970
- scope_expr: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1971
- input_injections: z.ZodDefault<z.ZodArray<z.ZodObject<{
1972
- template_jq: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1973
- jq: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1974
- into: z.ZodString;
1975
- }, z.core.$strip>>>;
1976
- updates: z.ZodDefault<z.ZodArray<z.ZodObject<{
1977
- template_jq: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1978
- jq: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1979
- adapter: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1980
- op_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1981
- }, z.core.$strip>>>;
1982
- }, z.core.$strip>>;
1983
- }, z.core.$strip>>>;
2487
+ turns_per_hour_override: z.ZodDefault<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
1984
2488
  }, z.core.$strip>>;
1985
2489
  total: z.ZodNumber;
1986
2490
  }, z.core.$strip>;
1987
2491
  export type ConversationRoutes = z.infer<typeof conversationRoutes>;
1988
- /**
1989
- * The client-facing create/edit body for a conversation route — the wire model of
1990
- * `tai42_contract.conversations.ConversationRouteCreate`. `POST
1991
- * /api/conversations/{route_name}` is an UPSERT, so this one shape is both the
1992
- * create AND the edit body. `route_name` rides the URL path; it is carried here too
1993
- * (the door rejects a body whose `route_name` disagrees with the path).
1994
- *
1995
- * The contract's cross-field validators are mirrored where the form authors this
1996
- * body: `payload_expr`/`reply_expr` are tool-only; an `api` door carries a
1997
- * `callback_url` (and no channel identity); a `channel` door carries `channel` +
1998
- * `our_identity` (and no callback). Sent explicitly (including `null`) so an edit
1999
- * clears a field the operator emptied rather than leaving the stored value.
2000
- */
2001
- export declare const conversationRouteCreate: z.ZodObject<{
2002
- route_name: z.ZodString;
2003
- door: z.ZodEnum<{
2004
- channel: "channel";
2005
- api: "api";
2006
- }>;
2007
- target_kind: z.ZodEnum<{
2008
- tool: "tool";
2009
- agent: "agent";
2010
- }>;
2011
- target_name: z.ZodString;
2012
- payload_expr: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2013
- reply_expr: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2014
- initial_mode: z.ZodDefault<z.ZodEnum<{
2015
- agent: "agent";
2016
- manual: "manual";
2017
- }>>;
2018
- execution_key: z.ZodString;
2019
- channel: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2020
- our_identity: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2021
- callback_url: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2022
- turns_per_hour_override: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
2023
- error_reply_text: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2024
- state_binding: z.ZodDefault<z.ZodNullable<z.ZodObject<{
2025
- states: z.ZodArray<z.ZodObject<{
2026
- state: z.ZodString;
2027
- templates: z.ZodDefault<z.ZodArray<z.ZodString>>;
2028
- subject_expr: z.ZodString;
2029
- scope_expr: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2030
- input_injections: z.ZodDefault<z.ZodArray<z.ZodObject<{
2031
- template_jq: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2032
- jq: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2033
- into: z.ZodString;
2034
- }, z.core.$strip>>>;
2035
- updates: z.ZodDefault<z.ZodArray<z.ZodObject<{
2036
- template_jq: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2037
- jq: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2038
- adapter: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2039
- op_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2040
- }, z.core.$strip>>>;
2041
- }, z.core.$strip>>;
2042
- }, z.core.$strip>>>;
2043
- }, z.core.$strip>;
2044
- export type ConversationRouteCreate = z.infer<typeof conversationRouteCreate>;
2045
2492
  /**
2046
2493
  * The create/replace reply: whether THIS call created the row (vs. replaced an
2047
2494
  * existing one), the row itself (its `callback_secret` withheld), and the
@@ -2053,48 +2500,39 @@ export declare const conversationRouteWritten: z.ZodObject<{
2053
2500
  created: z.ZodBoolean;
2054
2501
  route_name: z.ZodString;
2055
2502
  route: z.ZodObject<{
2503
+ callback_secret: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
2504
+ callback_url: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
2505
+ channel: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
2506
+ door: z.ZodEnum<{
2507
+ channel: "channel";
2508
+ api: "api";
2509
+ }>;
2510
+ error_reply_text: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
2511
+ execution_key: z.ZodString;
2512
+ execution_key_fingerprint: z.ZodString;
2513
+ initial_mode: z.ZodDefault<z.ZodEnum<{
2514
+ agent: "agent";
2515
+ manual: "manual";
2516
+ }>>;
2517
+ locale: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
2518
+ our_identity: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
2519
+ payload_expr: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
2520
+ content: z.ZodOptional<z.ZodString>;
2521
+ id: z.ZodOptional<z.ZodString>;
2522
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2523
+ }, z.core.$strict>, z.ZodNull]>>;
2524
+ reply_expr: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
2525
+ content: z.ZodOptional<z.ZodString>;
2526
+ id: z.ZodOptional<z.ZodString>;
2527
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2528
+ }, z.core.$strict>, z.ZodNull]>>;
2056
2529
  route_name: z.ZodString;
2057
- door: z.ZodEnum<{
2058
- channel: "channel";
2059
- api: "api";
2060
- }>;
2061
2530
  target_kind: z.ZodEnum<{
2062
2531
  tool: "tool";
2063
2532
  agent: "agent";
2064
2533
  }>;
2065
2534
  target_name: z.ZodString;
2066
- payload_expr: z.ZodNullable<z.ZodString>;
2067
- reply_expr: z.ZodNullable<z.ZodString>;
2068
- initial_mode: z.ZodDefault<z.ZodEnum<{
2069
- agent: "agent";
2070
- manual: "manual";
2071
- }>>;
2072
- execution_key: z.ZodString;
2073
- channel: z.ZodNullable<z.ZodString>;
2074
- our_identity: z.ZodNullable<z.ZodString>;
2075
- callback_url: z.ZodNullable<z.ZodString>;
2076
- turns_per_hour_override: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
2077
- error_reply_text: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2078
- execution_key_fingerprint: z.ZodString;
2079
- state_binding: z.ZodDefault<z.ZodNullable<z.ZodObject<{
2080
- states: z.ZodArray<z.ZodObject<{
2081
- state: z.ZodString;
2082
- templates: z.ZodDefault<z.ZodArray<z.ZodString>>;
2083
- subject_expr: z.ZodString;
2084
- scope_expr: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2085
- input_injections: z.ZodDefault<z.ZodArray<z.ZodObject<{
2086
- template_jq: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2087
- jq: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2088
- into: z.ZodString;
2089
- }, z.core.$strip>>>;
2090
- updates: z.ZodDefault<z.ZodArray<z.ZodObject<{
2091
- template_jq: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2092
- jq: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2093
- adapter: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2094
- op_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2095
- }, z.core.$strip>>>;
2096
- }, z.core.$strip>>;
2097
- }, z.core.$strip>>>;
2535
+ turns_per_hour_override: z.ZodDefault<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
2098
2536
  }, z.core.$strip>;
2099
2537
  callback_secret: z.ZodNullable<z.ZodString>;
2100
2538
  }, z.core.$strip>;
@@ -2347,40 +2785,59 @@ export declare const conversationThreadMessageSent: z.ZodObject<{
2347
2785
  thread_id: z.ZodString;
2348
2786
  }, z.core.$strip>;
2349
2787
  export type ConversationThreadMessageSent = z.infer<typeof conversationThreadMessageSent>;
2350
- /**
2351
- * Per-target presentation config for the conversation bridge, keyed by
2352
- * `(target_kind, target_name)` — the wire model of
2353
- * `tai42_contract.conversations.TargetConversationConfig`. The row carries no
2354
- * server-derived fields, so this ONE shape is the stored row AND the upsert body
2355
- * (`PUT /api/conversation-configs/{target_kind}/{target_name}` is the create AND
2356
- * the edit path).
2357
- *
2358
- * `multichannel` opts the target into person linking; `greeting_template` is the
2359
- * first-contact greeting. `greeting_template` is a `str.format` template (NOT a jq
2360
- * expression) that may reference at most the `{pairing_code}` placeholder — it
2361
- * carries no `x-tai42-expression`. `null` is the explicit spelling for "no
2362
- * greeting"; a blank string is refused server-side.
2363
- */
2364
- export declare const targetConversationConfig: z.ZodObject<{
2365
- target_kind: z.ZodEnum<{
2366
- tool: "tool";
2367
- agent: "agent";
2368
- }>;
2369
- target_name: z.ZodString;
2370
- multichannel: z.ZodDefault<z.ZodBoolean>;
2371
- greeting_template: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2372
- }, z.core.$strip>;
2373
- export type TargetConversationConfig = z.infer<typeof targetConversationConfig>;
2374
2788
  /** Every stored per-target config (`GET /api/conversation-configs`). */
2375
2789
  export declare const conversationConfigs: z.ZodObject<{
2376
2790
  items: z.ZodArray<z.ZodObject<{
2791
+ greeting_template: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
2792
+ multichannel: z.ZodDefault<z.ZodBoolean>;
2793
+ state_binding: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
2794
+ states: z.ZodArray<z.ZodObject<{
2795
+ input_injections: z.ZodDefault<z.ZodArray<z.ZodObject<{
2796
+ into: z.ZodString;
2797
+ jq: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
2798
+ content: z.ZodOptional<z.ZodString>;
2799
+ id: z.ZodOptional<z.ZodString>;
2800
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2801
+ }, z.core.$strict>, z.ZodNull]>>;
2802
+ template_jq: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
2803
+ }, z.core.$strict>>>;
2804
+ scope_expr: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
2805
+ content: z.ZodOptional<z.ZodString>;
2806
+ id: z.ZodOptional<z.ZodString>;
2807
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2808
+ }, z.core.$strict>, z.ZodNull]>>;
2809
+ state: z.ZodString;
2810
+ subject_expr: z.ZodObject<{
2811
+ content: z.ZodOptional<z.ZodString>;
2812
+ id: z.ZodOptional<z.ZodString>;
2813
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2814
+ }, z.core.$strict>;
2815
+ templates: z.ZodDefault<z.ZodArray<z.ZodString>>;
2816
+ updates: z.ZodDefault<z.ZodArray<z.ZodObject<{
2817
+ adapter: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
2818
+ content: z.ZodOptional<z.ZodString>;
2819
+ id: z.ZodOptional<z.ZodString>;
2820
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2821
+ }, z.core.$strict>, z.ZodNull]>>;
2822
+ jq: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
2823
+ content: z.ZodOptional<z.ZodString>;
2824
+ id: z.ZodOptional<z.ZodString>;
2825
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2826
+ }, z.core.$strict>, z.ZodNull]>>;
2827
+ op_id: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
2828
+ content: z.ZodOptional<z.ZodString>;
2829
+ id: z.ZodOptional<z.ZodString>;
2830
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2831
+ }, z.core.$strict>, z.ZodNull]>>;
2832
+ template_jq: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
2833
+ }, z.core.$strict>>>;
2834
+ }, z.core.$strict>>;
2835
+ }, z.core.$strict>, z.ZodNull]>>;
2377
2836
  target_kind: z.ZodEnum<{
2378
2837
  tool: "tool";
2379
2838
  agent: "agent";
2380
2839
  }>;
2381
2840
  target_name: z.ZodString;
2382
- multichannel: z.ZodDefault<z.ZodBoolean>;
2383
- greeting_template: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2384
2841
  }, z.core.$strip>>;
2385
2842
  total: z.ZodNumber;
2386
2843
  }, z.core.$strip>;
@@ -2397,13 +2854,56 @@ export declare const conversationConfigWritten: z.ZodObject<{
2397
2854
  }>;
2398
2855
  target_name: z.ZodString;
2399
2856
  config: z.ZodObject<{
2857
+ greeting_template: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
2858
+ multichannel: z.ZodDefault<z.ZodBoolean>;
2859
+ state_binding: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
2860
+ states: z.ZodArray<z.ZodObject<{
2861
+ input_injections: z.ZodDefault<z.ZodArray<z.ZodObject<{
2862
+ into: z.ZodString;
2863
+ jq: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
2864
+ content: z.ZodOptional<z.ZodString>;
2865
+ id: z.ZodOptional<z.ZodString>;
2866
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2867
+ }, z.core.$strict>, z.ZodNull]>>;
2868
+ template_jq: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
2869
+ }, z.core.$strict>>>;
2870
+ scope_expr: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
2871
+ content: z.ZodOptional<z.ZodString>;
2872
+ id: z.ZodOptional<z.ZodString>;
2873
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2874
+ }, z.core.$strict>, z.ZodNull]>>;
2875
+ state: z.ZodString;
2876
+ subject_expr: z.ZodObject<{
2877
+ content: z.ZodOptional<z.ZodString>;
2878
+ id: z.ZodOptional<z.ZodString>;
2879
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2880
+ }, z.core.$strict>;
2881
+ templates: z.ZodDefault<z.ZodArray<z.ZodString>>;
2882
+ updates: z.ZodDefault<z.ZodArray<z.ZodObject<{
2883
+ adapter: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
2884
+ content: z.ZodOptional<z.ZodString>;
2885
+ id: z.ZodOptional<z.ZodString>;
2886
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2887
+ }, z.core.$strict>, z.ZodNull]>>;
2888
+ jq: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
2889
+ content: z.ZodOptional<z.ZodString>;
2890
+ id: z.ZodOptional<z.ZodString>;
2891
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2892
+ }, z.core.$strict>, z.ZodNull]>>;
2893
+ op_id: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
2894
+ content: z.ZodOptional<z.ZodString>;
2895
+ id: z.ZodOptional<z.ZodString>;
2896
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2897
+ }, z.core.$strict>, z.ZodNull]>>;
2898
+ template_jq: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
2899
+ }, z.core.$strict>>>;
2900
+ }, z.core.$strict>>;
2901
+ }, z.core.$strict>, z.ZodNull]>>;
2400
2902
  target_kind: z.ZodEnum<{
2401
2903
  tool: "tool";
2402
2904
  agent: "agent";
2403
2905
  }>;
2404
2906
  target_name: z.ZodString;
2405
- multichannel: z.ZodDefault<z.ZodBoolean>;
2406
- greeting_template: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2407
2907
  }, z.core.$strip>;
2408
2908
  }, z.core.$strip>;
2409
2909
  export type ConversationConfigWritten = z.infer<typeof conversationConfigWritten>;
@@ -2534,18 +3034,6 @@ export declare const webEntryCodeRevoked: z.ZodObject<{
2534
3034
  status: z.ZodLiteral<"revoked">;
2535
3035
  }, z.core.$strip>;
2536
3036
  export type WebEntryCodeRevoked = z.infer<typeof webEntryCodeRevoked>;
2537
- /**
2538
- * A pre-approved channel template a notification carried, stored raw on the sink
2539
- * record when the notify supplied one (server-side it is mutually exclusive with
2540
- * `media`/`options`). `parameters` is the POSITIONAL list of body-text values
2541
- * substituted into the template's placeholders in order; empty when it has none.
2542
- */
2543
- export declare const channelTemplate: z.ZodObject<{
2544
- name: z.ZodString;
2545
- language: z.ZodString;
2546
- parameters: z.ZodDefault<z.ZodArray<z.ZodString>>;
2547
- }, z.core.$strip>;
2548
- export type ChannelTemplate = z.infer<typeof channelTemplate>;
2549
3037
  export declare const notification: z.ZodObject<{
2550
3038
  id: z.ZodString;
2551
3039
  message: z.ZodString;
@@ -2553,9 +3041,22 @@ export declare const notification: z.ZodObject<{
2553
3041
  audience: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2554
3042
  media: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
2555
3043
  template: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2556
- name: z.ZodString;
3044
+ body_parameters: z.ZodDefault<z.ZodArray<z.ZodString>>;
3045
+ buttons: z.ZodDefault<z.ZodArray<z.ZodUnknown>>;
3046
+ header_media: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
3047
+ caption: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
3048
+ filename: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
3049
+ kind: z.ZodEnum<{
3050
+ image: "image";
3051
+ link: "link";
3052
+ document: "document";
3053
+ video: "video";
3054
+ audio: "audio";
3055
+ }>;
3056
+ url: z.ZodString;
3057
+ }, z.core.$strip>, z.ZodNull]>>;
2557
3058
  language: z.ZodString;
2558
- parameters: z.ZodDefault<z.ZodArray<z.ZodString>>;
3059
+ name: z.ZodString;
2559
3060
  }, z.core.$strip>>>;
2560
3061
  options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
2561
3062
  created_at: z.ZodString;
@@ -2569,9 +3070,22 @@ export declare const notifications: z.ZodObject<{
2569
3070
  audience: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2570
3071
  media: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
2571
3072
  template: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2572
- name: z.ZodString;
3073
+ body_parameters: z.ZodDefault<z.ZodArray<z.ZodString>>;
3074
+ buttons: z.ZodDefault<z.ZodArray<z.ZodUnknown>>;
3075
+ header_media: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
3076
+ caption: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
3077
+ filename: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
3078
+ kind: z.ZodEnum<{
3079
+ image: "image";
3080
+ link: "link";
3081
+ document: "document";
3082
+ video: "video";
3083
+ audio: "audio";
3084
+ }>;
3085
+ url: z.ZodString;
3086
+ }, z.core.$strip>, z.ZodNull]>>;
2573
3087
  language: z.ZodString;
2574
- parameters: z.ZodDefault<z.ZodArray<z.ZodString>>;
3088
+ name: z.ZodString;
2575
3089
  }, z.core.$strip>>>;
2576
3090
  options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
2577
3091
  created_at: z.ZodString;
@@ -2587,105 +3101,80 @@ export declare const triggerAuth: z.ZodEnum<{
2587
3101
  "out-of-service": "out-of-service";
2588
3102
  }>;
2589
3103
  export type TriggerAuth = z.infer<typeof triggerAuth>;
2590
- /**
2591
- * The optional state subject a hook fire targets (mirrors
2592
- * `tai42_contract.hooks.HookSubject`): the conversation-target scope plus the subject
2593
- * `kind` and a `key_expr` jq evaluated over the event payload at fire. `null` leaves the
2594
- * fire with no ambient state context.
2595
- */
2596
- export declare const hookSubject: z.ZodObject<{
2597
- target_kind: z.ZodEnum<{
2598
- tool: "tool";
2599
- agent: "agent";
2600
- }>;
2601
- target_name: z.ZodString;
2602
- kind: z.ZodString;
2603
- key_expr: z.ZodString;
2604
- }, z.core.$strip>;
2605
- export type HookSubject = z.infer<typeof hookSubject>;
2606
- export declare const hookParams: z.ZodObject<{
2607
- name: z.ZodString;
2608
- topic: z.ZodString;
2609
- tool: z.ZodString;
2610
- execution_key: z.ZodString;
2611
- tool_kwargs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2612
- subject: z.ZodDefault<z.ZodNullable<z.ZodObject<{
2613
- target_kind: z.ZodEnum<{
2614
- tool: "tool";
2615
- agent: "agent";
2616
- }>;
2617
- target_name: z.ZodString;
2618
- kind: z.ZodString;
2619
- key_expr: z.ZodString;
2620
- }, z.core.$strip>>>;
2621
- condition: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2622
- condition_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2623
- condition_kwargs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2624
- expr: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2625
- expr_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2626
- expr_kwargs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2627
- state_binding: z.ZodDefault<z.ZodNullable<z.ZodObject<{
2628
- states: z.ZodArray<z.ZodObject<{
2629
- state: z.ZodString;
2630
- templates: z.ZodDefault<z.ZodArray<z.ZodString>>;
2631
- subject_expr: z.ZodString;
2632
- scope_expr: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2633
- input_injections: z.ZodDefault<z.ZodArray<z.ZodObject<{
2634
- template_jq: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2635
- jq: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2636
- into: z.ZodString;
2637
- }, z.core.$strip>>>;
2638
- updates: z.ZodDefault<z.ZodArray<z.ZodObject<{
2639
- template_jq: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2640
- jq: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2641
- adapter: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2642
- op_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2643
- }, z.core.$strip>>>;
2644
- }, z.core.$strip>>;
2645
- }, z.core.$strip>>>;
2646
- }, z.core.$strip>;
2647
- export type HookParams = z.infer<typeof hookParams>;
2648
3104
  export declare const hookList: z.ZodObject<{
2649
3105
  items: z.ZodArray<z.ZodObject<{
2650
- name: z.ZodString;
2651
- topic: z.ZodString;
2652
- tool: z.ZodString;
3106
+ condition: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
3107
+ content: z.ZodOptional<z.ZodString>;
3108
+ id: z.ZodOptional<z.ZodString>;
3109
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3110
+ }, z.core.$strict>, z.ZodNull]>>;
2653
3111
  execution_key: z.ZodString;
2654
- tool_kwargs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2655
- subject: z.ZodDefault<z.ZodNullable<z.ZodObject<{
3112
+ execution_key_fingerprint: z.ZodString;
3113
+ expr: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
3114
+ content: z.ZodOptional<z.ZodString>;
3115
+ id: z.ZodOptional<z.ZodString>;
3116
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3117
+ }, z.core.$strict>, z.ZodNull]>>;
3118
+ name: z.ZodString;
3119
+ state_binding: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
3120
+ states: z.ZodArray<z.ZodObject<{
3121
+ input_injections: z.ZodDefault<z.ZodArray<z.ZodObject<{
3122
+ into: z.ZodString;
3123
+ jq: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
3124
+ content: z.ZodOptional<z.ZodString>;
3125
+ id: z.ZodOptional<z.ZodString>;
3126
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3127
+ }, z.core.$strict>, z.ZodNull]>>;
3128
+ template_jq: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
3129
+ }, z.core.$strict>>>;
3130
+ scope_expr: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
3131
+ content: z.ZodOptional<z.ZodString>;
3132
+ id: z.ZodOptional<z.ZodString>;
3133
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3134
+ }, z.core.$strict>, z.ZodNull]>>;
3135
+ state: z.ZodString;
3136
+ subject_expr: z.ZodObject<{
3137
+ content: z.ZodOptional<z.ZodString>;
3138
+ id: z.ZodOptional<z.ZodString>;
3139
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3140
+ }, z.core.$strict>;
3141
+ templates: z.ZodDefault<z.ZodArray<z.ZodString>>;
3142
+ updates: z.ZodDefault<z.ZodArray<z.ZodObject<{
3143
+ adapter: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
3144
+ content: z.ZodOptional<z.ZodString>;
3145
+ id: z.ZodOptional<z.ZodString>;
3146
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3147
+ }, z.core.$strict>, z.ZodNull]>>;
3148
+ jq: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
3149
+ content: z.ZodOptional<z.ZodString>;
3150
+ id: z.ZodOptional<z.ZodString>;
3151
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3152
+ }, z.core.$strict>, z.ZodNull]>>;
3153
+ op_id: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
3154
+ content: z.ZodOptional<z.ZodString>;
3155
+ id: z.ZodOptional<z.ZodString>;
3156
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3157
+ }, z.core.$strict>, z.ZodNull]>>;
3158
+ template_jq: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
3159
+ }, z.core.$strict>>>;
3160
+ }, z.core.$strict>>;
3161
+ }, z.core.$strict>, z.ZodNull]>>;
3162
+ subject: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
3163
+ key_expr: z.ZodObject<{
3164
+ content: z.ZodOptional<z.ZodString>;
3165
+ id: z.ZodOptional<z.ZodString>;
3166
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3167
+ }, z.core.$strict>;
3168
+ kind: z.ZodString;
2656
3169
  target_kind: z.ZodEnum<{
2657
3170
  tool: "tool";
2658
3171
  agent: "agent";
2659
3172
  }>;
2660
3173
  target_name: z.ZodString;
2661
- kind: z.ZodString;
2662
- key_expr: z.ZodString;
2663
- }, z.core.$strip>>>;
2664
- condition: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2665
- condition_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2666
- condition_kwargs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2667
- expr: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2668
- expr_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2669
- expr_kwargs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2670
- state_binding: z.ZodDefault<z.ZodNullable<z.ZodObject<{
2671
- states: z.ZodArray<z.ZodObject<{
2672
- state: z.ZodString;
2673
- templates: z.ZodDefault<z.ZodArray<z.ZodString>>;
2674
- subject_expr: z.ZodString;
2675
- scope_expr: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2676
- input_injections: z.ZodDefault<z.ZodArray<z.ZodObject<{
2677
- template_jq: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2678
- jq: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2679
- into: z.ZodString;
2680
- }, z.core.$strip>>>;
2681
- updates: z.ZodDefault<z.ZodArray<z.ZodObject<{
2682
- template_jq: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2683
- jq: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2684
- adapter: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2685
- op_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2686
- }, z.core.$strip>>>;
2687
- }, z.core.$strip>>;
2688
- }, z.core.$strip>>>;
3174
+ }, z.core.$strict>, z.ZodNull]>>;
3175
+ tool: z.ZodString;
3176
+ tool_kwargs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3177
+ topic: z.ZodString;
2689
3178
  }, z.core.$strip>>;
2690
3179
  total: z.ZodNumber;
2691
3180
  topic_verifiers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -2829,9 +3318,9 @@ export declare const removeScopeResult: z.ZodObject<{
2829
3318
  * (an unregistered/ungated path — no feature tags, no action).
2830
3319
  */
2831
3320
  export declare const routeAction: z.ZodEnum<{
2832
- secret: "secret";
2833
3321
  read: "read";
2834
3322
  write: "write";
3323
+ secret: "secret";
2835
3324
  fenced: "fenced";
2836
3325
  }>;
2837
3326
  export type RouteAction = z.infer<typeof routeAction>;
@@ -2853,9 +3342,9 @@ export declare const authRoute: z.ZodObject<{
2853
3342
  tags: z.ZodArray<z.ZodString>;
2854
3343
  summary: z.ZodString;
2855
3344
  action: z.ZodNullable<z.ZodEnum<{
2856
- secret: "secret";
2857
3345
  read: "read";
2858
3346
  write: "write";
3347
+ secret: "secret";
2859
3348
  fenced: "fenced";
2860
3349
  }>>;
2861
3350
  }, z.core.$strip>;
@@ -2867,9 +3356,9 @@ export declare const authRoutes: z.ZodArray<z.ZodObject<{
2867
3356
  tags: z.ZodArray<z.ZodString>;
2868
3357
  summary: z.ZodString;
2869
3358
  action: z.ZodNullable<z.ZodEnum<{
2870
- secret: "secret";
2871
3359
  read: "read";
2872
3360
  write: "write";
3361
+ secret: "secret";
2873
3362
  fenced: "fenced";
2874
3363
  }>>;
2875
3364
  }, z.core.$strip>>;
@@ -2887,44 +3376,22 @@ export declare const roleGrants: z.ZodRecord<z.ZodString, z.ZodEnum<{
2887
3376
  write: "write";
2888
3377
  }>>;
2889
3378
  export type RoleGrants = z.infer<typeof roleGrants>;
2890
- /**
2891
- * A role body (`GET /api/auth/roles`, and the write routes' echo). Layer 1 is the
2892
- * read-only base-tier ceiling — the seeded jq `condition` plus `base_tier`
2893
- * (`editor`/`viewer`, or `null` for the reserved `allow_all` admin). Layer 2 is the
2894
- * editable per-tag `grants` map. `allow_all` (admin) carries an empty `grants` map
2895
- * and reaches everything, un-lockable. `condition`/`condition_id`/`condition_kwargs`
2896
- * are the base-tier jq — READ-ONLY here (no raw-jq authoring surface).
2897
- */
2898
- export declare const roleBody: z.ZodObject<{
2899
- name: z.ZodString;
2900
- description: z.ZodString;
2901
- scopes: z.ZodArray<z.ZodString>;
2902
- condition: z.ZodNullable<z.ZodString>;
2903
- condition_id: z.ZodNullable<z.ZodString>;
2904
- condition_kwargs: z.ZodNullable<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
2905
- base_tier: z.ZodNullable<z.ZodString>;
2906
- allow_all: z.ZodBoolean;
2907
- grants: z.ZodRecord<z.ZodString, z.ZodEnum<{
2908
- none: "none";
2909
- read: "read";
2910
- write: "write";
2911
- }>>;
2912
- }, z.core.$strip>;
2913
- export type RoleBody = z.infer<typeof roleBody>;
2914
3379
  export declare const roleList: z.ZodArray<z.ZodObject<{
2915
- name: z.ZodString;
3380
+ allow_all: z.ZodDefault<z.ZodBoolean>;
3381
+ base_tier: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
3382
+ condition: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
3383
+ content: z.ZodOptional<z.ZodString>;
3384
+ id: z.ZodOptional<z.ZodString>;
3385
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3386
+ }, z.core.$strict>, z.ZodNull]>>;
2916
3387
  description: z.ZodString;
2917
- scopes: z.ZodArray<z.ZodString>;
2918
- condition: z.ZodNullable<z.ZodString>;
2919
- condition_id: z.ZodNullable<z.ZodString>;
2920
- condition_kwargs: z.ZodNullable<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
2921
- base_tier: z.ZodNullable<z.ZodString>;
2922
- allow_all: z.ZodBoolean;
2923
3388
  grants: z.ZodRecord<z.ZodString, z.ZodEnum<{
2924
3389
  none: "none";
2925
3390
  read: "read";
2926
3391
  write: "write";
2927
3392
  }>>;
3393
+ name: z.ZodString;
3394
+ scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
2928
3395
  }, z.core.$strip>>;
2929
3396
  /** `DELETE /api/auth/roles/{name}` — the deleted role's name. */
2930
3397
  export declare const roleDeleted: z.ZodObject<{
@@ -2939,19 +3406,21 @@ export declare const roleDeleted: z.ZodObject<{
2939
3406
  export declare const roleVersion: z.ZodObject<{
2940
3407
  version: z.ZodNumber;
2941
3408
  body: z.ZodObject<{
2942
- name: z.ZodString;
3409
+ allow_all: z.ZodDefault<z.ZodBoolean>;
3410
+ base_tier: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
3411
+ condition: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
3412
+ content: z.ZodOptional<z.ZodString>;
3413
+ id: z.ZodOptional<z.ZodString>;
3414
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3415
+ }, z.core.$strict>, z.ZodNull]>>;
2943
3416
  description: z.ZodString;
2944
- scopes: z.ZodArray<z.ZodString>;
2945
- condition: z.ZodNullable<z.ZodString>;
2946
- condition_id: z.ZodNullable<z.ZodString>;
2947
- condition_kwargs: z.ZodNullable<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
2948
- base_tier: z.ZodNullable<z.ZodString>;
2949
- allow_all: z.ZodBoolean;
2950
3417
  grants: z.ZodRecord<z.ZodString, z.ZodEnum<{
2951
3418
  none: "none";
2952
3419
  read: "read";
2953
3420
  write: "write";
2954
3421
  }>>;
3422
+ name: z.ZodString;
3423
+ scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
2955
3424
  }, z.core.$strip>;
2956
3425
  tags: z.ZodArray<z.ZodString>;
2957
3426
  created_at: z.ZodString;
@@ -2981,19 +3450,21 @@ export declare const roleVersions: z.ZodObject<{
2981
3450
  versions: z.ZodArray<z.ZodObject<{
2982
3451
  version: z.ZodNumber;
2983
3452
  body: z.ZodObject<{
2984
- name: z.ZodString;
3453
+ allow_all: z.ZodDefault<z.ZodBoolean>;
3454
+ base_tier: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
3455
+ condition: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
3456
+ content: z.ZodOptional<z.ZodString>;
3457
+ id: z.ZodOptional<z.ZodString>;
3458
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3459
+ }, z.core.$strict>, z.ZodNull]>>;
2985
3460
  description: z.ZodString;
2986
- scopes: z.ZodArray<z.ZodString>;
2987
- condition: z.ZodNullable<z.ZodString>;
2988
- condition_id: z.ZodNullable<z.ZodString>;
2989
- condition_kwargs: z.ZodNullable<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
2990
- base_tier: z.ZodNullable<z.ZodString>;
2991
- allow_all: z.ZodBoolean;
2992
3461
  grants: z.ZodRecord<z.ZodString, z.ZodEnum<{
2993
3462
  none: "none";
2994
3463
  read: "read";
2995
3464
  write: "write";
2996
3465
  }>>;
3466
+ name: z.ZodString;
3467
+ scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
2997
3468
  }, z.core.$strip>;
2998
3469
  tags: z.ZodArray<z.ZodString>;
2999
3470
  created_at: z.ZodString;
@@ -3030,9 +3501,11 @@ export declare const tokensPayload: z.ZodArray<z.ZodObject<{
3030
3501
  description: z.ZodString;
3031
3502
  scopes: z.ZodArray<z.ZodString>;
3032
3503
  policy_data: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
3033
- condition: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3034
- condition_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3035
- condition_kwargs: z.ZodOptional<z.ZodNullable<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
3504
+ condition: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3505
+ content: z.ZodOptional<z.ZodString>;
3506
+ id: z.ZodOptional<z.ZodString>;
3507
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3508
+ }, z.core.$strict>>>;
3036
3509
  }, z.core.$strip>>;
3037
3510
  export type TokensPayload = z.infer<typeof tokensPayload>;
3038
3511
  /** Mint reply `{ api_key, key_fingerprint }` narrowed to the raw `sk-…` key,
@@ -3244,20 +3717,6 @@ export declare const validateConditionResult: z.ZodObject<{
3244
3717
  result: z.ZodNullable<z.ZodBoolean>;
3245
3718
  }, z.core.$strip>;
3246
3719
  export type ValidateConditionResult = z.infer<typeof validateConditionResult>;
3247
- /**
3248
- * The enforced policy shape a version body carries. SECRET-ADJACENT — `condition`
3249
- * can reveal auth logic, so its fixtures are hand-authored, never captured.
3250
- * `condition`/`condition_id` are mutually exclusive at author time; both are
3251
- * nullable here because whichever mode is unused is stored as `null`.
3252
- */
3253
- export declare const policyBody: z.ZodObject<{
3254
- scopes: z.ZodArray<z.ZodString>;
3255
- policy_data: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
3256
- condition: z.ZodNullable<z.ZodString>;
3257
- condition_id: z.ZodNullable<z.ZodString>;
3258
- condition_kwargs: z.ZodNullable<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
3259
- }, z.core.$strip>;
3260
- export type PolicyBody = z.infer<typeof policyBody>;
3261
3720
  /**
3262
3721
  * One immutable policy version row
3263
3722
  * (`GET /api/auth/api-keys/{user_id}/policy/versions`). `is_current` flags the
@@ -3267,11 +3726,13 @@ export type PolicyBody = z.infer<typeof policyBody>;
3267
3726
  export declare const policyVersion: z.ZodObject<{
3268
3727
  version: z.ZodNumber;
3269
3728
  body: z.ZodObject<{
3270
- scopes: z.ZodArray<z.ZodString>;
3271
- policy_data: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
3272
- condition: z.ZodNullable<z.ZodString>;
3273
- condition_id: z.ZodNullable<z.ZodString>;
3274
- condition_kwargs: z.ZodNullable<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
3729
+ condition: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
3730
+ content: z.ZodOptional<z.ZodString>;
3731
+ id: z.ZodOptional<z.ZodString>;
3732
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3733
+ }, z.core.$strict>, z.ZodNull]>>;
3734
+ policy_data: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3735
+ scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
3275
3736
  }, z.core.$strip>;
3276
3737
  tags: z.ZodArray<z.ZodString>;
3277
3738
  created_at: z.ZodString;
@@ -3281,11 +3742,13 @@ export type PolicyVersion = z.infer<typeof policyVersion>;
3281
3742
  export declare const policyVersionList: z.ZodArray<z.ZodObject<{
3282
3743
  version: z.ZodNumber;
3283
3744
  body: z.ZodObject<{
3284
- scopes: z.ZodArray<z.ZodString>;
3285
- policy_data: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
3286
- condition: z.ZodNullable<z.ZodString>;
3287
- condition_id: z.ZodNullable<z.ZodString>;
3288
- condition_kwargs: z.ZodNullable<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
3745
+ condition: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
3746
+ content: z.ZodOptional<z.ZodString>;
3747
+ id: z.ZodOptional<z.ZodString>;
3748
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3749
+ }, z.core.$strict>, z.ZodNull]>>;
3750
+ policy_data: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3751
+ scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
3289
3752
  }, z.core.$strip>;
3290
3753
  tags: z.ZodArray<z.ZodString>;
3291
3754
  created_at: z.ZodString;
@@ -4223,24 +4686,6 @@ export declare const stateSubject: z.ZodObject<{
4223
4686
  export type StateSubject = z.infer<typeof stateSubject>;
4224
4687
  /** One absolute write-regime rule composed over the attachments: `{path, regime}`, permissive. */
4225
4688
  export declare const stateRegime: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4226
- /**
4227
- * A declared state served on every read. `schema` is the base JSON Schema;
4228
- * `effective_schema` (the base composed with every attached template's fragment) and
4229
- * `regimes` (the absolute write-regime rules) are platform-COMPUTED and served on every
4230
- * read — modelled optional so a write body that omits them, or a server yet to compose
4231
- * them, still parses. A drift throws ApiSchemaError.
4232
- */
4233
- export declare const stateDeclaration: z.ZodObject<{
4234
- name: z.ZodString;
4235
- description: z.ZodDefault<z.ZodString>;
4236
- schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4237
- subject_kinds: z.ZodArray<z.ZodString>;
4238
- default_subject_kind: z.ZodString;
4239
- retention_days: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
4240
- effective_schema: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
4241
- regimes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
4242
- }, z.core.$strip>;
4243
- export type StateDeclaration = z.infer<typeof stateDeclaration>;
4244
4689
  /**
4245
4690
  * One row of `GET /api/states` — a served declaration (`list_states` dumps every
4246
4691
  * `StateDeclaration`) plus `updated_at` (the row's last-write timestamp, ISO or
@@ -4248,28 +4693,36 @@ export type StateDeclaration = z.infer<typeof stateDeclaration>;
4248
4693
  * `getStateStats` lazily per row.
4249
4694
  */
4250
4695
  export declare const stateListItem: z.ZodObject<{
4251
- name: z.ZodString;
4696
+ default_subject_kind: z.ZodString;
4252
4697
  description: z.ZodDefault<z.ZodString>;
4253
- schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4698
+ effective_schema: z.ZodDefault<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodNull]>>;
4699
+ name: z.ZodString;
4700
+ regimes: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>, z.ZodNull]>>;
4701
+ retention_days: z.ZodDefault<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
4702
+ schema: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
4703
+ content: z.ZodOptional<z.ZodString>;
4704
+ id: z.ZodOptional<z.ZodString>;
4705
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4706
+ }, z.core.$strict>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
4254
4707
  subject_kinds: z.ZodArray<z.ZodString>;
4255
- default_subject_kind: z.ZodString;
4256
- retention_days: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
4257
- effective_schema: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
4258
- regimes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
4259
4708
  updated_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4260
- }, z.core.$strip>;
4709
+ }, z.core.$strict>;
4261
4710
  export type StateListItem = z.infer<typeof stateListItem>;
4262
4711
  export declare const stateList: z.ZodArray<z.ZodObject<{
4263
- name: z.ZodString;
4712
+ default_subject_kind: z.ZodString;
4264
4713
  description: z.ZodDefault<z.ZodString>;
4265
- schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4714
+ effective_schema: z.ZodDefault<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodNull]>>;
4715
+ name: z.ZodString;
4716
+ regimes: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>, z.ZodNull]>>;
4717
+ retention_days: z.ZodDefault<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
4718
+ schema: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
4719
+ content: z.ZodOptional<z.ZodString>;
4720
+ id: z.ZodOptional<z.ZodString>;
4721
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4722
+ }, z.core.$strict>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
4266
4723
  subject_kinds: z.ZodArray<z.ZodString>;
4267
- default_subject_kind: z.ZodString;
4268
- retention_days: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
4269
- effective_schema: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
4270
- regimes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
4271
4724
  updated_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4272
- }, z.core.$strip>>;
4725
+ }, z.core.$strict>>;
4273
4726
  /** One template attachment on a state: where the fragment lands + its param/declaration values. */
4274
4727
  export declare const stateAttachment: z.ZodObject<{
4275
4728
  template: z.ZodString;
@@ -4286,21 +4739,26 @@ export declare const stateAttachmentList: z.ZodArray<z.ZodObject<{
4286
4739
  }, z.core.$strip>>;
4287
4740
  /** `GET /api/states/{name}` — the declaration (with effective schema + regimes) plus attachments. */
4288
4741
  export declare const stateDetail: z.ZodObject<{
4289
- name: z.ZodString;
4742
+ default_subject_kind: z.ZodString;
4290
4743
  description: z.ZodDefault<z.ZodString>;
4291
- schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4744
+ effective_schema: z.ZodDefault<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodNull]>>;
4745
+ name: z.ZodString;
4746
+ regimes: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>, z.ZodNull]>>;
4747
+ retention_days: z.ZodDefault<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
4748
+ schema: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
4749
+ content: z.ZodOptional<z.ZodString>;
4750
+ id: z.ZodOptional<z.ZodString>;
4751
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4752
+ }, z.core.$strict>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
4292
4753
  subject_kinds: z.ZodArray<z.ZodString>;
4293
- default_subject_kind: z.ZodString;
4294
- retention_days: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
4295
- effective_schema: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
4296
- regimes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
4754
+ updated_at: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
4297
4755
  attachments: z.ZodDefault<z.ZodArray<z.ZodObject<{
4298
4756
  template: z.ZodString;
4299
4757
  path: z.ZodArray<z.ZodString>;
4300
4758
  parameters: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4301
4759
  declarations: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4302
4760
  }, z.core.$strip>>>;
4303
- }, z.core.$strip>;
4761
+ }, z.core.$strict>;
4304
4762
  export type StateDetail = z.infer<typeof stateDetail>;
4305
4763
  /**
4306
4764
  * `GET /api/states/{name}/stats` — `records` (total documents), `per_field` (the count
@@ -4315,69 +4773,6 @@ export declare const stateStats: z.ZodObject<{
4315
4773
  consumers: z.ZodDefault<z.ZodNumber>;
4316
4774
  }, z.core.$strip>;
4317
4775
  export type StateStats = z.infer<typeof stateStats>;
4318
- /**
4319
- * One template jq: `jq` is a program over the subject's attached subtree, its `purpose`
4320
- * either `input` (a read-only program feeding a tool argument) or `update` (a program
4321
- * returning an op batch that mutates the record). `params` are its declared argument
4322
- * names; `reads`/`writes` are the template-relative record paths an `update` declares,
4323
- * each a list of key segments; `description` is the human label.
4324
- */
4325
- export declare const templateJq: z.ZodObject<{
4326
- description: z.ZodDefault<z.ZodString>;
4327
- purpose: z.ZodEnum<{
4328
- input: "input";
4329
- update: "update";
4330
- }>;
4331
- params: z.ZodDefault<z.ZodArray<z.ZodString>>;
4332
- reads: z.ZodDefault<z.ZodArray<z.ZodArray<z.ZodString>>>;
4333
- writes: z.ZodDefault<z.ZodArray<z.ZodArray<z.ZodString>>>;
4334
- jq: z.ZodString;
4335
- }, z.core.$strip>;
4336
- export type TemplateJq = z.infer<typeof templateJq>;
4337
- /**
4338
- * How a declarations edit settles open records: `view` reads the record, `close`
4339
- * builds the op batch that settles it, `resolutions` names the resolutions a close
4340
- * may name — each a jq program.
4341
- */
4342
- export declare const templateReconcile: z.ZodObject<{
4343
- view: z.ZodString;
4344
- close: z.ZodString;
4345
- resolutions: z.ZodString;
4346
- }, z.core.$strip>;
4347
- export type TemplateReconcile = z.infer<typeof templateReconcile>;
4348
- /**
4349
- * The platform half of a state-template document (mirrors StateTemplateDocument).
4350
- * `template_jq` maps a name to its definition (each carrying its `purpose`);
4351
- * `reconcile` is the settle policy — both optional (`null` when the template declares
4352
- * none).
4353
- */
4354
- export declare const stateTemplateDocument: z.ZodObject<{
4355
- kind: z.ZodDefault<z.ZodLiteral<"state-template">>;
4356
- name: z.ZodString;
4357
- description: z.ZodDefault<z.ZodString>;
4358
- parameters: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4359
- schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4360
- regimes: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
4361
- declarations: z.ZodDefault<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
4362
- trace: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4363
- template_jq: z.ZodDefault<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
4364
- description: z.ZodDefault<z.ZodString>;
4365
- purpose: z.ZodEnum<{
4366
- input: "input";
4367
- update: "update";
4368
- }>;
4369
- params: z.ZodDefault<z.ZodArray<z.ZodString>>;
4370
- reads: z.ZodDefault<z.ZodArray<z.ZodArray<z.ZodString>>>;
4371
- writes: z.ZodDefault<z.ZodArray<z.ZodArray<z.ZodString>>>;
4372
- jq: z.ZodString;
4373
- }, z.core.$strip>>>>;
4374
- reconcile: z.ZodDefault<z.ZodNullable<z.ZodObject<{
4375
- view: z.ZodString;
4376
- close: z.ZodString;
4377
- resolutions: z.ZodString;
4378
- }, z.core.$strip>>>;
4379
- }, z.core.$strip>;
4380
- export type StateTemplateDocument = z.infer<typeof stateTemplateDocument>;
4381
4776
  /**
4382
4777
  * One row of `GET /api/state-templates`. The template document plus the two derived columns
4383
4778
  * the Templates tab shows: `attached_to` (how many states attach it — a delete is refused
@@ -4385,62 +4780,116 @@ export type StateTemplateDocument = z.infer<typeof stateTemplateDocument>;
4385
4780
  * columns; the document fields are verbatim.
4386
4781
  */
4387
4782
  export declare const stateTemplateListItem: z.ZodObject<{
4783
+ declarations: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
4784
+ check: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
4785
+ content: z.ZodOptional<z.ZodString>;
4786
+ id: z.ZodOptional<z.ZodString>;
4787
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4788
+ }, z.core.$strict>, z.ZodNull]>>;
4789
+ schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4790
+ }, z.core.$strict>, z.ZodNull]>>;
4791
+ description: z.ZodDefault<z.ZodString>;
4388
4792
  kind: z.ZodDefault<z.ZodLiteral<"state-template">>;
4389
4793
  name: z.ZodString;
4390
- description: z.ZodDefault<z.ZodString>;
4391
4794
  parameters: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4392
- schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4795
+ reconcile: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
4796
+ close: z.ZodObject<{
4797
+ content: z.ZodOptional<z.ZodString>;
4798
+ id: z.ZodOptional<z.ZodString>;
4799
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4800
+ }, z.core.$strict>;
4801
+ orphans: z.ZodObject<{
4802
+ content: z.ZodOptional<z.ZodString>;
4803
+ id: z.ZodOptional<z.ZodString>;
4804
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4805
+ }, z.core.$strict>;
4806
+ resolutions: z.ZodObject<{
4807
+ content: z.ZodOptional<z.ZodString>;
4808
+ id: z.ZodOptional<z.ZodString>;
4809
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4810
+ }, z.core.$strict>;
4811
+ }, z.core.$strict>, z.ZodNull]>>;
4393
4812
  regimes: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
4394
- declarations: z.ZodDefault<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
4395
- trace: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4396
- template_jq: z.ZodDefault<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
4813
+ schema: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
4814
+ content: z.ZodOptional<z.ZodString>;
4815
+ id: z.ZodOptional<z.ZodString>;
4816
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4817
+ }, z.core.$strict>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
4818
+ template_jq: z.ZodDefault<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodObject<{
4397
4819
  description: z.ZodDefault<z.ZodString>;
4820
+ jq: z.ZodObject<{
4821
+ content: z.ZodOptional<z.ZodString>;
4822
+ id: z.ZodOptional<z.ZodString>;
4823
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4824
+ }, z.core.$strict>;
4825
+ params: z.ZodDefault<z.ZodArray<z.ZodString>>;
4398
4826
  purpose: z.ZodEnum<{
4399
4827
  input: "input";
4400
4828
  update: "update";
4401
4829
  }>;
4402
- params: z.ZodDefault<z.ZodArray<z.ZodString>>;
4403
4830
  reads: z.ZodDefault<z.ZodArray<z.ZodArray<z.ZodString>>>;
4404
4831
  writes: z.ZodDefault<z.ZodArray<z.ZodArray<z.ZodString>>>;
4405
- jq: z.ZodString;
4406
- }, z.core.$strip>>>>;
4407
- reconcile: z.ZodDefault<z.ZodNullable<z.ZodObject<{
4408
- view: z.ZodString;
4409
- close: z.ZodString;
4410
- resolutions: z.ZodString;
4411
- }, z.core.$strip>>>;
4832
+ }, z.core.$strict>>, z.ZodNull]>>;
4833
+ trace: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4412
4834
  attached_to: z.ZodDefault<z.ZodNumber>;
4413
4835
  shipped_default: z.ZodDefault<z.ZodBoolean>;
4414
- }, z.core.$strip>;
4836
+ }, z.core.$strict>;
4415
4837
  export type StateTemplateListItem = z.infer<typeof stateTemplateListItem>;
4416
4838
  export declare const stateTemplateList: z.ZodArray<z.ZodObject<{
4839
+ declarations: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
4840
+ check: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
4841
+ content: z.ZodOptional<z.ZodString>;
4842
+ id: z.ZodOptional<z.ZodString>;
4843
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4844
+ }, z.core.$strict>, z.ZodNull]>>;
4845
+ schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4846
+ }, z.core.$strict>, z.ZodNull]>>;
4847
+ description: z.ZodDefault<z.ZodString>;
4417
4848
  kind: z.ZodDefault<z.ZodLiteral<"state-template">>;
4418
4849
  name: z.ZodString;
4419
- description: z.ZodDefault<z.ZodString>;
4420
4850
  parameters: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4421
- schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4851
+ reconcile: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
4852
+ close: z.ZodObject<{
4853
+ content: z.ZodOptional<z.ZodString>;
4854
+ id: z.ZodOptional<z.ZodString>;
4855
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4856
+ }, z.core.$strict>;
4857
+ orphans: z.ZodObject<{
4858
+ content: z.ZodOptional<z.ZodString>;
4859
+ id: z.ZodOptional<z.ZodString>;
4860
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4861
+ }, z.core.$strict>;
4862
+ resolutions: z.ZodObject<{
4863
+ content: z.ZodOptional<z.ZodString>;
4864
+ id: z.ZodOptional<z.ZodString>;
4865
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4866
+ }, z.core.$strict>;
4867
+ }, z.core.$strict>, z.ZodNull]>>;
4422
4868
  regimes: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
4423
- declarations: z.ZodDefault<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
4424
- trace: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4425
- template_jq: z.ZodDefault<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
4869
+ schema: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
4870
+ content: z.ZodOptional<z.ZodString>;
4871
+ id: z.ZodOptional<z.ZodString>;
4872
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4873
+ }, z.core.$strict>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
4874
+ template_jq: z.ZodDefault<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodObject<{
4426
4875
  description: z.ZodDefault<z.ZodString>;
4876
+ jq: z.ZodObject<{
4877
+ content: z.ZodOptional<z.ZodString>;
4878
+ id: z.ZodOptional<z.ZodString>;
4879
+ kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4880
+ }, z.core.$strict>;
4881
+ params: z.ZodDefault<z.ZodArray<z.ZodString>>;
4427
4882
  purpose: z.ZodEnum<{
4428
4883
  input: "input";
4429
4884
  update: "update";
4430
4885
  }>;
4431
- params: z.ZodDefault<z.ZodArray<z.ZodString>>;
4432
4886
  reads: z.ZodDefault<z.ZodArray<z.ZodArray<z.ZodString>>>;
4433
4887
  writes: z.ZodDefault<z.ZodArray<z.ZodArray<z.ZodString>>>;
4434
- jq: z.ZodString;
4435
- }, z.core.$strip>>>>;
4436
- reconcile: z.ZodDefault<z.ZodNullable<z.ZodObject<{
4437
- view: z.ZodString;
4438
- close: z.ZodString;
4439
- resolutions: z.ZodString;
4440
- }, z.core.$strip>>>;
4888
+ }, z.core.$strict>>, z.ZodNull]>>;
4889
+ trace: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4441
4890
  attached_to: z.ZodDefault<z.ZodNumber>;
4442
4891
  shipped_default: z.ZodDefault<z.ZodBoolean>;
4443
- }, z.core.$strip>>;
4892
+ }, z.core.$strict>>;
4444
4893
  /** A read record: the state, its subject, the document + monotonic seq, and any fold. */
4445
4894
  export declare const stateRecord: z.ZodObject<{
4446
4895
  state: z.ZodString;