@hotmeshio/long-tail 0.25.4 → 0.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (173) hide show
  1. package/README.md +1 -0
  2. package/build/index.d.ts +5 -0
  3. package/build/index.js +36 -7
  4. package/build/lib/events/nats.d.ts +11 -0
  5. package/build/lib/events/nats.js +33 -2
  6. package/build/lib/machines/index.d.ts +6 -0
  7. package/build/lib/machines/index.js +22 -0
  8. package/build/lib/machines/line.d.ts +44 -0
  9. package/build/lib/machines/line.js +114 -0
  10. package/build/lib/machines/protocol/codec.d.ts +108 -0
  11. package/build/lib/machines/protocol/codec.js +80 -0
  12. package/build/lib/machines/protocol/constants.d.ts +120 -0
  13. package/build/lib/machines/protocol/constants.js +97 -0
  14. package/build/lib/machines/protocol/contract.d.ts +19 -0
  15. package/build/lib/machines/protocol/contract.js +141 -0
  16. package/build/lib/machines/protocol/envelope.d.ts +14 -0
  17. package/build/lib/machines/protocol/envelope.js +43 -0
  18. package/build/lib/machines/protocol/index.d.ts +5 -0
  19. package/build/lib/machines/protocol/index.js +21 -0
  20. package/build/lib/machines/protocol/topics.d.ts +33 -0
  21. package/build/lib/machines/protocol/topics.js +79 -0
  22. package/build/lib/machines/site/edge-account.d.ts +11 -0
  23. package/build/lib/machines/site/edge-account.js +24 -0
  24. package/build/lib/machines/site/mosquitto-conf.d.ts +27 -0
  25. package/build/lib/machines/site/mosquitto-conf.js +81 -0
  26. package/build/lib/machines/site/site-conf.d.ts +23 -0
  27. package/build/lib/machines/site/site-conf.js +62 -0
  28. package/build/lib/machines/transport/callback-feed.d.ts +18 -0
  29. package/build/lib/machines/transport/callback-feed.js +31 -0
  30. package/build/lib/machines/transport/delivery.d.ts +20 -0
  31. package/build/lib/machines/transport/delivery.js +37 -0
  32. package/build/lib/machines/transport/index.d.ts +13 -0
  33. package/build/lib/machines/transport/index.js +29 -0
  34. package/build/lib/machines/transport/memory-broker.d.ts +35 -0
  35. package/build/lib/machines/transport/memory-broker.js +145 -0
  36. package/build/lib/machines/transport/memory.d.ts +40 -0
  37. package/build/lib/machines/transport/memory.js +79 -0
  38. package/build/lib/machines/transport/mqtt-bus.d.ts +24 -0
  39. package/build/lib/machines/transport/mqtt-bus.js +43 -0
  40. package/build/lib/machines/transport/mqtt-link.d.ts +16 -0
  41. package/build/lib/machines/transport/mqtt-link.js +37 -0
  42. package/build/lib/machines/transport/mqtt-session.d.ts +34 -0
  43. package/build/lib/machines/transport/mqtt-session.js +127 -0
  44. package/build/lib/machines/transport/nats-bus.d.ts +36 -0
  45. package/build/lib/machines/transport/nats-bus.js +47 -0
  46. package/build/lib/machines/transport/nats-feed.d.ts +26 -0
  47. package/build/lib/machines/transport/nats-feed.js +49 -0
  48. package/build/lib/machines/transport/pubsub-feed.d.ts +17 -0
  49. package/build/lib/machines/transport/pubsub-feed.js +39 -0
  50. package/build/lib/machines/transport/serial.d.ts +21 -0
  51. package/build/lib/machines/transport/serial.js +54 -0
  52. package/build/lib/machines/transport/stream-bus.d.ts +40 -0
  53. package/build/lib/machines/transport/stream-bus.js +57 -0
  54. package/build/lib/machines/transport/streams.d.ts +24 -0
  55. package/build/lib/machines/transport/streams.js +49 -0
  56. package/build/lib/messaging/config.d.ts +25 -0
  57. package/build/lib/messaging/config.js +55 -0
  58. package/build/lib/messaging/constants.d.ts +26 -0
  59. package/build/lib/messaging/constants.js +26 -0
  60. package/build/lib/messaging/index.d.ts +24 -0
  61. package/build/lib/messaging/index.js +65 -0
  62. package/build/lib/messaging/memory.d.ts +16 -0
  63. package/build/lib/messaging/memory.js +147 -0
  64. package/build/lib/messaging/nats/permissions.d.ts +13 -0
  65. package/build/lib/messaging/nats/permissions.js +22 -0
  66. package/build/lib/messaging/nats/provider.d.ts +30 -0
  67. package/build/lib/messaging/nats/provider.js +77 -0
  68. package/build/lib/messaging/nats/render-conf.d.ts +68 -0
  69. package/build/lib/messaging/nats/render-conf.js +58 -0
  70. package/build/lib/messaging/nats/streams.d.ts +26 -0
  71. package/build/lib/messaging/nats/streams.js +97 -0
  72. package/build/lib/messaging/subjects.d.ts +8 -0
  73. package/build/lib/messaging/subjects.js +25 -0
  74. package/build/scripts/bambu-boat.d.ts +17 -0
  75. package/build/scripts/bambu-boat.js +134 -0
  76. package/build/scripts/bambu-print.d.ts +18 -0
  77. package/build/scripts/bambu-print.js +114 -0
  78. package/build/scripts/machine-line.d.ts +33 -0
  79. package/build/scripts/machine-line.js +301 -0
  80. package/build/services/machines/commands.d.ts +29 -0
  81. package/build/services/machines/commands.js +37 -0
  82. package/build/services/machines/config.d.ts +49 -0
  83. package/build/services/machines/config.js +94 -0
  84. package/build/services/machines/contracts.d.ts +210 -0
  85. package/build/services/machines/contracts.js +124 -0
  86. package/build/services/machines/forms.d.ts +55 -0
  87. package/build/services/machines/forms.js +37 -0
  88. package/build/services/machines/gateway/actions.d.ts +111 -0
  89. package/build/services/machines/gateway/actions.js +8 -0
  90. package/build/services/machines/gateway/address-book.d.ts +16 -0
  91. package/build/services/machines/gateway/address-book.js +24 -0
  92. package/build/services/machines/gateway/admission.d.ts +35 -0
  93. package/build/services/machines/gateway/admission.js +66 -0
  94. package/build/services/machines/gateway/api-escalations.d.ts +23 -0
  95. package/build/services/machines/gateway/api-escalations.js +101 -0
  96. package/build/services/machines/gateway/dispatcher.d.ts +76 -0
  97. package/build/services/machines/gateway/dispatcher.js +197 -0
  98. package/build/services/machines/gateway/escalations.d.ts +51 -0
  99. package/build/services/machines/gateway/escalations.js +40 -0
  100. package/build/services/machines/gateway/executor.d.ts +60 -0
  101. package/build/services/machines/gateway/executor.js +221 -0
  102. package/build/services/machines/gateway/gateway.d.ts +88 -0
  103. package/build/services/machines/gateway/gateway.js +270 -0
  104. package/build/services/machines/gateway/index.d.ts +10 -0
  105. package/build/services/machines/gateway/index.js +26 -0
  106. package/build/services/machines/gateway/jobs.d.ts +16 -0
  107. package/build/services/machines/gateway/jobs.js +24 -0
  108. package/build/services/machines/gateway/lifecycle.d.ts +21 -0
  109. package/build/services/machines/gateway/lifecycle.js +89 -0
  110. package/build/services/machines/gateway/log.d.ts +41 -0
  111. package/build/services/machines/gateway/log.js +42 -0
  112. package/build/services/machines/gateway/lt-http.d.ts +51 -0
  113. package/build/services/machines/gateway/lt-http.js +120 -0
  114. package/build/services/machines/gateway/pacing.d.ts +43 -0
  115. package/build/services/machines/gateway/pacing.js +158 -0
  116. package/build/services/machines/gateway/plan-escalation.d.ts +19 -0
  117. package/build/services/machines/gateway/plan-escalation.js +210 -0
  118. package/build/services/machines/gateway/plan-machine.d.ts +17 -0
  119. package/build/services/machines/gateway/plan-machine.js +283 -0
  120. package/build/services/machines/gateway/plan-shared.d.ts +18 -0
  121. package/build/services/machines/gateway/plan-shared.js +36 -0
  122. package/build/services/machines/gateway/provision.d.ts +22 -0
  123. package/build/services/machines/gateway/provision.js +79 -0
  124. package/build/services/machines/gateway/receipts.d.ts +33 -0
  125. package/build/services/machines/gateway/receipts.js +65 -0
  126. package/build/services/machines/gateway/reconcile.d.ts +35 -0
  127. package/build/services/machines/gateway/reconcile.js +99 -0
  128. package/build/services/machines/gateway/registration.d.ts +38 -0
  129. package/build/services/machines/gateway/registration.js +121 -0
  130. package/build/services/machines/gateway/reply-waiter.d.ts +24 -0
  131. package/build/services/machines/gateway/reply-waiter.js +65 -0
  132. package/build/services/machines/gateway/state.d.ts +145 -0
  133. package/build/services/machines/gateway/state.js +241 -0
  134. package/build/services/machines/gateway/trace.d.ts +16 -0
  135. package/build/services/machines/gateway/trace.js +43 -0
  136. package/build/services/machines/identities.d.ts +25 -0
  137. package/build/services/machines/identities.js +77 -0
  138. package/build/services/machines/index.d.ts +11 -0
  139. package/build/services/machines/index.js +27 -0
  140. package/build/services/machines/leadership.d.ts +35 -0
  141. package/build/services/machines/leadership.js +100 -0
  142. package/build/services/machines/roles.d.ts +13 -0
  143. package/build/services/machines/roles.js +62 -0
  144. package/build/services/machines/rows.d.ts +30 -0
  145. package/build/services/machines/rows.js +71 -0
  146. package/build/services/machines/select.d.ts +25 -0
  147. package/build/services/machines/select.js +76 -0
  148. package/build/services/machines/surface.d.ts +33 -0
  149. package/build/services/machines/surface.js +104 -0
  150. package/build/services/machines/testing/fake-long-tail.d.ts +79 -0
  151. package/build/services/machines/testing/fake-long-tail.js +158 -0
  152. package/build/services/machines/testing/index.d.ts +3 -0
  153. package/build/services/machines/testing/index.js +19 -0
  154. package/build/services/machines/testing/recording-log.d.ts +14 -0
  155. package/build/services/machines/testing/recording-log.js +22 -0
  156. package/build/services/machines/testing/wait.d.ts +3 -0
  157. package/build/services/machines/testing/wait.js +17 -0
  158. package/build/services/mcp/db-server/schemas.d.ts +2 -2
  159. package/build/start/adapters.js +11 -2
  160. package/build/start/index.js +20 -1
  161. package/build/system/mcp-servers/admin/schemas.d.ts +221 -221
  162. package/build/system/mcp-servers/db-query/schemas.d.ts +2 -2
  163. package/build/system/mcp-servers/human-queue-schemas.d.ts +6 -6
  164. package/build/tsconfig.tsbuildinfo +1 -1
  165. package/build/types/index.d.ts +3 -1
  166. package/build/types/machines.d.ts +167 -0
  167. package/build/types/machines.js +7 -0
  168. package/build/types/messaging.d.ts +72 -0
  169. package/build/types/messaging.js +11 -0
  170. package/build/types/startup.d.ts +49 -1
  171. package/docs/events.md +50 -4
  172. package/docs/machines.md +322 -0
  173. package/package.json +13 -1
@@ -21,13 +21,13 @@ export declare const findTasksSchema: z.ZodObject<{
21
21
  limit: number;
22
22
  offset: number;
23
23
  status?: string | undefined;
24
- workflow_type?: string | undefined;
25
24
  workflow_id?: string | undefined;
25
+ workflow_type?: string | undefined;
26
26
  origin_id?: string | undefined;
27
27
  }, {
28
28
  status?: string | undefined;
29
- workflow_type?: string | undefined;
30
29
  workflow_id?: string | undefined;
30
+ workflow_type?: string | undefined;
31
31
  origin_id?: string | undefined;
32
32
  limit?: number | undefined;
33
33
  offset?: number | undefined;
@@ -89,12 +89,12 @@ export declare const findEscalationsSchema: z.ZodObject<{
89
89
  subtype?: string | undefined;
90
90
  status?: "pending" | "resolved" | "cancelled" | "expired" | undefined;
91
91
  available?: boolean | undefined;
92
- roles?: string[] | undefined;
93
92
  type?: string | undefined;
93
+ roles?: string[] | undefined;
94
+ search?: string | undefined;
94
95
  priority?: number | undefined;
95
96
  assigned_to?: string | undefined;
96
97
  facets?: Record<string, any> | undefined;
97
- search?: string | undefined;
98
98
  orderBy?: {
99
99
  field: string;
100
100
  direction?: "asc" | "desc" | undefined;
@@ -114,19 +114,19 @@ export declare const findEscalationsSchema: z.ZodObject<{
114
114
  subtype?: string | undefined;
115
115
  status?: "pending" | "resolved" | "cancelled" | "expired" | undefined;
116
116
  available?: boolean | undefined;
117
- roles?: string[] | undefined;
118
117
  type?: string | undefined;
118
+ roles?: string[] | undefined;
119
+ search?: string | undefined;
119
120
  priority?: number | undefined;
120
121
  assigned_to?: string | undefined;
121
122
  facets?: Record<string, any> | undefined;
122
- search?: string | undefined;
123
- limit?: number | undefined;
124
- offset?: number | undefined;
125
123
  orderBy?: {
126
124
  field: string;
127
125
  direction?: "asc" | "desc" | undefined;
128
126
  numeric?: boolean | undefined;
129
127
  }[] | undefined;
128
+ limit?: number | undefined;
129
+ offset?: number | undefined;
130
130
  block?: Record<string, any>[] | undefined;
131
131
  range?: {
132
132
  value: number;
@@ -210,42 +210,42 @@ export declare const accumulateItemSchema: z.ZodObject<{
210
210
  key?: string | undefined;
211
211
  value?: string | undefined;
212
212
  id?: string | undefined;
213
- payload?: Record<string, any> | undefined;
214
213
  signalKey?: string | undefined;
214
+ payload?: Record<string, any> | undefined;
215
215
  }, {
216
216
  key?: string | undefined;
217
217
  value?: string | undefined;
218
218
  id?: string | undefined;
219
- payload?: Record<string, any> | undefined;
220
219
  signalKey?: string | undefined;
220
+ payload?: Record<string, any> | undefined;
221
221
  }>>;
222
222
  initiatedBy: z.ZodOptional<z.ZodString>;
223
223
  }, "strip", z.ZodTypeAny, {
224
224
  id: string;
225
225
  itemKey: string;
226
226
  metadata?: Record<string, any> | undefined;
227
- initiatedBy?: string | undefined;
228
227
  payload?: Record<string, any> | undefined;
229
228
  reciprocal?: {
230
229
  key?: string | undefined;
231
230
  value?: string | undefined;
232
231
  id?: string | undefined;
233
- payload?: Record<string, any> | undefined;
234
232
  signalKey?: string | undefined;
233
+ payload?: Record<string, any> | undefined;
235
234
  } | undefined;
235
+ initiatedBy?: string | undefined;
236
236
  }, {
237
237
  id: string;
238
238
  itemKey: string;
239
239
  metadata?: Record<string, any> | undefined;
240
- initiatedBy?: string | undefined;
241
240
  payload?: Record<string, any> | undefined;
242
241
  reciprocal?: {
243
242
  key?: string | undefined;
244
243
  value?: string | undefined;
245
244
  id?: string | undefined;
246
- payload?: Record<string, any> | undefined;
247
245
  signalKey?: string | undefined;
246
+ payload?: Record<string, any> | undefined;
248
247
  } | undefined;
248
+ initiatedBy?: string | undefined;
249
249
  }>;
250
250
  export declare const removeItemSchema: z.ZodObject<{
251
251
  id: z.ZodString;
@@ -271,23 +271,23 @@ export declare const removeItemSchema: z.ZodObject<{
271
271
  }, "strip", z.ZodTypeAny, {
272
272
  id: string;
273
273
  itemKey: string;
274
- initiatedBy?: string | undefined;
275
274
  reciprocal?: {
276
275
  key?: string | undefined;
277
276
  value?: string | undefined;
278
277
  id?: string | undefined;
279
278
  signalKey?: string | undefined;
280
279
  } | undefined;
280
+ initiatedBy?: string | undefined;
281
281
  }, {
282
282
  id: string;
283
283
  itemKey: string;
284
- initiatedBy?: string | undefined;
285
284
  reciprocal?: {
286
285
  key?: string | undefined;
287
286
  value?: string | undefined;
288
287
  id?: string | undefined;
289
288
  signalKey?: string | undefined;
290
289
  } | undefined;
290
+ initiatedBy?: string | undefined;
291
291
  }>;
292
292
  export declare const getEscalationItemsSchema: z.ZodObject<{
293
293
  id: z.ZodOptional<z.ZodString>;
@@ -378,17 +378,17 @@ export declare const upsertWorkflowConfigSchema: z.ZodObject<{
378
378
  read_safe: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
379
379
  }, "strip", z.ZodTypeAny, {
380
380
  roles: string[];
381
+ description: string | null;
381
382
  workflow_type: string;
382
- invocable: boolean;
383
383
  task_queue: string | null;
384
+ icon: string | null;
385
+ input_schema: Record<string, any> | null;
386
+ invocable: boolean;
384
387
  default_role: string;
385
- description: string | null;
386
388
  invocation_roles: string[];
387
389
  consumes: string[];
388
390
  tool_tags: string[];
389
391
  envelope_schema: Record<string, any> | null;
390
- input_schema: Record<string, any> | null;
391
- icon: string | null;
392
392
  input_lookups: {
393
393
  domain: string;
394
394
  key: string;
@@ -404,16 +404,16 @@ export declare const upsertWorkflowConfigSchema: z.ZodObject<{
404
404
  workflow_type: string;
405
405
  certified?: boolean | undefined;
406
406
  roles?: string[] | undefined;
407
- invocable?: boolean | undefined;
407
+ description?: string | null | undefined;
408
408
  task_queue?: string | null | undefined;
409
+ icon?: string | null | undefined;
410
+ input_schema?: Record<string, any> | null | undefined;
411
+ invocable?: boolean | undefined;
409
412
  default_role?: string | undefined;
410
- description?: string | null | undefined;
411
413
  invocation_roles?: string[] | undefined;
412
414
  consumes?: string[] | undefined;
413
415
  tool_tags?: string[] | undefined;
414
416
  envelope_schema?: Record<string, any> | null | undefined;
415
- input_schema?: Record<string, any> | null | undefined;
416
- icon?: string | null | undefined;
417
417
  input_lookups?: {
418
418
  domain: string;
419
419
  key: string;
@@ -449,14 +449,14 @@ export declare const invokeWorkflowSchema: z.ZodObject<{
449
449
  data: Record<string, any>;
450
450
  workflow_type: string;
451
451
  options?: Record<string, any> | undefined;
452
- execute_as?: string | undefined;
453
452
  metadata?: Record<string, any> | undefined;
453
+ execute_as?: string | undefined;
454
454
  }, {
455
455
  data: Record<string, any>;
456
456
  workflow_type: string;
457
457
  options?: Record<string, any> | undefined;
458
- execute_as?: string | undefined;
459
458
  metadata?: Record<string, any> | undefined;
459
+ execute_as?: string | undefined;
460
460
  }>;
461
461
  export declare const getWorkflowStatusSchema: z.ZodObject<{
462
462
  workflow_id: z.ZodString;
@@ -495,14 +495,14 @@ export declare const listMcpServersSchema: z.ZodObject<{
495
495
  limit: number;
496
496
  offset: number;
497
497
  status?: string | undefined;
498
- tags?: string | undefined;
499
498
  search?: string | undefined;
499
+ tags?: string | undefined;
500
500
  }, {
501
501
  status?: string | undefined;
502
- tags?: string | undefined;
503
502
  search?: string | undefined;
504
503
  limit?: number | undefined;
505
504
  offset?: number | undefined;
505
+ tags?: string | undefined;
506
506
  }>;
507
507
  export declare const updateMcpServerSchema: z.ZodObject<{
508
508
  id: z.ZodString;
@@ -548,16 +548,16 @@ export declare const listYamlWorkflowsSchema: z.ZodObject<{
548
548
  limit: number;
549
549
  offset: number;
550
550
  status?: string | undefined;
551
+ search?: string | undefined;
551
552
  app_id?: string | undefined;
552
553
  source_workflow_id?: string | undefined;
553
- search?: string | undefined;
554
554
  }, {
555
555
  status?: string | undefined;
556
- app_id?: string | undefined;
557
- source_workflow_id?: string | undefined;
558
556
  search?: string | undefined;
559
557
  limit?: number | undefined;
560
558
  offset?: number | undefined;
559
+ app_id?: string | undefined;
560
+ source_workflow_id?: string | undefined;
561
561
  }>;
562
562
  export declare const getYamlWorkflowSchema: z.ZodObject<{
563
563
  id: z.ZodString;
@@ -577,21 +577,21 @@ export declare const createYamlWorkflowSchema: z.ZodObject<{
577
577
  compilation_feedback: z.ZodOptional<z.ZodString>;
578
578
  }, "strip", z.ZodTypeAny, {
579
579
  name: string;
580
- task_queue: string;
581
580
  workflow_id: string;
581
+ task_queue: string;
582
582
  workflow_name: string;
583
583
  description?: string | undefined;
584
- app_id?: string | undefined;
585
584
  tags?: string[] | undefined;
585
+ app_id?: string | undefined;
586
586
  compilation_feedback?: string | undefined;
587
587
  }, {
588
588
  name: string;
589
- task_queue: string;
590
589
  workflow_id: string;
590
+ task_queue: string;
591
591
  workflow_name: string;
592
592
  description?: string | undefined;
593
- app_id?: string | undefined;
594
593
  tags?: string[] | undefined;
594
+ app_id?: string | undefined;
595
595
  compilation_feedback?: string | undefined;
596
596
  }>;
597
597
  export declare const deployYamlWorkflowSchema: z.ZodObject<{
@@ -830,9 +830,9 @@ export declare const updateRoleSchema: z.ZodObject<{
830
830
  }, "strip", z.ZodTypeAny, {
831
831
  role: string;
832
832
  form_schema?: Record<string, any> | null | undefined;
833
+ properties?: Record<string, any> | null | undefined;
833
834
  description?: string | null | undefined;
834
835
  title?: string | null | undefined;
835
- properties?: Record<string, any> | null | undefined;
836
836
  metadata_schema?: Record<string, any> | null | undefined;
837
837
  list_schema?: Record<string, any> | null | undefined;
838
838
  default_pins?: {
@@ -870,9 +870,9 @@ export declare const updateRoleSchema: z.ZodObject<{
870
870
  }, {
871
871
  role: string;
872
872
  form_schema?: Record<string, any> | null | undefined;
873
+ properties?: Record<string, any> | null | undefined;
873
874
  description?: string | null | undefined;
874
875
  title?: string | null | undefined;
875
- properties?: Record<string, any> | null | undefined;
876
876
  metadata_schema?: Record<string, any> | null | undefined;
877
877
  list_schema?: Record<string, any> | null | undefined;
878
878
  default_pins?: {
@@ -1026,16 +1026,16 @@ export declare const pruneSchema: z.ZodObject<{
1026
1026
  }, "strip", z.ZodTypeAny, {
1027
1027
  streams: boolean;
1028
1028
  jobs: boolean;
1029
- expire: string;
1030
1029
  app_id: string;
1030
+ expire: string;
1031
1031
  prune_transient: boolean;
1032
1032
  entities?: string[] | undefined;
1033
1033
  }, {
1034
1034
  streams?: boolean | undefined;
1035
1035
  jobs?: boolean | undefined;
1036
+ app_id?: string | undefined;
1036
1037
  expire?: string | undefined;
1037
1038
  entities?: string[] | undefined;
1038
- app_id?: string | undefined;
1039
1039
  prune_transient?: boolean | undefined;
1040
1040
  }>;
1041
1041
  export declare const listAgentsSchema: z.ZodObject<{
@@ -1073,8 +1073,8 @@ export declare const createAgentSchema: z.ZodObject<{
1073
1073
  }, "strip", z.ZodTypeAny, {
1074
1074
  id: string;
1075
1075
  status?: string | undefined;
1076
- rules?: string[] | undefined;
1077
1076
  description?: string | undefined;
1077
+ rules?: string[] | undefined;
1078
1078
  knowledge_domain?: string | undefined;
1079
1079
  goals?: string[] | undefined;
1080
1080
  schedules?: any[] | undefined;
@@ -1082,8 +1082,8 @@ export declare const createAgentSchema: z.ZodObject<{
1082
1082
  }, {
1083
1083
  id: string;
1084
1084
  status?: string | undefined;
1085
- rules?: string[] | undefined;
1086
1085
  description?: string | undefined;
1086
+ rules?: string[] | undefined;
1087
1087
  knowledge_domain?: string | undefined;
1088
1088
  goals?: string[] | undefined;
1089
1089
  schedules?: any[] | undefined;
@@ -1099,15 +1099,15 @@ export declare const updateAgentSchema: z.ZodObject<{
1099
1099
  }, "strip", z.ZodTypeAny, {
1100
1100
  id: string;
1101
1101
  status?: string | undefined;
1102
- rules?: string[] | undefined;
1103
1102
  description?: string | undefined;
1103
+ rules?: string[] | undefined;
1104
1104
  knowledge_domain?: string | undefined;
1105
1105
  goals?: string[] | undefined;
1106
1106
  }, {
1107
1107
  id: string;
1108
1108
  status?: string | undefined;
1109
- rules?: string[] | undefined;
1110
1109
  description?: string | undefined;
1110
+ rules?: string[] | undefined;
1111
1111
  knowledge_domain?: string | undefined;
1112
1112
  goals?: string[] | undefined;
1113
1113
  }>;
@@ -1136,8 +1136,8 @@ export declare const createAgentSubscriptionSchema: z.ZodObject<{
1136
1136
  filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1137
1137
  execute_as: z.ZodOptional<z.ZodString>;
1138
1138
  }, "strip", z.ZodTypeAny, {
1139
- agent_id: string;
1140
1139
  topic: string;
1140
+ agent_id: string;
1141
1141
  reaction_type: string;
1142
1142
  filter?: Record<string, any> | undefined;
1143
1143
  workflow_type?: string | undefined;
@@ -1146,8 +1146,8 @@ export declare const createAgentSubscriptionSchema: z.ZodObject<{
1146
1146
  mcp_prompt?: string | undefined;
1147
1147
  input_mapping?: Record<string, any> | undefined;
1148
1148
  }, {
1149
- agent_id: string;
1150
1149
  topic: string;
1150
+ agent_id: string;
1151
1151
  reaction_type: string;
1152
1152
  filter?: Record<string, any> | undefined;
1153
1153
  workflow_type?: string | undefined;
@@ -1315,16 +1315,16 @@ export declare const listStreamMessagesSchema: z.ZodObject<{
1315
1315
  jid: z.ZodOptional<z.ZodString>;
1316
1316
  aid: z.ZodOptional<z.ZodString>;
1317
1317
  }, "strip", z.ZodTypeAny, {
1318
+ source: string;
1318
1319
  limit: number;
1319
1320
  offset: number;
1320
- source: string;
1321
1321
  namespace: string;
1322
1322
  status?: string | undefined;
1323
- workflow_name?: string | undefined;
1324
- jid?: string | undefined;
1325
- topic?: string | undefined;
1326
1323
  order?: "asc" | "desc" | undefined;
1327
1324
  sort_by?: string | undefined;
1325
+ workflow_name?: string | undefined;
1326
+ topic?: string | undefined;
1327
+ jid?: string | undefined;
1328
1328
  stream_name?: string | undefined;
1329
1329
  msg_type?: string | undefined;
1330
1330
  aid?: string | undefined;
@@ -1333,12 +1333,12 @@ export declare const listStreamMessagesSchema: z.ZodObject<{
1333
1333
  status?: string | undefined;
1334
1334
  limit?: number | undefined;
1335
1335
  offset?: number | undefined;
1336
+ order?: "asc" | "desc" | undefined;
1337
+ sort_by?: string | undefined;
1336
1338
  workflow_name?: string | undefined;
1337
- jid?: string | undefined;
1338
1339
  topic?: string | undefined;
1339
- order?: "asc" | "desc" | undefined;
1340
+ jid?: string | undefined;
1340
1341
  namespace?: string | undefined;
1341
- sort_by?: string | undefined;
1342
1342
  stream_name?: string | undefined;
1343
1343
  msg_type?: string | undefined;
1344
1344
  aid?: string | undefined;
@@ -1360,9 +1360,9 @@ export declare const listPipelineJobsSchema: z.ZodObject<{
1360
1360
  sort_by: z.ZodOptional<z.ZodString>;
1361
1361
  order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
1362
1362
  }, "strip", z.ZodTypeAny, {
1363
- app_id: string;
1364
1363
  limit: number;
1365
1364
  offset: number;
1365
+ app_id: string;
1366
1366
  entity?: string | undefined;
1367
1367
  status?: string | undefined;
1368
1368
  search?: string | undefined;
@@ -1371,12 +1371,12 @@ export declare const listPipelineJobsSchema: z.ZodObject<{
1371
1371
  }, {
1372
1372
  entity?: string | undefined;
1373
1373
  status?: string | undefined;
1374
- app_id?: string | undefined;
1375
1374
  search?: string | undefined;
1376
1375
  limit?: number | undefined;
1377
1376
  offset?: number | undefined;
1378
1377
  order?: "asc" | "desc" | undefined;
1379
1378
  sort_by?: string | undefined;
1379
+ app_id?: string | undefined;
1380
1380
  }>;
1381
1381
  export declare const getJobExecutionSchema: z.ZodObject<{
1382
1382
  job_id: z.ZodString;
@@ -1412,13 +1412,13 @@ export declare const listTopicsSchema: z.ZodObject<{
1412
1412
  }, "strip", z.ZodTypeAny, {
1413
1413
  limit: number;
1414
1414
  offset: number;
1415
- category?: string | undefined;
1416
1415
  search?: string | undefined;
1417
- }, {
1418
1416
  category?: string | undefined;
1417
+ }, {
1419
1418
  search?: string | undefined;
1420
1419
  limit?: number | undefined;
1421
1420
  offset?: number | undefined;
1421
+ category?: string | undefined;
1422
1422
  }>;
1423
1423
  export declare const getTopicSchema: z.ZodObject<{
1424
1424
  topic: z.ZodString;
@@ -1600,25 +1600,25 @@ export declare const listExportJobsSchema: z.ZodObject<{
1600
1600
  order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
1601
1601
  registered: z.ZodOptional<z.ZodString>;
1602
1602
  }, "strip", z.ZodTypeAny, {
1603
- app_id: string;
1604
1603
  limit: number;
1605
1604
  offset: number;
1605
+ app_id: string;
1606
1606
  entity?: string | undefined;
1607
1607
  status?: string | undefined;
1608
- registered?: string | undefined;
1609
1608
  search?: string | undefined;
1609
+ registered?: string | undefined;
1610
1610
  order?: "asc" | "desc" | undefined;
1611
1611
  sort_by?: string | undefined;
1612
1612
  }, {
1613
1613
  entity?: string | undefined;
1614
1614
  status?: string | undefined;
1615
- registered?: string | undefined;
1616
- app_id?: string | undefined;
1617
1615
  search?: string | undefined;
1616
+ registered?: string | undefined;
1618
1617
  limit?: number | undefined;
1619
1618
  offset?: number | undefined;
1620
1619
  order?: "asc" | "desc" | undefined;
1621
1620
  sort_by?: string | undefined;
1621
+ app_id?: string | undefined;
1622
1622
  }>;
1623
1623
  export declare const exportWorkflowStateSchema: z.ZodObject<{
1624
1624
  workflow_id: z.ZodString;
@@ -1648,17 +1648,17 @@ export declare const exportWorkflowExecutionSchema: z.ZodObject<{
1648
1648
  select: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1649
1649
  }, "strip", z.ZodTypeAny, {
1650
1650
  workflow_id: string;
1651
+ mode?: string | undefined;
1651
1652
  excludeSystem?: boolean | undefined;
1652
1653
  select?: string[] | undefined;
1653
1654
  omitResults?: boolean | undefined;
1654
- mode?: string | undefined;
1655
1655
  maxDepth?: number | undefined;
1656
1656
  }, {
1657
1657
  workflow_id: string;
1658
+ mode?: string | undefined;
1658
1659
  excludeSystem?: boolean | undefined;
1659
1660
  select?: string[] | undefined;
1660
1661
  omitResults?: boolean | undefined;
1661
- mode?: string | undefined;
1662
1662
  maxDepth?: number | undefined;
1663
1663
  }>;
1664
1664
  export declare const getExportStatusSchema: z.ZodObject<{
@@ -1682,8 +1682,8 @@ export declare const diagnoseJobSchema: z.ZodObject<{
1682
1682
  include: z.ZodOptional<z.ZodArray<z.ZodEnum<["events", "streams"]>, "many">>;
1683
1683
  verbosity: z.ZodOptional<z.ZodEnum<["summary", "full"]>>;
1684
1684
  }, "strip", z.ZodTypeAny, {
1685
- app_id: string;
1686
1685
  workflow_id: string;
1686
+ app_id: string;
1687
1687
  max_events: number;
1688
1688
  include?: ("streams" | "events")[] | undefined;
1689
1689
  verbosity?: "full" | "summary" | undefined;
@@ -1700,14 +1700,14 @@ export declare const findStalledJobsSchema: z.ZodObject<{
1700
1700
  workflow_type: z.ZodOptional<z.ZodString>;
1701
1701
  limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1702
1702
  }, "strip", z.ZodTypeAny, {
1703
- app_id: string;
1704
1703
  limit: number;
1704
+ app_id: string;
1705
1705
  idle_minutes: number;
1706
1706
  workflow_type?: string | undefined;
1707
1707
  }, {
1708
1708
  workflow_type?: string | undefined;
1709
- app_id?: string | undefined;
1710
1709
  limit?: number | undefined;
1710
+ app_id?: string | undefined;
1711
1711
  idle_minutes?: number | undefined;
1712
1712
  }>;
1713
1713
  export declare const findOrphanedSignalsSchema: z.ZodObject<{
@@ -1715,12 +1715,12 @@ export declare const findOrphanedSignalsSchema: z.ZodObject<{
1715
1715
  within_hours: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1716
1716
  limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1717
1717
  }, "strip", z.ZodTypeAny, {
1718
- app_id: string;
1719
1718
  limit: number;
1719
+ app_id: string;
1720
1720
  within_hours: number;
1721
1721
  }, {
1722
- app_id?: string | undefined;
1723
1722
  limit?: number | undefined;
1723
+ app_id?: string | undefined;
1724
1724
  within_hours?: number | undefined;
1725
1725
  }>;
1726
1726
  /** A faceted query over a pond — filter/sort by columns and metadata facets. */
@@ -1748,27 +1748,27 @@ export declare const facetQuerySchema: z.ZodObject<{
1748
1748
  status?: string | undefined;
1749
1749
  available?: boolean | undefined;
1750
1750
  facets?: Record<string, any> | undefined;
1751
- limit?: number | undefined;
1752
- offset?: number | undefined;
1753
- types?: string[] | undefined;
1754
- subtypes?: string[] | undefined;
1755
1751
  orderBy?: {
1756
1752
  column: string;
1757
1753
  direction: "asc" | "desc";
1758
1754
  }[] | undefined;
1755
+ limit?: number | undefined;
1756
+ offset?: number | undefined;
1757
+ types?: string[] | undefined;
1758
+ subtypes?: string[] | undefined;
1759
1759
  }, {
1760
1760
  role: string;
1761
1761
  status?: string | undefined;
1762
1762
  available?: boolean | undefined;
1763
1763
  facets?: Record<string, any> | undefined;
1764
- limit?: number | undefined;
1765
- offset?: number | undefined;
1766
- types?: string[] | undefined;
1767
- subtypes?: string[] | undefined;
1768
1764
  orderBy?: {
1769
1765
  column: string;
1770
1766
  direction: "asc" | "desc";
1771
1767
  }[] | undefined;
1768
+ limit?: number | undefined;
1769
+ offset?: number | undefined;
1770
+ types?: string[] | undefined;
1771
+ subtypes?: string[] | undefined;
1772
1772
  }>;
1773
1773
  export declare const resolveByIdsSchema: z.ZodObject<{
1774
1774
  ids: z.ZodArray<z.ZodString, "many">;
@@ -1807,27 +1807,27 @@ export declare const searchByFacetsSchema: z.ZodObject<{
1807
1807
  status?: string | undefined;
1808
1808
  available?: boolean | undefined;
1809
1809
  facets?: Record<string, any> | undefined;
1810
- limit?: number | undefined;
1811
- offset?: number | undefined;
1812
- types?: string[] | undefined;
1813
- subtypes?: string[] | undefined;
1814
1810
  orderBy?: {
1815
1811
  column: string;
1816
1812
  direction: "asc" | "desc";
1817
1813
  }[] | undefined;
1814
+ limit?: number | undefined;
1815
+ offset?: number | undefined;
1816
+ types?: string[] | undefined;
1817
+ subtypes?: string[] | undefined;
1818
1818
  }, {
1819
1819
  role: string;
1820
1820
  status?: string | undefined;
1821
1821
  available?: boolean | undefined;
1822
1822
  facets?: Record<string, any> | undefined;
1823
- limit?: number | undefined;
1824
- offset?: number | undefined;
1825
- types?: string[] | undefined;
1826
- subtypes?: string[] | undefined;
1827
1823
  orderBy?: {
1828
1824
  column: string;
1829
1825
  direction: "asc" | "desc";
1830
1826
  }[] | undefined;
1827
+ limit?: number | undefined;
1828
+ offset?: number | undefined;
1829
+ types?: string[] | undefined;
1830
+ subtypes?: string[] | undefined;
1831
1831
  }>;
1832
1832
  export declare const claimGroupsSchema: z.ZodObject<{
1833
1833
  query: z.ZodObject<{
@@ -1854,27 +1854,27 @@ export declare const claimGroupsSchema: z.ZodObject<{
1854
1854
  status?: string | undefined;
1855
1855
  available?: boolean | undefined;
1856
1856
  facets?: Record<string, any> | undefined;
1857
- limit?: number | undefined;
1858
- offset?: number | undefined;
1859
- types?: string[] | undefined;
1860
- subtypes?: string[] | undefined;
1861
1857
  orderBy?: {
1862
1858
  column: string;
1863
1859
  direction: "asc" | "desc";
1864
1860
  }[] | undefined;
1861
+ limit?: number | undefined;
1862
+ offset?: number | undefined;
1863
+ types?: string[] | undefined;
1864
+ subtypes?: string[] | undefined;
1865
1865
  }, {
1866
1866
  role: string;
1867
1867
  status?: string | undefined;
1868
1868
  available?: boolean | undefined;
1869
1869
  facets?: Record<string, any> | undefined;
1870
- limit?: number | undefined;
1871
- offset?: number | undefined;
1872
- types?: string[] | undefined;
1873
- subtypes?: string[] | undefined;
1874
1870
  orderBy?: {
1875
1871
  column: string;
1876
1872
  direction: "asc" | "desc";
1877
1873
  }[] | undefined;
1874
+ limit?: number | undefined;
1875
+ offset?: number | undefined;
1876
+ types?: string[] | undefined;
1877
+ subtypes?: string[] | undefined;
1878
1878
  }>;
1879
1879
  limit: z.ZodOptional<z.ZodNumber>;
1880
1880
  durationMinutes: z.ZodOptional<z.ZodNumber>;
@@ -1885,14 +1885,14 @@ export declare const claimGroupsSchema: z.ZodObject<{
1885
1885
  status?: string | undefined;
1886
1886
  available?: boolean | undefined;
1887
1887
  facets?: Record<string, any> | undefined;
1888
- limit?: number | undefined;
1889
- offset?: number | undefined;
1890
- types?: string[] | undefined;
1891
- subtypes?: string[] | undefined;
1892
1888
  orderBy?: {
1893
1889
  column: string;
1894
1890
  direction: "asc" | "desc";
1895
1891
  }[] | undefined;
1892
+ limit?: number | undefined;
1893
+ offset?: number | undefined;
1894
+ types?: string[] | undefined;
1895
+ subtypes?: string[] | undefined;
1896
1896
  };
1897
1897
  limit?: number | undefined;
1898
1898
  durationMinutes?: number | undefined;
@@ -1903,14 +1903,14 @@ export declare const claimGroupsSchema: z.ZodObject<{
1903
1903
  status?: string | undefined;
1904
1904
  available?: boolean | undefined;
1905
1905
  facets?: Record<string, any> | undefined;
1906
- limit?: number | undefined;
1907
- offset?: number | undefined;
1908
- types?: string[] | undefined;
1909
- subtypes?: string[] | undefined;
1910
1906
  orderBy?: {
1911
1907
  column: string;
1912
1908
  direction: "asc" | "desc";
1913
1909
  }[] | undefined;
1910
+ limit?: number | undefined;
1911
+ offset?: number | undefined;
1912
+ types?: string[] | undefined;
1913
+ subtypes?: string[] | undefined;
1914
1914
  };
1915
1915
  limit?: number | undefined;
1916
1916
  durationMinutes?: number | undefined;
@@ -1941,27 +1941,27 @@ export declare const claimByFacetsSchema: z.ZodObject<{
1941
1941
  status?: string | undefined;
1942
1942
  available?: boolean | undefined;
1943
1943
  facets?: Record<string, any> | undefined;
1944
- limit?: number | undefined;
1945
- offset?: number | undefined;
1946
- types?: string[] | undefined;
1947
- subtypes?: string[] | undefined;
1948
1944
  orderBy?: {
1949
1945
  column: string;
1950
1946
  direction: "asc" | "desc";
1951
1947
  }[] | undefined;
1948
+ limit?: number | undefined;
1949
+ offset?: number | undefined;
1950
+ types?: string[] | undefined;
1951
+ subtypes?: string[] | undefined;
1952
1952
  }, {
1953
1953
  role: string;
1954
1954
  status?: string | undefined;
1955
1955
  available?: boolean | undefined;
1956
1956
  facets?: Record<string, any> | undefined;
1957
- limit?: number | undefined;
1958
- offset?: number | undefined;
1959
- types?: string[] | undefined;
1960
- subtypes?: string[] | undefined;
1961
1957
  orderBy?: {
1962
1958
  column: string;
1963
1959
  direction: "asc" | "desc";
1964
1960
  }[] | undefined;
1961
+ limit?: number | undefined;
1962
+ offset?: number | undefined;
1963
+ types?: string[] | undefined;
1964
+ subtypes?: string[] | undefined;
1965
1965
  }>;
1966
1966
  limit: z.ZodOptional<z.ZodNumber>;
1967
1967
  durationMinutes: z.ZodOptional<z.ZodNumber>;
@@ -1972,14 +1972,14 @@ export declare const claimByFacetsSchema: z.ZodObject<{
1972
1972
  status?: string | undefined;
1973
1973
  available?: boolean | undefined;
1974
1974
  facets?: Record<string, any> | undefined;
1975
- limit?: number | undefined;
1976
- offset?: number | undefined;
1977
- types?: string[] | undefined;
1978
- subtypes?: string[] | undefined;
1979
1975
  orderBy?: {
1980
1976
  column: string;
1981
1977
  direction: "asc" | "desc";
1982
1978
  }[] | undefined;
1979
+ limit?: number | undefined;
1980
+ offset?: number | undefined;
1981
+ types?: string[] | undefined;
1982
+ subtypes?: string[] | undefined;
1983
1983
  };
1984
1984
  limit?: number | undefined;
1985
1985
  durationMinutes?: number | undefined;
@@ -1990,14 +1990,14 @@ export declare const claimByFacetsSchema: z.ZodObject<{
1990
1990
  status?: string | undefined;
1991
1991
  available?: boolean | undefined;
1992
1992
  facets?: Record<string, any> | undefined;
1993
- limit?: number | undefined;
1994
- offset?: number | undefined;
1995
- types?: string[] | undefined;
1996
- subtypes?: string[] | undefined;
1997
1993
  orderBy?: {
1998
1994
  column: string;
1999
1995
  direction: "asc" | "desc";
2000
1996
  }[] | undefined;
1997
+ limit?: number | undefined;
1998
+ offset?: number | undefined;
1999
+ types?: string[] | undefined;
2000
+ subtypes?: string[] | undefined;
2001
2001
  };
2002
2002
  limit?: number | undefined;
2003
2003
  durationMinutes?: number | undefined;
@@ -2029,10 +2029,9 @@ export declare const aggregateByFacetsSchema: z.ZodObject<{
2029
2029
  }, "strip", z.ZodTypeAny, {
2030
2030
  entity?: string | undefined;
2031
2031
  role?: string | undefined;
2032
+ anyOf?: Record<string, any>[] | undefined;
2032
2033
  roles?: string[] | undefined;
2033
- prefix?: Record<string, string> | undefined;
2034
2034
  facets?: Record<string, any> | undefined;
2035
- anyOf?: Record<string, any>[] | undefined;
2036
2035
  block?: Record<string, any>[] | undefined;
2037
2036
  range?: {
2038
2037
  value: number;
@@ -2040,13 +2039,13 @@ export declare const aggregateByFacetsSchema: z.ZodObject<{
2040
2039
  op: "<" | "<=" | ">" | ">=" | "=";
2041
2040
  }[] | undefined;
2042
2041
  exists?: string[] | undefined;
2042
+ prefix?: Record<string, string> | undefined;
2043
2043
  }, {
2044
2044
  entity?: string | undefined;
2045
2045
  role?: string | undefined;
2046
+ anyOf?: Record<string, any>[] | undefined;
2046
2047
  roles?: string[] | undefined;
2047
- prefix?: Record<string, string> | undefined;
2048
2048
  facets?: Record<string, any> | undefined;
2049
- anyOf?: Record<string, any>[] | undefined;
2050
2049
  block?: Record<string, any>[] | undefined;
2051
2050
  range?: {
2052
2051
  value: number;
@@ -2054,6 +2053,7 @@ export declare const aggregateByFacetsSchema: z.ZodObject<{
2054
2053
  op: "<" | "<=" | ">" | ">=" | "=";
2055
2054
  }[] | undefined;
2056
2055
  exists?: string[] | undefined;
2056
+ prefix?: Record<string, string> | undefined;
2057
2057
  }>;
2058
2058
  groupBy: z.ZodObject<{
2059
2059
  columns: z.ZodOptional<z.ZodArray<z.ZodEnum<["role", "subtype", "status"]>, "many">>;
@@ -2160,10 +2160,9 @@ export declare const aggregateByFacetsSchema: z.ZodObject<{
2160
2160
  query: {
2161
2161
  entity?: string | undefined;
2162
2162
  role?: string | undefined;
2163
+ anyOf?: Record<string, any>[] | undefined;
2163
2164
  roles?: string[] | undefined;
2164
- prefix?: Record<string, string> | undefined;
2165
2165
  facets?: Record<string, any> | undefined;
2166
- anyOf?: Record<string, any>[] | undefined;
2167
2166
  block?: Record<string, any>[] | undefined;
2168
2167
  range?: {
2169
2168
  value: number;
@@ -2171,6 +2170,7 @@ export declare const aggregateByFacetsSchema: z.ZodObject<{
2171
2170
  op: "<" | "<=" | ">" | ">=" | "=";
2172
2171
  }[] | undefined;
2173
2172
  exists?: string[] | undefined;
2173
+ prefix?: Record<string, string> | undefined;
2174
2174
  };
2175
2175
  groupBy: {
2176
2176
  state?: boolean | undefined;
@@ -2187,12 +2187,12 @@ export declare const aggregateByFacetsSchema: z.ZodObject<{
2187
2187
  to: string;
2188
2188
  };
2189
2189
  };
2190
- limit?: number | undefined;
2191
- offset?: number | undefined;
2192
2190
  orderBy?: {
2193
2191
  field: string;
2194
2192
  direction?: "asc" | "desc" | undefined;
2195
2193
  }[] | undefined;
2194
+ limit?: number | undefined;
2195
+ offset?: number | undefined;
2196
2196
  distinctBy?: string | undefined;
2197
2197
  states?: {
2198
2198
  name: string;
@@ -2209,10 +2209,9 @@ export declare const aggregateByFacetsSchema: z.ZodObject<{
2209
2209
  query: {
2210
2210
  entity?: string | undefined;
2211
2211
  role?: string | undefined;
2212
+ anyOf?: Record<string, any>[] | undefined;
2212
2213
  roles?: string[] | undefined;
2213
- prefix?: Record<string, string> | undefined;
2214
2214
  facets?: Record<string, any> | undefined;
2215
- anyOf?: Record<string, any>[] | undefined;
2216
2215
  block?: Record<string, any>[] | undefined;
2217
2216
  range?: {
2218
2217
  value: number;
@@ -2220,6 +2219,7 @@ export declare const aggregateByFacetsSchema: z.ZodObject<{
2220
2219
  op: "<" | "<=" | ">" | ">=" | "=";
2221
2220
  }[] | undefined;
2222
2221
  exists?: string[] | undefined;
2222
+ prefix?: Record<string, string> | undefined;
2223
2223
  };
2224
2224
  groupBy: {
2225
2225
  state?: boolean | undefined;
@@ -2236,12 +2236,12 @@ export declare const aggregateByFacetsSchema: z.ZodObject<{
2236
2236
  to: string;
2237
2237
  };
2238
2238
  };
2239
- limit?: number | undefined;
2240
- offset?: number | undefined;
2241
2239
  orderBy?: {
2242
2240
  field: string;
2243
2241
  direction?: "asc" | "desc" | undefined;
2244
2242
  }[] | undefined;
2243
+ limit?: number | undefined;
2244
+ offset?: number | undefined;
2245
2245
  distinctBy?: string | undefined;
2246
2246
  states?: {
2247
2247
  name: string;
@@ -2291,10 +2291,9 @@ export declare const timelineByFacetSchema: z.ZodObject<{
2291
2291
  }, "strip", z.ZodTypeAny, {
2292
2292
  entity?: string | undefined;
2293
2293
  role?: string | undefined;
2294
+ anyOf?: Record<string, any>[] | undefined;
2294
2295
  roles?: string[] | undefined;
2295
- prefix?: Record<string, string> | undefined;
2296
2296
  facets?: Record<string, any> | undefined;
2297
- anyOf?: Record<string, any>[] | undefined;
2298
2297
  block?: Record<string, any>[] | undefined;
2299
2298
  range?: {
2300
2299
  value: number;
@@ -2302,13 +2301,13 @@ export declare const timelineByFacetSchema: z.ZodObject<{
2302
2301
  op: "<" | "<=" | ">" | ">=" | "=";
2303
2302
  }[] | undefined;
2304
2303
  exists?: string[] | undefined;
2304
+ prefix?: Record<string, string> | undefined;
2305
2305
  }, {
2306
2306
  entity?: string | undefined;
2307
2307
  role?: string | undefined;
2308
+ anyOf?: Record<string, any>[] | undefined;
2308
2309
  roles?: string[] | undefined;
2309
- prefix?: Record<string, string> | undefined;
2310
2310
  facets?: Record<string, any> | undefined;
2311
- anyOf?: Record<string, any>[] | undefined;
2312
2311
  block?: Record<string, any>[] | undefined;
2313
2312
  range?: {
2314
2313
  value: number;
@@ -2316,6 +2315,7 @@ export declare const timelineByFacetSchema: z.ZodObject<{
2316
2315
  op: "<" | "<=" | ">" | ">=" | "=";
2317
2316
  }[] | undefined;
2318
2317
  exists?: string[] | undefined;
2318
+ prefix?: Record<string, string> | undefined;
2319
2319
  }>>;
2320
2320
  window: z.ZodOptional<z.ZodObject<{
2321
2321
  from: z.ZodString;
@@ -2349,10 +2349,9 @@ export declare const timelineByFacetSchema: z.ZodObject<{
2349
2349
  query?: {
2350
2350
  entity?: string | undefined;
2351
2351
  role?: string | undefined;
2352
+ anyOf?: Record<string, any>[] | undefined;
2352
2353
  roles?: string[] | undefined;
2353
- prefix?: Record<string, string> | undefined;
2354
2354
  facets?: Record<string, any> | undefined;
2355
- anyOf?: Record<string, any>[] | undefined;
2356
2355
  block?: Record<string, any>[] | undefined;
2357
2356
  range?: {
2358
2357
  value: number;
@@ -2360,6 +2359,7 @@ export declare const timelineByFacetSchema: z.ZodObject<{
2360
2359
  op: "<" | "<=" | ">" | ">=" | "=";
2361
2360
  }[] | undefined;
2362
2361
  exists?: string[] | undefined;
2362
+ prefix?: Record<string, string> | undefined;
2363
2363
  } | undefined;
2364
2364
  limit?: number | undefined;
2365
2365
  before?: string | undefined;
@@ -2381,10 +2381,9 @@ export declare const timelineByFacetSchema: z.ZodObject<{
2381
2381
  query?: {
2382
2382
  entity?: string | undefined;
2383
2383
  role?: string | undefined;
2384
+ anyOf?: Record<string, any>[] | undefined;
2384
2385
  roles?: string[] | undefined;
2385
- prefix?: Record<string, string> | undefined;
2386
2386
  facets?: Record<string, any> | undefined;
2387
- anyOf?: Record<string, any>[] | undefined;
2388
2387
  block?: Record<string, any>[] | undefined;
2389
2388
  range?: {
2390
2389
  value: number;
@@ -2392,6 +2391,7 @@ export declare const timelineByFacetSchema: z.ZodObject<{
2392
2391
  op: "<" | "<=" | ">" | ">=" | "=";
2393
2392
  }[] | undefined;
2394
2393
  exists?: string[] | undefined;
2394
+ prefix?: Record<string, string> | undefined;
2395
2395
  } | undefined;
2396
2396
  limit?: number | undefined;
2397
2397
  before?: string | undefined;
@@ -2448,16 +2448,16 @@ export declare const executeScanChoiceSchema: z.ZodObject<{
2448
2448
  escalationId: z.ZodString;
2449
2449
  actingToken: z.ZodOptional<z.ZodString>;
2450
2450
  }, "strip", z.ZodTypeAny, {
2451
+ escalationId: string;
2451
2452
  stepIndex: number;
2452
2453
  category: string;
2453
- escalationId: string;
2454
2454
  schemeVersion: number;
2455
2455
  choiceIndex: number;
2456
2456
  actingToken?: string | undefined;
2457
2457
  }, {
2458
+ escalationId: string;
2458
2459
  stepIndex: number;
2459
2460
  category: string;
2460
- escalationId: string;
2461
2461
  schemeVersion: number;
2462
2462
  choiceIndex: number;
2463
2463
  actingToken?: string | undefined;
@@ -2480,12 +2480,12 @@ export declare const upsertScanSchemeSchema: z.ZodObject<{
2480
2480
  version: number;
2481
2481
  name: string;
2482
2482
  target_facet: string;
2483
- description?: string | undefined;
2483
+ kind?: "action" | "identity" | undefined;
2484
2484
  enabled?: boolean | undefined;
2485
+ description?: string | undefined;
2485
2486
  encoding?: "fixed" | "delimited" | "gtin" | undefined;
2486
2487
  target_length?: number | undefined;
2487
2488
  delimiter?: string | undefined;
2488
- kind?: "action" | "identity" | undefined;
2489
2489
  grant_ttl_seconds?: number | undefined;
2490
2490
  grant_max_uses?: number | undefined;
2491
2491
  grant_scope?: "action" | "subject" | undefined;
@@ -2493,12 +2493,12 @@ export declare const upsertScanSchemeSchema: z.ZodObject<{
2493
2493
  version: number;
2494
2494
  name: string;
2495
2495
  target_facet: string;
2496
- description?: string | undefined;
2496
+ kind?: "action" | "identity" | undefined;
2497
2497
  enabled?: boolean | undefined;
2498
+ description?: string | undefined;
2498
2499
  encoding?: "fixed" | "delimited" | "gtin" | undefined;
2499
2500
  target_length?: number | undefined;
2500
2501
  delimiter?: string | undefined;
2501
- kind?: "action" | "identity" | undefined;
2502
2502
  grant_ttl_seconds?: number | undefined;
2503
2503
  grant_max_uses?: number | undefined;
2504
2504
  grant_scope?: "action" | "subject" | undefined;
@@ -2600,10 +2600,10 @@ export declare const upsertScanRuleSchema: z.ZodObject<{
2600
2600
  subtypes?: string[] | undefined;
2601
2601
  } | undefined;
2602
2602
  from?: "subject" | undefined;
2603
+ reciprocal?: boolean | undefined;
2603
2604
  into?: "subject" | undefined;
2604
2605
  containerFacet?: string | undefined;
2605
2606
  containerRoles?: string[] | undefined;
2606
- reciprocal?: boolean | undefined;
2607
2607
  }, {
2608
2608
  item?: {
2609
2609
  roles?: string[] | undefined;
@@ -2618,10 +2618,10 @@ export declare const upsertScanRuleSchema: z.ZodObject<{
2618
2618
  subtypes?: string[] | undefined;
2619
2619
  } | undefined;
2620
2620
  from?: "subject" | undefined;
2621
+ reciprocal?: boolean | undefined;
2621
2622
  into?: "subject" | undefined;
2622
2623
  containerFacet?: string | undefined;
2623
2624
  containerRoles?: string[] | undefined;
2624
- reciprocal?: boolean | undefined;
2625
2625
  }>>;
2626
2626
  hold: z.ZodOptional<z.ZodObject<{
2627
2627
  ttlSeconds: z.ZodOptional<z.ZodNumber>;
@@ -2640,20 +2640,20 @@ export declare const upsertScanRuleSchema: z.ZodObject<{
2640
2640
  }>>;
2641
2641
  }, "strip", z.ZodTypeAny, {
2642
2642
  label?: string | undefined;
2643
- ttlSeconds?: number | undefined;
2644
2643
  expect?: {
2645
2644
  schemes: number[];
2646
2645
  prompt?: string | undefined;
2647
2646
  } | undefined;
2647
+ ttlSeconds?: number | undefined;
2648
2648
  headline?: string | undefined;
2649
2649
  subline?: string | undefined;
2650
2650
  }, {
2651
2651
  label?: string | undefined;
2652
- ttlSeconds?: number | undefined;
2653
2652
  expect?: {
2654
2653
  schemes: number[];
2655
2654
  prompt?: string | undefined;
2656
2655
  } | undefined;
2656
+ ttlSeconds?: number | undefined;
2657
2657
  headline?: string | undefined;
2658
2658
  subline?: string | undefined;
2659
2659
  }>>;
@@ -2685,18 +2685,18 @@ export declare const upsertScanRuleSchema: z.ZodObject<{
2685
2685
  subtypes?: string[] | undefined;
2686
2686
  } | undefined;
2687
2687
  from?: "subject" | undefined;
2688
+ reciprocal?: boolean | undefined;
2688
2689
  into?: "subject" | undefined;
2689
2690
  containerFacet?: string | undefined;
2690
2691
  containerRoles?: string[] | undefined;
2691
- reciprocal?: boolean | undefined;
2692
2692
  } | undefined;
2693
2693
  hold?: {
2694
2694
  label?: string | undefined;
2695
- ttlSeconds?: number | undefined;
2696
2695
  expect?: {
2697
2696
  schemes: number[];
2698
2697
  prompt?: string | undefined;
2699
2698
  } | undefined;
2699
+ ttlSeconds?: number | undefined;
2700
2700
  headline?: string | undefined;
2701
2701
  subline?: string | undefined;
2702
2702
  } | undefined;
@@ -2705,8 +2705,8 @@ export declare const upsertScanRuleSchema: z.ZodObject<{
2705
2705
  payload?: Record<string, any> | undefined;
2706
2706
  separator?: string | undefined;
2707
2707
  } | undefined;
2708
- description?: string | undefined;
2709
2708
  metadata?: Record<string, any> | undefined;
2709
+ description?: string | undefined;
2710
2710
  itemKey?: string | undefined;
2711
2711
  resolverPayload?: Record<string, any> | undefined;
2712
2712
  targetRole?: string | undefined;
@@ -2728,18 +2728,18 @@ export declare const upsertScanRuleSchema: z.ZodObject<{
2728
2728
  subtypes?: string[] | undefined;
2729
2729
  } | undefined;
2730
2730
  from?: "subject" | undefined;
2731
+ reciprocal?: boolean | undefined;
2731
2732
  into?: "subject" | undefined;
2732
2733
  containerFacet?: string | undefined;
2733
2734
  containerRoles?: string[] | undefined;
2734
- reciprocal?: boolean | undefined;
2735
2735
  } | undefined;
2736
2736
  hold?: {
2737
2737
  label?: string | undefined;
2738
- ttlSeconds?: number | undefined;
2739
2738
  expect?: {
2740
2739
  schemes: number[];
2741
2740
  prompt?: string | undefined;
2742
2741
  } | undefined;
2742
+ ttlSeconds?: number | undefined;
2743
2743
  headline?: string | undefined;
2744
2744
  subline?: string | undefined;
2745
2745
  } | undefined;
@@ -2748,8 +2748,8 @@ export declare const upsertScanRuleSchema: z.ZodObject<{
2748
2748
  payload?: Record<string, any> | undefined;
2749
2749
  separator?: string | undefined;
2750
2750
  } | undefined;
2751
- description?: string | undefined;
2752
2751
  metadata?: Record<string, any> | undefined;
2752
+ description?: string | undefined;
2753
2753
  itemKey?: string | undefined;
2754
2754
  resolverPayload?: Record<string, any> | undefined;
2755
2755
  targetRole?: string | undefined;
@@ -2822,10 +2822,10 @@ export declare const upsertScanRuleSchema: z.ZodObject<{
2822
2822
  subtypes?: string[] | undefined;
2823
2823
  } | undefined;
2824
2824
  from?: "subject" | undefined;
2825
+ reciprocal?: boolean | undefined;
2825
2826
  into?: "subject" | undefined;
2826
2827
  containerFacet?: string | undefined;
2827
2828
  containerRoles?: string[] | undefined;
2828
- reciprocal?: boolean | undefined;
2829
2829
  }, {
2830
2830
  item?: {
2831
2831
  roles?: string[] | undefined;
@@ -2840,10 +2840,10 @@ export declare const upsertScanRuleSchema: z.ZodObject<{
2840
2840
  subtypes?: string[] | undefined;
2841
2841
  } | undefined;
2842
2842
  from?: "subject" | undefined;
2843
+ reciprocal?: boolean | undefined;
2843
2844
  into?: "subject" | undefined;
2844
2845
  containerFacet?: string | undefined;
2845
2846
  containerRoles?: string[] | undefined;
2846
- reciprocal?: boolean | undefined;
2847
2847
  }>>;
2848
2848
  hold: z.ZodOptional<z.ZodObject<{
2849
2849
  ttlSeconds: z.ZodOptional<z.ZodNumber>;
@@ -2862,20 +2862,20 @@ export declare const upsertScanRuleSchema: z.ZodObject<{
2862
2862
  }>>;
2863
2863
  }, "strip", z.ZodTypeAny, {
2864
2864
  label?: string | undefined;
2865
- ttlSeconds?: number | undefined;
2866
2865
  expect?: {
2867
2866
  schemes: number[];
2868
2867
  prompt?: string | undefined;
2869
2868
  } | undefined;
2869
+ ttlSeconds?: number | undefined;
2870
2870
  headline?: string | undefined;
2871
2871
  subline?: string | undefined;
2872
2872
  }, {
2873
2873
  label?: string | undefined;
2874
- ttlSeconds?: number | undefined;
2875
2874
  expect?: {
2876
2875
  schemes: number[];
2877
2876
  prompt?: string | undefined;
2878
2877
  } | undefined;
2878
+ ttlSeconds?: number | undefined;
2879
2879
  headline?: string | undefined;
2880
2880
  subline?: string | undefined;
2881
2881
  }>>;
@@ -2907,18 +2907,18 @@ export declare const upsertScanRuleSchema: z.ZodObject<{
2907
2907
  subtypes?: string[] | undefined;
2908
2908
  } | undefined;
2909
2909
  from?: "subject" | undefined;
2910
+ reciprocal?: boolean | undefined;
2910
2911
  into?: "subject" | undefined;
2911
2912
  containerFacet?: string | undefined;
2912
2913
  containerRoles?: string[] | undefined;
2913
- reciprocal?: boolean | undefined;
2914
2914
  } | undefined;
2915
2915
  hold?: {
2916
2916
  label?: string | undefined;
2917
- ttlSeconds?: number | undefined;
2918
2917
  expect?: {
2919
2918
  schemes: number[];
2920
2919
  prompt?: string | undefined;
2921
2920
  } | undefined;
2921
+ ttlSeconds?: number | undefined;
2922
2922
  headline?: string | undefined;
2923
2923
  subline?: string | undefined;
2924
2924
  } | undefined;
@@ -2927,8 +2927,8 @@ export declare const upsertScanRuleSchema: z.ZodObject<{
2927
2927
  payload?: Record<string, any> | undefined;
2928
2928
  separator?: string | undefined;
2929
2929
  } | undefined;
2930
- description?: string | undefined;
2931
2930
  metadata?: Record<string, any> | undefined;
2931
+ description?: string | undefined;
2932
2932
  itemKey?: string | undefined;
2933
2933
  resolverPayload?: Record<string, any> | undefined;
2934
2934
  targetRole?: string | undefined;
@@ -2950,18 +2950,18 @@ export declare const upsertScanRuleSchema: z.ZodObject<{
2950
2950
  subtypes?: string[] | undefined;
2951
2951
  } | undefined;
2952
2952
  from?: "subject" | undefined;
2953
+ reciprocal?: boolean | undefined;
2953
2954
  into?: "subject" | undefined;
2954
2955
  containerFacet?: string | undefined;
2955
2956
  containerRoles?: string[] | undefined;
2956
- reciprocal?: boolean | undefined;
2957
2957
  } | undefined;
2958
2958
  hold?: {
2959
2959
  label?: string | undefined;
2960
- ttlSeconds?: number | undefined;
2961
2960
  expect?: {
2962
2961
  schemes: number[];
2963
2962
  prompt?: string | undefined;
2964
2963
  } | undefined;
2964
+ ttlSeconds?: number | undefined;
2965
2965
  headline?: string | undefined;
2966
2966
  subline?: string | undefined;
2967
2967
  } | undefined;
@@ -2970,8 +2970,8 @@ export declare const upsertScanRuleSchema: z.ZodObject<{
2970
2970
  payload?: Record<string, any> | undefined;
2971
2971
  separator?: string | undefined;
2972
2972
  } | undefined;
2973
- description?: string | undefined;
2974
2973
  metadata?: Record<string, any> | undefined;
2974
+ description?: string | undefined;
2975
2975
  itemKey?: string | undefined;
2976
2976
  resolverPayload?: Record<string, any> | undefined;
2977
2977
  targetRole?: string | undefined;
@@ -2992,6 +2992,9 @@ export declare const upsertScanRuleSchema: z.ZodObject<{
2992
2992
  label: string;
2993
2993
  verb: "resolve" | "show-detail" | "claim" | "claim-show-detail" | "release" | "escalate" | "cancel" | "hold";
2994
2994
  code?: string | undefined;
2995
+ confirm?: {
2996
+ prompt: string;
2997
+ } | undefined;
2995
2998
  params?: {
2996
2999
  accumulate?: {
2997
3000
  item?: {
@@ -3007,18 +3010,18 @@ export declare const upsertScanRuleSchema: z.ZodObject<{
3007
3010
  subtypes?: string[] | undefined;
3008
3011
  } | undefined;
3009
3012
  from?: "subject" | undefined;
3013
+ reciprocal?: boolean | undefined;
3010
3014
  into?: "subject" | undefined;
3011
3015
  containerFacet?: string | undefined;
3012
3016
  containerRoles?: string[] | undefined;
3013
- reciprocal?: boolean | undefined;
3014
3017
  } | undefined;
3015
3018
  hold?: {
3016
3019
  label?: string | undefined;
3017
- ttlSeconds?: number | undefined;
3018
3020
  expect?: {
3019
3021
  schemes: number[];
3020
3022
  prompt?: string | undefined;
3021
3023
  } | undefined;
3024
+ ttlSeconds?: number | undefined;
3022
3025
  headline?: string | undefined;
3023
3026
  subline?: string | undefined;
3024
3027
  } | undefined;
@@ -3027,8 +3030,8 @@ export declare const upsertScanRuleSchema: z.ZodObject<{
3027
3030
  payload?: Record<string, any> | undefined;
3028
3031
  separator?: string | undefined;
3029
3032
  } | undefined;
3030
- description?: string | undefined;
3031
3033
  metadata?: Record<string, any> | undefined;
3034
+ description?: string | undefined;
3032
3035
  itemKey?: string | undefined;
3033
3036
  resolverPayload?: Record<string, any> | undefined;
3034
3037
  targetRole?: string | undefined;
@@ -3036,14 +3039,14 @@ export declare const upsertScanRuleSchema: z.ZodObject<{
3036
3039
  escalationType?: string | undefined;
3037
3040
  closeCurrent?: "resolve" | "cancel" | undefined;
3038
3041
  } | undefined;
3039
- confirm?: {
3040
- prompt: string;
3041
- } | undefined;
3042
3042
  requireActingIdentity?: boolean | undefined;
3043
3043
  }, {
3044
3044
  label: string;
3045
3045
  verb: "resolve" | "show-detail" | "claim" | "claim-show-detail" | "release" | "escalate" | "cancel" | "hold";
3046
3046
  code?: string | undefined;
3047
+ confirm?: {
3048
+ prompt: string;
3049
+ } | undefined;
3047
3050
  params?: {
3048
3051
  accumulate?: {
3049
3052
  item?: {
@@ -3059,18 +3062,18 @@ export declare const upsertScanRuleSchema: z.ZodObject<{
3059
3062
  subtypes?: string[] | undefined;
3060
3063
  } | undefined;
3061
3064
  from?: "subject" | undefined;
3065
+ reciprocal?: boolean | undefined;
3062
3066
  into?: "subject" | undefined;
3063
3067
  containerFacet?: string | undefined;
3064
3068
  containerRoles?: string[] | undefined;
3065
- reciprocal?: boolean | undefined;
3066
3069
  } | undefined;
3067
3070
  hold?: {
3068
3071
  label?: string | undefined;
3069
- ttlSeconds?: number | undefined;
3070
3072
  expect?: {
3071
3073
  schemes: number[];
3072
3074
  prompt?: string | undefined;
3073
3075
  } | undefined;
3076
+ ttlSeconds?: number | undefined;
3074
3077
  headline?: string | undefined;
3075
3078
  subline?: string | undefined;
3076
3079
  } | undefined;
@@ -3079,8 +3082,8 @@ export declare const upsertScanRuleSchema: z.ZodObject<{
3079
3082
  payload?: Record<string, any> | undefined;
3080
3083
  separator?: string | undefined;
3081
3084
  } | undefined;
3082
- description?: string | undefined;
3083
3085
  metadata?: Record<string, any> | undefined;
3086
+ description?: string | undefined;
3084
3087
  itemKey?: string | undefined;
3085
3088
  resolverPayload?: Record<string, any> | undefined;
3086
3089
  targetRole?: string | undefined;
@@ -3088,9 +3091,6 @@ export declare const upsertScanRuleSchema: z.ZodObject<{
3088
3091
  escalationType?: string | undefined;
3089
3092
  closeCurrent?: "resolve" | "cancel" | undefined;
3090
3093
  } | undefined;
3091
- confirm?: {
3092
- prompt: string;
3093
- } | undefined;
3094
3094
  requireActingIdentity?: boolean | undefined;
3095
3095
  }>, "many">>;
3096
3096
  facts: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -3166,6 +3166,9 @@ export declare const upsertScanRuleSchema: z.ZodObject<{
3166
3166
  label: string;
3167
3167
  verb: "resolve" | "show-detail" | "claim" | "claim-show-detail" | "release" | "escalate" | "cancel" | "hold";
3168
3168
  code?: string | undefined;
3169
+ confirm?: {
3170
+ prompt: string;
3171
+ } | undefined;
3169
3172
  params?: {
3170
3173
  accumulate?: {
3171
3174
  item?: {
@@ -3181,18 +3184,18 @@ export declare const upsertScanRuleSchema: z.ZodObject<{
3181
3184
  subtypes?: string[] | undefined;
3182
3185
  } | undefined;
3183
3186
  from?: "subject" | undefined;
3187
+ reciprocal?: boolean | undefined;
3184
3188
  into?: "subject" | undefined;
3185
3189
  containerFacet?: string | undefined;
3186
3190
  containerRoles?: string[] | undefined;
3187
- reciprocal?: boolean | undefined;
3188
3191
  } | undefined;
3189
3192
  hold?: {
3190
3193
  label?: string | undefined;
3191
- ttlSeconds?: number | undefined;
3192
3194
  expect?: {
3193
3195
  schemes: number[];
3194
3196
  prompt?: string | undefined;
3195
3197
  } | undefined;
3198
+ ttlSeconds?: number | undefined;
3196
3199
  headline?: string | undefined;
3197
3200
  subline?: string | undefined;
3198
3201
  } | undefined;
@@ -3201,8 +3204,8 @@ export declare const upsertScanRuleSchema: z.ZodObject<{
3201
3204
  payload?: Record<string, any> | undefined;
3202
3205
  separator?: string | undefined;
3203
3206
  } | undefined;
3204
- description?: string | undefined;
3205
3207
  metadata?: Record<string, any> | undefined;
3208
+ description?: string | undefined;
3206
3209
  itemKey?: string | undefined;
3207
3210
  resolverPayload?: Record<string, any> | undefined;
3208
3211
  targetRole?: string | undefined;
@@ -3210,9 +3213,6 @@ export declare const upsertScanRuleSchema: z.ZodObject<{
3210
3213
  escalationType?: string | undefined;
3211
3214
  closeCurrent?: "resolve" | "cancel" | undefined;
3212
3215
  } | undefined;
3213
- confirm?: {
3214
- prompt: string;
3215
- } | undefined;
3216
3216
  requireActingIdentity?: boolean | undefined;
3217
3217
  }[] | undefined;
3218
3218
  refuse?: {
@@ -3227,6 +3227,9 @@ export declare const upsertScanRuleSchema: z.ZodObject<{
3227
3227
  done?: {
3228
3228
  markdown: string;
3229
3229
  } | undefined;
3230
+ confirm?: {
3231
+ prompt: string;
3232
+ } | undefined;
3230
3233
  params?: {
3231
3234
  accumulate?: {
3232
3235
  item?: {
@@ -3242,18 +3245,18 @@ export declare const upsertScanRuleSchema: z.ZodObject<{
3242
3245
  subtypes?: string[] | undefined;
3243
3246
  } | undefined;
3244
3247
  from?: "subject" | undefined;
3248
+ reciprocal?: boolean | undefined;
3245
3249
  into?: "subject" | undefined;
3246
3250
  containerFacet?: string | undefined;
3247
3251
  containerRoles?: string[] | undefined;
3248
- reciprocal?: boolean | undefined;
3249
3252
  } | undefined;
3250
3253
  hold?: {
3251
3254
  label?: string | undefined;
3252
- ttlSeconds?: number | undefined;
3253
3255
  expect?: {
3254
3256
  schemes: number[];
3255
3257
  prompt?: string | undefined;
3256
3258
  } | undefined;
3259
+ ttlSeconds?: number | undefined;
3257
3260
  headline?: string | undefined;
3258
3261
  subline?: string | undefined;
3259
3262
  } | undefined;
@@ -3262,8 +3265,8 @@ export declare const upsertScanRuleSchema: z.ZodObject<{
3262
3265
  payload?: Record<string, any> | undefined;
3263
3266
  separator?: string | undefined;
3264
3267
  } | undefined;
3265
- description?: string | undefined;
3266
3268
  metadata?: Record<string, any> | undefined;
3269
+ description?: string | undefined;
3267
3270
  itemKey?: string | undefined;
3268
3271
  resolverPayload?: Record<string, any> | undefined;
3269
3272
  targetRole?: string | undefined;
@@ -3271,9 +3274,6 @@ export declare const upsertScanRuleSchema: z.ZodObject<{
3271
3274
  escalationType?: string | undefined;
3272
3275
  closeCurrent?: "resolve" | "cancel" | undefined;
3273
3276
  } | undefined;
3274
- confirm?: {
3275
- prompt: string;
3276
- } | undefined;
3277
3277
  requireActingIdentity?: boolean | undefined;
3278
3278
  cardinality?: "first" | "many" | undefined;
3279
3279
  facts?: {
@@ -3300,6 +3300,9 @@ export declare const upsertScanRuleSchema: z.ZodObject<{
3300
3300
  label: string;
3301
3301
  verb: "resolve" | "show-detail" | "claim" | "claim-show-detail" | "release" | "escalate" | "cancel" | "hold";
3302
3302
  code?: string | undefined;
3303
+ confirm?: {
3304
+ prompt: string;
3305
+ } | undefined;
3303
3306
  params?: {
3304
3307
  accumulate?: {
3305
3308
  item?: {
@@ -3315,18 +3318,18 @@ export declare const upsertScanRuleSchema: z.ZodObject<{
3315
3318
  subtypes?: string[] | undefined;
3316
3319
  } | undefined;
3317
3320
  from?: "subject" | undefined;
3321
+ reciprocal?: boolean | undefined;
3318
3322
  into?: "subject" | undefined;
3319
3323
  containerFacet?: string | undefined;
3320
3324
  containerRoles?: string[] | undefined;
3321
- reciprocal?: boolean | undefined;
3322
3325
  } | undefined;
3323
3326
  hold?: {
3324
3327
  label?: string | undefined;
3325
- ttlSeconds?: number | undefined;
3326
3328
  expect?: {
3327
3329
  schemes: number[];
3328
3330
  prompt?: string | undefined;
3329
3331
  } | undefined;
3332
+ ttlSeconds?: number | undefined;
3330
3333
  headline?: string | undefined;
3331
3334
  subline?: string | undefined;
3332
3335
  } | undefined;
@@ -3335,8 +3338,8 @@ export declare const upsertScanRuleSchema: z.ZodObject<{
3335
3338
  payload?: Record<string, any> | undefined;
3336
3339
  separator?: string | undefined;
3337
3340
  } | undefined;
3338
- description?: string | undefined;
3339
3341
  metadata?: Record<string, any> | undefined;
3342
+ description?: string | undefined;
3340
3343
  itemKey?: string | undefined;
3341
3344
  resolverPayload?: Record<string, any> | undefined;
3342
3345
  targetRole?: string | undefined;
@@ -3344,9 +3347,6 @@ export declare const upsertScanRuleSchema: z.ZodObject<{
3344
3347
  escalationType?: string | undefined;
3345
3348
  closeCurrent?: "resolve" | "cancel" | undefined;
3346
3349
  } | undefined;
3347
- confirm?: {
3348
- prompt: string;
3349
- } | undefined;
3350
3350
  requireActingIdentity?: boolean | undefined;
3351
3351
  }[] | undefined;
3352
3352
  refuse?: {
@@ -3361,6 +3361,9 @@ export declare const upsertScanRuleSchema: z.ZodObject<{
3361
3361
  done?: {
3362
3362
  markdown: string;
3363
3363
  } | undefined;
3364
+ confirm?: {
3365
+ prompt: string;
3366
+ } | undefined;
3364
3367
  params?: {
3365
3368
  accumulate?: {
3366
3369
  item?: {
@@ -3376,18 +3379,18 @@ export declare const upsertScanRuleSchema: z.ZodObject<{
3376
3379
  subtypes?: string[] | undefined;
3377
3380
  } | undefined;
3378
3381
  from?: "subject" | undefined;
3382
+ reciprocal?: boolean | undefined;
3379
3383
  into?: "subject" | undefined;
3380
3384
  containerFacet?: string | undefined;
3381
3385
  containerRoles?: string[] | undefined;
3382
- reciprocal?: boolean | undefined;
3383
3386
  } | undefined;
3384
3387
  hold?: {
3385
3388
  label?: string | undefined;
3386
- ttlSeconds?: number | undefined;
3387
3389
  expect?: {
3388
3390
  schemes: number[];
3389
3391
  prompt?: string | undefined;
3390
3392
  } | undefined;
3393
+ ttlSeconds?: number | undefined;
3391
3394
  headline?: string | undefined;
3392
3395
  subline?: string | undefined;
3393
3396
  } | undefined;
@@ -3396,8 +3399,8 @@ export declare const upsertScanRuleSchema: z.ZodObject<{
3396
3399
  payload?: Record<string, any> | undefined;
3397
3400
  separator?: string | undefined;
3398
3401
  } | undefined;
3399
- description?: string | undefined;
3400
3402
  metadata?: Record<string, any> | undefined;
3403
+ description?: string | undefined;
3401
3404
  itemKey?: string | undefined;
3402
3405
  resolverPayload?: Record<string, any> | undefined;
3403
3406
  targetRole?: string | undefined;
@@ -3405,9 +3408,6 @@ export declare const upsertScanRuleSchema: z.ZodObject<{
3405
3408
  escalationType?: string | undefined;
3406
3409
  closeCurrent?: "resolve" | "cancel" | undefined;
3407
3410
  } | undefined;
3408
- confirm?: {
3409
- prompt: string;
3410
- } | undefined;
3411
3411
  requireActingIdentity?: boolean | undefined;
3412
3412
  cardinality?: "first" | "many" | undefined;
3413
3413
  facts?: {
@@ -3460,6 +3460,9 @@ export declare const upsertScanRuleSchema: z.ZodObject<{
3460
3460
  label: string;
3461
3461
  verb: "resolve" | "show-detail" | "claim" | "claim-show-detail" | "release" | "escalate" | "cancel" | "hold";
3462
3462
  code?: string | undefined;
3463
+ confirm?: {
3464
+ prompt: string;
3465
+ } | undefined;
3463
3466
  params?: {
3464
3467
  accumulate?: {
3465
3468
  item?: {
@@ -3475,18 +3478,18 @@ export declare const upsertScanRuleSchema: z.ZodObject<{
3475
3478
  subtypes?: string[] | undefined;
3476
3479
  } | undefined;
3477
3480
  from?: "subject" | undefined;
3481
+ reciprocal?: boolean | undefined;
3478
3482
  into?: "subject" | undefined;
3479
3483
  containerFacet?: string | undefined;
3480
3484
  containerRoles?: string[] | undefined;
3481
- reciprocal?: boolean | undefined;
3482
3485
  } | undefined;
3483
3486
  hold?: {
3484
3487
  label?: string | undefined;
3485
- ttlSeconds?: number | undefined;
3486
3488
  expect?: {
3487
3489
  schemes: number[];
3488
3490
  prompt?: string | undefined;
3489
3491
  } | undefined;
3492
+ ttlSeconds?: number | undefined;
3490
3493
  headline?: string | undefined;
3491
3494
  subline?: string | undefined;
3492
3495
  } | undefined;
@@ -3495,8 +3498,8 @@ export declare const upsertScanRuleSchema: z.ZodObject<{
3495
3498
  payload?: Record<string, any> | undefined;
3496
3499
  separator?: string | undefined;
3497
3500
  } | undefined;
3498
- description?: string | undefined;
3499
3501
  metadata?: Record<string, any> | undefined;
3502
+ description?: string | undefined;
3500
3503
  itemKey?: string | undefined;
3501
3504
  resolverPayload?: Record<string, any> | undefined;
3502
3505
  targetRole?: string | undefined;
@@ -3504,9 +3507,6 @@ export declare const upsertScanRuleSchema: z.ZodObject<{
3504
3507
  escalationType?: string | undefined;
3505
3508
  closeCurrent?: "resolve" | "cancel" | undefined;
3506
3509
  } | undefined;
3507
- confirm?: {
3508
- prompt: string;
3509
- } | undefined;
3510
3510
  requireActingIdentity?: boolean | undefined;
3511
3511
  }[] | undefined;
3512
3512
  refuse?: {
@@ -3521,6 +3521,9 @@ export declare const upsertScanRuleSchema: z.ZodObject<{
3521
3521
  done?: {
3522
3522
  markdown: string;
3523
3523
  } | undefined;
3524
+ confirm?: {
3525
+ prompt: string;
3526
+ } | undefined;
3524
3527
  params?: {
3525
3528
  accumulate?: {
3526
3529
  item?: {
@@ -3536,18 +3539,18 @@ export declare const upsertScanRuleSchema: z.ZodObject<{
3536
3539
  subtypes?: string[] | undefined;
3537
3540
  } | undefined;
3538
3541
  from?: "subject" | undefined;
3542
+ reciprocal?: boolean | undefined;
3539
3543
  into?: "subject" | undefined;
3540
3544
  containerFacet?: string | undefined;
3541
3545
  containerRoles?: string[] | undefined;
3542
- reciprocal?: boolean | undefined;
3543
3546
  } | undefined;
3544
3547
  hold?: {
3545
3548
  label?: string | undefined;
3546
- ttlSeconds?: number | undefined;
3547
3549
  expect?: {
3548
3550
  schemes: number[];
3549
3551
  prompt?: string | undefined;
3550
3552
  } | undefined;
3553
+ ttlSeconds?: number | undefined;
3551
3554
  headline?: string | undefined;
3552
3555
  subline?: string | undefined;
3553
3556
  } | undefined;
@@ -3556,8 +3559,8 @@ export declare const upsertScanRuleSchema: z.ZodObject<{
3556
3559
  payload?: Record<string, any> | undefined;
3557
3560
  separator?: string | undefined;
3558
3561
  } | undefined;
3559
- description?: string | undefined;
3560
3562
  metadata?: Record<string, any> | undefined;
3563
+ description?: string | undefined;
3561
3564
  itemKey?: string | undefined;
3562
3565
  resolverPayload?: Record<string, any> | undefined;
3563
3566
  targetRole?: string | undefined;
@@ -3565,9 +3568,6 @@ export declare const upsertScanRuleSchema: z.ZodObject<{
3565
3568
  escalationType?: string | undefined;
3566
3569
  closeCurrent?: "resolve" | "cancel" | undefined;
3567
3570
  } | undefined;
3568
- confirm?: {
3569
- prompt: string;
3570
- } | undefined;
3571
3571
  requireActingIdentity?: boolean | undefined;
3572
3572
  cardinality?: "first" | "many" | undefined;
3573
3573
  facts?: {
@@ -3608,6 +3608,9 @@ export declare const upsertScanRuleSchema: z.ZodObject<{
3608
3608
  label: string;
3609
3609
  verb: "resolve" | "show-detail" | "claim" | "claim-show-detail" | "release" | "escalate" | "cancel" | "hold";
3610
3610
  code?: string | undefined;
3611
+ confirm?: {
3612
+ prompt: string;
3613
+ } | undefined;
3611
3614
  params?: {
3612
3615
  accumulate?: {
3613
3616
  item?: {
@@ -3623,18 +3626,18 @@ export declare const upsertScanRuleSchema: z.ZodObject<{
3623
3626
  subtypes?: string[] | undefined;
3624
3627
  } | undefined;
3625
3628
  from?: "subject" | undefined;
3629
+ reciprocal?: boolean | undefined;
3626
3630
  into?: "subject" | undefined;
3627
3631
  containerFacet?: string | undefined;
3628
3632
  containerRoles?: string[] | undefined;
3629
- reciprocal?: boolean | undefined;
3630
3633
  } | undefined;
3631
3634
  hold?: {
3632
3635
  label?: string | undefined;
3633
- ttlSeconds?: number | undefined;
3634
3636
  expect?: {
3635
3637
  schemes: number[];
3636
3638
  prompt?: string | undefined;
3637
3639
  } | undefined;
3640
+ ttlSeconds?: number | undefined;
3638
3641
  headline?: string | undefined;
3639
3642
  subline?: string | undefined;
3640
3643
  } | undefined;
@@ -3643,8 +3646,8 @@ export declare const upsertScanRuleSchema: z.ZodObject<{
3643
3646
  payload?: Record<string, any> | undefined;
3644
3647
  separator?: string | undefined;
3645
3648
  } | undefined;
3646
- description?: string | undefined;
3647
3649
  metadata?: Record<string, any> | undefined;
3650
+ description?: string | undefined;
3648
3651
  itemKey?: string | undefined;
3649
3652
  resolverPayload?: Record<string, any> | undefined;
3650
3653
  targetRole?: string | undefined;
@@ -3652,9 +3655,6 @@ export declare const upsertScanRuleSchema: z.ZodObject<{
3652
3655
  escalationType?: string | undefined;
3653
3656
  closeCurrent?: "resolve" | "cancel" | undefined;
3654
3657
  } | undefined;
3655
- confirm?: {
3656
- prompt: string;
3657
- } | undefined;
3658
3658
  requireActingIdentity?: boolean | undefined;
3659
3659
  }[] | undefined;
3660
3660
  refuse?: {
@@ -3669,6 +3669,9 @@ export declare const upsertScanRuleSchema: z.ZodObject<{
3669
3669
  done?: {
3670
3670
  markdown: string;
3671
3671
  } | undefined;
3672
+ confirm?: {
3673
+ prompt: string;
3674
+ } | undefined;
3672
3675
  params?: {
3673
3676
  accumulate?: {
3674
3677
  item?: {
@@ -3684,18 +3687,18 @@ export declare const upsertScanRuleSchema: z.ZodObject<{
3684
3687
  subtypes?: string[] | undefined;
3685
3688
  } | undefined;
3686
3689
  from?: "subject" | undefined;
3690
+ reciprocal?: boolean | undefined;
3687
3691
  into?: "subject" | undefined;
3688
3692
  containerFacet?: string | undefined;
3689
3693
  containerRoles?: string[] | undefined;
3690
- reciprocal?: boolean | undefined;
3691
3694
  } | undefined;
3692
3695
  hold?: {
3693
3696
  label?: string | undefined;
3694
- ttlSeconds?: number | undefined;
3695
3697
  expect?: {
3696
3698
  schemes: number[];
3697
3699
  prompt?: string | undefined;
3698
3700
  } | undefined;
3701
+ ttlSeconds?: number | undefined;
3699
3702
  headline?: string | undefined;
3700
3703
  subline?: string | undefined;
3701
3704
  } | undefined;
@@ -3704,8 +3707,8 @@ export declare const upsertScanRuleSchema: z.ZodObject<{
3704
3707
  payload?: Record<string, any> | undefined;
3705
3708
  separator?: string | undefined;
3706
3709
  } | undefined;
3707
- description?: string | undefined;
3708
3710
  metadata?: Record<string, any> | undefined;
3711
+ description?: string | undefined;
3709
3712
  itemKey?: string | undefined;
3710
3713
  resolverPayload?: Record<string, any> | undefined;
3711
3714
  targetRole?: string | undefined;
@@ -3713,9 +3716,6 @@ export declare const upsertScanRuleSchema: z.ZodObject<{
3713
3716
  escalationType?: string | undefined;
3714
3717
  closeCurrent?: "resolve" | "cancel" | undefined;
3715
3718
  } | undefined;
3716
- confirm?: {
3717
- prompt: string;
3718
- } | undefined;
3719
3719
  requireActingIdentity?: boolean | undefined;
3720
3720
  cardinality?: "first" | "many" | undefined;
3721
3721
  facts?: {