@selleragent/api-contract 0.6.0 → 0.8.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;
@@ -380,8 +453,8 @@ export declare const restoreDrillRecordSchema: z.ZodObject<{
380
453
  export declare const rolloutPhaseStatusSchema: z.ZodEnum<{
381
454
  skipped: "skipped";
382
455
  pass: "pass";
383
- warn: "warn";
384
456
  fail: "fail";
457
+ warn: "warn";
385
458
  }>;
386
459
  export declare const rolloutExecutionStatusSchema: z.ZodEnum<{
387
460
  completed: "completed";
@@ -404,8 +477,8 @@ export declare const rolloutPhaseRecordSchema: z.ZodObject<{
404
477
  status: z.ZodEnum<{
405
478
  skipped: "skipped";
406
479
  pass: "pass";
407
- warn: "warn";
408
480
  fail: "fail";
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>>;
@@ -445,8 +518,8 @@ export declare const rolloutExecutionRecordSchema: z.ZodObject<{
445
518
  status: z.ZodEnum<{
446
519
  skipped: "skipped";
447
520
  pass: "pass";
448
- warn: "warn";
449
521
  fail: "fail";
522
+ warn: "warn";
450
523
  }>;
451
524
  summary: z.ZodString;
452
525
  details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -461,8 +534,8 @@ export declare const releaseVerificationPhaseRecordSchema: z.ZodObject<{
461
534
  status: z.ZodEnum<{
462
535
  skipped: "skipped";
463
536
  pass: "pass";
464
- warn: "warn";
465
537
  fail: "fail";
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>>;
@@ -503,8 +576,8 @@ export declare const releaseVerificationRecordSchema: z.ZodObject<{
503
576
  status: z.ZodEnum<{
504
577
  skipped: "skipped";
505
578
  pass: "pass";
506
- warn: "warn";
507
579
  fail: "fail";
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>>;
@@ -547,8 +620,8 @@ export declare const opsRecordRolloutExecutionRequestSchema: z.ZodObject<{
547
620
  status: z.ZodEnum<{
548
621
  skipped: "skipped";
549
622
  pass: "pass";
550
- warn: "warn";
551
623
  fail: "fail";
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>>;
@@ -592,8 +665,8 @@ export declare const opsRecordRolloutExecutionResponseSchema: z.ZodObject<{
592
665
  status: z.ZodEnum<{
593
666
  skipped: "skipped";
594
667
  pass: "pass";
595
- warn: "warn";
596
668
  fail: "fail";
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>>;
@@ -641,8 +714,8 @@ export declare const opsListRolloutExecutionsResponseSchema: z.ZodObject<{
641
714
  status: z.ZodEnum<{
642
715
  skipped: "skipped";
643
716
  pass: "pass";
644
- warn: "warn";
645
717
  fail: "fail";
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>>;
@@ -689,8 +762,8 @@ export declare const opsGetRolloutExecutionResponseSchema: z.ZodObject<{
689
762
  status: z.ZodEnum<{
690
763
  skipped: "skipped";
691
764
  pass: "pass";
692
- warn: "warn";
693
765
  fail: "fail";
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>>;
@@ -735,8 +808,8 @@ export declare const opsRecordReleaseVerificationRequestSchema: z.ZodObject<{
735
808
  status: z.ZodEnum<{
736
809
  skipped: "skipped";
737
810
  pass: "pass";
738
- warn: "warn";
739
811
  fail: "fail";
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>>;
@@ -781,8 +854,8 @@ export declare const opsRecordReleaseVerificationResponseSchema: z.ZodObject<{
781
854
  status: z.ZodEnum<{
782
855
  skipped: "skipped";
783
856
  pass: "pass";
784
- warn: "warn";
785
857
  fail: "fail";
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>>;
@@ -832,8 +905,8 @@ export declare const opsListReleaseVerificationsResponseSchema: z.ZodObject<{
832
905
  status: z.ZodEnum<{
833
906
  skipped: "skipped";
834
907
  pass: "pass";
835
- warn: "warn";
836
908
  fail: "fail";
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>>;
@@ -881,8 +954,8 @@ export declare const opsGetReleaseVerificationResponseSchema: z.ZodObject<{
881
954
  status: z.ZodEnum<{
882
955
  skipped: "skipped";
883
956
  pass: "pass";
884
- warn: "warn";
885
957
  fail: "fail";
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;
@@ -1026,8 +1100,8 @@ export declare const conversationFeedFilterSchema: z.ZodObject<{
1026
1100
  }>>>;
1027
1101
  ownershipMode: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1028
1102
  ai: "ai";
1029
- human: "human";
1030
1103
  hybrid: "hybrid";
1104
+ human: "human";
1031
1105
  }>>>;
1032
1106
  channelKind: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1033
1107
  telegram: "telegram";
@@ -1058,8 +1132,8 @@ export declare const conversationFeedItemSchema: z.ZodObject<{
1058
1132
  }>;
1059
1133
  ownershipMode: z.ZodEnum<{
1060
1134
  ai: "ai";
1061
- human: "human";
1062
1135
  hybrid: "hybrid";
1136
+ human: "human";
1063
1137
  }>;
1064
1138
  assistMode: z.ZodEnum<{
1065
1139
  off: "off";
@@ -1077,8 +1151,8 @@ 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";
1155
+ ai: "ai";
1082
1156
  operator: "operator";
1083
1157
  system: "system";
1084
1158
  }>>>;
@@ -1118,8 +1192,8 @@ export declare const linkedConversationSummarySchema: z.ZodObject<{
1118
1192
  }>;
1119
1193
  ownershipMode: z.ZodEnum<{
1120
1194
  ai: "ai";
1121
- human: "human";
1122
1195
  hybrid: "hybrid";
1196
+ human: "human";
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<{
@@ -1158,8 +1232,8 @@ export declare const outboundPlanMediaDiscoveryRecordSchema: z.ZodObject<{
1158
1232
  reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1159
1233
  topicHint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1160
1234
  desiredKinds: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1161
- document: "document";
1162
1235
  image: "image";
1236
+ document: "document";
1163
1237
  link: "link";
1164
1238
  deck: "deck";
1165
1239
  }>>>;
@@ -1175,8 +1249,8 @@ export declare const outboundPlanSelectedAssetSchema: z.ZodObject<{
1175
1249
  assetId: z.ZodString;
1176
1250
  folderKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1177
1251
  kind: z.ZodEnum<{
1178
- document: "document";
1179
1252
  image: "image";
1253
+ document: "document";
1180
1254
  link: "link";
1181
1255
  deck: "deck";
1182
1256
  }>;
@@ -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";
1278
+ skipped: "skipped";
1203
1279
  sent: "sent";
1204
1280
  simulated: "simulated";
1205
- 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,10 +1292,10 @@ export declare const outboundPlanDiagnosticsSchema: z.ZodObject<{
1218
1292
  final_outbound_plan: "final_outbound_plan";
1219
1293
  }>;
1220
1294
  status: z.ZodEnum<{
1295
+ draft: "draft";
1296
+ failed: "failed";
1221
1297
  superseded: "superseded";
1222
1298
  sent: "sent";
1223
- failed: "failed";
1224
- draft: "draft";
1225
1299
  partial: "partial";
1226
1300
  }>;
1227
1301
  basedOnCustomerMessageId: z.ZodString;
@@ -1242,8 +1316,8 @@ export declare const outboundPlanDiagnosticsSchema: z.ZodObject<{
1242
1316
  reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1243
1317
  topicHint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1244
1318
  desiredKinds: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1245
- document: "document";
1246
1319
  image: "image";
1320
+ document: "document";
1247
1321
  link: "link";
1248
1322
  deck: "deck";
1249
1323
  }>>>;
@@ -1259,8 +1333,8 @@ export declare const outboundPlanDiagnosticsSchema: z.ZodObject<{
1259
1333
  assetId: z.ZodString;
1260
1334
  folderKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1261
1335
  kind: z.ZodEnum<{
1262
- document: "document";
1263
1336
  image: "image";
1337
+ document: "document";
1264
1338
  link: "link";
1265
1339
  deck: "deck";
1266
1340
  }>;
@@ -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";
1362
+ skipped: "skipped";
1287
1363
  sent: "sent";
1288
1364
  simulated: "simulated";
1289
- 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>>;
@@ -1307,8 +1381,8 @@ export declare const opsListConversationFeedRequestSchema: z.ZodObject<{
1307
1381
  }>>>;
1308
1382
  ownershipMode: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1309
1383
  ai: "ai";
1310
- human: "human";
1311
1384
  hybrid: "hybrid";
1385
+ human: "human";
1312
1386
  }>>>;
1313
1387
  channelKind: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1314
1388
  telegram: "telegram";
@@ -1340,8 +1414,8 @@ export declare const opsListConversationFeedResponseSchema: z.ZodObject<{
1340
1414
  }>;
1341
1415
  ownershipMode: z.ZodEnum<{
1342
1416
  ai: "ai";
1343
- human: "human";
1344
1417
  hybrid: "hybrid";
1418
+ human: "human";
1345
1419
  }>;
1346
1420
  assistMode: z.ZodEnum<{
1347
1421
  off: "off";
@@ -1359,8 +1433,8 @@ 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";
1437
+ ai: "ai";
1364
1438
  operator: "operator";
1365
1439
  system: "system";
1366
1440
  }>>>;
@@ -1406,8 +1480,8 @@ export declare const opsGetConversationWorkspaceResponseSchema: z.ZodObject<{
1406
1480
  }>;
1407
1481
  ownershipMode: z.ZodEnum<{
1408
1482
  ai: "ai";
1409
- human: "human";
1410
1483
  hybrid: "hybrid";
1484
+ human: "human";
1411
1485
  }>;
1412
1486
  assistMode: z.ZodEnum<{
1413
1487
  off: "off";
@@ -1425,8 +1499,8 @@ 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";
1503
+ ai: "ai";
1430
1504
  operator: "operator";
1431
1505
  system: "system";
1432
1506
  }>>>;
@@ -1468,8 +1542,8 @@ export declare const opsGetConversationWorkspaceResponseSchema: z.ZodObject<{
1468
1542
  channelThreadRef: z.ZodString;
1469
1543
  ownershipMode: z.ZodEnum<{
1470
1544
  ai: "ai";
1471
- human: "human";
1472
1545
  hybrid: "hybrid";
1546
+ human: "human";
1473
1547
  }>;
1474
1548
  assistMode: z.ZodEnum<{
1475
1549
  off: "off";
@@ -1506,8 +1580,8 @@ 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";
1584
+ ai: "ai";
1511
1585
  operator: "operator";
1512
1586
  system: "system";
1513
1587
  }>;
@@ -1522,8 +1596,8 @@ export declare const opsGetConversationWorkspaceResponseSchema: z.ZodObject<{
1522
1596
  conversationId: z.ZodString;
1523
1597
  messageId: z.ZodString;
1524
1598
  kind: z.ZodEnum<{
1525
- photo: "photo";
1526
1599
  document: "document";
1600
+ photo: "photo";
1527
1601
  audio: "audio";
1528
1602
  video: "video";
1529
1603
  other: "other";
@@ -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,8 +1651,8 @@ 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";
1655
+ ai: "ai";
1573
1656
  operator: "operator";
1574
1657
  system: "system";
1575
1658
  }>>>;
@@ -1586,8 +1669,8 @@ 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";
1673
+ ai: "ai";
1591
1674
  operator: "operator";
1592
1675
  system: "system";
1593
1676
  }>>>;
@@ -1611,10 +1694,10 @@ export declare const opsGetConversationWorkspaceResponseSchema: z.ZodObject<{
1611
1694
  }>;
1612
1695
  status: z.ZodEnum<{
1613
1696
  active: "active";
1697
+ superseded: "superseded";
1614
1698
  viewed: "viewed";
1615
1699
  accepted: "accepted";
1616
1700
  dismissed: "dismissed";
1617
- superseded: "superseded";
1618
1701
  }>;
1619
1702
  textPreview: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1620
1703
  outputJson: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -1633,8 +1716,8 @@ export declare const opsGetConversationWorkspaceResponseSchema: z.ZodObject<{
1633
1716
  conversationId: z.ZodString;
1634
1717
  sourceMessageId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1635
1718
  mode: z.ZodEnum<{
1636
- reply: "reply";
1637
1719
  draft: "draft";
1720
+ reply: "reply";
1638
1721
  review: "review";
1639
1722
  }>;
1640
1723
  status: z.ZodEnum<{
@@ -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;
@@ -1837,6 +1908,38 @@ export declare const opsGetConversationWorkspaceResponseSchema: z.ZodObject<{
1837
1908
  model: "model";
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
+ request_media_folders: "request_media_folders";
1915
+ request_media_folder_contents: "request_media_folder_contents";
1916
+ "handoff.request": "handoff.request";
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<{
@@ -1851,8 +1954,8 @@ export declare const opsGetConversationWorkspaceResponseSchema: z.ZodObject<{
1851
1954
  reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1852
1955
  topicHint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1853
1956
  desiredKinds: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1854
- document: "document";
1855
1957
  image: "image";
1958
+ document: "document";
1856
1959
  link: "link";
1857
1960
  deck: "deck";
1858
1961
  }>>>;
@@ -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
  }>;
@@ -1878,8 +1999,8 @@ export declare const opsGetConversationWorkspaceResponseSchema: z.ZodObject<{
1878
1999
  corrective_retry: "corrective_retry";
1879
2000
  }>;
1880
2001
  status: z.ZodEnum<{
1881
- failed: "failed";
1882
2002
  succeeded: "succeeded";
2003
+ failed: "failed";
1883
2004
  }>;
1884
2005
  promptMeta: z.ZodObject<{
1885
2006
  promptId: z.ZodString;
@@ -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
+ succeeded: "succeeded";
2039
+ failed: "failed";
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
+ configuration: "configuration";
2051
+ provider: "provider";
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";
@@ -1924,9 +2104,9 @@ export declare const opsGetConversationWorkspaceResponseSchema: z.ZodObject<{
1924
2104
  "followup.schedule": "followup.schedule";
1925
2105
  }>;
1926
2106
  status: z.ZodEnum<{
1927
- skipped: "skipped";
1928
2107
  blocked: "blocked";
1929
2108
  executed: "executed";
2109
+ skipped: "skipped";
1930
2110
  }>;
1931
2111
  summary: z.ZodString;
1932
2112
  metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -2035,9 +2215,9 @@ export declare const opsGetConversationWorkspaceResponseSchema: z.ZodObject<{
2035
2215
  title: z.ZodString;
2036
2216
  status: z.ZodEnum<{
2037
2217
  draft: "draft";
2038
- cancelled: "cancelled";
2039
2218
  paid: "paid";
2040
2219
  fulfilled: "fulfilled";
2220
+ cancelled: "cancelled";
2041
2221
  }>;
2042
2222
  occurredAt: z.ZodString;
2043
2223
  totalLabel: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -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
- service: "service";
2100
2278
  base: "base";
2101
2279
  option: "option";
2280
+ service: "service";
2281
+ bundle: "bundle";
2102
2282
  }>;
2103
2283
  status: z.ZodEnum<{
2104
2284
  active: "active";
@@ -2136,11 +2316,11 @@ export declare const opsGetConversationWorkspaceResponseSchema: z.ZodObject<{
2136
2316
  conversationId: z.ZodNullable<z.ZodString>;
2137
2317
  dealId: z.ZodNullable<z.ZodString>;
2138
2318
  status: z.ZodEnum<{
2139
- abandoned: "abandoned";
2140
2319
  suggested: "suggested";
2141
2320
  discussing: "discussing";
2142
2321
  confirmed: "confirmed";
2143
2322
  converted: "converted";
2323
+ abandoned: "abandoned";
2144
2324
  }>;
2145
2325
  currency: z.ZodString;
2146
2326
  title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -2180,9 +2360,9 @@ export declare const opsGetConversationWorkspaceResponseSchema: z.ZodObject<{
2180
2360
  conversationId: z.ZodNullable<z.ZodString>;
2181
2361
  activeCartId: z.ZodString;
2182
2362
  status: z.ZodEnum<{
2183
- draft: "draft";
2184
- abandoned: "abandoned";
2185
2363
  converted: "converted";
2364
+ abandoned: "abandoned";
2365
+ draft: "draft";
2186
2366
  quoted: "quoted";
2187
2367
  ready_for_payment: "ready_for_payment";
2188
2368
  }>;
@@ -2224,10 +2404,10 @@ export declare const opsGetConversationWorkspaceResponseSchema: z.ZodObject<{
2224
2404
  cartId: z.ZodString;
2225
2405
  title: z.ZodString;
2226
2406
  status: z.ZodEnum<{
2227
- cancelled: "cancelled";
2407
+ confirmed: "confirmed";
2228
2408
  paid: "paid";
2229
2409
  fulfilled: "fulfilled";
2230
- confirmed: "confirmed";
2410
+ cancelled: "cancelled";
2231
2411
  }>;
2232
2412
  currency: z.ZodString;
2233
2413
  totals: z.ZodObject<{
@@ -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
- service: "service";
2247
2425
  base: "base";
2248
2426
  option: "option";
2427
+ service: "service";
2428
+ bundle: "bundle";
2249
2429
  }>;
2250
2430
  parentItemId: z.ZodNullable<z.ZodString>;
2251
2431
  quantity: z.ZodNumber;
@@ -2305,8 +2485,8 @@ export declare const opsGetConversationWorkspaceResponseSchema: z.ZodObject<{
2305
2485
  operator_callback: "operator_callback";
2306
2486
  }>;
2307
2487
  status: z.ZodEnum<{
2308
- completed: "completed";
2309
2488
  cancelled: "cancelled";
2489
+ completed: "completed";
2310
2490
  pending: "pending";
2311
2491
  }>;
2312
2492
  policyAction: z.ZodEnum<{
@@ -2357,8 +2537,8 @@ export declare const opsGetConversationWorkspaceResponseSchema: z.ZodObject<{
2357
2537
  }>;
2358
2538
  ownershipMode: z.ZodEnum<{
2359
2539
  ai: "ai";
2360
- human: "human";
2361
2540
  hybrid: "hybrid";
2541
+ human: "human";
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,10 +2573,10 @@ export declare const opsGetConversationWorkspaceResponseSchema: z.ZodObject<{
2393
2573
  final_outbound_plan: "final_outbound_plan";
2394
2574
  }>;
2395
2575
  status: z.ZodEnum<{
2576
+ draft: "draft";
2577
+ failed: "failed";
2396
2578
  superseded: "superseded";
2397
2579
  sent: "sent";
2398
- failed: "failed";
2399
- draft: "draft";
2400
2580
  partial: "partial";
2401
2581
  }>;
2402
2582
  basedOnCustomerMessageId: z.ZodString;
@@ -2417,8 +2597,8 @@ export declare const opsGetConversationWorkspaceResponseSchema: z.ZodObject<{
2417
2597
  reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2418
2598
  topicHint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2419
2599
  desiredKinds: z.ZodDefault<z.ZodArray<z.ZodEnum<{
2420
- document: "document";
2421
2600
  image: "image";
2601
+ document: "document";
2422
2602
  link: "link";
2423
2603
  deck: "deck";
2424
2604
  }>>>;
@@ -2434,8 +2614,8 @@ export declare const opsGetConversationWorkspaceResponseSchema: z.ZodObject<{
2434
2614
  assetId: z.ZodString;
2435
2615
  folderKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2436
2616
  kind: z.ZodEnum<{
2437
- document: "document";
2438
2617
  image: "image";
2618
+ document: "document";
2439
2619
  link: "link";
2440
2620
  deck: "deck";
2441
2621
  }>;
@@ -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";
2643
+ skipped: "skipped";
2462
2644
  sent: "sent";
2463
2645
  simulated: "simulated";
2464
- 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>>;
@@ -2478,8 +2658,8 @@ export declare const opsSetOwnershipModeRequestSchema: z.ZodObject<{
2478
2658
  conversationId: z.ZodString;
2479
2659
  ownershipMode: z.ZodEnum<{
2480
2660
  ai: "ai";
2481
- human: "human";
2482
2661
  hybrid: "hybrid";
2662
+ human: "human";
2483
2663
  }>;
2484
2664
  requestedBy: z.ZodObject<{
2485
2665
  operatorId: z.ZodString;
@@ -2507,8 +2687,8 @@ export declare const opsSetOwnershipModeResponseSchema: z.ZodObject<{
2507
2687
  channelThreadRef: z.ZodString;
2508
2688
  ownershipMode: z.ZodEnum<{
2509
2689
  ai: "ai";
2510
- human: "human";
2511
2690
  hybrid: "hybrid";
2691
+ human: "human";
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,8 +2760,8 @@ 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";
2764
+ ai: "ai";
2576
2765
  operator: "operator";
2577
2766
  system: "system";
2578
2767
  }>>>;
@@ -2598,8 +2787,8 @@ export declare const opsSetOwnershipModeResponseSchema: z.ZodObject<{
2598
2787
  }>;
2599
2788
  ownershipMode: z.ZodEnum<{
2600
2789
  ai: "ai";
2601
- human: "human";
2602
2790
  hybrid: "hybrid";
2791
+ human: "human";
2603
2792
  }>;
2604
2793
  assistMode: z.ZodEnum<{
2605
2794
  off: "off";
@@ -2617,8 +2806,8 @@ 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";
2810
+ ai: "ai";
2622
2811
  operator: "operator";
2623
2812
  system: "system";
2624
2813
  }>>>;
@@ -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<{
@@ -2673,8 +2862,8 @@ export declare const opsStartHandoffResponseSchema: z.ZodObject<{
2673
2862
  channelThreadRef: z.ZodString;
2674
2863
  ownershipMode: z.ZodEnum<{
2675
2864
  ai: "ai";
2676
- human: "human";
2677
2865
  hybrid: "hybrid";
2866
+ human: "human";
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,8 +2949,8 @@ 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";
2953
+ ai: "ai";
2756
2954
  operator: "operator";
2757
2955
  system: "system";
2758
2956
  }>>>;
@@ -2778,8 +2976,8 @@ export declare const opsStartHandoffResponseSchema: z.ZodObject<{
2778
2976
  }>;
2779
2977
  ownershipMode: z.ZodEnum<{
2780
2978
  ai: "ai";
2781
- human: "human";
2782
2979
  hybrid: "hybrid";
2980
+ human: "human";
2783
2981
  }>;
2784
2982
  assistMode: z.ZodEnum<{
2785
2983
  off: "off";
@@ -2797,8 +2995,8 @@ 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";
2999
+ ai: "ai";
2802
3000
  operator: "operator";
2803
3001
  system: "system";
2804
3002
  }>>>;
@@ -2857,8 +3055,8 @@ export declare const opsAddOperatorNoteResponseSchema: z.ZodObject<{
2857
3055
  }>;
2858
3056
  ownershipMode: z.ZodEnum<{
2859
3057
  ai: "ai";
2860
- human: "human";
2861
3058
  hybrid: "hybrid";
3059
+ human: "human";
2862
3060
  }>;
2863
3061
  assistMode: z.ZodEnum<{
2864
3062
  off: "off";
@@ -2876,8 +3074,8 @@ 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";
3078
+ ai: "ai";
2881
3079
  operator: "operator";
2882
3080
  system: "system";
2883
3081
  }>>>;
@@ -2929,8 +3127,8 @@ export declare const opsSendOperatorMessageResponseSchema: z.ZodObject<{
2929
3127
  channelThreadRef: z.ZodString;
2930
3128
  ownershipMode: z.ZodEnum<{
2931
3129
  ai: "ai";
2932
- human: "human";
2933
3130
  hybrid: "hybrid";
3131
+ human: "human";
2934
3132
  }>;
2935
3133
  assistMode: z.ZodEnum<{
2936
3134
  off: "off";
@@ -2967,8 +3165,8 @@ 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";
3169
+ ai: "ai";
2972
3170
  operator: "operator";
2973
3171
  system: "system";
2974
3172
  }>;
@@ -2983,8 +3181,8 @@ export declare const opsSendOperatorMessageResponseSchema: z.ZodObject<{
2983
3181
  conversationId: z.ZodString;
2984
3182
  messageId: z.ZodString;
2985
3183
  kind: z.ZodEnum<{
2986
- photo: "photo";
2987
3184
  document: "document";
3185
+ photo: "photo";
2988
3186
  audio: "audio";
2989
3187
  video: "video";
2990
3188
  other: "other";
@@ -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,8 +3236,8 @@ 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";
3240
+ ai: "ai";
3034
3241
  operator: "operator";
3035
3242
  system: "system";
3036
3243
  }>>>;
@@ -3047,8 +3254,8 @@ 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";
3258
+ ai: "ai";
3052
3259
  operator: "operator";
3053
3260
  system: "system";
3054
3261
  }>>>;
@@ -3072,10 +3279,10 @@ export declare const opsSendOperatorMessageResponseSchema: z.ZodObject<{
3072
3279
  }>;
3073
3280
  status: z.ZodEnum<{
3074
3281
  active: "active";
3282
+ superseded: "superseded";
3075
3283
  viewed: "viewed";
3076
3284
  accepted: "accepted";
3077
3285
  dismissed: "dismissed";
3078
- superseded: "superseded";
3079
3286
  }>;
3080
3287
  textPreview: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3081
3288
  outputJson: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -3094,8 +3301,8 @@ export declare const opsSendOperatorMessageResponseSchema: z.ZodObject<{
3094
3301
  conversationId: z.ZodString;
3095
3302
  sourceMessageId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3096
3303
  mode: z.ZodEnum<{
3097
- reply: "reply";
3098
3304
  draft: "draft";
3305
+ reply: "reply";
3099
3306
  review: "review";
3100
3307
  }>;
3101
3308
  status: z.ZodEnum<{
@@ -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;
@@ -3298,6 +3493,38 @@ export declare const opsSendOperatorMessageResponseSchema: z.ZodObject<{
3298
3493
  model: "model";
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
+ request_media_folders: "request_media_folders";
3500
+ request_media_folder_contents: "request_media_folder_contents";
3501
+ "handoff.request": "handoff.request";
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<{
@@ -3312,8 +3539,8 @@ export declare const opsSendOperatorMessageResponseSchema: z.ZodObject<{
3312
3539
  reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3313
3540
  topicHint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3314
3541
  desiredKinds: z.ZodDefault<z.ZodArray<z.ZodEnum<{
3315
- document: "document";
3316
3542
  image: "image";
3543
+ document: "document";
3317
3544
  link: "link";
3318
3545
  deck: "deck";
3319
3546
  }>>>;
@@ -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
  }>;
@@ -3339,8 +3584,8 @@ export declare const opsSendOperatorMessageResponseSchema: z.ZodObject<{
3339
3584
  corrective_retry: "corrective_retry";
3340
3585
  }>;
3341
3586
  status: z.ZodEnum<{
3342
- failed: "failed";
3343
3587
  succeeded: "succeeded";
3588
+ failed: "failed";
3344
3589
  }>;
3345
3590
  promptMeta: z.ZodObject<{
3346
3591
  promptId: z.ZodString;
@@ -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
+ succeeded: "succeeded";
3624
+ failed: "failed";
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
+ configuration: "configuration";
3636
+ provider: "provider";
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";
@@ -3385,9 +3689,9 @@ export declare const opsSendOperatorMessageResponseSchema: z.ZodObject<{
3385
3689
  "followup.schedule": "followup.schedule";
3386
3690
  }>;
3387
3691
  status: z.ZodEnum<{
3388
- skipped: "skipped";
3389
3692
  blocked: "blocked";
3390
3693
  executed: "executed";
3694
+ skipped: "skipped";
3391
3695
  }>;
3392
3696
  summary: z.ZodString;
3393
3697
  metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -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,8 +3739,8 @@ 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";
3743
+ ai: "ai";
3431
3744
  operator: "operator";
3432
3745
  system: "system";
3433
3746
  }>>>;
@@ -3448,10 +3761,10 @@ export declare const opsSendOperatorMessageResponseSchema: z.ZodObject<{
3448
3761
  }>;
3449
3762
  status: z.ZodEnum<{
3450
3763
  active: "active";
3764
+ superseded: "superseded";
3451
3765
  viewed: "viewed";
3452
3766
  accepted: "accepted";
3453
3767
  dismissed: "dismissed";
3454
- superseded: "superseded";
3455
3768
  }>;
3456
3769
  textPreview: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3457
3770
  outputJson: 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";
3792
+ skipped: "skipped";
3478
3793
  sent: "sent";
3479
3794
  simulated: "simulated";
3480
- 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>>;
@@ -3512,8 +3825,8 @@ export declare const opsSendOperatorMessageResponseSchema: z.ZodObject<{
3512
3825
  }>;
3513
3826
  ownershipMode: z.ZodEnum<{
3514
3827
  ai: "ai";
3515
- human: "human";
3516
3828
  hybrid: "hybrid";
3829
+ human: "human";
3517
3830
  }>;
3518
3831
  assistMode: z.ZodEnum<{
3519
3832
  off: "off";
@@ -3531,8 +3844,8 @@ 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";
3848
+ ai: "ai";
3536
3849
  operator: "operator";
3537
3850
  system: "system";
3538
3851
  }>>>;
@@ -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
+ operator: "operator";
4657
+ role: "role";
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
+ operator: "operator";
4671
+ role: "role";
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
+ operator: "operator";
4689
+ role: "role";
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
+ operator: "operator";
4711
+ role: "role";
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
+ operator: "operator";
4738
+ role: "role";
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
+ operator: "operator";
4761
+ role: "role";
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
+ operator: "operator";
4783
+ role: "role";
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
+ operator: "operator";
4806
+ role: "role";
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
+ operator: "operator";
4828
+ role: "role";
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>;