@selleragent/api-contract 0.7.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,15 +13,15 @@ export declare const conversationStatusSchema: z.ZodEnum<{
13
13
  archived: "archived";
14
14
  }>;
15
15
  export declare const ownershipModeSchema: z.ZodEnum<{
16
+ hybrid: "hybrid";
16
17
  ai: "ai";
17
18
  human: "human";
18
- hybrid: "hybrid";
19
19
  }>;
20
20
  export declare const messageAuthorKindSchema: z.ZodEnum<{
21
- ai: "ai";
22
21
  customer: "customer";
23
- operator: "operator";
24
22
  system: "system";
23
+ operator: "operator";
24
+ ai: "ai";
25
25
  }>;
26
26
  export declare const messageDeliveryKindSchema: z.ZodEnum<{
27
27
  inbound: "inbound";
@@ -39,6 +39,15 @@ export declare const conversationEventKindSchema: z.ZodEnum<{
39
39
  "message.sent": "message.sent";
40
40
  "message.edited": "message.edited";
41
41
  "message.deleted": "message.deleted";
42
+ "reply.burst.opened": "reply.burst.opened";
43
+ "reply.burst.updated": "reply.burst.updated";
44
+ "reply.burst.completed": "reply.burst.completed";
45
+ "reply.job.scheduled": "reply.job.scheduled";
46
+ "reply.job.started": "reply.job.started";
47
+ "reply.job.completed": "reply.job.completed";
48
+ "reply.job.failed": "reply.job.failed";
49
+ "reply.job.superseded": "reply.job.superseded";
50
+ "reply.job.cancelled": "reply.job.cancelled";
42
51
  "attachments.normalized": "attachments.normalized";
43
52
  "conversation.created": "conversation.created";
44
53
  "conversation.linked": "conversation.linked";
@@ -122,9 +131,9 @@ export declare const conversationSchema: z.ZodObject<{
122
131
  }>;
123
132
  channelThreadRef: z.ZodString;
124
133
  ownershipMode: z.ZodEnum<{
134
+ hybrid: "hybrid";
125
135
  ai: "ai";
126
136
  human: "human";
127
- hybrid: "hybrid";
128
137
  }>;
129
138
  assistMode: z.ZodEnum<{
130
139
  off: "off";
@@ -196,10 +205,10 @@ export declare const messageSchema: z.ZodObject<{
196
205
  messageId: z.ZodString;
197
206
  conversationId: z.ZodString;
198
207
  authorKind: z.ZodEnum<{
199
- ai: "ai";
200
208
  customer: "customer";
201
- operator: "operator";
202
209
  system: "system";
210
+ operator: "operator";
211
+ ai: "ai";
203
212
  }>;
204
213
  deliveryKind: z.ZodEnum<{
205
214
  inbound: "inbound";
@@ -237,6 +246,15 @@ export declare const conversationEventSchema: z.ZodObject<{
237
246
  "message.sent": "message.sent";
238
247
  "message.edited": "message.edited";
239
248
  "message.deleted": "message.deleted";
249
+ "reply.burst.opened": "reply.burst.opened";
250
+ "reply.burst.updated": "reply.burst.updated";
251
+ "reply.burst.completed": "reply.burst.completed";
252
+ "reply.job.scheduled": "reply.job.scheduled";
253
+ "reply.job.started": "reply.job.started";
254
+ "reply.job.completed": "reply.job.completed";
255
+ "reply.job.failed": "reply.job.failed";
256
+ "reply.job.superseded": "reply.job.superseded";
257
+ "reply.job.cancelled": "reply.job.cancelled";
240
258
  "attachments.normalized": "attachments.normalized";
241
259
  "conversation.created": "conversation.created";
242
260
  "conversation.linked": "conversation.linked";
@@ -259,10 +277,10 @@ export declare const conversationEventSchema: z.ZodObject<{
259
277
  }>;
260
278
  title: z.ZodString;
261
279
  actorKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
262
- ai: "ai";
263
280
  customer: "customer";
264
- operator: "operator";
265
281
  system: "system";
282
+ operator: "operator";
283
+ ai: "ai";
266
284
  }>>>;
267
285
  createdAt: z.ZodString;
268
286
  payload: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -278,10 +296,10 @@ export declare const timelineEntrySchema: z.ZodObject<{
278
296
  occurredAt: z.ZodString;
279
297
  title: z.ZodString;
280
298
  actorKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
281
- ai: "ai";
282
299
  customer: "customer";
283
- operator: "operator";
284
300
  system: "system";
301
+ operator: "operator";
302
+ ai: "ai";
285
303
  }>>>;
286
304
  textPreview: z.ZodDefault<z.ZodNullable<z.ZodString>>;
287
305
  messageId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -332,10 +350,10 @@ export declare const outboundDispatchSchema: z.ZodObject<{
332
350
  manual: "manual";
333
351
  }>;
334
352
  deliveryStatus: z.ZodEnum<{
353
+ failed: "failed";
335
354
  sent: "sent";
336
355
  simulated: "simulated";
337
356
  skipped: "skipped";
338
- failed: "failed";
339
357
  }>;
340
358
  planId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
341
359
  stepId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -370,9 +388,9 @@ export declare const conversationContextSchema: z.ZodObject<{
370
388
  }>;
371
389
  channelThreadRef: z.ZodString;
372
390
  ownershipMode: z.ZodEnum<{
391
+ hybrid: "hybrid";
373
392
  ai: "ai";
374
393
  human: "human";
375
- hybrid: "hybrid";
376
394
  }>;
377
395
  assistMode: z.ZodEnum<{
378
396
  off: "off";
@@ -409,10 +427,10 @@ export declare const conversationContextSchema: z.ZodObject<{
409
427
  messageId: z.ZodString;
410
428
  conversationId: z.ZodString;
411
429
  authorKind: z.ZodEnum<{
412
- ai: "ai";
413
430
  customer: "customer";
414
- operator: "operator";
415
431
  system: "system";
432
+ operator: "operator";
433
+ ai: "ai";
416
434
  }>;
417
435
  deliveryKind: z.ZodEnum<{
418
436
  inbound: "inbound";
@@ -449,6 +467,15 @@ export declare const conversationContextSchema: z.ZodObject<{
449
467
  "message.sent": "message.sent";
450
468
  "message.edited": "message.edited";
451
469
  "message.deleted": "message.deleted";
470
+ "reply.burst.opened": "reply.burst.opened";
471
+ "reply.burst.updated": "reply.burst.updated";
472
+ "reply.burst.completed": "reply.burst.completed";
473
+ "reply.job.scheduled": "reply.job.scheduled";
474
+ "reply.job.started": "reply.job.started";
475
+ "reply.job.completed": "reply.job.completed";
476
+ "reply.job.failed": "reply.job.failed";
477
+ "reply.job.superseded": "reply.job.superseded";
478
+ "reply.job.cancelled": "reply.job.cancelled";
452
479
  "attachments.normalized": "attachments.normalized";
453
480
  "conversation.created": "conversation.created";
454
481
  "conversation.linked": "conversation.linked";
@@ -471,10 +498,10 @@ export declare const conversationContextSchema: z.ZodObject<{
471
498
  }>;
472
499
  title: z.ZodString;
473
500
  actorKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
474
- ai: "ai";
475
501
  customer: "customer";
476
- operator: "operator";
477
502
  system: "system";
503
+ operator: "operator";
504
+ ai: "ai";
478
505
  }>>>;
479
506
  createdAt: z.ZodString;
480
507
  payload: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -489,10 +516,10 @@ export declare const conversationContextSchema: z.ZodObject<{
489
516
  occurredAt: z.ZodString;
490
517
  title: z.ZodString;
491
518
  actorKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
492
- ai: "ai";
493
519
  customer: "customer";
494
- operator: "operator";
495
520
  system: "system";
521
+ operator: "operator";
522
+ ai: "ai";
496
523
  }>>>;
497
524
  textPreview: z.ZodDefault<z.ZodNullable<z.ZodString>>;
498
525
  messageId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -545,8 +572,8 @@ export declare const conversationContextSchema: z.ZodObject<{
545
572
  blocked: "blocked";
546
573
  }>;
547
574
  generationMode: z.ZodEnum<{
548
- heuristic: "heuristic";
549
575
  model: "model";
576
+ heuristic: "heuristic";
550
577
  }>;
551
578
  provider: z.ZodString;
552
579
  modelId: z.ZodString;
@@ -568,8 +595,8 @@ export declare const conversationContextSchema: z.ZodObject<{
568
595
  docId: z.ZodString;
569
596
  kind: z.ZodEnum<{
570
597
  strategy: "strategy";
571
- product: "product";
572
598
  policy: "policy";
599
+ product: "product";
573
600
  example: "example";
574
601
  }>;
575
602
  title: z.ZodString;
@@ -623,7 +650,7 @@ export declare const conversationContextSchema: z.ZodObject<{
623
650
  text: z.ZodDefault<z.ZodNullable<z.ZodString>>;
624
651
  }, z.core.$strip>], "type">>;
625
652
  }, z.core.$strip>>>;
626
- classification: z.ZodObject<{
653
+ classification: z.ZodOptional<z.ZodObject<{
627
654
  primaryIntent: z.ZodString;
628
655
  secondaryIntents: z.ZodDefault<z.ZodArray<z.ZodString>>;
629
656
  readiness: z.ZodEnum<{
@@ -634,7 +661,7 @@ export declare const conversationContextSchema: z.ZodObject<{
634
661
  emotion: z.ZodDefault<z.ZodNullable<z.ZodString>>;
635
662
  confidence: z.ZodNumber;
636
663
  riskFlags: z.ZodDefault<z.ZodArray<z.ZodString>>;
637
- }, z.core.$strip>;
664
+ }, z.core.$strip>>;
638
665
  strategy: z.ZodObject<{
639
666
  selectedId: z.ZodString;
640
667
  candidateIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -682,7 +709,12 @@ export declare const conversationContextSchema: z.ZodObject<{
682
709
  }, z.core.$strip>>>;
683
710
  turnAnalysis: z.ZodDefault<z.ZodNullable<z.ZodObject<{
684
711
  output: z.ZodObject<{
685
- classification: z.ZodObject<{
712
+ strategyMatches: z.ZodArray<z.ZodObject<{
713
+ strategyId: z.ZodString;
714
+ score: z.ZodNumber;
715
+ reason: z.ZodString;
716
+ }, z.core.$strip>>;
717
+ classification: z.ZodOptional<z.ZodObject<{
686
718
  primaryIntent: z.ZodString;
687
719
  secondaryIntents: z.ZodDefault<z.ZodArray<z.ZodString>>;
688
720
  readiness: z.ZodEnum<{
@@ -693,25 +725,8 @@ export declare const conversationContextSchema: z.ZodObject<{
693
725
  emotion: z.ZodDefault<z.ZodNullable<z.ZodString>>;
694
726
  confidence: z.ZodNumber;
695
727
  riskFlags: z.ZodDefault<z.ZodArray<z.ZodString>>;
696
- }, z.core.$strip>;
697
- strategy: z.ZodObject<{
698
- selectedId: z.ZodString;
699
- candidateIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
700
- rationaleSummary: z.ZodString;
701
- }, z.core.$strip>;
702
- customerGoal: z.ZodString;
703
- relevantProductCodes: z.ZodDefault<z.ZodArray<z.ZodString>>;
704
- relevantPolicyIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
705
- missingFacts: z.ZodDefault<z.ZodArray<z.ZodString>>;
706
- handoffSuggested: z.ZodObject<{
707
- needed: z.ZodBoolean;
708
- reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
709
- priority: z.ZodDefault<z.ZodEnum<{
710
- normal: "normal";
711
- urgent: "urgent";
712
- }>>;
713
- }, z.core.$strip>;
714
- replyGoal: z.ZodString;
728
+ }, z.core.$strip>>;
729
+ relevantProductCodes: z.ZodOptional<z.ZodArray<z.ZodString>>;
715
730
  }, z.core.$strip>;
716
731
  promptMeta: z.ZodObject<{
717
732
  promptId: z.ZodString;
@@ -722,8 +737,8 @@ export declare const conversationContextSchema: z.ZodObject<{
722
737
  }, z.core.$strip>;
723
738
  validationIssues: z.ZodDefault<z.ZodArray<z.ZodString>>;
724
739
  generationMode: z.ZodEnum<{
725
- heuristic: "heuristic";
726
740
  model: "model";
741
+ heuristic: "heuristic";
727
742
  }>;
728
743
  }, z.core.$strip>>>;
729
744
  decisionStage: z.ZodDefault<z.ZodNullable<z.ZodObject<{
@@ -736,10 +751,42 @@ export declare const conversationContextSchema: z.ZodObject<{
736
751
  }, z.core.$strip>;
737
752
  validationIssues: z.ZodDefault<z.ZodArray<z.ZodString>>;
738
753
  generationMode: z.ZodEnum<{
739
- heuristic: "heuristic";
740
754
  model: "model";
755
+ heuristic: "heuristic";
741
756
  }>;
742
757
  protocolResponseKind: z.ZodDefault<z.ZodNullable<z.ZodString>>;
758
+ stepHistory: z.ZodDefault<z.ZodArray<z.ZodObject<{
759
+ stepId: z.ZodString;
760
+ stepType: z.ZodEnum<{
761
+ "handoff.request": "handoff.request";
762
+ request_media_folders: "request_media_folders";
763
+ request_media_folder_contents: "request_media_folder_contents";
764
+ "state.cart.apply_operations": "state.cart.apply_operations";
765
+ "channel.send_messages": "channel.send_messages";
766
+ }>;
767
+ status: z.ZodEnum<{
768
+ failed: "failed";
769
+ served: "served";
770
+ executed: "executed";
771
+ rejected: "rejected";
772
+ }>;
773
+ inputSummary: z.ZodString;
774
+ resultSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
775
+ errorSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
776
+ changedStateSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
777
+ startedAt: z.ZodString;
778
+ finishedAt: z.ZodString;
779
+ }, z.core.$strip>>>;
780
+ promptCache: z.ZodDefault<z.ZodNullable<z.ZodObject<{
781
+ cacheablePrefixHash: z.ZodString;
782
+ volatileTailHash: z.ZodString;
783
+ cacheKey: z.ZodString;
784
+ cacheHit: z.ZodDefault<z.ZodBoolean>;
785
+ }, z.core.$strip>>>;
786
+ fallbackApplied: z.ZodDefault<z.ZodBoolean>;
787
+ fallbackKind: z.ZodDefault<z.ZodNullable<z.ZodString>>;
788
+ fallbackStage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
789
+ fallbackSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
743
790
  mediaProfileVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
744
791
  mediaProfileVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
745
792
  mediaDiscovery: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -768,10 +815,28 @@ export declare const conversationContextSchema: z.ZodObject<{
768
815
  errorMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
769
816
  }, z.core.$strip>>>;
770
817
  }, z.core.$strip>>>;
818
+ verificationOutput: z.ZodDefault<z.ZodNullable<z.ZodObject<{
819
+ status: z.ZodEnum<{
820
+ failed: "failed";
821
+ passed: "passed";
822
+ }>;
823
+ blockingIssues: z.ZodDefault<z.ZodArray<z.ZodObject<{
824
+ type: z.ZodEnum<{
825
+ policy_violation: "policy_violation";
826
+ asset_reference_invalid: "asset_reference_invalid";
827
+ cart_state_mismatch: "cart_state_mismatch";
828
+ arithmetic_error: "arithmetic_error";
829
+ required_step_missing: "required_step_missing";
830
+ }>;
831
+ message: z.ZodString;
832
+ }, z.core.$strip>>>;
833
+ remarks: z.ZodDefault<z.ZodArray<z.ZodString>>;
834
+ }, z.core.$strip>>>;
771
835
  generationAttempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
772
836
  stage: z.ZodEnum<{
773
837
  turn_analyze: "turn_analyze";
774
838
  turn_decide: "turn_decide";
839
+ verify_outcome: "verify_outcome";
775
840
  review_artifact: "review_artifact";
776
841
  review_message: "review_message";
777
842
  }>;
@@ -791,6 +856,16 @@ export declare const conversationContextSchema: z.ZodObject<{
791
856
  semanticVersion: z.ZodString;
792
857
  renderedHash: z.ZodString;
793
858
  }, z.core.$strip>;
859
+ promptDebug: z.ZodDefault<z.ZodNullable<z.ZodObject<{
860
+ system: z.ZodString;
861
+ user: z.ZodString;
862
+ context: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
863
+ templateRefs: z.ZodDefault<z.ZodNullable<z.ZodObject<{
864
+ systemTemplate: z.ZodString;
865
+ userTemplate: z.ZodString;
866
+ partials: z.ZodDefault<z.ZodArray<z.ZodString>>;
867
+ }, z.core.$strip>>>;
868
+ }, z.core.$strip>>>;
794
869
  provider: z.ZodString;
795
870
  modelId: z.ZodString;
796
871
  finishReason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -800,13 +875,58 @@ export declare const conversationContextSchema: z.ZodObject<{
800
875
  totalTokens: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
801
876
  }, z.core.$strip>>>;
802
877
  latencyMs: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
878
+ providerAttemptCount: z.ZodDefault<z.ZodNumber>;
879
+ providerRetryCount: z.ZodDefault<z.ZodNumber>;
880
+ providerAttempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
881
+ provider: z.ZodString;
882
+ modelId: z.ZodString;
883
+ attemptNumber: z.ZodNumber;
884
+ status: z.ZodEnum<{
885
+ failed: "failed";
886
+ succeeded: "succeeded";
887
+ }>;
888
+ startedAt: z.ZodString;
889
+ finishedAt: z.ZodString;
890
+ latencyMs: z.ZodNumber;
891
+ retryable: z.ZodDefault<z.ZodBoolean>;
892
+ failureCategory: z.ZodDefault<z.ZodNullable<z.ZodString>>;
893
+ errorSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
894
+ backoffMs: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
895
+ }, z.core.$strip>>>;
896
+ validationLayer: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
897
+ provider: "provider";
898
+ configuration: "configuration";
899
+ schema_parse: "schema_parse";
900
+ protocol_validation: "protocol_validation";
901
+ verifier: "verifier";
902
+ }>>>;
803
903
  retryContext: z.ZodDefault<z.ZodNullable<z.ZodObject<{
804
904
  priorAttemptNumber: z.ZodNumber;
805
905
  errorSummary: z.ZodString;
806
906
  validationIssues: z.ZodDefault<z.ZodArray<z.ZodString>>;
907
+ priorFailures: z.ZodDefault<z.ZodArray<z.ZodObject<{
908
+ attemptNumber: z.ZodNumber;
909
+ errorSummary: z.ZodString;
910
+ validationIssues: z.ZodDefault<z.ZodArray<z.ZodString>>;
911
+ }, z.core.$strip>>>;
807
912
  }, z.core.$strip>>>;
808
913
  validationIssues: z.ZodDefault<z.ZodArray<z.ZodString>>;
809
914
  errorSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
915
+ rawOutput: z.ZodDefault<z.ZodNullable<z.ZodUnknown>>;
916
+ }, z.core.$strip>>>;
917
+ executionProfile: z.ZodDefault<z.ZodNullable<z.ZodObject<{
918
+ totalRuntimeMs: z.ZodDefault<z.ZodNumber>;
919
+ analysisMs: z.ZodDefault<z.ZodNumber>;
920
+ decisionMs: z.ZodDefault<z.ZodNumber>;
921
+ reviewMs: z.ZodDefault<z.ZodNumber>;
922
+ generationAttemptCount: z.ZodDefault<z.ZodNumber>;
923
+ correctiveRetryCount: z.ZodDefault<z.ZodNumber>;
924
+ failedAttemptCount: z.ZodDefault<z.ZodNumber>;
925
+ providerAttemptCount: z.ZodDefault<z.ZodNumber>;
926
+ providerRetryCount: z.ZodDefault<z.ZodNumber>;
927
+ validationIssueCount: z.ZodDefault<z.ZodNumber>;
928
+ slowestStage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
929
+ slowestAttemptLatencyMs: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
810
930
  }, z.core.$strip>>>;
811
931
  historyPacking: z.ZodDefault<z.ZodNullable<z.ZodObject<{
812
932
  rawCharacterBudget: z.ZodNumber;
@@ -817,6 +937,10 @@ export declare const conversationContextSchema: z.ZodObject<{
817
937
  }, z.core.$strip>>>;
818
938
  reviewOutput: z.ZodDefault<z.ZodNullable<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
819
939
  validationIssues: z.ZodDefault<z.ZodArray<z.ZodString>>;
940
+ fallbackApplied: z.ZodDefault<z.ZodBoolean>;
941
+ fallbackKind: z.ZodDefault<z.ZodNullable<z.ZodString>>;
942
+ fallbackStage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
943
+ fallbackSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
820
944
  actionOutcomes: z.ZodDefault<z.ZodArray<z.ZodObject<{
821
945
  actionType: z.ZodEnum<{
822
946
  none: "none";
@@ -855,10 +979,10 @@ export declare const conversationsProcessInboundEventRequestSchema: z.ZodObject<
855
979
  connection_update: "connection_update";
856
980
  }>>;
857
981
  authorKind: z.ZodDefault<z.ZodEnum<{
858
- ai: "ai";
859
982
  customer: "customer";
860
- operator: "operator";
861
983
  system: "system";
984
+ operator: "operator";
985
+ ai: "ai";
862
986
  }>>;
863
987
  externalUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
864
988
  displayName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -882,9 +1006,9 @@ export declare const conversationsProcessInboundEventRequestSchema: z.ZodObject<
882
1006
  deletedMessageRefs: z.ZodDefault<z.ZodArray<z.ZodString>>;
883
1007
  metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
884
1008
  ownershipMode: z.ZodOptional<z.ZodEnum<{
1009
+ hybrid: "hybrid";
885
1010
  ai: "ai";
886
1011
  human: "human";
887
- hybrid: "hybrid";
888
1012
  }>>;
889
1013
  assistMode: z.ZodOptional<z.ZodEnum<{
890
1014
  off: "off";
@@ -930,9 +1054,9 @@ export declare const conversationsProcessInboundEventResponseSchema: z.ZodObject
930
1054
  }>;
931
1055
  channelThreadRef: z.ZodString;
932
1056
  ownershipMode: z.ZodEnum<{
1057
+ hybrid: "hybrid";
933
1058
  ai: "ai";
934
1059
  human: "human";
935
- hybrid: "hybrid";
936
1060
  }>;
937
1061
  assistMode: z.ZodEnum<{
938
1062
  off: "off";
@@ -969,10 +1093,10 @@ export declare const conversationsProcessInboundEventResponseSchema: z.ZodObject
969
1093
  messageId: z.ZodString;
970
1094
  conversationId: z.ZodString;
971
1095
  authorKind: z.ZodEnum<{
972
- ai: "ai";
973
1096
  customer: "customer";
974
- operator: "operator";
975
1097
  system: "system";
1098
+ operator: "operator";
1099
+ ai: "ai";
976
1100
  }>;
977
1101
  deliveryKind: z.ZodEnum<{
978
1102
  inbound: "inbound";
@@ -1009,6 +1133,15 @@ export declare const conversationsProcessInboundEventResponseSchema: z.ZodObject
1009
1133
  "message.sent": "message.sent";
1010
1134
  "message.edited": "message.edited";
1011
1135
  "message.deleted": "message.deleted";
1136
+ "reply.burst.opened": "reply.burst.opened";
1137
+ "reply.burst.updated": "reply.burst.updated";
1138
+ "reply.burst.completed": "reply.burst.completed";
1139
+ "reply.job.scheduled": "reply.job.scheduled";
1140
+ "reply.job.started": "reply.job.started";
1141
+ "reply.job.completed": "reply.job.completed";
1142
+ "reply.job.failed": "reply.job.failed";
1143
+ "reply.job.superseded": "reply.job.superseded";
1144
+ "reply.job.cancelled": "reply.job.cancelled";
1012
1145
  "attachments.normalized": "attachments.normalized";
1013
1146
  "conversation.created": "conversation.created";
1014
1147
  "conversation.linked": "conversation.linked";
@@ -1031,10 +1164,10 @@ export declare const conversationsProcessInboundEventResponseSchema: z.ZodObject
1031
1164
  }>;
1032
1165
  title: z.ZodString;
1033
1166
  actorKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
1034
- ai: "ai";
1035
1167
  customer: "customer";
1036
- operator: "operator";
1037
1168
  system: "system";
1169
+ operator: "operator";
1170
+ ai: "ai";
1038
1171
  }>>>;
1039
1172
  createdAt: z.ZodString;
1040
1173
  payload: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -1049,10 +1182,10 @@ export declare const conversationsProcessInboundEventResponseSchema: z.ZodObject
1049
1182
  occurredAt: z.ZodString;
1050
1183
  title: z.ZodString;
1051
1184
  actorKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
1052
- ai: "ai";
1053
1185
  customer: "customer";
1054
- operator: "operator";
1055
1186
  system: "system";
1187
+ operator: "operator";
1188
+ ai: "ai";
1056
1189
  }>>>;
1057
1190
  textPreview: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1058
1191
  messageId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -1105,8 +1238,8 @@ export declare const conversationsProcessInboundEventResponseSchema: z.ZodObject
1105
1238
  blocked: "blocked";
1106
1239
  }>;
1107
1240
  generationMode: z.ZodEnum<{
1108
- heuristic: "heuristic";
1109
1241
  model: "model";
1242
+ heuristic: "heuristic";
1110
1243
  }>;
1111
1244
  provider: z.ZodString;
1112
1245
  modelId: z.ZodString;
@@ -1128,8 +1261,8 @@ export declare const conversationsProcessInboundEventResponseSchema: z.ZodObject
1128
1261
  docId: z.ZodString;
1129
1262
  kind: z.ZodEnum<{
1130
1263
  strategy: "strategy";
1131
- product: "product";
1132
1264
  policy: "policy";
1265
+ product: "product";
1133
1266
  example: "example";
1134
1267
  }>;
1135
1268
  title: z.ZodString;
@@ -1183,7 +1316,7 @@ export declare const conversationsProcessInboundEventResponseSchema: z.ZodObject
1183
1316
  text: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1184
1317
  }, z.core.$strip>], "type">>;
1185
1318
  }, z.core.$strip>>>;
1186
- classification: z.ZodObject<{
1319
+ classification: z.ZodOptional<z.ZodObject<{
1187
1320
  primaryIntent: z.ZodString;
1188
1321
  secondaryIntents: z.ZodDefault<z.ZodArray<z.ZodString>>;
1189
1322
  readiness: z.ZodEnum<{
@@ -1194,7 +1327,7 @@ export declare const conversationsProcessInboundEventResponseSchema: z.ZodObject
1194
1327
  emotion: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1195
1328
  confidence: z.ZodNumber;
1196
1329
  riskFlags: z.ZodDefault<z.ZodArray<z.ZodString>>;
1197
- }, z.core.$strip>;
1330
+ }, z.core.$strip>>;
1198
1331
  strategy: z.ZodObject<{
1199
1332
  selectedId: z.ZodString;
1200
1333
  candidateIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -1242,7 +1375,12 @@ export declare const conversationsProcessInboundEventResponseSchema: z.ZodObject
1242
1375
  }, z.core.$strip>>>;
1243
1376
  turnAnalysis: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1244
1377
  output: z.ZodObject<{
1245
- classification: z.ZodObject<{
1378
+ strategyMatches: z.ZodArray<z.ZodObject<{
1379
+ strategyId: z.ZodString;
1380
+ score: z.ZodNumber;
1381
+ reason: z.ZodString;
1382
+ }, z.core.$strip>>;
1383
+ classification: z.ZodOptional<z.ZodObject<{
1246
1384
  primaryIntent: z.ZodString;
1247
1385
  secondaryIntents: z.ZodDefault<z.ZodArray<z.ZodString>>;
1248
1386
  readiness: z.ZodEnum<{
@@ -1253,25 +1391,8 @@ export declare const conversationsProcessInboundEventResponseSchema: z.ZodObject
1253
1391
  emotion: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1254
1392
  confidence: z.ZodNumber;
1255
1393
  riskFlags: z.ZodDefault<z.ZodArray<z.ZodString>>;
1256
- }, z.core.$strip>;
1257
- strategy: z.ZodObject<{
1258
- selectedId: z.ZodString;
1259
- candidateIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
1260
- rationaleSummary: z.ZodString;
1261
- }, z.core.$strip>;
1262
- customerGoal: z.ZodString;
1263
- relevantProductCodes: z.ZodDefault<z.ZodArray<z.ZodString>>;
1264
- relevantPolicyIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
1265
- missingFacts: z.ZodDefault<z.ZodArray<z.ZodString>>;
1266
- handoffSuggested: z.ZodObject<{
1267
- needed: z.ZodBoolean;
1268
- reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1269
- priority: z.ZodDefault<z.ZodEnum<{
1270
- normal: "normal";
1271
- urgent: "urgent";
1272
- }>>;
1273
- }, z.core.$strip>;
1274
- replyGoal: z.ZodString;
1394
+ }, z.core.$strip>>;
1395
+ relevantProductCodes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1275
1396
  }, z.core.$strip>;
1276
1397
  promptMeta: z.ZodObject<{
1277
1398
  promptId: z.ZodString;
@@ -1282,8 +1403,8 @@ export declare const conversationsProcessInboundEventResponseSchema: z.ZodObject
1282
1403
  }, z.core.$strip>;
1283
1404
  validationIssues: z.ZodDefault<z.ZodArray<z.ZodString>>;
1284
1405
  generationMode: z.ZodEnum<{
1285
- heuristic: "heuristic";
1286
1406
  model: "model";
1407
+ heuristic: "heuristic";
1287
1408
  }>;
1288
1409
  }, z.core.$strip>>>;
1289
1410
  decisionStage: z.ZodDefault<z.ZodNullable<z.ZodObject<{
@@ -1296,10 +1417,42 @@ export declare const conversationsProcessInboundEventResponseSchema: z.ZodObject
1296
1417
  }, z.core.$strip>;
1297
1418
  validationIssues: z.ZodDefault<z.ZodArray<z.ZodString>>;
1298
1419
  generationMode: z.ZodEnum<{
1299
- heuristic: "heuristic";
1300
1420
  model: "model";
1421
+ heuristic: "heuristic";
1301
1422
  }>;
1302
1423
  protocolResponseKind: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1424
+ stepHistory: z.ZodDefault<z.ZodArray<z.ZodObject<{
1425
+ stepId: z.ZodString;
1426
+ stepType: z.ZodEnum<{
1427
+ "handoff.request": "handoff.request";
1428
+ request_media_folders: "request_media_folders";
1429
+ request_media_folder_contents: "request_media_folder_contents";
1430
+ "state.cart.apply_operations": "state.cart.apply_operations";
1431
+ "channel.send_messages": "channel.send_messages";
1432
+ }>;
1433
+ status: z.ZodEnum<{
1434
+ failed: "failed";
1435
+ served: "served";
1436
+ executed: "executed";
1437
+ rejected: "rejected";
1438
+ }>;
1439
+ inputSummary: z.ZodString;
1440
+ resultSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1441
+ errorSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1442
+ changedStateSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1443
+ startedAt: z.ZodString;
1444
+ finishedAt: z.ZodString;
1445
+ }, z.core.$strip>>>;
1446
+ promptCache: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1447
+ cacheablePrefixHash: z.ZodString;
1448
+ volatileTailHash: z.ZodString;
1449
+ cacheKey: z.ZodString;
1450
+ cacheHit: z.ZodDefault<z.ZodBoolean>;
1451
+ }, z.core.$strip>>>;
1452
+ fallbackApplied: z.ZodDefault<z.ZodBoolean>;
1453
+ fallbackKind: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1454
+ fallbackStage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1455
+ fallbackSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1303
1456
  mediaProfileVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1304
1457
  mediaProfileVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1305
1458
  mediaDiscovery: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -1328,10 +1481,28 @@ export declare const conversationsProcessInboundEventResponseSchema: z.ZodObject
1328
1481
  errorMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1329
1482
  }, z.core.$strip>>>;
1330
1483
  }, z.core.$strip>>>;
1484
+ verificationOutput: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1485
+ status: z.ZodEnum<{
1486
+ failed: "failed";
1487
+ passed: "passed";
1488
+ }>;
1489
+ blockingIssues: z.ZodDefault<z.ZodArray<z.ZodObject<{
1490
+ type: z.ZodEnum<{
1491
+ policy_violation: "policy_violation";
1492
+ asset_reference_invalid: "asset_reference_invalid";
1493
+ cart_state_mismatch: "cart_state_mismatch";
1494
+ arithmetic_error: "arithmetic_error";
1495
+ required_step_missing: "required_step_missing";
1496
+ }>;
1497
+ message: z.ZodString;
1498
+ }, z.core.$strip>>>;
1499
+ remarks: z.ZodDefault<z.ZodArray<z.ZodString>>;
1500
+ }, z.core.$strip>>>;
1331
1501
  generationAttempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
1332
1502
  stage: z.ZodEnum<{
1333
1503
  turn_analyze: "turn_analyze";
1334
1504
  turn_decide: "turn_decide";
1505
+ verify_outcome: "verify_outcome";
1335
1506
  review_artifact: "review_artifact";
1336
1507
  review_message: "review_message";
1337
1508
  }>;
@@ -1351,6 +1522,16 @@ export declare const conversationsProcessInboundEventResponseSchema: z.ZodObject
1351
1522
  semanticVersion: z.ZodString;
1352
1523
  renderedHash: z.ZodString;
1353
1524
  }, z.core.$strip>;
1525
+ promptDebug: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1526
+ system: z.ZodString;
1527
+ user: z.ZodString;
1528
+ context: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1529
+ templateRefs: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1530
+ systemTemplate: z.ZodString;
1531
+ userTemplate: z.ZodString;
1532
+ partials: z.ZodDefault<z.ZodArray<z.ZodString>>;
1533
+ }, z.core.$strip>>>;
1534
+ }, z.core.$strip>>>;
1354
1535
  provider: z.ZodString;
1355
1536
  modelId: z.ZodString;
1356
1537
  finishReason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -1360,13 +1541,58 @@ export declare const conversationsProcessInboundEventResponseSchema: z.ZodObject
1360
1541
  totalTokens: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1361
1542
  }, z.core.$strip>>>;
1362
1543
  latencyMs: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1544
+ providerAttemptCount: z.ZodDefault<z.ZodNumber>;
1545
+ providerRetryCount: z.ZodDefault<z.ZodNumber>;
1546
+ providerAttempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
1547
+ provider: z.ZodString;
1548
+ modelId: z.ZodString;
1549
+ attemptNumber: z.ZodNumber;
1550
+ status: z.ZodEnum<{
1551
+ failed: "failed";
1552
+ succeeded: "succeeded";
1553
+ }>;
1554
+ startedAt: z.ZodString;
1555
+ finishedAt: z.ZodString;
1556
+ latencyMs: z.ZodNumber;
1557
+ retryable: z.ZodDefault<z.ZodBoolean>;
1558
+ failureCategory: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1559
+ errorSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1560
+ backoffMs: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1561
+ }, z.core.$strip>>>;
1562
+ validationLayer: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
1563
+ provider: "provider";
1564
+ configuration: "configuration";
1565
+ schema_parse: "schema_parse";
1566
+ protocol_validation: "protocol_validation";
1567
+ verifier: "verifier";
1568
+ }>>>;
1363
1569
  retryContext: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1364
1570
  priorAttemptNumber: z.ZodNumber;
1365
1571
  errorSummary: z.ZodString;
1366
1572
  validationIssues: z.ZodDefault<z.ZodArray<z.ZodString>>;
1573
+ priorFailures: z.ZodDefault<z.ZodArray<z.ZodObject<{
1574
+ attemptNumber: z.ZodNumber;
1575
+ errorSummary: z.ZodString;
1576
+ validationIssues: z.ZodDefault<z.ZodArray<z.ZodString>>;
1577
+ }, z.core.$strip>>>;
1367
1578
  }, z.core.$strip>>>;
1368
1579
  validationIssues: z.ZodDefault<z.ZodArray<z.ZodString>>;
1369
1580
  errorSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1581
+ rawOutput: z.ZodDefault<z.ZodNullable<z.ZodUnknown>>;
1582
+ }, z.core.$strip>>>;
1583
+ executionProfile: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1584
+ totalRuntimeMs: z.ZodDefault<z.ZodNumber>;
1585
+ analysisMs: z.ZodDefault<z.ZodNumber>;
1586
+ decisionMs: z.ZodDefault<z.ZodNumber>;
1587
+ reviewMs: z.ZodDefault<z.ZodNumber>;
1588
+ generationAttemptCount: z.ZodDefault<z.ZodNumber>;
1589
+ correctiveRetryCount: z.ZodDefault<z.ZodNumber>;
1590
+ failedAttemptCount: z.ZodDefault<z.ZodNumber>;
1591
+ providerAttemptCount: z.ZodDefault<z.ZodNumber>;
1592
+ providerRetryCount: z.ZodDefault<z.ZodNumber>;
1593
+ validationIssueCount: z.ZodDefault<z.ZodNumber>;
1594
+ slowestStage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1595
+ slowestAttemptLatencyMs: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1370
1596
  }, z.core.$strip>>>;
1371
1597
  historyPacking: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1372
1598
  rawCharacterBudget: z.ZodNumber;
@@ -1377,6 +1603,10 @@ export declare const conversationsProcessInboundEventResponseSchema: z.ZodObject
1377
1603
  }, z.core.$strip>>>;
1378
1604
  reviewOutput: z.ZodDefault<z.ZodNullable<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
1379
1605
  validationIssues: z.ZodDefault<z.ZodArray<z.ZodString>>;
1606
+ fallbackApplied: z.ZodDefault<z.ZodBoolean>;
1607
+ fallbackKind: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1608
+ fallbackStage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1609
+ fallbackSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1380
1610
  actionOutcomes: z.ZodDefault<z.ZodArray<z.ZodObject<{
1381
1611
  actionType: z.ZodEnum<{
1382
1612
  none: "none";
@@ -1401,10 +1631,10 @@ export declare const conversationsProcessInboundEventResponseSchema: z.ZodObject
1401
1631
  messageId: z.ZodString;
1402
1632
  conversationId: z.ZodString;
1403
1633
  authorKind: z.ZodEnum<{
1404
- ai: "ai";
1405
1634
  customer: "customer";
1406
- operator: "operator";
1407
1635
  system: "system";
1636
+ operator: "operator";
1637
+ ai: "ai";
1408
1638
  }>;
1409
1639
  deliveryKind: z.ZodEnum<{
1410
1640
  inbound: "inbound";
@@ -1433,14 +1663,59 @@ export declare const conversationsProcessInboundEventResponseSchema: z.ZodObject
1433
1663
  metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1434
1664
  createdAt: z.ZodString;
1435
1665
  }, z.core.$strip>>;
1666
+ scheduledReplyJob: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1667
+ replyJobId: z.ZodString;
1668
+ status: z.ZodEnum<{
1669
+ completed: "completed";
1670
+ failed: "failed";
1671
+ queued: "queued";
1672
+ running: "running";
1673
+ superseded: "superseded";
1674
+ cancelled: "cancelled";
1675
+ }>;
1676
+ workflowRunId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1677
+ burstId: z.ZodString;
1678
+ burstRevision: z.ZodNumber;
1679
+ burstFirstMessageId: z.ZodString;
1680
+ burstLatestMessageId: z.ZodString;
1681
+ burstMessageCount: z.ZodNumber;
1682
+ conversationId: z.ZodString;
1683
+ sourceMessageId: z.ZodString;
1684
+ sourceMessageCreatedAt: z.ZodString;
1685
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1686
+ integrationKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1687
+ channelKind: z.ZodEnum<{
1688
+ telegram: "telegram";
1689
+ telegram_business: "telegram_business";
1690
+ local_playground: "local_playground";
1691
+ web_chat: "web_chat";
1692
+ manual: "manual";
1693
+ }>;
1694
+ channelAccountId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1695
+ channelThreadRef: z.ZodString;
1696
+ traceId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1697
+ generatedMessageId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1698
+ supersededByMessageId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1699
+ attemptCount: z.ZodNumber;
1700
+ lastError: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1701
+ code: z.ZodString;
1702
+ message: z.ZodString;
1703
+ details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1704
+ }, z.core.$strip>>>;
1705
+ createdAt: z.ZodString;
1706
+ startedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1707
+ updatedAt: z.ZodString;
1708
+ completedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1709
+ cancelledAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1710
+ }, z.core.$strip>>>;
1436
1711
  generatedMessages: z.ZodArray<z.ZodObject<{
1437
1712
  messageId: z.ZodString;
1438
1713
  conversationId: z.ZodString;
1439
1714
  authorKind: z.ZodEnum<{
1440
- ai: "ai";
1441
1715
  customer: "customer";
1442
- operator: "operator";
1443
1716
  system: "system";
1717
+ operator: "operator";
1718
+ ai: "ai";
1444
1719
  }>;
1445
1720
  deliveryKind: z.ZodEnum<{
1446
1721
  inbound: "inbound";
@@ -1477,6 +1752,15 @@ export declare const conversationsProcessInboundEventResponseSchema: z.ZodObject
1477
1752
  "message.sent": "message.sent";
1478
1753
  "message.edited": "message.edited";
1479
1754
  "message.deleted": "message.deleted";
1755
+ "reply.burst.opened": "reply.burst.opened";
1756
+ "reply.burst.updated": "reply.burst.updated";
1757
+ "reply.burst.completed": "reply.burst.completed";
1758
+ "reply.job.scheduled": "reply.job.scheduled";
1759
+ "reply.job.started": "reply.job.started";
1760
+ "reply.job.completed": "reply.job.completed";
1761
+ "reply.job.failed": "reply.job.failed";
1762
+ "reply.job.superseded": "reply.job.superseded";
1763
+ "reply.job.cancelled": "reply.job.cancelled";
1480
1764
  "attachments.normalized": "attachments.normalized";
1481
1765
  "conversation.created": "conversation.created";
1482
1766
  "conversation.linked": "conversation.linked";
@@ -1499,10 +1783,10 @@ export declare const conversationsProcessInboundEventResponseSchema: z.ZodObject
1499
1783
  }>;
1500
1784
  title: z.ZodString;
1501
1785
  actorKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
1502
- ai: "ai";
1503
1786
  customer: "customer";
1504
- operator: "operator";
1505
1787
  system: "system";
1788
+ operator: "operator";
1789
+ ai: "ai";
1506
1790
  }>>>;
1507
1791
  createdAt: z.ZodString;
1508
1792
  payload: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -1548,10 +1832,10 @@ export declare const conversationsProcessInboundEventResponseSchema: z.ZodObject
1548
1832
  manual: "manual";
1549
1833
  }>;
1550
1834
  deliveryStatus: z.ZodEnum<{
1835
+ failed: "failed";
1551
1836
  sent: "sent";
1552
1837
  simulated: "simulated";
1553
1838
  skipped: "skipped";
1554
- failed: "failed";
1555
1839
  }>;
1556
1840
  planId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1557
1841
  stepId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -1568,10 +1852,10 @@ export declare const conversationsProcessInboundEventResponseSchema: z.ZodObject
1568
1852
  }, z.core.$strip>>;
1569
1853
  }, z.core.$strip>;
1570
1854
  export declare const conversationReplayJobStatusSchema: z.ZodEnum<{
1855
+ completed: "completed";
1571
1856
  failed: "failed";
1572
1857
  queued: "queued";
1573
1858
  running: "running";
1574
- completed: "completed";
1575
1859
  cancelled: "cancelled";
1576
1860
  }>;
1577
1861
  export declare const conversationReplayJobErrorSchema: z.ZodObject<{
@@ -1582,10 +1866,10 @@ export declare const conversationReplayJobErrorSchema: z.ZodObject<{
1582
1866
  export declare const conversationReplayJobSummarySchema: z.ZodObject<{
1583
1867
  replayJobId: z.ZodString;
1584
1868
  status: z.ZodEnum<{
1869
+ completed: "completed";
1585
1870
  failed: "failed";
1586
1871
  queued: "queued";
1587
1872
  running: "running";
1588
- completed: "completed";
1589
1873
  cancelled: "cancelled";
1590
1874
  }>;
1591
1875
  businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -1623,10 +1907,10 @@ export declare const conversationReplayJobSummarySchema: z.ZodObject<{
1623
1907
  export declare const conversationReplayJobRecordSchema: z.ZodObject<{
1624
1908
  replayJobId: z.ZodString;
1625
1909
  status: z.ZodEnum<{
1910
+ completed: "completed";
1626
1911
  failed: "failed";
1627
1912
  queued: "queued";
1628
1913
  running: "running";
1629
- completed: "completed";
1630
1914
  cancelled: "cancelled";
1631
1915
  }>;
1632
1916
  businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -1684,13 +1968,13 @@ export declare const conversationReplayJobRecordSchema: z.ZodObject<{
1684
1968
  id: z.ZodString;
1685
1969
  role: z.ZodEnum<{
1686
1970
  customer: "customer";
1687
- system: "system";
1688
1971
  company: "company";
1972
+ system: "system";
1689
1973
  }>;
1690
1974
  actorMode: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
1691
- hybrid: "hybrid";
1692
- operator: "operator";
1693
1975
  bot: "bot";
1976
+ operator: "operator";
1977
+ hybrid: "hybrid";
1694
1978
  }>>>;
1695
1979
  label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1696
1980
  }, z.core.$strip>>>;
@@ -1699,13 +1983,13 @@ export declare const conversationReplayJobRecordSchema: z.ZodObject<{
1699
1983
  actorId: z.ZodString;
1700
1984
  actorRole: z.ZodEnum<{
1701
1985
  customer: "customer";
1702
- system: "system";
1703
1986
  company: "company";
1987
+ system: "system";
1704
1988
  }>;
1705
1989
  actorMode: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
1706
- hybrid: "hybrid";
1707
- operator: "operator";
1708
1990
  bot: "bot";
1991
+ operator: "operator";
1992
+ hybrid: "hybrid";
1709
1993
  }>>>;
1710
1994
  external_message_ref: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1711
1995
  reply_to_turn_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -1718,8 +2002,8 @@ export declare const conversationReplayJobRecordSchema: z.ZodObject<{
1718
2002
  document: "document";
1719
2003
  audio: "audio";
1720
2004
  video: "video";
1721
- other: "other";
1722
2005
  sticker: "sticker";
2006
+ other: "other";
1723
2007
  }>;
1724
2008
  title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1725
2009
  description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -1776,9 +2060,9 @@ export declare const conversationReplayJobRecordSchema: z.ZodObject<{
1776
2060
  live_export: "live_export";
1777
2061
  }>>;
1778
2062
  actor_mode: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
1779
- hybrid: "hybrid";
1780
- operator: "operator";
1781
2063
  bot: "bot";
2064
+ operator: "operator";
2065
+ hybrid: "hybrid";
1782
2066
  }>>>;
1783
2067
  based_on_transcript_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1784
2068
  based_on_conversation_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -1836,13 +2120,13 @@ export declare const conversationsReplayTranscriptRequestSchema: z.ZodObject<{
1836
2120
  id: z.ZodString;
1837
2121
  role: z.ZodEnum<{
1838
2122
  customer: "customer";
1839
- system: "system";
1840
2123
  company: "company";
2124
+ system: "system";
1841
2125
  }>;
1842
2126
  actorMode: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
1843
- hybrid: "hybrid";
1844
- operator: "operator";
1845
2127
  bot: "bot";
2128
+ operator: "operator";
2129
+ hybrid: "hybrid";
1846
2130
  }>>>;
1847
2131
  label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1848
2132
  }, z.core.$strip>>>;
@@ -1851,13 +2135,13 @@ export declare const conversationsReplayTranscriptRequestSchema: z.ZodObject<{
1851
2135
  actorId: z.ZodString;
1852
2136
  actorRole: z.ZodEnum<{
1853
2137
  customer: "customer";
1854
- system: "system";
1855
2138
  company: "company";
2139
+ system: "system";
1856
2140
  }>;
1857
2141
  actorMode: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
1858
- hybrid: "hybrid";
1859
- operator: "operator";
1860
2142
  bot: "bot";
2143
+ operator: "operator";
2144
+ hybrid: "hybrid";
1861
2145
  }>>>;
1862
2146
  external_message_ref: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1863
2147
  reply_to_turn_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -1870,8 +2154,8 @@ export declare const conversationsReplayTranscriptRequestSchema: z.ZodObject<{
1870
2154
  document: "document";
1871
2155
  audio: "audio";
1872
2156
  video: "video";
1873
- other: "other";
1874
2157
  sticker: "sticker";
2158
+ other: "other";
1875
2159
  }>;
1876
2160
  title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1877
2161
  description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -1928,9 +2212,9 @@ export declare const conversationsReplayTranscriptRequestSchema: z.ZodObject<{
1928
2212
  live_export: "live_export";
1929
2213
  }>>;
1930
2214
  actor_mode: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
1931
- hybrid: "hybrid";
1932
- operator: "operator";
1933
2215
  bot: "bot";
2216
+ operator: "operator";
2217
+ hybrid: "hybrid";
1934
2218
  }>>>;
1935
2219
  based_on_transcript_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1936
2220
  based_on_conversation_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -1979,10 +2263,10 @@ export declare const conversationsReplayTranscriptResponseSchema: z.ZodObject<{
1979
2263
  job: z.ZodObject<{
1980
2264
  replayJobId: z.ZodString;
1981
2265
  status: z.ZodEnum<{
2266
+ completed: "completed";
1982
2267
  failed: "failed";
1983
2268
  queued: "queued";
1984
2269
  running: "running";
1985
- completed: "completed";
1986
2270
  cancelled: "cancelled";
1987
2271
  }>;
1988
2272
  businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -2027,10 +2311,10 @@ export declare const conversationsGetReplayJobResponseSchema: z.ZodObject<{
2027
2311
  job: z.ZodNullable<z.ZodObject<{
2028
2312
  replayJobId: z.ZodString;
2029
2313
  status: z.ZodEnum<{
2314
+ completed: "completed";
2030
2315
  failed: "failed";
2031
2316
  queued: "queued";
2032
2317
  running: "running";
2033
- completed: "completed";
2034
2318
  cancelled: "cancelled";
2035
2319
  }>;
2036
2320
  businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -2066,6 +2350,231 @@ export declare const conversationsGetReplayJobResponseSchema: z.ZodObject<{
2066
2350
  cancelledAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2067
2351
  }, z.core.$strip>>;
2068
2352
  }, z.core.$strip>;
2353
+ export declare const conversationReplyJobStatusSchema: z.ZodEnum<{
2354
+ completed: "completed";
2355
+ failed: "failed";
2356
+ queued: "queued";
2357
+ running: "running";
2358
+ superseded: "superseded";
2359
+ cancelled: "cancelled";
2360
+ }>;
2361
+ export declare const conversationReplyBurstStatusSchema: z.ZodEnum<{
2362
+ completed: "completed";
2363
+ cancelled: "cancelled";
2364
+ open: "open";
2365
+ }>;
2366
+ export declare const conversationReplyJobErrorSchema: z.ZodObject<{
2367
+ code: z.ZodString;
2368
+ message: z.ZodString;
2369
+ details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2370
+ }, z.core.$strip>;
2371
+ export declare const conversationReplyJobSummarySchema: z.ZodObject<{
2372
+ replyJobId: z.ZodString;
2373
+ status: z.ZodEnum<{
2374
+ completed: "completed";
2375
+ failed: "failed";
2376
+ queued: "queued";
2377
+ running: "running";
2378
+ superseded: "superseded";
2379
+ cancelled: "cancelled";
2380
+ }>;
2381
+ workflowRunId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2382
+ burstId: z.ZodString;
2383
+ burstRevision: z.ZodNumber;
2384
+ burstFirstMessageId: z.ZodString;
2385
+ burstLatestMessageId: z.ZodString;
2386
+ burstMessageCount: z.ZodNumber;
2387
+ conversationId: z.ZodString;
2388
+ sourceMessageId: z.ZodString;
2389
+ sourceMessageCreatedAt: z.ZodString;
2390
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2391
+ integrationKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2392
+ channelKind: z.ZodEnum<{
2393
+ telegram: "telegram";
2394
+ telegram_business: "telegram_business";
2395
+ local_playground: "local_playground";
2396
+ web_chat: "web_chat";
2397
+ manual: "manual";
2398
+ }>;
2399
+ channelAccountId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2400
+ channelThreadRef: z.ZodString;
2401
+ traceId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2402
+ generatedMessageId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2403
+ supersededByMessageId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2404
+ attemptCount: z.ZodNumber;
2405
+ lastError: z.ZodDefault<z.ZodNullable<z.ZodObject<{
2406
+ code: z.ZodString;
2407
+ message: z.ZodString;
2408
+ details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2409
+ }, z.core.$strip>>>;
2410
+ createdAt: z.ZodString;
2411
+ startedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2412
+ updatedAt: z.ZodString;
2413
+ completedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2414
+ cancelledAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2415
+ }, z.core.$strip>;
2416
+ export declare const conversationReplyJobRecordSchema: z.ZodObject<{
2417
+ replyJobId: z.ZodString;
2418
+ status: z.ZodEnum<{
2419
+ completed: "completed";
2420
+ failed: "failed";
2421
+ queued: "queued";
2422
+ running: "running";
2423
+ superseded: "superseded";
2424
+ cancelled: "cancelled";
2425
+ }>;
2426
+ workflowRunId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2427
+ burstId: z.ZodString;
2428
+ burstRevision: z.ZodNumber;
2429
+ burstFirstMessageId: z.ZodString;
2430
+ burstLatestMessageId: z.ZodString;
2431
+ burstMessageCount: z.ZodNumber;
2432
+ conversationId: z.ZodString;
2433
+ sourceMessageId: z.ZodString;
2434
+ sourceMessageCreatedAt: z.ZodString;
2435
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2436
+ integrationKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2437
+ channelKind: z.ZodEnum<{
2438
+ telegram: "telegram";
2439
+ telegram_business: "telegram_business";
2440
+ local_playground: "local_playground";
2441
+ web_chat: "web_chat";
2442
+ manual: "manual";
2443
+ }>;
2444
+ channelAccountId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2445
+ channelThreadRef: z.ZodString;
2446
+ traceId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2447
+ generatedMessageId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2448
+ supersededByMessageId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2449
+ attemptCount: z.ZodNumber;
2450
+ lastError: z.ZodDefault<z.ZodNullable<z.ZodObject<{
2451
+ code: z.ZodString;
2452
+ message: z.ZodString;
2453
+ details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2454
+ }, z.core.$strip>>>;
2455
+ createdAt: z.ZodString;
2456
+ startedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2457
+ updatedAt: z.ZodString;
2458
+ completedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2459
+ cancelledAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2460
+ sourceText: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2461
+ }, z.core.$strip>;
2462
+ export declare const conversationReplyBurstSummarySchema: z.ZodObject<{
2463
+ burstId: z.ZodString;
2464
+ status: z.ZodEnum<{
2465
+ completed: "completed";
2466
+ cancelled: "cancelled";
2467
+ open: "open";
2468
+ }>;
2469
+ conversationId: z.ZodString;
2470
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2471
+ integrationKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2472
+ channelKind: z.ZodEnum<{
2473
+ telegram: "telegram";
2474
+ telegram_business: "telegram_business";
2475
+ local_playground: "local_playground";
2476
+ web_chat: "web_chat";
2477
+ manual: "manual";
2478
+ }>;
2479
+ channelAccountId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2480
+ channelThreadRef: z.ZodString;
2481
+ firstMessageId: z.ZodString;
2482
+ latestMessageId: z.ZodString;
2483
+ latestMessageCreatedAt: z.ZodString;
2484
+ messageCount: z.ZodNumber;
2485
+ currentRevision: z.ZodNumber;
2486
+ activeReplyJobId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2487
+ deliveredReplyJobId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2488
+ generatedMessageId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2489
+ createdAt: z.ZodString;
2490
+ updatedAt: z.ZodString;
2491
+ completedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2492
+ cancelledAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2493
+ }, z.core.$strip>;
2494
+ export declare const conversationReplyBurstRecordSchema: z.ZodObject<{
2495
+ burstId: z.ZodString;
2496
+ status: z.ZodEnum<{
2497
+ completed: "completed";
2498
+ cancelled: "cancelled";
2499
+ open: "open";
2500
+ }>;
2501
+ conversationId: z.ZodString;
2502
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2503
+ integrationKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2504
+ channelKind: z.ZodEnum<{
2505
+ telegram: "telegram";
2506
+ telegram_business: "telegram_business";
2507
+ local_playground: "local_playground";
2508
+ web_chat: "web_chat";
2509
+ manual: "manual";
2510
+ }>;
2511
+ channelAccountId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2512
+ channelThreadRef: z.ZodString;
2513
+ firstMessageId: z.ZodString;
2514
+ latestMessageId: z.ZodString;
2515
+ latestMessageCreatedAt: z.ZodString;
2516
+ messageCount: z.ZodNumber;
2517
+ currentRevision: z.ZodNumber;
2518
+ activeReplyJobId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2519
+ deliveredReplyJobId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2520
+ generatedMessageId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2521
+ createdAt: z.ZodString;
2522
+ updatedAt: z.ZodString;
2523
+ completedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2524
+ cancelledAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2525
+ messageIds: z.ZodArray<z.ZodString>;
2526
+ }, z.core.$strip>;
2527
+ export declare const conversationsGetReplyJobRequestSchema: z.ZodObject<{
2528
+ replyJobId: z.ZodString;
2529
+ }, z.core.$strip>;
2530
+ export declare const conversationsGetReplyJobResponseSchema: z.ZodObject<{
2531
+ found: z.ZodBoolean;
2532
+ job: z.ZodNullable<z.ZodObject<{
2533
+ replyJobId: z.ZodString;
2534
+ status: z.ZodEnum<{
2535
+ completed: "completed";
2536
+ failed: "failed";
2537
+ queued: "queued";
2538
+ running: "running";
2539
+ superseded: "superseded";
2540
+ cancelled: "cancelled";
2541
+ }>;
2542
+ workflowRunId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2543
+ burstId: z.ZodString;
2544
+ burstRevision: z.ZodNumber;
2545
+ burstFirstMessageId: z.ZodString;
2546
+ burstLatestMessageId: z.ZodString;
2547
+ burstMessageCount: z.ZodNumber;
2548
+ conversationId: z.ZodString;
2549
+ sourceMessageId: z.ZodString;
2550
+ sourceMessageCreatedAt: z.ZodString;
2551
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2552
+ integrationKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2553
+ channelKind: z.ZodEnum<{
2554
+ telegram: "telegram";
2555
+ telegram_business: "telegram_business";
2556
+ local_playground: "local_playground";
2557
+ web_chat: "web_chat";
2558
+ manual: "manual";
2559
+ }>;
2560
+ channelAccountId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2561
+ channelThreadRef: z.ZodString;
2562
+ traceId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2563
+ generatedMessageId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2564
+ supersededByMessageId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2565
+ attemptCount: z.ZodNumber;
2566
+ lastError: z.ZodDefault<z.ZodNullable<z.ZodObject<{
2567
+ code: z.ZodString;
2568
+ message: z.ZodString;
2569
+ details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2570
+ }, z.core.$strip>>>;
2571
+ createdAt: z.ZodString;
2572
+ startedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2573
+ updatedAt: z.ZodString;
2574
+ completedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2575
+ cancelledAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2576
+ }, z.core.$strip>>;
2577
+ }, z.core.$strip>;
2069
2578
  export declare const conversationsGetContextRequestSchema: z.ZodObject<{
2070
2579
  conversationId: z.ZodOptional<z.ZodString>;
2071
2580
  channelKind: z.ZodOptional<z.ZodEnum<{
@@ -2098,9 +2607,9 @@ export declare const conversationsGetContextResponseSchema: z.ZodObject<{
2098
2607
  }>;
2099
2608
  channelThreadRef: z.ZodString;
2100
2609
  ownershipMode: z.ZodEnum<{
2610
+ hybrid: "hybrid";
2101
2611
  ai: "ai";
2102
2612
  human: "human";
2103
- hybrid: "hybrid";
2104
2613
  }>;
2105
2614
  assistMode: z.ZodEnum<{
2106
2615
  off: "off";
@@ -2137,10 +2646,10 @@ export declare const conversationsGetContextResponseSchema: z.ZodObject<{
2137
2646
  messageId: z.ZodString;
2138
2647
  conversationId: z.ZodString;
2139
2648
  authorKind: z.ZodEnum<{
2140
- ai: "ai";
2141
2649
  customer: "customer";
2142
- operator: "operator";
2143
2650
  system: "system";
2651
+ operator: "operator";
2652
+ ai: "ai";
2144
2653
  }>;
2145
2654
  deliveryKind: z.ZodEnum<{
2146
2655
  inbound: "inbound";
@@ -2177,6 +2686,15 @@ export declare const conversationsGetContextResponseSchema: z.ZodObject<{
2177
2686
  "message.sent": "message.sent";
2178
2687
  "message.edited": "message.edited";
2179
2688
  "message.deleted": "message.deleted";
2689
+ "reply.burst.opened": "reply.burst.opened";
2690
+ "reply.burst.updated": "reply.burst.updated";
2691
+ "reply.burst.completed": "reply.burst.completed";
2692
+ "reply.job.scheduled": "reply.job.scheduled";
2693
+ "reply.job.started": "reply.job.started";
2694
+ "reply.job.completed": "reply.job.completed";
2695
+ "reply.job.failed": "reply.job.failed";
2696
+ "reply.job.superseded": "reply.job.superseded";
2697
+ "reply.job.cancelled": "reply.job.cancelled";
2180
2698
  "attachments.normalized": "attachments.normalized";
2181
2699
  "conversation.created": "conversation.created";
2182
2700
  "conversation.linked": "conversation.linked";
@@ -2199,10 +2717,10 @@ export declare const conversationsGetContextResponseSchema: z.ZodObject<{
2199
2717
  }>;
2200
2718
  title: z.ZodString;
2201
2719
  actorKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
2202
- ai: "ai";
2203
2720
  customer: "customer";
2204
- operator: "operator";
2205
2721
  system: "system";
2722
+ operator: "operator";
2723
+ ai: "ai";
2206
2724
  }>>>;
2207
2725
  createdAt: z.ZodString;
2208
2726
  payload: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -2217,10 +2735,10 @@ export declare const conversationsGetContextResponseSchema: z.ZodObject<{
2217
2735
  occurredAt: z.ZodString;
2218
2736
  title: z.ZodString;
2219
2737
  actorKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
2220
- ai: "ai";
2221
2738
  customer: "customer";
2222
- operator: "operator";
2223
2739
  system: "system";
2740
+ operator: "operator";
2741
+ ai: "ai";
2224
2742
  }>>>;
2225
2743
  textPreview: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2226
2744
  messageId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -2273,8 +2791,8 @@ export declare const conversationsGetContextResponseSchema: z.ZodObject<{
2273
2791
  blocked: "blocked";
2274
2792
  }>;
2275
2793
  generationMode: z.ZodEnum<{
2276
- heuristic: "heuristic";
2277
2794
  model: "model";
2795
+ heuristic: "heuristic";
2278
2796
  }>;
2279
2797
  provider: z.ZodString;
2280
2798
  modelId: z.ZodString;
@@ -2296,8 +2814,8 @@ export declare const conversationsGetContextResponseSchema: z.ZodObject<{
2296
2814
  docId: z.ZodString;
2297
2815
  kind: z.ZodEnum<{
2298
2816
  strategy: "strategy";
2299
- product: "product";
2300
2817
  policy: "policy";
2818
+ product: "product";
2301
2819
  example: "example";
2302
2820
  }>;
2303
2821
  title: z.ZodString;
@@ -2351,7 +2869,7 @@ export declare const conversationsGetContextResponseSchema: z.ZodObject<{
2351
2869
  text: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2352
2870
  }, z.core.$strip>], "type">>;
2353
2871
  }, z.core.$strip>>>;
2354
- classification: z.ZodObject<{
2872
+ classification: z.ZodOptional<z.ZodObject<{
2355
2873
  primaryIntent: z.ZodString;
2356
2874
  secondaryIntents: z.ZodDefault<z.ZodArray<z.ZodString>>;
2357
2875
  readiness: z.ZodEnum<{
@@ -2362,7 +2880,7 @@ export declare const conversationsGetContextResponseSchema: z.ZodObject<{
2362
2880
  emotion: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2363
2881
  confidence: z.ZodNumber;
2364
2882
  riskFlags: z.ZodDefault<z.ZodArray<z.ZodString>>;
2365
- }, z.core.$strip>;
2883
+ }, z.core.$strip>>;
2366
2884
  strategy: z.ZodObject<{
2367
2885
  selectedId: z.ZodString;
2368
2886
  candidateIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -2410,7 +2928,12 @@ export declare const conversationsGetContextResponseSchema: z.ZodObject<{
2410
2928
  }, z.core.$strip>>>;
2411
2929
  turnAnalysis: z.ZodDefault<z.ZodNullable<z.ZodObject<{
2412
2930
  output: z.ZodObject<{
2413
- classification: z.ZodObject<{
2931
+ strategyMatches: z.ZodArray<z.ZodObject<{
2932
+ strategyId: z.ZodString;
2933
+ score: z.ZodNumber;
2934
+ reason: z.ZodString;
2935
+ }, z.core.$strip>>;
2936
+ classification: z.ZodOptional<z.ZodObject<{
2414
2937
  primaryIntent: z.ZodString;
2415
2938
  secondaryIntents: z.ZodDefault<z.ZodArray<z.ZodString>>;
2416
2939
  readiness: z.ZodEnum<{
@@ -2421,25 +2944,8 @@ export declare const conversationsGetContextResponseSchema: z.ZodObject<{
2421
2944
  emotion: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2422
2945
  confidence: z.ZodNumber;
2423
2946
  riskFlags: z.ZodDefault<z.ZodArray<z.ZodString>>;
2424
- }, z.core.$strip>;
2425
- strategy: z.ZodObject<{
2426
- selectedId: z.ZodString;
2427
- candidateIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
2428
- rationaleSummary: z.ZodString;
2429
- }, z.core.$strip>;
2430
- customerGoal: z.ZodString;
2431
- relevantProductCodes: z.ZodDefault<z.ZodArray<z.ZodString>>;
2432
- relevantPolicyIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
2433
- missingFacts: z.ZodDefault<z.ZodArray<z.ZodString>>;
2434
- handoffSuggested: z.ZodObject<{
2435
- needed: z.ZodBoolean;
2436
- reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2437
- priority: z.ZodDefault<z.ZodEnum<{
2438
- normal: "normal";
2439
- urgent: "urgent";
2440
- }>>;
2441
- }, z.core.$strip>;
2442
- replyGoal: z.ZodString;
2947
+ }, z.core.$strip>>;
2948
+ relevantProductCodes: z.ZodOptional<z.ZodArray<z.ZodString>>;
2443
2949
  }, z.core.$strip>;
2444
2950
  promptMeta: z.ZodObject<{
2445
2951
  promptId: z.ZodString;
@@ -2450,8 +2956,8 @@ export declare const conversationsGetContextResponseSchema: z.ZodObject<{
2450
2956
  }, z.core.$strip>;
2451
2957
  validationIssues: z.ZodDefault<z.ZodArray<z.ZodString>>;
2452
2958
  generationMode: z.ZodEnum<{
2453
- heuristic: "heuristic";
2454
2959
  model: "model";
2960
+ heuristic: "heuristic";
2455
2961
  }>;
2456
2962
  }, z.core.$strip>>>;
2457
2963
  decisionStage: z.ZodDefault<z.ZodNullable<z.ZodObject<{
@@ -2464,10 +2970,42 @@ export declare const conversationsGetContextResponseSchema: z.ZodObject<{
2464
2970
  }, z.core.$strip>;
2465
2971
  validationIssues: z.ZodDefault<z.ZodArray<z.ZodString>>;
2466
2972
  generationMode: z.ZodEnum<{
2467
- heuristic: "heuristic";
2468
2973
  model: "model";
2974
+ heuristic: "heuristic";
2469
2975
  }>;
2470
2976
  protocolResponseKind: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2977
+ stepHistory: z.ZodDefault<z.ZodArray<z.ZodObject<{
2978
+ stepId: z.ZodString;
2979
+ stepType: z.ZodEnum<{
2980
+ "handoff.request": "handoff.request";
2981
+ request_media_folders: "request_media_folders";
2982
+ request_media_folder_contents: "request_media_folder_contents";
2983
+ "state.cart.apply_operations": "state.cart.apply_operations";
2984
+ "channel.send_messages": "channel.send_messages";
2985
+ }>;
2986
+ status: z.ZodEnum<{
2987
+ failed: "failed";
2988
+ served: "served";
2989
+ executed: "executed";
2990
+ rejected: "rejected";
2991
+ }>;
2992
+ inputSummary: z.ZodString;
2993
+ resultSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2994
+ errorSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2995
+ changedStateSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2996
+ startedAt: z.ZodString;
2997
+ finishedAt: z.ZodString;
2998
+ }, z.core.$strip>>>;
2999
+ promptCache: z.ZodDefault<z.ZodNullable<z.ZodObject<{
3000
+ cacheablePrefixHash: z.ZodString;
3001
+ volatileTailHash: z.ZodString;
3002
+ cacheKey: z.ZodString;
3003
+ cacheHit: z.ZodDefault<z.ZodBoolean>;
3004
+ }, z.core.$strip>>>;
3005
+ fallbackApplied: z.ZodDefault<z.ZodBoolean>;
3006
+ fallbackKind: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3007
+ fallbackStage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3008
+ fallbackSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2471
3009
  mediaProfileVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2472
3010
  mediaProfileVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
2473
3011
  mediaDiscovery: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -2496,10 +3034,28 @@ export declare const conversationsGetContextResponseSchema: z.ZodObject<{
2496
3034
  errorMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2497
3035
  }, z.core.$strip>>>;
2498
3036
  }, z.core.$strip>>>;
3037
+ verificationOutput: z.ZodDefault<z.ZodNullable<z.ZodObject<{
3038
+ status: z.ZodEnum<{
3039
+ failed: "failed";
3040
+ passed: "passed";
3041
+ }>;
3042
+ blockingIssues: z.ZodDefault<z.ZodArray<z.ZodObject<{
3043
+ type: z.ZodEnum<{
3044
+ policy_violation: "policy_violation";
3045
+ asset_reference_invalid: "asset_reference_invalid";
3046
+ cart_state_mismatch: "cart_state_mismatch";
3047
+ arithmetic_error: "arithmetic_error";
3048
+ required_step_missing: "required_step_missing";
3049
+ }>;
3050
+ message: z.ZodString;
3051
+ }, z.core.$strip>>>;
3052
+ remarks: z.ZodDefault<z.ZodArray<z.ZodString>>;
3053
+ }, z.core.$strip>>>;
2499
3054
  generationAttempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
2500
3055
  stage: z.ZodEnum<{
2501
3056
  turn_analyze: "turn_analyze";
2502
3057
  turn_decide: "turn_decide";
3058
+ verify_outcome: "verify_outcome";
2503
3059
  review_artifact: "review_artifact";
2504
3060
  review_message: "review_message";
2505
3061
  }>;
@@ -2519,6 +3075,16 @@ export declare const conversationsGetContextResponseSchema: z.ZodObject<{
2519
3075
  semanticVersion: z.ZodString;
2520
3076
  renderedHash: z.ZodString;
2521
3077
  }, z.core.$strip>;
3078
+ promptDebug: z.ZodDefault<z.ZodNullable<z.ZodObject<{
3079
+ system: z.ZodString;
3080
+ user: z.ZodString;
3081
+ context: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3082
+ templateRefs: z.ZodDefault<z.ZodNullable<z.ZodObject<{
3083
+ systemTemplate: z.ZodString;
3084
+ userTemplate: z.ZodString;
3085
+ partials: z.ZodDefault<z.ZodArray<z.ZodString>>;
3086
+ }, z.core.$strip>>>;
3087
+ }, z.core.$strip>>>;
2522
3088
  provider: z.ZodString;
2523
3089
  modelId: z.ZodString;
2524
3090
  finishReason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -2528,13 +3094,58 @@ export declare const conversationsGetContextResponseSchema: z.ZodObject<{
2528
3094
  totalTokens: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
2529
3095
  }, z.core.$strip>>>;
2530
3096
  latencyMs: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3097
+ providerAttemptCount: z.ZodDefault<z.ZodNumber>;
3098
+ providerRetryCount: z.ZodDefault<z.ZodNumber>;
3099
+ providerAttempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
3100
+ provider: z.ZodString;
3101
+ modelId: z.ZodString;
3102
+ attemptNumber: z.ZodNumber;
3103
+ status: z.ZodEnum<{
3104
+ failed: "failed";
3105
+ succeeded: "succeeded";
3106
+ }>;
3107
+ startedAt: z.ZodString;
3108
+ finishedAt: z.ZodString;
3109
+ latencyMs: z.ZodNumber;
3110
+ retryable: z.ZodDefault<z.ZodBoolean>;
3111
+ failureCategory: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3112
+ errorSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3113
+ backoffMs: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3114
+ }, z.core.$strip>>>;
3115
+ validationLayer: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
3116
+ provider: "provider";
3117
+ configuration: "configuration";
3118
+ schema_parse: "schema_parse";
3119
+ protocol_validation: "protocol_validation";
3120
+ verifier: "verifier";
3121
+ }>>>;
2531
3122
  retryContext: z.ZodDefault<z.ZodNullable<z.ZodObject<{
2532
3123
  priorAttemptNumber: z.ZodNumber;
2533
3124
  errorSummary: z.ZodString;
2534
3125
  validationIssues: z.ZodDefault<z.ZodArray<z.ZodString>>;
3126
+ priorFailures: z.ZodDefault<z.ZodArray<z.ZodObject<{
3127
+ attemptNumber: z.ZodNumber;
3128
+ errorSummary: z.ZodString;
3129
+ validationIssues: z.ZodDefault<z.ZodArray<z.ZodString>>;
3130
+ }, z.core.$strip>>>;
2535
3131
  }, z.core.$strip>>>;
2536
3132
  validationIssues: z.ZodDefault<z.ZodArray<z.ZodString>>;
2537
3133
  errorSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3134
+ rawOutput: z.ZodDefault<z.ZodNullable<z.ZodUnknown>>;
3135
+ }, z.core.$strip>>>;
3136
+ executionProfile: z.ZodDefault<z.ZodNullable<z.ZodObject<{
3137
+ totalRuntimeMs: z.ZodDefault<z.ZodNumber>;
3138
+ analysisMs: z.ZodDefault<z.ZodNumber>;
3139
+ decisionMs: z.ZodDefault<z.ZodNumber>;
3140
+ reviewMs: z.ZodDefault<z.ZodNumber>;
3141
+ generationAttemptCount: z.ZodDefault<z.ZodNumber>;
3142
+ correctiveRetryCount: z.ZodDefault<z.ZodNumber>;
3143
+ failedAttemptCount: z.ZodDefault<z.ZodNumber>;
3144
+ providerAttemptCount: z.ZodDefault<z.ZodNumber>;
3145
+ providerRetryCount: z.ZodDefault<z.ZodNumber>;
3146
+ validationIssueCount: z.ZodDefault<z.ZodNumber>;
3147
+ slowestStage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3148
+ slowestAttemptLatencyMs: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
2538
3149
  }, z.core.$strip>>>;
2539
3150
  historyPacking: z.ZodDefault<z.ZodNullable<z.ZodObject<{
2540
3151
  rawCharacterBudget: z.ZodNumber;
@@ -2545,6 +3156,10 @@ export declare const conversationsGetContextResponseSchema: z.ZodObject<{
2545
3156
  }, z.core.$strip>>>;
2546
3157
  reviewOutput: z.ZodDefault<z.ZodNullable<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
2547
3158
  validationIssues: z.ZodDefault<z.ZodArray<z.ZodString>>;
3159
+ fallbackApplied: z.ZodDefault<z.ZodBoolean>;
3160
+ fallbackKind: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3161
+ fallbackStage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3162
+ fallbackSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2548
3163
  actionOutcomes: z.ZodDefault<z.ZodArray<z.ZodObject<{
2549
3164
  actionType: z.ZodEnum<{
2550
3165
  none: "none";
@@ -2588,9 +3203,9 @@ export declare const conversationsListTimelineResponseSchema: z.ZodObject<{
2588
3203
  }>;
2589
3204
  channelThreadRef: z.ZodString;
2590
3205
  ownershipMode: z.ZodEnum<{
3206
+ hybrid: "hybrid";
2591
3207
  ai: "ai";
2592
3208
  human: "human";
2593
- hybrid: "hybrid";
2594
3209
  }>;
2595
3210
  assistMode: z.ZodEnum<{
2596
3211
  off: "off";
@@ -2633,10 +3248,10 @@ export declare const conversationsListTimelineResponseSchema: z.ZodObject<{
2633
3248
  occurredAt: z.ZodString;
2634
3249
  title: z.ZodString;
2635
3250
  actorKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
2636
- ai: "ai";
2637
3251
  customer: "customer";
2638
- operator: "operator";
2639
3252
  system: "system";
3253
+ operator: "operator";
3254
+ ai: "ai";
2640
3255
  }>>>;
2641
3256
  textPreview: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2642
3257
  messageId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -2690,4 +3305,13 @@ export type ConversationReplayJobSummary = z.infer<typeof conversationReplayJobS
2690
3305
  export type ConversationReplayJobRecord = z.infer<typeof conversationReplayJobRecordSchema>;
2691
3306
  export type ConversationsGetReplayJobInput = z.infer<typeof conversationsGetReplayJobRequestSchema>;
2692
3307
  export type ConversationsGetReplayJobOutput = z.infer<typeof conversationsGetReplayJobResponseSchema>;
3308
+ export type ConversationReplyJobStatus = z.infer<typeof conversationReplyJobStatusSchema>;
3309
+ export type ConversationReplyBurstStatus = z.infer<typeof conversationReplyBurstStatusSchema>;
3310
+ export type ConversationReplyJobError = z.infer<typeof conversationReplyJobErrorSchema>;
3311
+ export type ConversationReplyJobSummary = z.infer<typeof conversationReplyJobSummarySchema>;
3312
+ export type ConversationReplyJobRecord = z.infer<typeof conversationReplyJobRecordSchema>;
3313
+ export type ConversationReplyBurstSummary = z.infer<typeof conversationReplyBurstSummarySchema>;
3314
+ export type ConversationReplyBurstRecord = z.infer<typeof conversationReplyBurstRecordSchema>;
3315
+ export type ConversationsGetReplyJobInput = z.infer<typeof conversationsGetReplyJobRequestSchema>;
3316
+ export type ConversationsGetReplyJobOutput = z.infer<typeof conversationsGetReplyJobResponseSchema>;
2693
3317
  //# sourceMappingURL=conversations.d.ts.map