@selleragent/api-contract 0.7.0 → 0.9.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/ops.d.ts CHANGED
@@ -4,13 +4,14 @@ export declare const operationsEntityKindSchema: z.ZodEnum<{
4
4
  telegram_business_account: "telegram_business_account";
5
5
  telegram_employee_binding: "telegram_employee_binding";
6
6
  runtime_provider: "runtime_provider";
7
- runtime_routing: "runtime_routing";
7
+ runtime_model_profile: "runtime_model_profile";
8
+ notification_routing_profile: "notification_routing_profile";
8
9
  }>;
9
10
  export declare const operationsStatusSchema: z.ZodEnum<{
10
11
  unknown: "unknown";
11
12
  pass: "pass";
12
- warn: "warn";
13
13
  fail: "fail";
14
+ warn: "warn";
14
15
  }>;
15
16
  export declare const operationsSnapshotSourceKindSchema: z.ZodEnum<{
16
17
  startup_probe: "startup_probe";
@@ -19,14 +20,14 @@ export declare const operationsSnapshotSourceKindSchema: z.ZodEnum<{
19
20
  migration_backfill: "migration_backfill";
20
21
  }>;
21
22
  export declare const operationsDriftSeveritySchema: z.ZodEnum<{
22
- warn: "warn";
23
23
  fail: "fail";
24
+ warn: "warn";
24
25
  }>;
25
26
  export declare const operationsDriftEntrySchema: z.ZodObject<{
26
27
  code: z.ZodString;
27
28
  severity: z.ZodEnum<{
28
- warn: "warn";
29
29
  fail: "fail";
30
+ warn: "warn";
30
31
  }>;
31
32
  field: z.ZodString;
32
33
  expected: z.ZodDefault<z.ZodNullable<z.ZodUnknown>>;
@@ -40,7 +41,8 @@ export declare const operationsStatusSnapshotSchema: z.ZodObject<{
40
41
  telegram_business_account: "telegram_business_account";
41
42
  telegram_employee_binding: "telegram_employee_binding";
42
43
  runtime_provider: "runtime_provider";
43
- runtime_routing: "runtime_routing";
44
+ runtime_model_profile: "runtime_model_profile";
45
+ notification_routing_profile: "notification_routing_profile";
44
46
  }>;
45
47
  entityId: z.ZodString;
46
48
  businessProfileId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -48,8 +50,8 @@ export declare const operationsStatusSnapshotSchema: z.ZodObject<{
48
50
  status: z.ZodEnum<{
49
51
  unknown: "unknown";
50
52
  pass: "pass";
51
- warn: "warn";
52
53
  fail: "fail";
54
+ warn: "warn";
53
55
  }>;
54
56
  summary: z.ZodString;
55
57
  configured: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -57,8 +59,8 @@ export declare const operationsStatusSnapshotSchema: z.ZodObject<{
57
59
  drift: z.ZodDefault<z.ZodArray<z.ZodObject<{
58
60
  code: z.ZodString;
59
61
  severity: z.ZodEnum<{
60
- warn: "warn";
61
62
  fail: "fail";
63
+ warn: "warn";
62
64
  }>;
63
65
  field: z.ZodString;
64
66
  expected: z.ZodDefault<z.ZodNullable<z.ZodUnknown>>;
@@ -87,23 +89,24 @@ export declare const operationsRepairResultSchema: z.ZodObject<{
87
89
  telegram_business_account: "telegram_business_account";
88
90
  telegram_employee_binding: "telegram_employee_binding";
89
91
  runtime_provider: "runtime_provider";
90
- runtime_routing: "runtime_routing";
92
+ runtime_model_profile: "runtime_model_profile";
93
+ notification_routing_profile: "notification_routing_profile";
91
94
  }>;
92
95
  entityId: z.ZodString;
93
96
  operation: z.ZodString;
94
97
  status: z.ZodEnum<{
95
98
  unknown: "unknown";
96
99
  pass: "pass";
97
- warn: "warn";
98
100
  fail: "fail";
101
+ warn: "warn";
99
102
  }>;
100
103
  actionsTaken: z.ZodDefault<z.ZodArray<z.ZodString>>;
101
104
  changesApplied: z.ZodDefault<z.ZodArray<z.ZodString>>;
102
105
  remainingDrift: z.ZodDefault<z.ZodArray<z.ZodObject<{
103
106
  code: z.ZodString;
104
107
  severity: z.ZodEnum<{
105
- warn: "warn";
106
108
  fail: "fail";
109
+ warn: "warn";
107
110
  }>;
108
111
  field: z.ZodString;
109
112
  expected: z.ZodDefault<z.ZodNullable<z.ZodUnknown>>;
@@ -177,8 +180,8 @@ export declare const schemaMigrationStatusSchema: z.ZodObject<{
177
180
  status: z.ZodEnum<{
178
181
  unknown: "unknown";
179
182
  pass: "pass";
180
- warn: "warn";
181
183
  fail: "fail";
184
+ warn: "warn";
182
185
  }>;
183
186
  summary: z.ZodString;
184
187
  checkedAt: z.ZodString;
@@ -215,6 +218,76 @@ export declare const schemaMigrationStatusSchema: z.ZodObject<{
215
218
  }, z.core.$strip>>>;
216
219
  orphanedLedgerEntries: z.ZodDefault<z.ZodArray<z.ZodString>>;
217
220
  }, z.core.$strip>;
221
+ export declare const legacyReconcileKindSchema: z.ZodEnum<{
222
+ business_profile_workspace_adoption: "business_profile_workspace_adoption";
223
+ legacy_jsonb_scalar_normalization: "legacy_jsonb_scalar_normalization";
224
+ telegram_integration_secret_encryption: "telegram_integration_secret_encryption";
225
+ }>;
226
+ export declare const legacyReconcileItemSchema: z.ZodObject<{
227
+ kind: z.ZodEnum<{
228
+ business_profile_workspace_adoption: "business_profile_workspace_adoption";
229
+ legacy_jsonb_scalar_normalization: "legacy_jsonb_scalar_normalization";
230
+ telegram_integration_secret_encryption: "telegram_integration_secret_encryption";
231
+ }>;
232
+ status: z.ZodEnum<{
233
+ unknown: "unknown";
234
+ pass: "pass";
235
+ fail: "fail";
236
+ warn: "warn";
237
+ }>;
238
+ summary: z.ZodString;
239
+ pendingCount: z.ZodNumber;
240
+ candidateCount: z.ZodNumber;
241
+ blocking: z.ZodDefault<z.ZodBoolean>;
242
+ details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
243
+ }, z.core.$strip>;
244
+ export declare const legacyReconcileStatusSchema: z.ZodObject<{
245
+ environment: z.ZodString;
246
+ checkedAt: z.ZodString;
247
+ status: z.ZodEnum<{
248
+ unknown: "unknown";
249
+ pass: "pass";
250
+ fail: "fail";
251
+ warn: "warn";
252
+ }>;
253
+ summary: z.ZodString;
254
+ items: z.ZodDefault<z.ZodArray<z.ZodObject<{
255
+ kind: z.ZodEnum<{
256
+ business_profile_workspace_adoption: "business_profile_workspace_adoption";
257
+ legacy_jsonb_scalar_normalization: "legacy_jsonb_scalar_normalization";
258
+ telegram_integration_secret_encryption: "telegram_integration_secret_encryption";
259
+ }>;
260
+ status: z.ZodEnum<{
261
+ unknown: "unknown";
262
+ pass: "pass";
263
+ fail: "fail";
264
+ warn: "warn";
265
+ }>;
266
+ summary: z.ZodString;
267
+ pendingCount: z.ZodNumber;
268
+ candidateCount: z.ZodNumber;
269
+ blocking: z.ZodDefault<z.ZodBoolean>;
270
+ details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
271
+ }, z.core.$strip>>>;
272
+ }, z.core.$strip>;
273
+ export declare const legacyReconcileResultSchema: z.ZodObject<{
274
+ kind: z.ZodEnum<{
275
+ business_profile_workspace_adoption: "business_profile_workspace_adoption";
276
+ legacy_jsonb_scalar_normalization: "legacy_jsonb_scalar_normalization";
277
+ telegram_integration_secret_encryption: "telegram_integration_secret_encryption";
278
+ }>;
279
+ status: z.ZodEnum<{
280
+ unknown: "unknown";
281
+ pass: "pass";
282
+ fail: "fail";
283
+ warn: "warn";
284
+ }>;
285
+ summary: z.ZodString;
286
+ beforePendingCount: z.ZodNumber;
287
+ appliedCount: z.ZodNumber;
288
+ afterPendingCount: z.ZodNumber;
289
+ details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
290
+ }, z.core.$strip>;
218
291
  export declare const backupArtifactKindSchema: z.ZodEnum<{
219
292
  scheduled: "scheduled";
220
293
  pre_release: "pre_release";
@@ -245,7 +318,7 @@ export declare const backupArtifactCoverageSchema: z.ZodObject<{
245
318
  telegramEmployeeBindings: z.ZodNumber;
246
319
  telegramBusinessAccounts: z.ZodNumber;
247
320
  runtimeProviders: z.ZodNumber;
248
- runtimeRoutingProfiles: z.ZodNumber;
321
+ runtimeModelProfiles: z.ZodNumber;
249
322
  runtimeUsageEvents: z.ZodNumber;
250
323
  runtimeFallbackEvents: z.ZodNumber;
251
324
  operationsSnapshots: z.ZodNumber;
@@ -309,7 +382,7 @@ export declare const backupArtifactManifestSchema: z.ZodObject<{
309
382
  telegramEmployeeBindings: z.ZodNumber;
310
383
  telegramBusinessAccounts: z.ZodNumber;
311
384
  runtimeProviders: z.ZodNumber;
312
- runtimeRoutingProfiles: z.ZodNumber;
385
+ runtimeModelProfiles: z.ZodNumber;
313
386
  runtimeUsageEvents: z.ZodNumber;
314
387
  runtimeFallbackEvents: z.ZodNumber;
315
388
  operationsSnapshots: z.ZodNumber;
@@ -324,8 +397,8 @@ export declare const restoreDrillCheckSchema: z.ZodObject<{
324
397
  status: z.ZodEnum<{
325
398
  unknown: "unknown";
326
399
  pass: "pass";
327
- warn: "warn";
328
400
  fail: "fail";
401
+ warn: "warn";
329
402
  }>;
330
403
  summary: z.ZodString;
331
404
  details: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -343,8 +416,8 @@ export declare const restoreDrillRecordSchema: z.ZodObject<{
343
416
  status: z.ZodEnum<{
344
417
  unknown: "unknown";
345
418
  pass: "pass";
346
- warn: "warn";
347
419
  fail: "fail";
420
+ warn: "warn";
348
421
  }>;
349
422
  summary: z.ZodString;
350
423
  restoredSchemaVersion: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -353,8 +426,8 @@ export declare const restoreDrillRecordSchema: z.ZodObject<{
353
426
  status: z.ZodEnum<{
354
427
  unknown: "unknown";
355
428
  pass: "pass";
356
- warn: "warn";
357
429
  fail: "fail";
430
+ warn: "warn";
358
431
  }>;
359
432
  summary: z.ZodString;
360
433
  details: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -370,7 +443,7 @@ export declare const restoreDrillRecordSchema: z.ZodObject<{
370
443
  telegramEmployeeBindings: z.ZodNumber;
371
444
  telegramBusinessAccounts: z.ZodNumber;
372
445
  runtimeProviders: z.ZodNumber;
373
- runtimeRoutingProfiles: z.ZodNumber;
446
+ runtimeModelProfiles: z.ZodNumber;
374
447
  runtimeUsageEvents: z.ZodNumber;
375
448
  runtimeFallbackEvents: z.ZodNumber;
376
449
  operationsSnapshots: z.ZodNumber;
@@ -378,10 +451,10 @@ export declare const restoreDrillRecordSchema: z.ZodObject<{
378
451
  notes: z.ZodDefault<z.ZodNullable<z.ZodString>>;
379
452
  }, z.core.$strip>;
380
453
  export declare const rolloutPhaseStatusSchema: z.ZodEnum<{
381
- skipped: "skipped";
382
454
  pass: "pass";
383
- warn: "warn";
384
455
  fail: "fail";
456
+ skipped: "skipped";
457
+ warn: "warn";
385
458
  }>;
386
459
  export declare const rolloutExecutionStatusSchema: z.ZodEnum<{
387
460
  completed: "completed";
@@ -402,10 +475,10 @@ export declare const rolloutPhaseRecordSchema: z.ZodObject<{
402
475
  phaseId: z.ZodString;
403
476
  label: z.ZodString;
404
477
  status: z.ZodEnum<{
405
- skipped: "skipped";
406
478
  pass: "pass";
407
- warn: "warn";
408
479
  fail: "fail";
480
+ skipped: "skipped";
481
+ warn: "warn";
409
482
  }>;
410
483
  summary: z.ZodString;
411
484
  details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -431,8 +504,8 @@ export declare const rolloutExecutionRecordSchema: z.ZodObject<{
431
504
  readinessStatus: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
432
505
  unknown: "unknown";
433
506
  pass: "pass";
434
- warn: "warn";
435
507
  fail: "fail";
508
+ warn: "warn";
436
509
  }>>>;
437
510
  codeRef: z.ZodObject<{
438
511
  repositoryUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -443,10 +516,10 @@ export declare const rolloutExecutionRecordSchema: z.ZodObject<{
443
516
  phaseId: z.ZodString;
444
517
  label: z.ZodString;
445
518
  status: z.ZodEnum<{
446
- skipped: "skipped";
447
519
  pass: "pass";
448
- warn: "warn";
449
520
  fail: "fail";
521
+ skipped: "skipped";
522
+ warn: "warn";
450
523
  }>;
451
524
  summary: z.ZodString;
452
525
  details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -459,10 +532,10 @@ export declare const releaseVerificationPhaseRecordSchema: z.ZodObject<{
459
532
  phaseId: z.ZodString;
460
533
  label: z.ZodString;
461
534
  status: z.ZodEnum<{
462
- skipped: "skipped";
463
535
  pass: "pass";
464
- warn: "warn";
465
536
  fail: "fail";
537
+ skipped: "skipped";
538
+ warn: "warn";
466
539
  }>;
467
540
  summary: z.ZodString;
468
541
  details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -488,8 +561,8 @@ export declare const releaseVerificationRecordSchema: z.ZodObject<{
488
561
  readinessStatus: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
489
562
  unknown: "unknown";
490
563
  pass: "pass";
491
- warn: "warn";
492
564
  fail: "fail";
565
+ warn: "warn";
493
566
  }>>>;
494
567
  codeRef: z.ZodObject<{
495
568
  repositoryUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -501,10 +574,10 @@ export declare const releaseVerificationRecordSchema: z.ZodObject<{
501
574
  phaseId: z.ZodString;
502
575
  label: z.ZodString;
503
576
  status: z.ZodEnum<{
504
- skipped: "skipped";
505
577
  pass: "pass";
506
- warn: "warn";
507
578
  fail: "fail";
579
+ skipped: "skipped";
580
+ warn: "warn";
508
581
  }>;
509
582
  summary: z.ZodString;
510
583
  details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -533,8 +606,8 @@ export declare const opsRecordRolloutExecutionRequestSchema: z.ZodObject<{
533
606
  readinessStatus: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
534
607
  unknown: "unknown";
535
608
  pass: "pass";
536
- warn: "warn";
537
609
  fail: "fail";
610
+ warn: "warn";
538
611
  }>>>;
539
612
  codeRef: z.ZodObject<{
540
613
  repositoryUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -545,10 +618,10 @@ export declare const opsRecordRolloutExecutionRequestSchema: z.ZodObject<{
545
618
  phaseId: z.ZodString;
546
619
  label: z.ZodString;
547
620
  status: z.ZodEnum<{
548
- skipped: "skipped";
549
621
  pass: "pass";
550
- warn: "warn";
551
622
  fail: "fail";
623
+ skipped: "skipped";
624
+ warn: "warn";
552
625
  }>;
553
626
  summary: z.ZodString;
554
627
  details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -578,8 +651,8 @@ export declare const opsRecordRolloutExecutionResponseSchema: z.ZodObject<{
578
651
  readinessStatus: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
579
652
  unknown: "unknown";
580
653
  pass: "pass";
581
- warn: "warn";
582
654
  fail: "fail";
655
+ warn: "warn";
583
656
  }>>>;
584
657
  codeRef: z.ZodObject<{
585
658
  repositoryUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -590,10 +663,10 @@ export declare const opsRecordRolloutExecutionResponseSchema: z.ZodObject<{
590
663
  phaseId: z.ZodString;
591
664
  label: z.ZodString;
592
665
  status: z.ZodEnum<{
593
- skipped: "skipped";
594
666
  pass: "pass";
595
- warn: "warn";
596
667
  fail: "fail";
668
+ skipped: "skipped";
669
+ warn: "warn";
597
670
  }>;
598
671
  summary: z.ZodString;
599
672
  details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -627,8 +700,8 @@ export declare const opsListRolloutExecutionsResponseSchema: z.ZodObject<{
627
700
  readinessStatus: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
628
701
  unknown: "unknown";
629
702
  pass: "pass";
630
- warn: "warn";
631
703
  fail: "fail";
704
+ warn: "warn";
632
705
  }>>>;
633
706
  codeRef: z.ZodObject<{
634
707
  repositoryUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -639,10 +712,10 @@ export declare const opsListRolloutExecutionsResponseSchema: z.ZodObject<{
639
712
  phaseId: z.ZodString;
640
713
  label: z.ZodString;
641
714
  status: z.ZodEnum<{
642
- skipped: "skipped";
643
715
  pass: "pass";
644
- warn: "warn";
645
716
  fail: "fail";
717
+ skipped: "skipped";
718
+ warn: "warn";
646
719
  }>;
647
720
  summary: z.ZodString;
648
721
  details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -675,8 +748,8 @@ export declare const opsGetRolloutExecutionResponseSchema: z.ZodObject<{
675
748
  readinessStatus: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
676
749
  unknown: "unknown";
677
750
  pass: "pass";
678
- warn: "warn";
679
751
  fail: "fail";
752
+ warn: "warn";
680
753
  }>>>;
681
754
  codeRef: z.ZodObject<{
682
755
  repositoryUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -687,10 +760,10 @@ export declare const opsGetRolloutExecutionResponseSchema: z.ZodObject<{
687
760
  phaseId: z.ZodString;
688
761
  label: z.ZodString;
689
762
  status: z.ZodEnum<{
690
- skipped: "skipped";
691
763
  pass: "pass";
692
- warn: "warn";
693
764
  fail: "fail";
765
+ skipped: "skipped";
766
+ warn: "warn";
694
767
  }>;
695
768
  summary: z.ZodString;
696
769
  details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -720,8 +793,8 @@ export declare const opsRecordReleaseVerificationRequestSchema: z.ZodObject<{
720
793
  readinessStatus: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
721
794
  unknown: "unknown";
722
795
  pass: "pass";
723
- warn: "warn";
724
796
  fail: "fail";
797
+ warn: "warn";
725
798
  }>>>;
726
799
  codeRef: z.ZodObject<{
727
800
  repositoryUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -733,10 +806,10 @@ export declare const opsRecordReleaseVerificationRequestSchema: z.ZodObject<{
733
806
  phaseId: z.ZodString;
734
807
  label: z.ZodString;
735
808
  status: z.ZodEnum<{
736
- skipped: "skipped";
737
809
  pass: "pass";
738
- warn: "warn";
739
810
  fail: "fail";
811
+ skipped: "skipped";
812
+ warn: "warn";
740
813
  }>;
741
814
  summary: z.ZodString;
742
815
  details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -766,8 +839,8 @@ export declare const opsRecordReleaseVerificationResponseSchema: z.ZodObject<{
766
839
  readinessStatus: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
767
840
  unknown: "unknown";
768
841
  pass: "pass";
769
- warn: "warn";
770
842
  fail: "fail";
843
+ warn: "warn";
771
844
  }>>>;
772
845
  codeRef: z.ZodObject<{
773
846
  repositoryUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -779,10 +852,10 @@ export declare const opsRecordReleaseVerificationResponseSchema: z.ZodObject<{
779
852
  phaseId: z.ZodString;
780
853
  label: z.ZodString;
781
854
  status: z.ZodEnum<{
782
- skipped: "skipped";
783
855
  pass: "pass";
784
- warn: "warn";
785
856
  fail: "fail";
857
+ skipped: "skipped";
858
+ warn: "warn";
786
859
  }>;
787
860
  summary: z.ZodString;
788
861
  details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -817,8 +890,8 @@ export declare const opsListReleaseVerificationsResponseSchema: z.ZodObject<{
817
890
  readinessStatus: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
818
891
  unknown: "unknown";
819
892
  pass: "pass";
820
- warn: "warn";
821
893
  fail: "fail";
894
+ warn: "warn";
822
895
  }>>>;
823
896
  codeRef: z.ZodObject<{
824
897
  repositoryUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -830,10 +903,10 @@ export declare const opsListReleaseVerificationsResponseSchema: z.ZodObject<{
830
903
  phaseId: z.ZodString;
831
904
  label: z.ZodString;
832
905
  status: z.ZodEnum<{
833
- skipped: "skipped";
834
906
  pass: "pass";
835
- warn: "warn";
836
907
  fail: "fail";
908
+ skipped: "skipped";
909
+ warn: "warn";
837
910
  }>;
838
911
  summary: z.ZodString;
839
912
  details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -866,8 +939,8 @@ export declare const opsGetReleaseVerificationResponseSchema: z.ZodObject<{
866
939
  readinessStatus: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
867
940
  unknown: "unknown";
868
941
  pass: "pass";
869
- warn: "warn";
870
942
  fail: "fail";
943
+ warn: "warn";
871
944
  }>>>;
872
945
  codeRef: z.ZodObject<{
873
946
  repositoryUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -879,10 +952,10 @@ export declare const opsGetReleaseVerificationResponseSchema: z.ZodObject<{
879
952
  phaseId: z.ZodString;
880
953
  label: z.ZodString;
881
954
  status: z.ZodEnum<{
882
- skipped: "skipped";
883
955
  pass: "pass";
884
- warn: "warn";
885
956
  fail: "fail";
957
+ skipped: "skipped";
958
+ warn: "warn";
886
959
  }>;
887
960
  summary: z.ZodString;
888
961
  details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -898,8 +971,8 @@ export declare const operationsReadinessResponseSchema: z.ZodObject<{
898
971
  status: z.ZodEnum<{
899
972
  unknown: "unknown";
900
973
  pass: "pass";
901
- warn: "warn";
902
974
  fail: "fail";
975
+ warn: "warn";
903
976
  }>;
904
977
  stale: z.ZodBoolean;
905
978
  counts: z.ZodObject<{
@@ -917,7 +990,8 @@ export declare const operationsReadinessResponseSchema: z.ZodObject<{
917
990
  telegram_business_account: "telegram_business_account";
918
991
  telegram_employee_binding: "telegram_employee_binding";
919
992
  runtime_provider: "runtime_provider";
920
- runtime_routing: "runtime_routing";
993
+ runtime_model_profile: "runtime_model_profile";
994
+ notification_routing_profile: "notification_routing_profile";
921
995
  }>;
922
996
  entityId: z.ZodString;
923
997
  businessProfileId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -925,8 +999,8 @@ export declare const operationsReadinessResponseSchema: z.ZodObject<{
925
999
  status: z.ZodEnum<{
926
1000
  unknown: "unknown";
927
1001
  pass: "pass";
928
- warn: "warn";
929
1002
  fail: "fail";
1003
+ warn: "warn";
930
1004
  }>;
931
1005
  summary: z.ZodString;
932
1006
  configured: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -934,8 +1008,8 @@ export declare const operationsReadinessResponseSchema: z.ZodObject<{
934
1008
  drift: z.ZodDefault<z.ZodArray<z.ZodObject<{
935
1009
  code: z.ZodString;
936
1010
  severity: z.ZodEnum<{
937
- warn: "warn";
938
1011
  fail: "fail";
1012
+ warn: "warn";
939
1013
  }>;
940
1014
  field: z.ZodString;
941
1015
  expected: z.ZodDefault<z.ZodNullable<z.ZodUnknown>>;
@@ -974,8 +1048,8 @@ export declare const operationsReadinessResponseSchema: z.ZodObject<{
974
1048
  status: z.ZodEnum<{
975
1049
  unknown: "unknown";
976
1050
  pass: "pass";
977
- warn: "warn";
978
1051
  fail: "fail";
1052
+ warn: "warn";
979
1053
  }>;
980
1054
  summary: z.ZodString;
981
1055
  checkedAt: z.ZodString;
@@ -1025,9 +1099,9 @@ export declare const conversationFeedFilterSchema: z.ZodObject<{
1025
1099
  archived: "archived";
1026
1100
  }>>>;
1027
1101
  ownershipMode: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1102
+ hybrid: "hybrid";
1028
1103
  ai: "ai";
1029
1104
  human: "human";
1030
- hybrid: "hybrid";
1031
1105
  }>>>;
1032
1106
  channelKind: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1033
1107
  telegram: "telegram";
@@ -1057,9 +1131,9 @@ export declare const conversationFeedItemSchema: z.ZodObject<{
1057
1131
  archived: "archived";
1058
1132
  }>;
1059
1133
  ownershipMode: z.ZodEnum<{
1134
+ hybrid: "hybrid";
1060
1135
  ai: "ai";
1061
1136
  human: "human";
1062
- hybrid: "hybrid";
1063
1137
  }>;
1064
1138
  assistMode: z.ZodEnum<{
1065
1139
  off: "off";
@@ -1077,10 +1151,10 @@ export declare const conversationFeedItemSchema: z.ZodObject<{
1077
1151
  latestMessagePreview: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1078
1152
  latestMessageAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1079
1153
  latestActorKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
1080
- ai: "ai";
1081
1154
  customer: "customer";
1082
- operator: "operator";
1083
1155
  system: "system";
1156
+ operator: "operator";
1157
+ ai: "ai";
1084
1158
  }>>>;
1085
1159
  latestEventTitle: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1086
1160
  summaryText: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -1117,9 +1191,9 @@ export declare const linkedConversationSummarySchema: z.ZodObject<{
1117
1191
  archived: "archived";
1118
1192
  }>;
1119
1193
  ownershipMode: z.ZodEnum<{
1194
+ hybrid: "hybrid";
1120
1195
  ai: "ai";
1121
1196
  human: "human";
1122
- hybrid: "hybrid";
1123
1197
  }>;
1124
1198
  updatedAt: z.ZodString;
1125
1199
  latestMessagePreview: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -1142,8 +1216,8 @@ export declare const handoffRecordSchema: z.ZodObject<{
1142
1216
  }, z.core.$strip>;
1143
1217
  createdAt: z.ZodString;
1144
1218
  nextOwnershipMode: z.ZodDefault<z.ZodEnum<{
1145
- human: "human";
1146
1219
  hybrid: "hybrid";
1220
+ human: "human";
1147
1221
  }>>;
1148
1222
  }, z.core.$strip>;
1149
1223
  export declare const outboundPlanMediaDiscoveryRecordSchema: z.ZodObject<{
@@ -1200,10 +1274,10 @@ export declare const outboundPlanStepDiagnosticsSchema: z.ZodObject<{
1200
1274
  captionPreview: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1201
1275
  assetIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
1202
1276
  deliveryStatus: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
1277
+ failed: "failed";
1203
1278
  sent: "sent";
1204
1279
  simulated: "simulated";
1205
1280
  skipped: "skipped";
1206
- failed: "failed";
1207
1281
  }>>>;
1208
1282
  transportMessageRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1209
1283
  reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -1218,9 +1292,9 @@ export declare const outboundPlanDiagnosticsSchema: z.ZodObject<{
1218
1292
  final_outbound_plan: "final_outbound_plan";
1219
1293
  }>;
1220
1294
  status: z.ZodEnum<{
1295
+ failed: "failed";
1221
1296
  superseded: "superseded";
1222
1297
  sent: "sent";
1223
- failed: "failed";
1224
1298
  draft: "draft";
1225
1299
  partial: "partial";
1226
1300
  }>;
@@ -1284,10 +1358,10 @@ export declare const outboundPlanDiagnosticsSchema: z.ZodObject<{
1284
1358
  captionPreview: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1285
1359
  assetIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
1286
1360
  deliveryStatus: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
1361
+ failed: "failed";
1287
1362
  sent: "sent";
1288
1363
  simulated: "simulated";
1289
1364
  skipped: "skipped";
1290
- failed: "failed";
1291
1365
  }>>>;
1292
1366
  transportMessageRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1293
1367
  reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -1306,9 +1380,9 @@ export declare const opsListConversationFeedRequestSchema: z.ZodObject<{
1306
1380
  archived: "archived";
1307
1381
  }>>>;
1308
1382
  ownershipMode: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1383
+ hybrid: "hybrid";
1309
1384
  ai: "ai";
1310
1385
  human: "human";
1311
- hybrid: "hybrid";
1312
1386
  }>>>;
1313
1387
  channelKind: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1314
1388
  telegram: "telegram";
@@ -1339,9 +1413,9 @@ export declare const opsListConversationFeedResponseSchema: z.ZodObject<{
1339
1413
  archived: "archived";
1340
1414
  }>;
1341
1415
  ownershipMode: z.ZodEnum<{
1416
+ hybrid: "hybrid";
1342
1417
  ai: "ai";
1343
1418
  human: "human";
1344
- hybrid: "hybrid";
1345
1419
  }>;
1346
1420
  assistMode: z.ZodEnum<{
1347
1421
  off: "off";
@@ -1359,10 +1433,10 @@ export declare const opsListConversationFeedResponseSchema: z.ZodObject<{
1359
1433
  latestMessagePreview: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1360
1434
  latestMessageAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1361
1435
  latestActorKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
1362
- ai: "ai";
1363
1436
  customer: "customer";
1364
- operator: "operator";
1365
1437
  system: "system";
1438
+ operator: "operator";
1439
+ ai: "ai";
1366
1440
  }>>>;
1367
1441
  latestEventTitle: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1368
1442
  summaryText: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -1405,9 +1479,9 @@ export declare const opsGetConversationWorkspaceResponseSchema: z.ZodObject<{
1405
1479
  archived: "archived";
1406
1480
  }>;
1407
1481
  ownershipMode: z.ZodEnum<{
1482
+ hybrid: "hybrid";
1408
1483
  ai: "ai";
1409
1484
  human: "human";
1410
- hybrid: "hybrid";
1411
1485
  }>;
1412
1486
  assistMode: z.ZodEnum<{
1413
1487
  off: "off";
@@ -1425,10 +1499,10 @@ export declare const opsGetConversationWorkspaceResponseSchema: z.ZodObject<{
1425
1499
  latestMessagePreview: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1426
1500
  latestMessageAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1427
1501
  latestActorKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
1428
- ai: "ai";
1429
1502
  customer: "customer";
1430
- operator: "operator";
1431
1503
  system: "system";
1504
+ operator: "operator";
1505
+ ai: "ai";
1432
1506
  }>>>;
1433
1507
  latestEventTitle: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1434
1508
  summaryText: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -1467,9 +1541,9 @@ export declare const opsGetConversationWorkspaceResponseSchema: z.ZodObject<{
1467
1541
  }>;
1468
1542
  channelThreadRef: z.ZodString;
1469
1543
  ownershipMode: z.ZodEnum<{
1544
+ hybrid: "hybrid";
1470
1545
  ai: "ai";
1471
1546
  human: "human";
1472
- hybrid: "hybrid";
1473
1547
  }>;
1474
1548
  assistMode: z.ZodEnum<{
1475
1549
  off: "off";
@@ -1506,10 +1580,10 @@ export declare const opsGetConversationWorkspaceResponseSchema: z.ZodObject<{
1506
1580
  messageId: z.ZodString;
1507
1581
  conversationId: z.ZodString;
1508
1582
  authorKind: z.ZodEnum<{
1509
- ai: "ai";
1510
1583
  customer: "customer";
1511
- operator: "operator";
1512
1584
  system: "system";
1585
+ operator: "operator";
1586
+ ai: "ai";
1513
1587
  }>;
1514
1588
  deliveryKind: z.ZodEnum<{
1515
1589
  inbound: "inbound";
@@ -1546,6 +1620,15 @@ export declare const opsGetConversationWorkspaceResponseSchema: z.ZodObject<{
1546
1620
  "message.sent": "message.sent";
1547
1621
  "message.edited": "message.edited";
1548
1622
  "message.deleted": "message.deleted";
1623
+ "reply.burst.opened": "reply.burst.opened";
1624
+ "reply.burst.updated": "reply.burst.updated";
1625
+ "reply.burst.completed": "reply.burst.completed";
1626
+ "reply.job.scheduled": "reply.job.scheduled";
1627
+ "reply.job.started": "reply.job.started";
1628
+ "reply.job.completed": "reply.job.completed";
1629
+ "reply.job.failed": "reply.job.failed";
1630
+ "reply.job.superseded": "reply.job.superseded";
1631
+ "reply.job.cancelled": "reply.job.cancelled";
1549
1632
  "attachments.normalized": "attachments.normalized";
1550
1633
  "conversation.created": "conversation.created";
1551
1634
  "conversation.linked": "conversation.linked";
@@ -1568,10 +1651,10 @@ export declare const opsGetConversationWorkspaceResponseSchema: z.ZodObject<{
1568
1651
  }>;
1569
1652
  title: z.ZodString;
1570
1653
  actorKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
1571
- ai: "ai";
1572
1654
  customer: "customer";
1573
- operator: "operator";
1574
1655
  system: "system";
1656
+ operator: "operator";
1657
+ ai: "ai";
1575
1658
  }>>>;
1576
1659
  createdAt: z.ZodString;
1577
1660
  payload: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -1586,10 +1669,10 @@ export declare const opsGetConversationWorkspaceResponseSchema: z.ZodObject<{
1586
1669
  occurredAt: z.ZodString;
1587
1670
  title: z.ZodString;
1588
1671
  actorKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
1589
- ai: "ai";
1590
1672
  customer: "customer";
1591
- operator: "operator";
1592
1673
  system: "system";
1674
+ operator: "operator";
1675
+ ai: "ai";
1593
1676
  }>>>;
1594
1677
  textPreview: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1595
1678
  messageId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -1642,8 +1725,8 @@ export declare const opsGetConversationWorkspaceResponseSchema: z.ZodObject<{
1642
1725
  blocked: "blocked";
1643
1726
  }>;
1644
1727
  generationMode: z.ZodEnum<{
1645
- heuristic: "heuristic";
1646
1728
  model: "model";
1729
+ heuristic: "heuristic";
1647
1730
  }>;
1648
1731
  provider: z.ZodString;
1649
1732
  modelId: z.ZodString;
@@ -1665,8 +1748,8 @@ export declare const opsGetConversationWorkspaceResponseSchema: z.ZodObject<{
1665
1748
  docId: z.ZodString;
1666
1749
  kind: z.ZodEnum<{
1667
1750
  strategy: "strategy";
1668
- product: "product";
1669
1751
  policy: "policy";
1752
+ product: "product";
1670
1753
  example: "example";
1671
1754
  }>;
1672
1755
  title: z.ZodString;
@@ -1720,7 +1803,7 @@ export declare const opsGetConversationWorkspaceResponseSchema: z.ZodObject<{
1720
1803
  text: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1721
1804
  }, z.core.$strip>], "type">>;
1722
1805
  }, z.core.$strip>>>;
1723
- classification: z.ZodObject<{
1806
+ classification: z.ZodOptional<z.ZodObject<{
1724
1807
  primaryIntent: z.ZodString;
1725
1808
  secondaryIntents: z.ZodDefault<z.ZodArray<z.ZodString>>;
1726
1809
  readiness: z.ZodEnum<{
@@ -1731,7 +1814,7 @@ export declare const opsGetConversationWorkspaceResponseSchema: z.ZodObject<{
1731
1814
  emotion: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1732
1815
  confidence: z.ZodNumber;
1733
1816
  riskFlags: z.ZodDefault<z.ZodArray<z.ZodString>>;
1734
- }, z.core.$strip>;
1817
+ }, z.core.$strip>>;
1735
1818
  strategy: z.ZodObject<{
1736
1819
  selectedId: z.ZodString;
1737
1820
  candidateIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -1779,7 +1862,12 @@ export declare const opsGetConversationWorkspaceResponseSchema: z.ZodObject<{
1779
1862
  }, z.core.$strip>>>;
1780
1863
  turnAnalysis: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1781
1864
  output: z.ZodObject<{
1782
- classification: z.ZodObject<{
1865
+ strategyMatches: z.ZodArray<z.ZodObject<{
1866
+ strategyId: z.ZodString;
1867
+ score: z.ZodNumber;
1868
+ reason: z.ZodString;
1869
+ }, z.core.$strip>>;
1870
+ classification: z.ZodOptional<z.ZodObject<{
1783
1871
  primaryIntent: z.ZodString;
1784
1872
  secondaryIntents: z.ZodDefault<z.ZodArray<z.ZodString>>;
1785
1873
  readiness: z.ZodEnum<{
@@ -1790,25 +1878,8 @@ export declare const opsGetConversationWorkspaceResponseSchema: z.ZodObject<{
1790
1878
  emotion: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1791
1879
  confidence: z.ZodNumber;
1792
1880
  riskFlags: z.ZodDefault<z.ZodArray<z.ZodString>>;
1793
- }, z.core.$strip>;
1794
- strategy: z.ZodObject<{
1795
- selectedId: z.ZodString;
1796
- candidateIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
1797
- rationaleSummary: z.ZodString;
1798
- }, z.core.$strip>;
1799
- customerGoal: z.ZodString;
1800
- relevantProductCodes: z.ZodDefault<z.ZodArray<z.ZodString>>;
1801
- relevantPolicyIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
1802
- missingFacts: z.ZodDefault<z.ZodArray<z.ZodString>>;
1803
- handoffSuggested: z.ZodObject<{
1804
- needed: z.ZodBoolean;
1805
- reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1806
- priority: z.ZodDefault<z.ZodEnum<{
1807
- normal: "normal";
1808
- urgent: "urgent";
1809
- }>>;
1810
- }, z.core.$strip>;
1811
- replyGoal: z.ZodString;
1881
+ }, z.core.$strip>>;
1882
+ relevantProductCodes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1812
1883
  }, z.core.$strip>;
1813
1884
  promptMeta: z.ZodObject<{
1814
1885
  promptId: z.ZodString;
@@ -1819,8 +1890,8 @@ export declare const opsGetConversationWorkspaceResponseSchema: z.ZodObject<{
1819
1890
  }, z.core.$strip>;
1820
1891
  validationIssues: z.ZodDefault<z.ZodArray<z.ZodString>>;
1821
1892
  generationMode: z.ZodEnum<{
1822
- heuristic: "heuristic";
1823
1893
  model: "model";
1894
+ heuristic: "heuristic";
1824
1895
  }>;
1825
1896
  }, z.core.$strip>>>;
1826
1897
  decisionStage: z.ZodDefault<z.ZodNullable<z.ZodObject<{
@@ -1833,10 +1904,42 @@ export declare const opsGetConversationWorkspaceResponseSchema: z.ZodObject<{
1833
1904
  }, z.core.$strip>;
1834
1905
  validationIssues: z.ZodDefault<z.ZodArray<z.ZodString>>;
1835
1906
  generationMode: z.ZodEnum<{
1836
- heuristic: "heuristic";
1837
1907
  model: "model";
1908
+ heuristic: "heuristic";
1838
1909
  }>;
1839
1910
  protocolResponseKind: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1911
+ stepHistory: z.ZodDefault<z.ZodArray<z.ZodObject<{
1912
+ stepId: z.ZodString;
1913
+ stepType: z.ZodEnum<{
1914
+ "handoff.request": "handoff.request";
1915
+ request_media_folders: "request_media_folders";
1916
+ request_media_folder_contents: "request_media_folder_contents";
1917
+ "state.cart.apply_operations": "state.cart.apply_operations";
1918
+ "channel.send_messages": "channel.send_messages";
1919
+ }>;
1920
+ status: z.ZodEnum<{
1921
+ failed: "failed";
1922
+ served: "served";
1923
+ executed: "executed";
1924
+ rejected: "rejected";
1925
+ }>;
1926
+ inputSummary: z.ZodString;
1927
+ resultSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1928
+ errorSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1929
+ changedStateSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1930
+ startedAt: z.ZodString;
1931
+ finishedAt: z.ZodString;
1932
+ }, z.core.$strip>>>;
1933
+ promptCache: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1934
+ cacheablePrefixHash: z.ZodString;
1935
+ volatileTailHash: z.ZodString;
1936
+ cacheKey: z.ZodString;
1937
+ cacheHit: z.ZodDefault<z.ZodBoolean>;
1938
+ }, z.core.$strip>>>;
1939
+ fallbackApplied: z.ZodDefault<z.ZodBoolean>;
1940
+ fallbackKind: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1941
+ fallbackStage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1942
+ fallbackSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1840
1943
  mediaProfileVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1841
1944
  mediaProfileVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1842
1945
  mediaDiscovery: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -1865,10 +1968,28 @@ export declare const opsGetConversationWorkspaceResponseSchema: z.ZodObject<{
1865
1968
  errorMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1866
1969
  }, z.core.$strip>>>;
1867
1970
  }, z.core.$strip>>>;
1971
+ verificationOutput: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1972
+ status: z.ZodEnum<{
1973
+ failed: "failed";
1974
+ passed: "passed";
1975
+ }>;
1976
+ blockingIssues: z.ZodDefault<z.ZodArray<z.ZodObject<{
1977
+ type: z.ZodEnum<{
1978
+ policy_violation: "policy_violation";
1979
+ asset_reference_invalid: "asset_reference_invalid";
1980
+ cart_state_mismatch: "cart_state_mismatch";
1981
+ arithmetic_error: "arithmetic_error";
1982
+ required_step_missing: "required_step_missing";
1983
+ }>;
1984
+ message: z.ZodString;
1985
+ }, z.core.$strip>>>;
1986
+ remarks: z.ZodDefault<z.ZodArray<z.ZodString>>;
1987
+ }, z.core.$strip>>>;
1868
1988
  generationAttempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
1869
1989
  stage: z.ZodEnum<{
1870
1990
  turn_analyze: "turn_analyze";
1871
1991
  turn_decide: "turn_decide";
1992
+ verify_outcome: "verify_outcome";
1872
1993
  review_artifact: "review_artifact";
1873
1994
  review_message: "review_message";
1874
1995
  }>;
@@ -1888,6 +2009,16 @@ export declare const opsGetConversationWorkspaceResponseSchema: z.ZodObject<{
1888
2009
  semanticVersion: z.ZodString;
1889
2010
  renderedHash: z.ZodString;
1890
2011
  }, z.core.$strip>;
2012
+ promptDebug: z.ZodDefault<z.ZodNullable<z.ZodObject<{
2013
+ system: z.ZodString;
2014
+ user: z.ZodString;
2015
+ context: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2016
+ templateRefs: z.ZodDefault<z.ZodNullable<z.ZodObject<{
2017
+ systemTemplate: z.ZodString;
2018
+ userTemplate: z.ZodString;
2019
+ partials: z.ZodDefault<z.ZodArray<z.ZodString>>;
2020
+ }, z.core.$strip>>>;
2021
+ }, z.core.$strip>>>;
1891
2022
  provider: z.ZodString;
1892
2023
  modelId: z.ZodString;
1893
2024
  finishReason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -1897,13 +2028,58 @@ export declare const opsGetConversationWorkspaceResponseSchema: z.ZodObject<{
1897
2028
  totalTokens: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1898
2029
  }, z.core.$strip>>>;
1899
2030
  latencyMs: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
2031
+ providerAttemptCount: z.ZodDefault<z.ZodNumber>;
2032
+ providerRetryCount: z.ZodDefault<z.ZodNumber>;
2033
+ providerAttempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
2034
+ provider: z.ZodString;
2035
+ modelId: z.ZodString;
2036
+ attemptNumber: z.ZodNumber;
2037
+ status: z.ZodEnum<{
2038
+ failed: "failed";
2039
+ succeeded: "succeeded";
2040
+ }>;
2041
+ startedAt: z.ZodString;
2042
+ finishedAt: z.ZodString;
2043
+ latencyMs: z.ZodNumber;
2044
+ retryable: z.ZodDefault<z.ZodBoolean>;
2045
+ failureCategory: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2046
+ errorSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2047
+ backoffMs: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
2048
+ }, z.core.$strip>>>;
2049
+ validationLayer: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
2050
+ provider: "provider";
2051
+ configuration: "configuration";
2052
+ schema_parse: "schema_parse";
2053
+ protocol_validation: "protocol_validation";
2054
+ verifier: "verifier";
2055
+ }>>>;
1900
2056
  retryContext: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1901
2057
  priorAttemptNumber: z.ZodNumber;
1902
2058
  errorSummary: z.ZodString;
1903
2059
  validationIssues: z.ZodDefault<z.ZodArray<z.ZodString>>;
2060
+ priorFailures: z.ZodDefault<z.ZodArray<z.ZodObject<{
2061
+ attemptNumber: z.ZodNumber;
2062
+ errorSummary: z.ZodString;
2063
+ validationIssues: z.ZodDefault<z.ZodArray<z.ZodString>>;
2064
+ }, z.core.$strip>>>;
1904
2065
  }, z.core.$strip>>>;
1905
2066
  validationIssues: z.ZodDefault<z.ZodArray<z.ZodString>>;
1906
2067
  errorSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2068
+ rawOutput: z.ZodDefault<z.ZodNullable<z.ZodUnknown>>;
2069
+ }, z.core.$strip>>>;
2070
+ executionProfile: z.ZodDefault<z.ZodNullable<z.ZodObject<{
2071
+ totalRuntimeMs: z.ZodDefault<z.ZodNumber>;
2072
+ analysisMs: z.ZodDefault<z.ZodNumber>;
2073
+ decisionMs: z.ZodDefault<z.ZodNumber>;
2074
+ reviewMs: z.ZodDefault<z.ZodNumber>;
2075
+ generationAttemptCount: z.ZodDefault<z.ZodNumber>;
2076
+ correctiveRetryCount: z.ZodDefault<z.ZodNumber>;
2077
+ failedAttemptCount: z.ZodDefault<z.ZodNumber>;
2078
+ providerAttemptCount: z.ZodDefault<z.ZodNumber>;
2079
+ providerRetryCount: z.ZodDefault<z.ZodNumber>;
2080
+ validationIssueCount: z.ZodDefault<z.ZodNumber>;
2081
+ slowestStage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2082
+ slowestAttemptLatencyMs: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1907
2083
  }, z.core.$strip>>>;
1908
2084
  historyPacking: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1909
2085
  rawCharacterBudget: z.ZodNumber;
@@ -1914,6 +2090,10 @@ export declare const opsGetConversationWorkspaceResponseSchema: z.ZodObject<{
1914
2090
  }, z.core.$strip>>>;
1915
2091
  reviewOutput: z.ZodDefault<z.ZodNullable<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
1916
2092
  validationIssues: z.ZodDefault<z.ZodArray<z.ZodString>>;
2093
+ fallbackApplied: z.ZodDefault<z.ZodBoolean>;
2094
+ fallbackKind: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2095
+ fallbackStage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2096
+ fallbackSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1917
2097
  actionOutcomes: z.ZodDefault<z.ZodArray<z.ZodObject<{
1918
2098
  actionType: z.ZodEnum<{
1919
2099
  none: "none";
@@ -2036,8 +2216,8 @@ export declare const opsGetConversationWorkspaceResponseSchema: z.ZodObject<{
2036
2216
  status: z.ZodEnum<{
2037
2217
  draft: "draft";
2038
2218
  cancelled: "cancelled";
2039
- paid: "paid";
2040
2219
  fulfilled: "fulfilled";
2220
+ paid: "paid";
2041
2221
  }>;
2042
2222
  occurredAt: z.ZodString;
2043
2223
  totalLabel: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -2062,8 +2242,8 @@ export declare const opsGetConversationWorkspaceResponseSchema: z.ZodObject<{
2062
2242
  }>;
2063
2243
  field: z.ZodString;
2064
2244
  actorType: z.ZodEnum<{
2065
- operator: "operator";
2066
2245
  system: "system";
2246
+ operator: "operator";
2067
2247
  runtime: "runtime";
2068
2248
  }>;
2069
2249
  source: z.ZodEnum<{
@@ -2078,8 +2258,8 @@ export declare const opsGetConversationWorkspaceResponseSchema: z.ZodObject<{
2078
2258
  action: z.ZodEnum<{
2079
2259
  applied: "applied";
2080
2260
  rejected: "rejected";
2081
- merged: "merged";
2082
2261
  noop: "noop";
2262
+ merged: "merged";
2083
2263
  }>;
2084
2264
  reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2085
2265
  previousValue: z.ZodOptional<z.ZodUnknown>;
@@ -2095,10 +2275,10 @@ export declare const opsGetConversationWorkspaceResponseSchema: z.ZodObject<{
2095
2275
  title: z.ZodString;
2096
2276
  description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2097
2277
  kind: z.ZodEnum<{
2098
- bundle: "bundle";
2099
2278
  service: "service";
2100
2279
  base: "base";
2101
2280
  option: "option";
2281
+ bundle: "bundle";
2102
2282
  }>;
2103
2283
  status: z.ZodEnum<{
2104
2284
  active: "active";
@@ -2225,8 +2405,8 @@ export declare const opsGetConversationWorkspaceResponseSchema: z.ZodObject<{
2225
2405
  title: z.ZodString;
2226
2406
  status: z.ZodEnum<{
2227
2407
  cancelled: "cancelled";
2228
- paid: "paid";
2229
2408
  fulfilled: "fulfilled";
2409
+ paid: "paid";
2230
2410
  confirmed: "confirmed";
2231
2411
  }>;
2232
2412
  currency: z.ZodString;
@@ -2242,10 +2422,10 @@ export declare const opsGetConversationWorkspaceResponseSchema: z.ZodObject<{
2242
2422
  productCode: z.ZodString;
2243
2423
  productTitle: z.ZodString;
2244
2424
  productKind: z.ZodEnum<{
2245
- bundle: "bundle";
2246
2425
  service: "service";
2247
2426
  base: "base";
2248
2427
  option: "option";
2428
+ bundle: "bundle";
2249
2429
  }>;
2250
2430
  parentItemId: z.ZodNullable<z.ZodString>;
2251
2431
  quantity: z.ZodNumber;
@@ -2320,8 +2500,8 @@ export declare const opsGetConversationWorkspaceResponseSchema: z.ZodObject<{
2320
2500
  lastEvaluatedAt: z.ZodString;
2321
2501
  createdBy: z.ZodObject<{
2322
2502
  actorType: z.ZodEnum<{
2323
- operator: "operator";
2324
2503
  system: "system";
2504
+ operator: "operator";
2325
2505
  scenario: "scenario";
2326
2506
  }>;
2327
2507
  operatorId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -2356,9 +2536,9 @@ export declare const opsGetConversationWorkspaceResponseSchema: z.ZodObject<{
2356
2536
  archived: "archived";
2357
2537
  }>;
2358
2538
  ownershipMode: z.ZodEnum<{
2539
+ hybrid: "hybrid";
2359
2540
  ai: "ai";
2360
2541
  human: "human";
2361
- hybrid: "hybrid";
2362
2542
  }>;
2363
2543
  updatedAt: z.ZodString;
2364
2544
  latestMessagePreview: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -2381,8 +2561,8 @@ export declare const opsGetConversationWorkspaceResponseSchema: z.ZodObject<{
2381
2561
  }, z.core.$strip>;
2382
2562
  createdAt: z.ZodString;
2383
2563
  nextOwnershipMode: z.ZodDefault<z.ZodEnum<{
2384
- human: "human";
2385
2564
  hybrid: "hybrid";
2565
+ human: "human";
2386
2566
  }>>;
2387
2567
  }, z.core.$strip>>>;
2388
2568
  outboundPlans: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -2393,9 +2573,9 @@ export declare const opsGetConversationWorkspaceResponseSchema: z.ZodObject<{
2393
2573
  final_outbound_plan: "final_outbound_plan";
2394
2574
  }>;
2395
2575
  status: z.ZodEnum<{
2576
+ failed: "failed";
2396
2577
  superseded: "superseded";
2397
2578
  sent: "sent";
2398
- failed: "failed";
2399
2579
  draft: "draft";
2400
2580
  partial: "partial";
2401
2581
  }>;
@@ -2459,10 +2639,10 @@ export declare const opsGetConversationWorkspaceResponseSchema: z.ZodObject<{
2459
2639
  captionPreview: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2460
2640
  assetIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
2461
2641
  deliveryStatus: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
2642
+ failed: "failed";
2462
2643
  sent: "sent";
2463
2644
  simulated: "simulated";
2464
2645
  skipped: "skipped";
2465
- failed: "failed";
2466
2646
  }>>>;
2467
2647
  transportMessageRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2468
2648
  reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -2477,9 +2657,9 @@ export declare const opsGetConversationWorkspaceResponseSchema: z.ZodObject<{
2477
2657
  export declare const opsSetOwnershipModeRequestSchema: z.ZodObject<{
2478
2658
  conversationId: z.ZodString;
2479
2659
  ownershipMode: z.ZodEnum<{
2660
+ hybrid: "hybrid";
2480
2661
  ai: "ai";
2481
2662
  human: "human";
2482
- hybrid: "hybrid";
2483
2663
  }>;
2484
2664
  requestedBy: z.ZodObject<{
2485
2665
  operatorId: z.ZodString;
@@ -2506,9 +2686,9 @@ export declare const opsSetOwnershipModeResponseSchema: z.ZodObject<{
2506
2686
  }>;
2507
2687
  channelThreadRef: z.ZodString;
2508
2688
  ownershipMode: z.ZodEnum<{
2689
+ hybrid: "hybrid";
2509
2690
  ai: "ai";
2510
2691
  human: "human";
2511
- hybrid: "hybrid";
2512
2692
  }>;
2513
2693
  assistMode: z.ZodEnum<{
2514
2694
  off: "off";
@@ -2549,6 +2729,15 @@ export declare const opsSetOwnershipModeResponseSchema: z.ZodObject<{
2549
2729
  "message.sent": "message.sent";
2550
2730
  "message.edited": "message.edited";
2551
2731
  "message.deleted": "message.deleted";
2732
+ "reply.burst.opened": "reply.burst.opened";
2733
+ "reply.burst.updated": "reply.burst.updated";
2734
+ "reply.burst.completed": "reply.burst.completed";
2735
+ "reply.job.scheduled": "reply.job.scheduled";
2736
+ "reply.job.started": "reply.job.started";
2737
+ "reply.job.completed": "reply.job.completed";
2738
+ "reply.job.failed": "reply.job.failed";
2739
+ "reply.job.superseded": "reply.job.superseded";
2740
+ "reply.job.cancelled": "reply.job.cancelled";
2552
2741
  "attachments.normalized": "attachments.normalized";
2553
2742
  "conversation.created": "conversation.created";
2554
2743
  "conversation.linked": "conversation.linked";
@@ -2571,11 +2760,11 @@ export declare const opsSetOwnershipModeResponseSchema: z.ZodObject<{
2571
2760
  }>;
2572
2761
  title: z.ZodString;
2573
2762
  actorKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
2574
- ai: "ai";
2575
2763
  customer: "customer";
2576
- operator: "operator";
2577
2764
  system: "system";
2578
- }>>>;
2765
+ operator: "operator";
2766
+ ai: "ai";
2767
+ }>>>;
2579
2768
  createdAt: z.ZodString;
2580
2769
  payload: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2581
2770
  }, z.core.$strip>;
@@ -2597,9 +2786,9 @@ export declare const opsSetOwnershipModeResponseSchema: z.ZodObject<{
2597
2786
  archived: "archived";
2598
2787
  }>;
2599
2788
  ownershipMode: z.ZodEnum<{
2789
+ hybrid: "hybrid";
2600
2790
  ai: "ai";
2601
2791
  human: "human";
2602
- hybrid: "hybrid";
2603
2792
  }>;
2604
2793
  assistMode: z.ZodEnum<{
2605
2794
  off: "off";
@@ -2617,10 +2806,10 @@ export declare const opsSetOwnershipModeResponseSchema: z.ZodObject<{
2617
2806
  latestMessagePreview: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2618
2807
  latestMessageAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2619
2808
  latestActorKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
2620
- ai: "ai";
2621
2809
  customer: "customer";
2622
- operator: "operator";
2623
2810
  system: "system";
2811
+ operator: "operator";
2812
+ ai: "ai";
2624
2813
  }>>>;
2625
2814
  latestEventTitle: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2626
2815
  summaryText: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -2649,8 +2838,8 @@ export declare const opsStartHandoffRequestSchema: z.ZodObject<{
2649
2838
  displayName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2650
2839
  }, z.core.$strip>;
2651
2840
  nextOwnershipMode: z.ZodDefault<z.ZodEnum<{
2652
- human: "human";
2653
2841
  hybrid: "hybrid";
2842
+ human: "human";
2654
2843
  }>>;
2655
2844
  }, z.core.$strip>;
2656
2845
  export declare const opsStartHandoffResponseSchema: z.ZodObject<{
@@ -2672,9 +2861,9 @@ export declare const opsStartHandoffResponseSchema: z.ZodObject<{
2672
2861
  }>;
2673
2862
  channelThreadRef: z.ZodString;
2674
2863
  ownershipMode: z.ZodEnum<{
2864
+ hybrid: "hybrid";
2675
2865
  ai: "ai";
2676
2866
  human: "human";
2677
- hybrid: "hybrid";
2678
2867
  }>;
2679
2868
  assistMode: z.ZodEnum<{
2680
2869
  off: "off";
@@ -2717,8 +2906,8 @@ export declare const opsStartHandoffResponseSchema: z.ZodObject<{
2717
2906
  }, z.core.$strip>;
2718
2907
  createdAt: z.ZodString;
2719
2908
  nextOwnershipMode: z.ZodDefault<z.ZodEnum<{
2720
- human: "human";
2721
2909
  hybrid: "hybrid";
2910
+ human: "human";
2722
2911
  }>>;
2723
2912
  }, z.core.$strip>;
2724
2913
  ownershipEvent: z.ZodObject<{
@@ -2729,6 +2918,15 @@ export declare const opsStartHandoffResponseSchema: z.ZodObject<{
2729
2918
  "message.sent": "message.sent";
2730
2919
  "message.edited": "message.edited";
2731
2920
  "message.deleted": "message.deleted";
2921
+ "reply.burst.opened": "reply.burst.opened";
2922
+ "reply.burst.updated": "reply.burst.updated";
2923
+ "reply.burst.completed": "reply.burst.completed";
2924
+ "reply.job.scheduled": "reply.job.scheduled";
2925
+ "reply.job.started": "reply.job.started";
2926
+ "reply.job.completed": "reply.job.completed";
2927
+ "reply.job.failed": "reply.job.failed";
2928
+ "reply.job.superseded": "reply.job.superseded";
2929
+ "reply.job.cancelled": "reply.job.cancelled";
2732
2930
  "attachments.normalized": "attachments.normalized";
2733
2931
  "conversation.created": "conversation.created";
2734
2932
  "conversation.linked": "conversation.linked";
@@ -2751,10 +2949,10 @@ export declare const opsStartHandoffResponseSchema: z.ZodObject<{
2751
2949
  }>;
2752
2950
  title: z.ZodString;
2753
2951
  actorKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
2754
- ai: "ai";
2755
2952
  customer: "customer";
2756
- operator: "operator";
2757
2953
  system: "system";
2954
+ operator: "operator";
2955
+ ai: "ai";
2758
2956
  }>>>;
2759
2957
  createdAt: z.ZodString;
2760
2958
  payload: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -2777,9 +2975,9 @@ export declare const opsStartHandoffResponseSchema: z.ZodObject<{
2777
2975
  archived: "archived";
2778
2976
  }>;
2779
2977
  ownershipMode: z.ZodEnum<{
2978
+ hybrid: "hybrid";
2780
2979
  ai: "ai";
2781
2980
  human: "human";
2782
- hybrid: "hybrid";
2783
2981
  }>;
2784
2982
  assistMode: z.ZodEnum<{
2785
2983
  off: "off";
@@ -2797,10 +2995,10 @@ export declare const opsStartHandoffResponseSchema: z.ZodObject<{
2797
2995
  latestMessagePreview: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2798
2996
  latestMessageAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2799
2997
  latestActorKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
2800
- ai: "ai";
2801
2998
  customer: "customer";
2802
- operator: "operator";
2803
2999
  system: "system";
3000
+ operator: "operator";
3001
+ ai: "ai";
2804
3002
  }>>>;
2805
3003
  latestEventTitle: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2806
3004
  summaryText: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -2856,9 +3054,9 @@ export declare const opsAddOperatorNoteResponseSchema: z.ZodObject<{
2856
3054
  archived: "archived";
2857
3055
  }>;
2858
3056
  ownershipMode: z.ZodEnum<{
3057
+ hybrid: "hybrid";
2859
3058
  ai: "ai";
2860
3059
  human: "human";
2861
- hybrid: "hybrid";
2862
3060
  }>;
2863
3061
  assistMode: z.ZodEnum<{
2864
3062
  off: "off";
@@ -2876,10 +3074,10 @@ export declare const opsAddOperatorNoteResponseSchema: z.ZodObject<{
2876
3074
  latestMessagePreview: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2877
3075
  latestMessageAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2878
3076
  latestActorKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
2879
- ai: "ai";
2880
3077
  customer: "customer";
2881
- operator: "operator";
2882
3078
  system: "system";
3079
+ operator: "operator";
3080
+ ai: "ai";
2883
3081
  }>>>;
2884
3082
  latestEventTitle: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2885
3083
  summaryText: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -2928,9 +3126,9 @@ export declare const opsSendOperatorMessageResponseSchema: z.ZodObject<{
2928
3126
  }>;
2929
3127
  channelThreadRef: z.ZodString;
2930
3128
  ownershipMode: z.ZodEnum<{
3129
+ hybrid: "hybrid";
2931
3130
  ai: "ai";
2932
3131
  human: "human";
2933
- hybrid: "hybrid";
2934
3132
  }>;
2935
3133
  assistMode: z.ZodEnum<{
2936
3134
  off: "off";
@@ -2967,10 +3165,10 @@ export declare const opsSendOperatorMessageResponseSchema: z.ZodObject<{
2967
3165
  messageId: z.ZodString;
2968
3166
  conversationId: z.ZodString;
2969
3167
  authorKind: z.ZodEnum<{
2970
- ai: "ai";
2971
3168
  customer: "customer";
2972
- operator: "operator";
2973
3169
  system: "system";
3170
+ operator: "operator";
3171
+ ai: "ai";
2974
3172
  }>;
2975
3173
  deliveryKind: z.ZodEnum<{
2976
3174
  inbound: "inbound";
@@ -3007,6 +3205,15 @@ export declare const opsSendOperatorMessageResponseSchema: z.ZodObject<{
3007
3205
  "message.sent": "message.sent";
3008
3206
  "message.edited": "message.edited";
3009
3207
  "message.deleted": "message.deleted";
3208
+ "reply.burst.opened": "reply.burst.opened";
3209
+ "reply.burst.updated": "reply.burst.updated";
3210
+ "reply.burst.completed": "reply.burst.completed";
3211
+ "reply.job.scheduled": "reply.job.scheduled";
3212
+ "reply.job.started": "reply.job.started";
3213
+ "reply.job.completed": "reply.job.completed";
3214
+ "reply.job.failed": "reply.job.failed";
3215
+ "reply.job.superseded": "reply.job.superseded";
3216
+ "reply.job.cancelled": "reply.job.cancelled";
3010
3217
  "attachments.normalized": "attachments.normalized";
3011
3218
  "conversation.created": "conversation.created";
3012
3219
  "conversation.linked": "conversation.linked";
@@ -3029,10 +3236,10 @@ export declare const opsSendOperatorMessageResponseSchema: z.ZodObject<{
3029
3236
  }>;
3030
3237
  title: z.ZodString;
3031
3238
  actorKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
3032
- ai: "ai";
3033
3239
  customer: "customer";
3034
- operator: "operator";
3035
3240
  system: "system";
3241
+ operator: "operator";
3242
+ ai: "ai";
3036
3243
  }>>>;
3037
3244
  createdAt: z.ZodString;
3038
3245
  payload: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -3047,10 +3254,10 @@ export declare const opsSendOperatorMessageResponseSchema: z.ZodObject<{
3047
3254
  occurredAt: z.ZodString;
3048
3255
  title: z.ZodString;
3049
3256
  actorKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
3050
- ai: "ai";
3051
3257
  customer: "customer";
3052
- operator: "operator";
3053
3258
  system: "system";
3259
+ operator: "operator";
3260
+ ai: "ai";
3054
3261
  }>>>;
3055
3262
  textPreview: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3056
3263
  messageId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -3103,8 +3310,8 @@ export declare const opsSendOperatorMessageResponseSchema: z.ZodObject<{
3103
3310
  blocked: "blocked";
3104
3311
  }>;
3105
3312
  generationMode: z.ZodEnum<{
3106
- heuristic: "heuristic";
3107
3313
  model: "model";
3314
+ heuristic: "heuristic";
3108
3315
  }>;
3109
3316
  provider: z.ZodString;
3110
3317
  modelId: z.ZodString;
@@ -3126,8 +3333,8 @@ export declare const opsSendOperatorMessageResponseSchema: z.ZodObject<{
3126
3333
  docId: z.ZodString;
3127
3334
  kind: z.ZodEnum<{
3128
3335
  strategy: "strategy";
3129
- product: "product";
3130
3336
  policy: "policy";
3337
+ product: "product";
3131
3338
  example: "example";
3132
3339
  }>;
3133
3340
  title: z.ZodString;
@@ -3181,7 +3388,7 @@ export declare const opsSendOperatorMessageResponseSchema: z.ZodObject<{
3181
3388
  text: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3182
3389
  }, z.core.$strip>], "type">>;
3183
3390
  }, z.core.$strip>>>;
3184
- classification: z.ZodObject<{
3391
+ classification: z.ZodOptional<z.ZodObject<{
3185
3392
  primaryIntent: z.ZodString;
3186
3393
  secondaryIntents: z.ZodDefault<z.ZodArray<z.ZodString>>;
3187
3394
  readiness: z.ZodEnum<{
@@ -3192,7 +3399,7 @@ export declare const opsSendOperatorMessageResponseSchema: z.ZodObject<{
3192
3399
  emotion: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3193
3400
  confidence: z.ZodNumber;
3194
3401
  riskFlags: z.ZodDefault<z.ZodArray<z.ZodString>>;
3195
- }, z.core.$strip>;
3402
+ }, z.core.$strip>>;
3196
3403
  strategy: z.ZodObject<{
3197
3404
  selectedId: z.ZodString;
3198
3405
  candidateIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -3240,7 +3447,12 @@ export declare const opsSendOperatorMessageResponseSchema: z.ZodObject<{
3240
3447
  }, z.core.$strip>>>;
3241
3448
  turnAnalysis: z.ZodDefault<z.ZodNullable<z.ZodObject<{
3242
3449
  output: z.ZodObject<{
3243
- classification: z.ZodObject<{
3450
+ strategyMatches: z.ZodArray<z.ZodObject<{
3451
+ strategyId: z.ZodString;
3452
+ score: z.ZodNumber;
3453
+ reason: z.ZodString;
3454
+ }, z.core.$strip>>;
3455
+ classification: z.ZodOptional<z.ZodObject<{
3244
3456
  primaryIntent: z.ZodString;
3245
3457
  secondaryIntents: z.ZodDefault<z.ZodArray<z.ZodString>>;
3246
3458
  readiness: z.ZodEnum<{
@@ -3251,25 +3463,8 @@ export declare const opsSendOperatorMessageResponseSchema: z.ZodObject<{
3251
3463
  emotion: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3252
3464
  confidence: z.ZodNumber;
3253
3465
  riskFlags: z.ZodDefault<z.ZodArray<z.ZodString>>;
3254
- }, z.core.$strip>;
3255
- strategy: z.ZodObject<{
3256
- selectedId: z.ZodString;
3257
- candidateIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
3258
- rationaleSummary: z.ZodString;
3259
- }, z.core.$strip>;
3260
- customerGoal: z.ZodString;
3261
- relevantProductCodes: z.ZodDefault<z.ZodArray<z.ZodString>>;
3262
- relevantPolicyIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
3263
- missingFacts: z.ZodDefault<z.ZodArray<z.ZodString>>;
3264
- handoffSuggested: z.ZodObject<{
3265
- needed: z.ZodBoolean;
3266
- reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3267
- priority: z.ZodDefault<z.ZodEnum<{
3268
- normal: "normal";
3269
- urgent: "urgent";
3270
- }>>;
3271
- }, z.core.$strip>;
3272
- replyGoal: z.ZodString;
3466
+ }, z.core.$strip>>;
3467
+ relevantProductCodes: z.ZodOptional<z.ZodArray<z.ZodString>>;
3273
3468
  }, z.core.$strip>;
3274
3469
  promptMeta: z.ZodObject<{
3275
3470
  promptId: z.ZodString;
@@ -3280,8 +3475,8 @@ export declare const opsSendOperatorMessageResponseSchema: z.ZodObject<{
3280
3475
  }, z.core.$strip>;
3281
3476
  validationIssues: z.ZodDefault<z.ZodArray<z.ZodString>>;
3282
3477
  generationMode: z.ZodEnum<{
3283
- heuristic: "heuristic";
3284
3478
  model: "model";
3479
+ heuristic: "heuristic";
3285
3480
  }>;
3286
3481
  }, z.core.$strip>>>;
3287
3482
  decisionStage: z.ZodDefault<z.ZodNullable<z.ZodObject<{
@@ -3294,10 +3489,42 @@ export declare const opsSendOperatorMessageResponseSchema: z.ZodObject<{
3294
3489
  }, z.core.$strip>;
3295
3490
  validationIssues: z.ZodDefault<z.ZodArray<z.ZodString>>;
3296
3491
  generationMode: z.ZodEnum<{
3297
- heuristic: "heuristic";
3298
3492
  model: "model";
3493
+ heuristic: "heuristic";
3299
3494
  }>;
3300
3495
  protocolResponseKind: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3496
+ stepHistory: z.ZodDefault<z.ZodArray<z.ZodObject<{
3497
+ stepId: z.ZodString;
3498
+ stepType: z.ZodEnum<{
3499
+ "handoff.request": "handoff.request";
3500
+ request_media_folders: "request_media_folders";
3501
+ request_media_folder_contents: "request_media_folder_contents";
3502
+ "state.cart.apply_operations": "state.cart.apply_operations";
3503
+ "channel.send_messages": "channel.send_messages";
3504
+ }>;
3505
+ status: z.ZodEnum<{
3506
+ failed: "failed";
3507
+ served: "served";
3508
+ executed: "executed";
3509
+ rejected: "rejected";
3510
+ }>;
3511
+ inputSummary: z.ZodString;
3512
+ resultSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3513
+ errorSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3514
+ changedStateSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3515
+ startedAt: z.ZodString;
3516
+ finishedAt: z.ZodString;
3517
+ }, z.core.$strip>>>;
3518
+ promptCache: z.ZodDefault<z.ZodNullable<z.ZodObject<{
3519
+ cacheablePrefixHash: z.ZodString;
3520
+ volatileTailHash: z.ZodString;
3521
+ cacheKey: z.ZodString;
3522
+ cacheHit: z.ZodDefault<z.ZodBoolean>;
3523
+ }, z.core.$strip>>>;
3524
+ fallbackApplied: z.ZodDefault<z.ZodBoolean>;
3525
+ fallbackKind: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3526
+ fallbackStage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3527
+ fallbackSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3301
3528
  mediaProfileVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3302
3529
  mediaProfileVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3303
3530
  mediaDiscovery: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -3326,10 +3553,28 @@ export declare const opsSendOperatorMessageResponseSchema: z.ZodObject<{
3326
3553
  errorMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3327
3554
  }, z.core.$strip>>>;
3328
3555
  }, z.core.$strip>>>;
3556
+ verificationOutput: z.ZodDefault<z.ZodNullable<z.ZodObject<{
3557
+ status: z.ZodEnum<{
3558
+ failed: "failed";
3559
+ passed: "passed";
3560
+ }>;
3561
+ blockingIssues: z.ZodDefault<z.ZodArray<z.ZodObject<{
3562
+ type: z.ZodEnum<{
3563
+ policy_violation: "policy_violation";
3564
+ asset_reference_invalid: "asset_reference_invalid";
3565
+ cart_state_mismatch: "cart_state_mismatch";
3566
+ arithmetic_error: "arithmetic_error";
3567
+ required_step_missing: "required_step_missing";
3568
+ }>;
3569
+ message: z.ZodString;
3570
+ }, z.core.$strip>>>;
3571
+ remarks: z.ZodDefault<z.ZodArray<z.ZodString>>;
3572
+ }, z.core.$strip>>>;
3329
3573
  generationAttempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
3330
3574
  stage: z.ZodEnum<{
3331
3575
  turn_analyze: "turn_analyze";
3332
3576
  turn_decide: "turn_decide";
3577
+ verify_outcome: "verify_outcome";
3333
3578
  review_artifact: "review_artifact";
3334
3579
  review_message: "review_message";
3335
3580
  }>;
@@ -3349,6 +3594,16 @@ export declare const opsSendOperatorMessageResponseSchema: z.ZodObject<{
3349
3594
  semanticVersion: z.ZodString;
3350
3595
  renderedHash: z.ZodString;
3351
3596
  }, z.core.$strip>;
3597
+ promptDebug: z.ZodDefault<z.ZodNullable<z.ZodObject<{
3598
+ system: z.ZodString;
3599
+ user: z.ZodString;
3600
+ context: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3601
+ templateRefs: z.ZodDefault<z.ZodNullable<z.ZodObject<{
3602
+ systemTemplate: z.ZodString;
3603
+ userTemplate: z.ZodString;
3604
+ partials: z.ZodDefault<z.ZodArray<z.ZodString>>;
3605
+ }, z.core.$strip>>>;
3606
+ }, z.core.$strip>>>;
3352
3607
  provider: z.ZodString;
3353
3608
  modelId: z.ZodString;
3354
3609
  finishReason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -3358,13 +3613,58 @@ export declare const opsSendOperatorMessageResponseSchema: z.ZodObject<{
3358
3613
  totalTokens: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3359
3614
  }, z.core.$strip>>>;
3360
3615
  latencyMs: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3616
+ providerAttemptCount: z.ZodDefault<z.ZodNumber>;
3617
+ providerRetryCount: z.ZodDefault<z.ZodNumber>;
3618
+ providerAttempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
3619
+ provider: z.ZodString;
3620
+ modelId: z.ZodString;
3621
+ attemptNumber: z.ZodNumber;
3622
+ status: z.ZodEnum<{
3623
+ failed: "failed";
3624
+ succeeded: "succeeded";
3625
+ }>;
3626
+ startedAt: z.ZodString;
3627
+ finishedAt: z.ZodString;
3628
+ latencyMs: z.ZodNumber;
3629
+ retryable: z.ZodDefault<z.ZodBoolean>;
3630
+ failureCategory: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3631
+ errorSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3632
+ backoffMs: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3633
+ }, z.core.$strip>>>;
3634
+ validationLayer: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
3635
+ provider: "provider";
3636
+ configuration: "configuration";
3637
+ schema_parse: "schema_parse";
3638
+ protocol_validation: "protocol_validation";
3639
+ verifier: "verifier";
3640
+ }>>>;
3361
3641
  retryContext: z.ZodDefault<z.ZodNullable<z.ZodObject<{
3362
3642
  priorAttemptNumber: z.ZodNumber;
3363
3643
  errorSummary: z.ZodString;
3364
3644
  validationIssues: z.ZodDefault<z.ZodArray<z.ZodString>>;
3645
+ priorFailures: z.ZodDefault<z.ZodArray<z.ZodObject<{
3646
+ attemptNumber: z.ZodNumber;
3647
+ errorSummary: z.ZodString;
3648
+ validationIssues: z.ZodDefault<z.ZodArray<z.ZodString>>;
3649
+ }, z.core.$strip>>>;
3365
3650
  }, z.core.$strip>>>;
3366
3651
  validationIssues: z.ZodDefault<z.ZodArray<z.ZodString>>;
3367
3652
  errorSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3653
+ rawOutput: z.ZodDefault<z.ZodNullable<z.ZodUnknown>>;
3654
+ }, z.core.$strip>>>;
3655
+ executionProfile: z.ZodDefault<z.ZodNullable<z.ZodObject<{
3656
+ totalRuntimeMs: z.ZodDefault<z.ZodNumber>;
3657
+ analysisMs: z.ZodDefault<z.ZodNumber>;
3658
+ decisionMs: z.ZodDefault<z.ZodNumber>;
3659
+ reviewMs: z.ZodDefault<z.ZodNumber>;
3660
+ generationAttemptCount: z.ZodDefault<z.ZodNumber>;
3661
+ correctiveRetryCount: z.ZodDefault<z.ZodNumber>;
3662
+ failedAttemptCount: z.ZodDefault<z.ZodNumber>;
3663
+ providerAttemptCount: z.ZodDefault<z.ZodNumber>;
3664
+ providerRetryCount: z.ZodDefault<z.ZodNumber>;
3665
+ validationIssueCount: z.ZodDefault<z.ZodNumber>;
3666
+ slowestStage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3667
+ slowestAttemptLatencyMs: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3368
3668
  }, z.core.$strip>>>;
3369
3669
  historyPacking: z.ZodDefault<z.ZodNullable<z.ZodObject<{
3370
3670
  rawCharacterBudget: z.ZodNumber;
@@ -3375,6 +3675,10 @@ export declare const opsSendOperatorMessageResponseSchema: z.ZodObject<{
3375
3675
  }, z.core.$strip>>>;
3376
3676
  reviewOutput: z.ZodDefault<z.ZodNullable<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
3377
3677
  validationIssues: z.ZodDefault<z.ZodArray<z.ZodString>>;
3678
+ fallbackApplied: z.ZodDefault<z.ZodBoolean>;
3679
+ fallbackKind: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3680
+ fallbackStage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3681
+ fallbackSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3378
3682
  actionOutcomes: z.ZodDefault<z.ZodArray<z.ZodObject<{
3379
3683
  actionType: z.ZodEnum<{
3380
3684
  none: "none";
@@ -3404,6 +3708,15 @@ export declare const opsSendOperatorMessageResponseSchema: z.ZodObject<{
3404
3708
  "message.sent": "message.sent";
3405
3709
  "message.edited": "message.edited";
3406
3710
  "message.deleted": "message.deleted";
3711
+ "reply.burst.opened": "reply.burst.opened";
3712
+ "reply.burst.updated": "reply.burst.updated";
3713
+ "reply.burst.completed": "reply.burst.completed";
3714
+ "reply.job.scheduled": "reply.job.scheduled";
3715
+ "reply.job.started": "reply.job.started";
3716
+ "reply.job.completed": "reply.job.completed";
3717
+ "reply.job.failed": "reply.job.failed";
3718
+ "reply.job.superseded": "reply.job.superseded";
3719
+ "reply.job.cancelled": "reply.job.cancelled";
3407
3720
  "attachments.normalized": "attachments.normalized";
3408
3721
  "conversation.created": "conversation.created";
3409
3722
  "conversation.linked": "conversation.linked";
@@ -3426,10 +3739,10 @@ export declare const opsSendOperatorMessageResponseSchema: z.ZodObject<{
3426
3739
  }>;
3427
3740
  title: z.ZodString;
3428
3741
  actorKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
3429
- ai: "ai";
3430
3742
  customer: "customer";
3431
- operator: "operator";
3432
3743
  system: "system";
3744
+ operator: "operator";
3745
+ ai: "ai";
3433
3746
  }>>>;
3434
3747
  createdAt: z.ZodString;
3435
3748
  payload: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -3475,10 +3788,10 @@ export declare const opsSendOperatorMessageResponseSchema: z.ZodObject<{
3475
3788
  manual: "manual";
3476
3789
  }>;
3477
3790
  deliveryStatus: z.ZodEnum<{
3791
+ failed: "failed";
3478
3792
  sent: "sent";
3479
3793
  simulated: "simulated";
3480
3794
  skipped: "skipped";
3481
- failed: "failed";
3482
3795
  }>;
3483
3796
  planId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3484
3797
  stepId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -3511,9 +3824,9 @@ export declare const opsSendOperatorMessageResponseSchema: z.ZodObject<{
3511
3824
  archived: "archived";
3512
3825
  }>;
3513
3826
  ownershipMode: z.ZodEnum<{
3827
+ hybrid: "hybrid";
3514
3828
  ai: "ai";
3515
3829
  human: "human";
3516
- hybrid: "hybrid";
3517
3830
  }>;
3518
3831
  assistMode: z.ZodEnum<{
3519
3832
  off: "off";
@@ -3531,10 +3844,10 @@ export declare const opsSendOperatorMessageResponseSchema: z.ZodObject<{
3531
3844
  latestMessagePreview: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3532
3845
  latestMessageAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3533
3846
  latestActorKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
3534
- ai: "ai";
3535
3847
  customer: "customer";
3536
- operator: "operator";
3537
3848
  system: "system";
3849
+ operator: "operator";
3850
+ ai: "ai";
3538
3851
  }>>>;
3539
3852
  latestEventTitle: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3540
3853
  summaryText: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -3564,8 +3877,8 @@ export declare const opsGetReadinessResponseSchema: z.ZodObject<{
3564
3877
  status: z.ZodEnum<{
3565
3878
  unknown: "unknown";
3566
3879
  pass: "pass";
3567
- warn: "warn";
3568
3880
  fail: "fail";
3881
+ warn: "warn";
3569
3882
  }>;
3570
3883
  stale: z.ZodBoolean;
3571
3884
  counts: z.ZodObject<{
@@ -3583,7 +3896,8 @@ export declare const opsGetReadinessResponseSchema: z.ZodObject<{
3583
3896
  telegram_business_account: "telegram_business_account";
3584
3897
  telegram_employee_binding: "telegram_employee_binding";
3585
3898
  runtime_provider: "runtime_provider";
3586
- runtime_routing: "runtime_routing";
3899
+ runtime_model_profile: "runtime_model_profile";
3900
+ notification_routing_profile: "notification_routing_profile";
3587
3901
  }>;
3588
3902
  entityId: z.ZodString;
3589
3903
  businessProfileId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -3591,8 +3905,8 @@ export declare const opsGetReadinessResponseSchema: z.ZodObject<{
3591
3905
  status: z.ZodEnum<{
3592
3906
  unknown: "unknown";
3593
3907
  pass: "pass";
3594
- warn: "warn";
3595
3908
  fail: "fail";
3909
+ warn: "warn";
3596
3910
  }>;
3597
3911
  summary: z.ZodString;
3598
3912
  configured: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -3600,8 +3914,8 @@ export declare const opsGetReadinessResponseSchema: z.ZodObject<{
3600
3914
  drift: z.ZodDefault<z.ZodArray<z.ZodObject<{
3601
3915
  code: z.ZodString;
3602
3916
  severity: z.ZodEnum<{
3603
- warn: "warn";
3604
3917
  fail: "fail";
3918
+ warn: "warn";
3605
3919
  }>;
3606
3920
  field: z.ZodString;
3607
3921
  expected: z.ZodDefault<z.ZodNullable<z.ZodUnknown>>;
@@ -3640,8 +3954,8 @@ export declare const opsGetReadinessResponseSchema: z.ZodObject<{
3640
3954
  status: z.ZodEnum<{
3641
3955
  unknown: "unknown";
3642
3956
  pass: "pass";
3643
- warn: "warn";
3644
3957
  fail: "fail";
3958
+ warn: "warn";
3645
3959
  }>;
3646
3960
  summary: z.ZodString;
3647
3961
  checkedAt: z.ZodString;
@@ -3697,8 +4011,8 @@ export declare const opsGetSchemaStatusResponseSchema: z.ZodObject<{
3697
4011
  status: z.ZodEnum<{
3698
4012
  unknown: "unknown";
3699
4013
  pass: "pass";
3700
- warn: "warn";
3701
4014
  fail: "fail";
4015
+ warn: "warn";
3702
4016
  }>;
3703
4017
  summary: z.ZodString;
3704
4018
  checkedAt: z.ZodString;
@@ -3768,8 +4082,8 @@ export declare const opsApplySchemaMigrationsResponseSchema: z.ZodObject<{
3768
4082
  status: z.ZodEnum<{
3769
4083
  unknown: "unknown";
3770
4084
  pass: "pass";
3771
- warn: "warn";
3772
4085
  fail: "fail";
4086
+ warn: "warn";
3773
4087
  }>;
3774
4088
  summary: z.ZodString;
3775
4089
  checkedAt: z.ZodString;
@@ -3807,6 +4121,101 @@ export declare const opsApplySchemaMigrationsResponseSchema: z.ZodObject<{
3807
4121
  orphanedLedgerEntries: z.ZodDefault<z.ZodArray<z.ZodString>>;
3808
4122
  }, z.core.$strip>;
3809
4123
  }, z.core.$strip>;
4124
+ export declare const opsGetLegacyReconcileStatusRequestSchema: z.ZodObject<{}, z.core.$strip>;
4125
+ export declare const opsGetLegacyReconcileStatusResponseSchema: z.ZodObject<{
4126
+ reconcile: z.ZodObject<{
4127
+ environment: z.ZodString;
4128
+ checkedAt: z.ZodString;
4129
+ status: z.ZodEnum<{
4130
+ unknown: "unknown";
4131
+ pass: "pass";
4132
+ fail: "fail";
4133
+ warn: "warn";
4134
+ }>;
4135
+ summary: z.ZodString;
4136
+ items: z.ZodDefault<z.ZodArray<z.ZodObject<{
4137
+ kind: z.ZodEnum<{
4138
+ business_profile_workspace_adoption: "business_profile_workspace_adoption";
4139
+ legacy_jsonb_scalar_normalization: "legacy_jsonb_scalar_normalization";
4140
+ telegram_integration_secret_encryption: "telegram_integration_secret_encryption";
4141
+ }>;
4142
+ status: z.ZodEnum<{
4143
+ unknown: "unknown";
4144
+ pass: "pass";
4145
+ fail: "fail";
4146
+ warn: "warn";
4147
+ }>;
4148
+ summary: z.ZodString;
4149
+ pendingCount: z.ZodNumber;
4150
+ candidateCount: z.ZodNumber;
4151
+ blocking: z.ZodDefault<z.ZodBoolean>;
4152
+ details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4153
+ }, z.core.$strip>>>;
4154
+ }, z.core.$strip>;
4155
+ }, z.core.$strip>;
4156
+ export declare const opsApplyLegacyReconcileRequestSchema: z.ZodObject<{
4157
+ appliedBy: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4158
+ sourceKind: z.ZodDefault<z.ZodEnum<{
4159
+ manual_apply: "manual_apply";
4160
+ beta_rollout: "beta_rollout";
4161
+ prod_rollout: "prod_rollout";
4162
+ local_bootstrap: "local_bootstrap";
4163
+ }>>;
4164
+ kinds: z.ZodDefault<z.ZodArray<z.ZodEnum<{
4165
+ business_profile_workspace_adoption: "business_profile_workspace_adoption";
4166
+ legacy_jsonb_scalar_normalization: "legacy_jsonb_scalar_normalization";
4167
+ telegram_integration_secret_encryption: "telegram_integration_secret_encryption";
4168
+ }>>>;
4169
+ }, z.core.$strip>;
4170
+ export declare const opsApplyLegacyReconcileResponseSchema: z.ZodObject<{
4171
+ results: z.ZodDefault<z.ZodArray<z.ZodObject<{
4172
+ kind: z.ZodEnum<{
4173
+ business_profile_workspace_adoption: "business_profile_workspace_adoption";
4174
+ legacy_jsonb_scalar_normalization: "legacy_jsonb_scalar_normalization";
4175
+ telegram_integration_secret_encryption: "telegram_integration_secret_encryption";
4176
+ }>;
4177
+ status: z.ZodEnum<{
4178
+ unknown: "unknown";
4179
+ pass: "pass";
4180
+ fail: "fail";
4181
+ warn: "warn";
4182
+ }>;
4183
+ summary: z.ZodString;
4184
+ beforePendingCount: z.ZodNumber;
4185
+ appliedCount: z.ZodNumber;
4186
+ afterPendingCount: z.ZodNumber;
4187
+ details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4188
+ }, z.core.$strip>>>;
4189
+ reconcile: z.ZodObject<{
4190
+ environment: z.ZodString;
4191
+ checkedAt: z.ZodString;
4192
+ status: z.ZodEnum<{
4193
+ unknown: "unknown";
4194
+ pass: "pass";
4195
+ fail: "fail";
4196
+ warn: "warn";
4197
+ }>;
4198
+ summary: z.ZodString;
4199
+ items: z.ZodDefault<z.ZodArray<z.ZodObject<{
4200
+ kind: z.ZodEnum<{
4201
+ business_profile_workspace_adoption: "business_profile_workspace_adoption";
4202
+ legacy_jsonb_scalar_normalization: "legacy_jsonb_scalar_normalization";
4203
+ telegram_integration_secret_encryption: "telegram_integration_secret_encryption";
4204
+ }>;
4205
+ status: z.ZodEnum<{
4206
+ unknown: "unknown";
4207
+ pass: "pass";
4208
+ fail: "fail";
4209
+ warn: "warn";
4210
+ }>;
4211
+ summary: z.ZodString;
4212
+ pendingCount: z.ZodNumber;
4213
+ candidateCount: z.ZodNumber;
4214
+ blocking: z.ZodDefault<z.ZodBoolean>;
4215
+ details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4216
+ }, z.core.$strip>>>;
4217
+ }, z.core.$strip>;
4218
+ }, z.core.$strip>;
3810
4219
  export declare const opsCreateBackupArtifactRequestSchema: z.ZodObject<{
3811
4220
  environment: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3812
4221
  backupKind: z.ZodDefault<z.ZodEnum<{
@@ -3874,7 +4283,7 @@ export declare const opsCreateBackupArtifactResponseSchema: z.ZodObject<{
3874
4283
  telegramEmployeeBindings: z.ZodNumber;
3875
4284
  telegramBusinessAccounts: z.ZodNumber;
3876
4285
  runtimeProviders: z.ZodNumber;
3877
- runtimeRoutingProfiles: z.ZodNumber;
4286
+ runtimeModelProfiles: z.ZodNumber;
3878
4287
  runtimeUsageEvents: z.ZodNumber;
3879
4288
  runtimeFallbackEvents: z.ZodNumber;
3880
4289
  operationsSnapshots: z.ZodNumber;
@@ -3941,7 +4350,7 @@ export declare const opsListBackupArtifactsResponseSchema: z.ZodObject<{
3941
4350
  telegramEmployeeBindings: z.ZodNumber;
3942
4351
  telegramBusinessAccounts: z.ZodNumber;
3943
4352
  runtimeProviders: z.ZodNumber;
3944
- runtimeRoutingProfiles: z.ZodNumber;
4353
+ runtimeModelProfiles: z.ZodNumber;
3945
4354
  runtimeUsageEvents: z.ZodNumber;
3946
4355
  runtimeFallbackEvents: z.ZodNumber;
3947
4356
  operationsSnapshots: z.ZodNumber;
@@ -4003,7 +4412,7 @@ export declare const opsGetBackupArtifactResponseSchema: z.ZodObject<{
4003
4412
  telegramEmployeeBindings: z.ZodNumber;
4004
4413
  telegramBusinessAccounts: z.ZodNumber;
4005
4414
  runtimeProviders: z.ZodNumber;
4006
- runtimeRoutingProfiles: z.ZodNumber;
4415
+ runtimeModelProfiles: z.ZodNumber;
4007
4416
  runtimeUsageEvents: z.ZodNumber;
4008
4417
  runtimeFallbackEvents: z.ZodNumber;
4009
4418
  operationsSnapshots: z.ZodNumber;
@@ -4034,8 +4443,8 @@ export declare const opsRunRestoreDrillResponseSchema: z.ZodObject<{
4034
4443
  status: z.ZodEnum<{
4035
4444
  unknown: "unknown";
4036
4445
  pass: "pass";
4037
- warn: "warn";
4038
4446
  fail: "fail";
4447
+ warn: "warn";
4039
4448
  }>;
4040
4449
  summary: z.ZodString;
4041
4450
  restoredSchemaVersion: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -4044,8 +4453,8 @@ export declare const opsRunRestoreDrillResponseSchema: z.ZodObject<{
4044
4453
  status: z.ZodEnum<{
4045
4454
  unknown: "unknown";
4046
4455
  pass: "pass";
4047
- warn: "warn";
4048
4456
  fail: "fail";
4457
+ warn: "warn";
4049
4458
  }>;
4050
4459
  summary: z.ZodString;
4051
4460
  details: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -4061,7 +4470,7 @@ export declare const opsRunRestoreDrillResponseSchema: z.ZodObject<{
4061
4470
  telegramEmployeeBindings: z.ZodNumber;
4062
4471
  telegramBusinessAccounts: z.ZodNumber;
4063
4472
  runtimeProviders: z.ZodNumber;
4064
- runtimeRoutingProfiles: z.ZodNumber;
4473
+ runtimeModelProfiles: z.ZodNumber;
4065
4474
  runtimeUsageEvents: z.ZodNumber;
4066
4475
  runtimeFallbackEvents: z.ZodNumber;
4067
4476
  operationsSnapshots: z.ZodNumber;
@@ -4086,8 +4495,8 @@ export declare const opsListRestoreDrillsResponseSchema: z.ZodObject<{
4086
4495
  status: z.ZodEnum<{
4087
4496
  unknown: "unknown";
4088
4497
  pass: "pass";
4089
- warn: "warn";
4090
4498
  fail: "fail";
4499
+ warn: "warn";
4091
4500
  }>;
4092
4501
  summary: z.ZodString;
4093
4502
  restoredSchemaVersion: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -4096,8 +4505,8 @@ export declare const opsListRestoreDrillsResponseSchema: z.ZodObject<{
4096
4505
  status: z.ZodEnum<{
4097
4506
  unknown: "unknown";
4098
4507
  pass: "pass";
4099
- warn: "warn";
4100
4508
  fail: "fail";
4509
+ warn: "warn";
4101
4510
  }>;
4102
4511
  summary: z.ZodString;
4103
4512
  details: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -4113,7 +4522,7 @@ export declare const opsListRestoreDrillsResponseSchema: z.ZodObject<{
4113
4522
  telegramEmployeeBindings: z.ZodNumber;
4114
4523
  telegramBusinessAccounts: z.ZodNumber;
4115
4524
  runtimeProviders: z.ZodNumber;
4116
- runtimeRoutingProfiles: z.ZodNumber;
4525
+ runtimeModelProfiles: z.ZodNumber;
4117
4526
  runtimeUsageEvents: z.ZodNumber;
4118
4527
  runtimeFallbackEvents: z.ZodNumber;
4119
4528
  operationsSnapshots: z.ZodNumber;
@@ -4138,8 +4547,8 @@ export declare const opsGetRestoreDrillResponseSchema: z.ZodObject<{
4138
4547
  status: z.ZodEnum<{
4139
4548
  unknown: "unknown";
4140
4549
  pass: "pass";
4141
- warn: "warn";
4142
4550
  fail: "fail";
4551
+ warn: "warn";
4143
4552
  }>;
4144
4553
  summary: z.ZodString;
4145
4554
  restoredSchemaVersion: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -4148,8 +4557,8 @@ export declare const opsGetRestoreDrillResponseSchema: z.ZodObject<{
4148
4557
  status: z.ZodEnum<{
4149
4558
  unknown: "unknown";
4150
4559
  pass: "pass";
4151
- warn: "warn";
4152
4560
  fail: "fail";
4561
+ warn: "warn";
4153
4562
  }>;
4154
4563
  summary: z.ZodString;
4155
4564
  details: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -4165,7 +4574,7 @@ export declare const opsGetRestoreDrillResponseSchema: z.ZodObject<{
4165
4574
  telegramEmployeeBindings: z.ZodNumber;
4166
4575
  telegramBusinessAccounts: z.ZodNumber;
4167
4576
  runtimeProviders: z.ZodNumber;
4168
- runtimeRoutingProfiles: z.ZodNumber;
4577
+ runtimeModelProfiles: z.ZodNumber;
4169
4578
  runtimeUsageEvents: z.ZodNumber;
4170
4579
  runtimeFallbackEvents: z.ZodNumber;
4171
4580
  operationsSnapshots: z.ZodNumber;
@@ -4180,7 +4589,8 @@ export declare const opsGetDiagnosticsRequestSchema: z.ZodObject<{
4180
4589
  telegram_business_account: "telegram_business_account";
4181
4590
  telegram_employee_binding: "telegram_employee_binding";
4182
4591
  runtime_provider: "runtime_provider";
4183
- runtime_routing: "runtime_routing";
4592
+ runtime_model_profile: "runtime_model_profile";
4593
+ notification_routing_profile: "notification_routing_profile";
4184
4594
  }>>>;
4185
4595
  entityId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4186
4596
  }, z.core.$strip>;
@@ -4194,7 +4604,8 @@ export declare const opsGetDiagnosticsResponseSchema: z.ZodObject<{
4194
4604
  telegram_business_account: "telegram_business_account";
4195
4605
  telegram_employee_binding: "telegram_employee_binding";
4196
4606
  runtime_provider: "runtime_provider";
4197
- runtime_routing: "runtime_routing";
4607
+ runtime_model_profile: "runtime_model_profile";
4608
+ notification_routing_profile: "notification_routing_profile";
4198
4609
  }>;
4199
4610
  entityId: z.ZodString;
4200
4611
  businessProfileId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -4202,8 +4613,8 @@ export declare const opsGetDiagnosticsResponseSchema: z.ZodObject<{
4202
4613
  status: z.ZodEnum<{
4203
4614
  unknown: "unknown";
4204
4615
  pass: "pass";
4205
- warn: "warn";
4206
4616
  fail: "fail";
4617
+ warn: "warn";
4207
4618
  }>;
4208
4619
  summary: z.ZodString;
4209
4620
  configured: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -4211,8 +4622,8 @@ export declare const opsGetDiagnosticsResponseSchema: z.ZodObject<{
4211
4622
  drift: z.ZodDefault<z.ZodArray<z.ZodObject<{
4212
4623
  code: z.ZodString;
4213
4624
  severity: z.ZodEnum<{
4214
- warn: "warn";
4215
4625
  fail: "fail";
4626
+ warn: "warn";
4216
4627
  }>;
4217
4628
  field: z.ZodString;
4218
4629
  expected: z.ZodDefault<z.ZodNullable<z.ZodUnknown>>;
@@ -4236,6 +4647,198 @@ export declare const opsGetDiagnosticsResponseSchema: z.ZodObject<{
4236
4647
  updatedAt: z.ZodString;
4237
4648
  }, z.core.$strip>>>;
4238
4649
  }, z.core.$strip>;
4650
+ export declare const notificationRoutingClassSchema: z.ZodEnum<{
4651
+ runtime_incident: "runtime_incident";
4652
+ conversation_handoff_requested: "conversation_handoff_requested";
4653
+ }>;
4654
+ export declare const notificationRoutingRecipientSchema: z.ZodObject<{
4655
+ kind: z.ZodEnum<{
4656
+ role: "role";
4657
+ operator: "operator";
4658
+ }>;
4659
+ role: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
4660
+ operator: "operator";
4661
+ workspace_admin: "workspace_admin";
4662
+ }>>>;
4663
+ operatorId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4664
+ operatorEmail: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4665
+ operatorDisplayName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4666
+ telegramUsername: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4667
+ }, z.core.$strip>;
4668
+ export declare const notificationRoutingRecipientInputSchema: z.ZodObject<{
4669
+ kind: z.ZodEnum<{
4670
+ role: "role";
4671
+ operator: "operator";
4672
+ telegram_username: "telegram_username";
4673
+ }>;
4674
+ role: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
4675
+ operator: "operator";
4676
+ workspace_admin: "workspace_admin";
4677
+ }>>>;
4678
+ operatorId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4679
+ telegramUsername: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4680
+ }, z.core.$strip>;
4681
+ export declare const notificationRoutingRouteSchema: z.ZodObject<{
4682
+ notificationClass: z.ZodEnum<{
4683
+ runtime_incident: "runtime_incident";
4684
+ conversation_handoff_requested: "conversation_handoff_requested";
4685
+ }>;
4686
+ recipients: z.ZodDefault<z.ZodArray<z.ZodObject<{
4687
+ kind: z.ZodEnum<{
4688
+ role: "role";
4689
+ operator: "operator";
4690
+ }>;
4691
+ role: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
4692
+ operator: "operator";
4693
+ workspace_admin: "workspace_admin";
4694
+ }>>>;
4695
+ operatorId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4696
+ operatorEmail: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4697
+ operatorDisplayName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4698
+ telegramUsername: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4699
+ }, z.core.$strip>>>;
4700
+ }, z.core.$strip>;
4701
+ export declare const notificationRoutingProfileSchema: z.ZodObject<{
4702
+ businessProfileSlug: z.ZodString;
4703
+ routes: z.ZodDefault<z.ZodArray<z.ZodObject<{
4704
+ notificationClass: z.ZodEnum<{
4705
+ runtime_incident: "runtime_incident";
4706
+ conversation_handoff_requested: "conversation_handoff_requested";
4707
+ }>;
4708
+ recipients: z.ZodDefault<z.ZodArray<z.ZodObject<{
4709
+ kind: z.ZodEnum<{
4710
+ role: "role";
4711
+ operator: "operator";
4712
+ }>;
4713
+ role: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
4714
+ operator: "operator";
4715
+ workspace_admin: "workspace_admin";
4716
+ }>>>;
4717
+ operatorId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4718
+ operatorEmail: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4719
+ operatorDisplayName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4720
+ telegramUsername: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4721
+ }, z.core.$strip>>>;
4722
+ }, z.core.$strip>>>;
4723
+ }, z.core.$strip>;
4724
+ export declare const opsGetNotificationRoutingRequestSchema: z.ZodObject<{
4725
+ businessProfileSlug: z.ZodString;
4726
+ }, z.core.$strip>;
4727
+ export declare const opsGetNotificationRoutingResponseSchema: z.ZodObject<{
4728
+ profile: z.ZodObject<{
4729
+ businessProfileSlug: z.ZodString;
4730
+ routes: z.ZodDefault<z.ZodArray<z.ZodObject<{
4731
+ notificationClass: z.ZodEnum<{
4732
+ runtime_incident: "runtime_incident";
4733
+ conversation_handoff_requested: "conversation_handoff_requested";
4734
+ }>;
4735
+ recipients: z.ZodDefault<z.ZodArray<z.ZodObject<{
4736
+ kind: z.ZodEnum<{
4737
+ role: "role";
4738
+ operator: "operator";
4739
+ }>;
4740
+ role: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
4741
+ operator: "operator";
4742
+ workspace_admin: "workspace_admin";
4743
+ }>>>;
4744
+ operatorId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4745
+ operatorEmail: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4746
+ operatorDisplayName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4747
+ telegramUsername: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4748
+ }, z.core.$strip>>>;
4749
+ }, z.core.$strip>>>;
4750
+ }, z.core.$strip>;
4751
+ }, z.core.$strip>;
4752
+ export declare const opsAddNotificationRoutingRecipientRequestSchema: z.ZodObject<{
4753
+ businessProfileSlug: z.ZodString;
4754
+ notificationClass: z.ZodEnum<{
4755
+ runtime_incident: "runtime_incident";
4756
+ conversation_handoff_requested: "conversation_handoff_requested";
4757
+ }>;
4758
+ recipient: z.ZodObject<{
4759
+ kind: z.ZodEnum<{
4760
+ role: "role";
4761
+ operator: "operator";
4762
+ telegram_username: "telegram_username";
4763
+ }>;
4764
+ role: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
4765
+ operator: "operator";
4766
+ workspace_admin: "workspace_admin";
4767
+ }>>>;
4768
+ operatorId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4769
+ telegramUsername: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4770
+ }, z.core.$strip>;
4771
+ }, z.core.$strip>;
4772
+ export declare const opsAddNotificationRoutingRecipientResponseSchema: z.ZodObject<{
4773
+ profile: z.ZodObject<{
4774
+ businessProfileSlug: z.ZodString;
4775
+ routes: z.ZodDefault<z.ZodArray<z.ZodObject<{
4776
+ notificationClass: z.ZodEnum<{
4777
+ runtime_incident: "runtime_incident";
4778
+ conversation_handoff_requested: "conversation_handoff_requested";
4779
+ }>;
4780
+ recipients: z.ZodDefault<z.ZodArray<z.ZodObject<{
4781
+ kind: z.ZodEnum<{
4782
+ role: "role";
4783
+ operator: "operator";
4784
+ }>;
4785
+ role: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
4786
+ operator: "operator";
4787
+ workspace_admin: "workspace_admin";
4788
+ }>>>;
4789
+ operatorId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4790
+ operatorEmail: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4791
+ operatorDisplayName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4792
+ telegramUsername: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4793
+ }, z.core.$strip>>>;
4794
+ }, z.core.$strip>>>;
4795
+ }, z.core.$strip>;
4796
+ }, z.core.$strip>;
4797
+ export declare const opsRemoveNotificationRoutingRecipientRequestSchema: z.ZodObject<{
4798
+ businessProfileSlug: z.ZodString;
4799
+ notificationClass: z.ZodEnum<{
4800
+ runtime_incident: "runtime_incident";
4801
+ conversation_handoff_requested: "conversation_handoff_requested";
4802
+ }>;
4803
+ recipient: z.ZodObject<{
4804
+ kind: z.ZodEnum<{
4805
+ role: "role";
4806
+ operator: "operator";
4807
+ telegram_username: "telegram_username";
4808
+ }>;
4809
+ role: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
4810
+ operator: "operator";
4811
+ workspace_admin: "workspace_admin";
4812
+ }>>>;
4813
+ operatorId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4814
+ telegramUsername: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4815
+ }, z.core.$strip>;
4816
+ }, z.core.$strip>;
4817
+ export declare const opsRemoveNotificationRoutingRecipientResponseSchema: z.ZodObject<{
4818
+ profile: z.ZodObject<{
4819
+ businessProfileSlug: z.ZodString;
4820
+ routes: z.ZodDefault<z.ZodArray<z.ZodObject<{
4821
+ notificationClass: z.ZodEnum<{
4822
+ runtime_incident: "runtime_incident";
4823
+ conversation_handoff_requested: "conversation_handoff_requested";
4824
+ }>;
4825
+ recipients: z.ZodDefault<z.ZodArray<z.ZodObject<{
4826
+ kind: z.ZodEnum<{
4827
+ role: "role";
4828
+ operator: "operator";
4829
+ }>;
4830
+ role: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
4831
+ operator: "operator";
4832
+ workspace_admin: "workspace_admin";
4833
+ }>>>;
4834
+ operatorId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4835
+ operatorEmail: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4836
+ operatorDisplayName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4837
+ telegramUsername: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4838
+ }, z.core.$strip>>>;
4839
+ }, z.core.$strip>>>;
4840
+ }, z.core.$strip>;
4841
+ }, z.core.$strip>;
4239
4842
  export declare const opsRefreshTelegramIntegrationRequestSchema: z.ZodObject<{
4240
4843
  integrationKey: z.ZodString;
4241
4844
  }, z.core.$strip>;
@@ -4247,7 +4850,8 @@ export declare const opsRefreshTelegramIntegrationResponseSchema: z.ZodObject<{
4247
4850
  telegram_business_account: "telegram_business_account";
4248
4851
  telegram_employee_binding: "telegram_employee_binding";
4249
4852
  runtime_provider: "runtime_provider";
4250
- runtime_routing: "runtime_routing";
4853
+ runtime_model_profile: "runtime_model_profile";
4854
+ notification_routing_profile: "notification_routing_profile";
4251
4855
  }>;
4252
4856
  entityId: z.ZodString;
4253
4857
  businessProfileId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -4255,8 +4859,8 @@ export declare const opsRefreshTelegramIntegrationResponseSchema: z.ZodObject<{
4255
4859
  status: z.ZodEnum<{
4256
4860
  unknown: "unknown";
4257
4861
  pass: "pass";
4258
- warn: "warn";
4259
4862
  fail: "fail";
4863
+ warn: "warn";
4260
4864
  }>;
4261
4865
  summary: z.ZodString;
4262
4866
  configured: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -4264,8 +4868,8 @@ export declare const opsRefreshTelegramIntegrationResponseSchema: z.ZodObject<{
4264
4868
  drift: z.ZodDefault<z.ZodArray<z.ZodObject<{
4265
4869
  code: z.ZodString;
4266
4870
  severity: z.ZodEnum<{
4267
- warn: "warn";
4268
4871
  fail: "fail";
4872
+ warn: "warn";
4269
4873
  }>;
4270
4874
  field: z.ZodString;
4271
4875
  expected: z.ZodDefault<z.ZodNullable<z.ZodUnknown>>;
@@ -4294,8 +4898,8 @@ export declare const opsRefreshTelegramIntegrationResponseSchema: z.ZodObject<{
4294
4898
  status: z.ZodEnum<{
4295
4899
  unknown: "unknown";
4296
4900
  pass: "pass";
4297
- warn: "warn";
4298
4901
  fail: "fail";
4902
+ warn: "warn";
4299
4903
  }>;
4300
4904
  stale: z.ZodBoolean;
4301
4905
  counts: z.ZodObject<{
@@ -4313,7 +4917,8 @@ export declare const opsRefreshTelegramIntegrationResponseSchema: z.ZodObject<{
4313
4917
  telegram_business_account: "telegram_business_account";
4314
4918
  telegram_employee_binding: "telegram_employee_binding";
4315
4919
  runtime_provider: "runtime_provider";
4316
- runtime_routing: "runtime_routing";
4920
+ runtime_model_profile: "runtime_model_profile";
4921
+ notification_routing_profile: "notification_routing_profile";
4317
4922
  }>;
4318
4923
  entityId: z.ZodString;
4319
4924
  businessProfileId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -4321,8 +4926,8 @@ export declare const opsRefreshTelegramIntegrationResponseSchema: z.ZodObject<{
4321
4926
  status: z.ZodEnum<{
4322
4927
  unknown: "unknown";
4323
4928
  pass: "pass";
4324
- warn: "warn";
4325
4929
  fail: "fail";
4930
+ warn: "warn";
4326
4931
  }>;
4327
4932
  summary: z.ZodString;
4328
4933
  configured: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -4330,8 +4935,8 @@ export declare const opsRefreshTelegramIntegrationResponseSchema: z.ZodObject<{
4330
4935
  drift: z.ZodDefault<z.ZodArray<z.ZodObject<{
4331
4936
  code: z.ZodString;
4332
4937
  severity: z.ZodEnum<{
4333
- warn: "warn";
4334
4938
  fail: "fail";
4939
+ warn: "warn";
4335
4940
  }>;
4336
4941
  field: z.ZodString;
4337
4942
  expected: z.ZodDefault<z.ZodNullable<z.ZodUnknown>>;
@@ -4370,8 +4975,8 @@ export declare const opsRefreshTelegramIntegrationResponseSchema: z.ZodObject<{
4370
4975
  status: z.ZodEnum<{
4371
4976
  unknown: "unknown";
4372
4977
  pass: "pass";
4373
- warn: "warn";
4374
4978
  fail: "fail";
4979
+ warn: "warn";
4375
4980
  }>;
4376
4981
  summary: z.ZodString;
4377
4982
  checkedAt: z.ZodString;
@@ -4422,7 +5027,8 @@ export declare const opsRefreshRuntimeProviderResponseSchema: z.ZodObject<{
4422
5027
  telegram_business_account: "telegram_business_account";
4423
5028
  telegram_employee_binding: "telegram_employee_binding";
4424
5029
  runtime_provider: "runtime_provider";
4425
- runtime_routing: "runtime_routing";
5030
+ runtime_model_profile: "runtime_model_profile";
5031
+ notification_routing_profile: "notification_routing_profile";
4426
5032
  }>;
4427
5033
  entityId: z.ZodString;
4428
5034
  businessProfileId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -4430,8 +5036,8 @@ export declare const opsRefreshRuntimeProviderResponseSchema: z.ZodObject<{
4430
5036
  status: z.ZodEnum<{
4431
5037
  unknown: "unknown";
4432
5038
  pass: "pass";
4433
- warn: "warn";
4434
5039
  fail: "fail";
5040
+ warn: "warn";
4435
5041
  }>;
4436
5042
  summary: z.ZodString;
4437
5043
  configured: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -4439,8 +5045,8 @@ export declare const opsRefreshRuntimeProviderResponseSchema: z.ZodObject<{
4439
5045
  drift: z.ZodDefault<z.ZodArray<z.ZodObject<{
4440
5046
  code: z.ZodString;
4441
5047
  severity: z.ZodEnum<{
4442
- warn: "warn";
4443
5048
  fail: "fail";
5049
+ warn: "warn";
4444
5050
  }>;
4445
5051
  field: z.ZodString;
4446
5052
  expected: z.ZodDefault<z.ZodNullable<z.ZodUnknown>>;
@@ -4469,8 +5075,8 @@ export declare const opsRefreshRuntimeProviderResponseSchema: z.ZodObject<{
4469
5075
  status: z.ZodEnum<{
4470
5076
  unknown: "unknown";
4471
5077
  pass: "pass";
4472
- warn: "warn";
4473
5078
  fail: "fail";
5079
+ warn: "warn";
4474
5080
  }>;
4475
5081
  stale: z.ZodBoolean;
4476
5082
  counts: z.ZodObject<{
@@ -4488,7 +5094,8 @@ export declare const opsRefreshRuntimeProviderResponseSchema: z.ZodObject<{
4488
5094
  telegram_business_account: "telegram_business_account";
4489
5095
  telegram_employee_binding: "telegram_employee_binding";
4490
5096
  runtime_provider: "runtime_provider";
4491
- runtime_routing: "runtime_routing";
5097
+ runtime_model_profile: "runtime_model_profile";
5098
+ notification_routing_profile: "notification_routing_profile";
4492
5099
  }>;
4493
5100
  entityId: z.ZodString;
4494
5101
  businessProfileId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -4496,8 +5103,8 @@ export declare const opsRefreshRuntimeProviderResponseSchema: z.ZodObject<{
4496
5103
  status: z.ZodEnum<{
4497
5104
  unknown: "unknown";
4498
5105
  pass: "pass";
4499
- warn: "warn";
4500
5106
  fail: "fail";
5107
+ warn: "warn";
4501
5108
  }>;
4502
5109
  summary: z.ZodString;
4503
5110
  configured: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -4505,8 +5112,8 @@ export declare const opsRefreshRuntimeProviderResponseSchema: z.ZodObject<{
4505
5112
  drift: z.ZodDefault<z.ZodArray<z.ZodObject<{
4506
5113
  code: z.ZodString;
4507
5114
  severity: z.ZodEnum<{
4508
- warn: "warn";
4509
5115
  fail: "fail";
5116
+ warn: "warn";
4510
5117
  }>;
4511
5118
  field: z.ZodString;
4512
5119
  expected: z.ZodDefault<z.ZodNullable<z.ZodUnknown>>;
@@ -4545,8 +5152,8 @@ export declare const opsRefreshRuntimeProviderResponseSchema: z.ZodObject<{
4545
5152
  status: z.ZodEnum<{
4546
5153
  unknown: "unknown";
4547
5154
  pass: "pass";
4548
- warn: "warn";
4549
5155
  fail: "fail";
5156
+ warn: "warn";
4550
5157
  }>;
4551
5158
  summary: z.ZodString;
4552
5159
  checkedAt: z.ZodString;
@@ -4596,23 +5203,24 @@ export declare const opsReconcileBusinessResponseSchema: z.ZodObject<{
4596
5203
  telegram_business_account: "telegram_business_account";
4597
5204
  telegram_employee_binding: "telegram_employee_binding";
4598
5205
  runtime_provider: "runtime_provider";
4599
- runtime_routing: "runtime_routing";
5206
+ runtime_model_profile: "runtime_model_profile";
5207
+ notification_routing_profile: "notification_routing_profile";
4600
5208
  }>;
4601
5209
  entityId: z.ZodString;
4602
5210
  operation: z.ZodString;
4603
5211
  status: z.ZodEnum<{
4604
5212
  unknown: "unknown";
4605
5213
  pass: "pass";
4606
- warn: "warn";
4607
5214
  fail: "fail";
5215
+ warn: "warn";
4608
5216
  }>;
4609
5217
  actionsTaken: z.ZodDefault<z.ZodArray<z.ZodString>>;
4610
5218
  changesApplied: z.ZodDefault<z.ZodArray<z.ZodString>>;
4611
5219
  remainingDrift: z.ZodDefault<z.ZodArray<z.ZodObject<{
4612
5220
  code: z.ZodString;
4613
5221
  severity: z.ZodEnum<{
4614
- warn: "warn";
4615
5222
  fail: "fail";
5223
+ warn: "warn";
4616
5224
  }>;
4617
5225
  field: z.ZodString;
4618
5226
  expected: z.ZodDefault<z.ZodNullable<z.ZodUnknown>>;
@@ -4629,8 +5237,8 @@ export declare const opsReconcileBusinessResponseSchema: z.ZodObject<{
4629
5237
  status: z.ZodEnum<{
4630
5238
  unknown: "unknown";
4631
5239
  pass: "pass";
4632
- warn: "warn";
4633
5240
  fail: "fail";
5241
+ warn: "warn";
4634
5242
  }>;
4635
5243
  stale: z.ZodBoolean;
4636
5244
  counts: z.ZodObject<{
@@ -4648,7 +5256,8 @@ export declare const opsReconcileBusinessResponseSchema: z.ZodObject<{
4648
5256
  telegram_business_account: "telegram_business_account";
4649
5257
  telegram_employee_binding: "telegram_employee_binding";
4650
5258
  runtime_provider: "runtime_provider";
4651
- runtime_routing: "runtime_routing";
5259
+ runtime_model_profile: "runtime_model_profile";
5260
+ notification_routing_profile: "notification_routing_profile";
4652
5261
  }>;
4653
5262
  entityId: z.ZodString;
4654
5263
  businessProfileId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -4656,8 +5265,8 @@ export declare const opsReconcileBusinessResponseSchema: z.ZodObject<{
4656
5265
  status: z.ZodEnum<{
4657
5266
  unknown: "unknown";
4658
5267
  pass: "pass";
4659
- warn: "warn";
4660
5268
  fail: "fail";
5269
+ warn: "warn";
4661
5270
  }>;
4662
5271
  summary: z.ZodString;
4663
5272
  configured: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -4665,8 +5274,8 @@ export declare const opsReconcileBusinessResponseSchema: z.ZodObject<{
4665
5274
  drift: z.ZodDefault<z.ZodArray<z.ZodObject<{
4666
5275
  code: z.ZodString;
4667
5276
  severity: z.ZodEnum<{
4668
- warn: "warn";
4669
5277
  fail: "fail";
5278
+ warn: "warn";
4670
5279
  }>;
4671
5280
  field: z.ZodString;
4672
5281
  expected: z.ZodDefault<z.ZodNullable<z.ZodUnknown>>;
@@ -4705,8 +5314,8 @@ export declare const opsReconcileBusinessResponseSchema: z.ZodObject<{
4705
5314
  status: z.ZodEnum<{
4706
5315
  unknown: "unknown";
4707
5316
  pass: "pass";
4708
- warn: "warn";
4709
5317
  fail: "fail";
5318
+ warn: "warn";
4710
5319
  }>;
4711
5320
  summary: z.ZodString;
4712
5321
  checkedAt: z.ZodString;
@@ -4775,6 +5384,10 @@ export type SchemaMigrationLedgerEntry = z.infer<typeof schemaMigrationLedgerEnt
4775
5384
  export type SchemaMigrationChecksumMismatch = z.infer<typeof schemaMigrationChecksumMismatchSchema>;
4776
5385
  export type SchemaMigrationSourceKind = z.infer<typeof schemaMigrationSourceKindSchema>;
4777
5386
  export type SchemaMigrationStatus = z.infer<typeof schemaMigrationStatusSchema>;
5387
+ export type LegacyReconcileKind = z.infer<typeof legacyReconcileKindSchema>;
5388
+ export type LegacyReconcileItem = z.infer<typeof legacyReconcileItemSchema>;
5389
+ export type LegacyReconcileStatus = z.infer<typeof legacyReconcileStatusSchema>;
5390
+ export type LegacyReconcileResult = z.infer<typeof legacyReconcileResultSchema>;
4778
5391
  export type BackupArtifactKind = z.infer<typeof backupArtifactKindSchema>;
4779
5392
  export type BackupArtifactSourceKind = z.infer<typeof backupArtifactSourceKindSchema>;
4780
5393
  export type BackupArtifactCoverage = z.infer<typeof backupArtifactCoverageSchema>;
@@ -4795,8 +5408,12 @@ export type OpsGetReadinessInput = z.infer<typeof opsGetReadinessRequestSchema>;
4795
5408
  export type OpsGetReadinessOutput = z.infer<typeof opsGetReadinessResponseSchema>;
4796
5409
  export type OpsGetSchemaStatusInput = z.infer<typeof opsGetSchemaStatusRequestSchema>;
4797
5410
  export type OpsGetSchemaStatusOutput = z.infer<typeof opsGetSchemaStatusResponseSchema>;
5411
+ export type OpsGetLegacyReconcileStatusInput = z.infer<typeof opsGetLegacyReconcileStatusRequestSchema>;
5412
+ export type OpsGetLegacyReconcileStatusOutput = z.infer<typeof opsGetLegacyReconcileStatusResponseSchema>;
4798
5413
  export type OpsApplySchemaMigrationsInput = z.infer<typeof opsApplySchemaMigrationsRequestSchema>;
4799
5414
  export type OpsApplySchemaMigrationsOutput = z.infer<typeof opsApplySchemaMigrationsResponseSchema>;
5415
+ export type OpsApplyLegacyReconcileInput = z.infer<typeof opsApplyLegacyReconcileRequestSchema>;
5416
+ export type OpsApplyLegacyReconcileOutput = z.infer<typeof opsApplyLegacyReconcileResponseSchema>;
4800
5417
  export type OpsCreateBackupArtifactInput = z.infer<typeof opsCreateBackupArtifactRequestSchema>;
4801
5418
  export type OpsCreateBackupArtifactOutput = z.infer<typeof opsCreateBackupArtifactResponseSchema>;
4802
5419
  export type OpsListBackupArtifactsInput = z.infer<typeof opsListBackupArtifactsRequestSchema>;
@@ -4823,6 +5440,17 @@ export type OpsGetReleaseVerificationInput = z.infer<typeof opsGetReleaseVerific
4823
5440
  export type OpsGetReleaseVerificationOutput = z.infer<typeof opsGetReleaseVerificationResponseSchema>;
4824
5441
  export type OpsGetDiagnosticsInput = z.infer<typeof opsGetDiagnosticsRequestSchema>;
4825
5442
  export type OpsGetDiagnosticsOutput = z.infer<typeof opsGetDiagnosticsResponseSchema>;
5443
+ export type NotificationRoutingClass = z.infer<typeof notificationRoutingClassSchema>;
5444
+ export type NotificationRoutingRecipient = z.infer<typeof notificationRoutingRecipientSchema>;
5445
+ export type NotificationRoutingRecipientInput = z.infer<typeof notificationRoutingRecipientInputSchema>;
5446
+ export type NotificationRoutingRoute = z.infer<typeof notificationRoutingRouteSchema>;
5447
+ export type NotificationRoutingProfile = z.infer<typeof notificationRoutingProfileSchema>;
5448
+ export type OpsGetNotificationRoutingInput = z.infer<typeof opsGetNotificationRoutingRequestSchema>;
5449
+ export type OpsGetNotificationRoutingOutput = z.infer<typeof opsGetNotificationRoutingResponseSchema>;
5450
+ export type OpsAddNotificationRoutingRecipientInput = z.infer<typeof opsAddNotificationRoutingRecipientRequestSchema>;
5451
+ export type OpsAddNotificationRoutingRecipientOutput = z.infer<typeof opsAddNotificationRoutingRecipientResponseSchema>;
5452
+ export type OpsRemoveNotificationRoutingRecipientInput = z.infer<typeof opsRemoveNotificationRoutingRecipientRequestSchema>;
5453
+ export type OpsRemoveNotificationRoutingRecipientOutput = z.infer<typeof opsRemoveNotificationRoutingRecipientResponseSchema>;
4826
5454
  export type OpsRefreshTelegramIntegrationInput = z.infer<typeof opsRefreshTelegramIntegrationRequestSchema>;
4827
5455
  export type OpsRefreshTelegramIntegrationOutput = z.infer<typeof opsRefreshTelegramIntegrationResponseSchema>;
4828
5456
  export type OpsRefreshRuntimeProviderInput = z.infer<typeof opsRefreshRuntimeProviderRequestSchema>;