@selleragent/api-contract 0.7.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.
@@ -14,12 +14,12 @@ export declare const conversationStatusSchema: z.ZodEnum<{
14
14
  }>;
15
15
  export declare const ownershipModeSchema: z.ZodEnum<{
16
16
  ai: "ai";
17
- human: "human";
18
17
  hybrid: "hybrid";
18
+ human: "human";
19
19
  }>;
20
20
  export declare const messageAuthorKindSchema: z.ZodEnum<{
21
- ai: "ai";
22
21
  customer: "customer";
22
+ ai: "ai";
23
23
  operator: "operator";
24
24
  system: "system";
25
25
  }>;
@@ -28,8 +28,8 @@ export declare const messageDeliveryKindSchema: z.ZodEnum<{
28
28
  outbound: "outbound";
29
29
  }>;
30
30
  export declare const attachmentKindSchema: z.ZodEnum<{
31
- photo: "photo";
32
31
  document: "document";
32
+ photo: "photo";
33
33
  audio: "audio";
34
34
  video: "video";
35
35
  other: "other";
@@ -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";
@@ -80,10 +89,10 @@ export declare const assistArtifactKindSchema: z.ZodEnum<{
80
89
  }>;
81
90
  export declare const assistArtifactStatusSchema: z.ZodEnum<{
82
91
  active: "active";
92
+ superseded: "superseded";
83
93
  viewed: "viewed";
84
94
  accepted: "accepted";
85
95
  dismissed: "dismissed";
86
- superseded: "superseded";
87
96
  }>;
88
97
  export declare const inboundEventKindSchema: z.ZodEnum<{
89
98
  message: "message";
@@ -123,8 +132,8 @@ export declare const conversationSchema: z.ZodObject<{
123
132
  channelThreadRef: z.ZodString;
124
133
  ownershipMode: z.ZodEnum<{
125
134
  ai: "ai";
126
- human: "human";
127
135
  hybrid: "hybrid";
136
+ human: "human";
128
137
  }>;
129
138
  assistMode: z.ZodEnum<{
130
139
  off: "off";
@@ -163,8 +172,8 @@ export declare const attachmentSchema: z.ZodObject<{
163
172
  conversationId: z.ZodString;
164
173
  messageId: z.ZodString;
165
174
  kind: z.ZodEnum<{
166
- photo: "photo";
167
175
  document: "document";
176
+ photo: "photo";
168
177
  audio: "audio";
169
178
  video: "video";
170
179
  other: "other";
@@ -179,8 +188,8 @@ export declare const attachmentSchema: z.ZodObject<{
179
188
  export type Attachment = z.infer<typeof attachmentSchema>;
180
189
  export declare const attachmentInputSchema: z.ZodObject<{
181
190
  kind: z.ZodEnum<{
182
- photo: "photo";
183
191
  document: "document";
192
+ photo: "photo";
184
193
  audio: "audio";
185
194
  video: "video";
186
195
  other: "other";
@@ -196,8 +205,8 @@ 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";
209
+ ai: "ai";
201
210
  operator: "operator";
202
211
  system: "system";
203
212
  }>;
@@ -212,8 +221,8 @@ export declare const messageSchema: z.ZodObject<{
212
221
  conversationId: z.ZodString;
213
222
  messageId: z.ZodString;
214
223
  kind: z.ZodEnum<{
215
- photo: "photo";
216
224
  document: "document";
225
+ photo: "photo";
217
226
  audio: "audio";
218
227
  video: "video";
219
228
  other: "other";
@@ -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,8 +277,8 @@ 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";
281
+ ai: "ai";
264
282
  operator: "operator";
265
283
  system: "system";
266
284
  }>>>;
@@ -278,8 +296,8 @@ 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";
300
+ ai: "ai";
283
301
  operator: "operator";
284
302
  system: "system";
285
303
  }>>>;
@@ -304,10 +322,10 @@ export declare const assistArtifactSchema: z.ZodObject<{
304
322
  }>;
305
323
  status: z.ZodEnum<{
306
324
  active: "active";
325
+ superseded: "superseded";
307
326
  viewed: "viewed";
308
327
  accepted: "accepted";
309
328
  dismissed: "dismissed";
310
- superseded: "superseded";
311
329
  }>;
312
330
  textPreview: z.ZodDefault<z.ZodNullable<z.ZodString>>;
313
331
  outputJson: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -332,10 +350,10 @@ export declare const outboundDispatchSchema: z.ZodObject<{
332
350
  manual: "manual";
333
351
  }>;
334
352
  deliveryStatus: z.ZodEnum<{
353
+ failed: "failed";
354
+ skipped: "skipped";
335
355
  sent: "sent";
336
356
  simulated: "simulated";
337
- 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>>;
@@ -371,8 +389,8 @@ export declare const conversationContextSchema: z.ZodObject<{
371
389
  channelThreadRef: z.ZodString;
372
390
  ownershipMode: z.ZodEnum<{
373
391
  ai: "ai";
374
- human: "human";
375
392
  hybrid: "hybrid";
393
+ human: "human";
376
394
  }>;
377
395
  assistMode: z.ZodEnum<{
378
396
  off: "off";
@@ -409,8 +427,8 @@ 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";
431
+ ai: "ai";
414
432
  operator: "operator";
415
433
  system: "system";
416
434
  }>;
@@ -425,8 +443,8 @@ export declare const conversationContextSchema: z.ZodObject<{
425
443
  conversationId: z.ZodString;
426
444
  messageId: z.ZodString;
427
445
  kind: z.ZodEnum<{
428
- photo: "photo";
429
446
  document: "document";
447
+ photo: "photo";
430
448
  audio: "audio";
431
449
  video: "video";
432
450
  other: "other";
@@ -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,8 +498,8 @@ 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";
502
+ ai: "ai";
476
503
  operator: "operator";
477
504
  system: "system";
478
505
  }>>>;
@@ -489,8 +516,8 @@ 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";
520
+ ai: "ai";
494
521
  operator: "operator";
495
522
  system: "system";
496
523
  }>>>;
@@ -514,10 +541,10 @@ export declare const conversationContextSchema: z.ZodObject<{
514
541
  }>;
515
542
  status: z.ZodEnum<{
516
543
  active: "active";
544
+ superseded: "superseded";
517
545
  viewed: "viewed";
518
546
  accepted: "accepted";
519
547
  dismissed: "dismissed";
520
- superseded: "superseded";
521
548
  }>;
522
549
  textPreview: z.ZodDefault<z.ZodNullable<z.ZodString>>;
523
550
  outputJson: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -536,8 +563,8 @@ export declare const conversationContextSchema: z.ZodObject<{
536
563
  conversationId: z.ZodString;
537
564
  sourceMessageId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
538
565
  mode: z.ZodEnum<{
539
- reply: "reply";
540
566
  draft: "draft";
567
+ reply: "reply";
541
568
  review: "review";
542
569
  }>;
543
570
  status: z.ZodEnum<{
@@ -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;
@@ -740,6 +755,38 @@ export declare const conversationContextSchema: z.ZodObject<{
740
755
  model: "model";
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
+ request_media_folders: "request_media_folders";
762
+ request_media_folder_contents: "request_media_folder_contents";
763
+ "handoff.request": "handoff.request";
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<{
@@ -754,8 +801,8 @@ export declare const conversationContextSchema: z.ZodObject<{
754
801
  reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
755
802
  topicHint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
756
803
  desiredKinds: z.ZodDefault<z.ZodArray<z.ZodEnum<{
757
- document: "document";
758
804
  image: "image";
805
+ document: "document";
759
806
  link: "link";
760
807
  deck: "deck";
761
808
  }>>>;
@@ -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
  }>;
@@ -781,8 +846,8 @@ export declare const conversationContextSchema: z.ZodObject<{
781
846
  corrective_retry: "corrective_retry";
782
847
  }>;
783
848
  status: z.ZodEnum<{
784
- failed: "failed";
785
849
  succeeded: "succeeded";
850
+ failed: "failed";
786
851
  }>;
787
852
  promptMeta: z.ZodObject<{
788
853
  promptId: z.ZodString;
@@ -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
+ succeeded: "succeeded";
886
+ failed: "failed";
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
+ configuration: "configuration";
898
+ provider: "provider";
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";
@@ -827,9 +951,9 @@ export declare const conversationContextSchema: z.ZodObject<{
827
951
  "followup.schedule": "followup.schedule";
828
952
  }>;
829
953
  status: z.ZodEnum<{
830
- skipped: "skipped";
831
954
  blocked: "blocked";
832
955
  executed: "executed";
956
+ skipped: "skipped";
833
957
  }>;
834
958
  summary: z.ZodString;
835
959
  metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -855,8 +979,8 @@ 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";
983
+ ai: "ai";
860
984
  operator: "operator";
861
985
  system: "system";
862
986
  }>>;
@@ -866,8 +990,8 @@ export declare const conversationsProcessInboundEventRequestSchema: z.ZodObject<
866
990
  text: z.ZodDefault<z.ZodNullable<z.ZodString>>;
867
991
  attachments: z.ZodDefault<z.ZodArray<z.ZodObject<{
868
992
  kind: z.ZodEnum<{
869
- photo: "photo";
870
993
  document: "document";
994
+ photo: "photo";
871
995
  audio: "audio";
872
996
  video: "video";
873
997
  other: "other";
@@ -883,8 +1007,8 @@ export declare const conversationsProcessInboundEventRequestSchema: z.ZodObject<
883
1007
  metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
884
1008
  ownershipMode: z.ZodOptional<z.ZodEnum<{
885
1009
  ai: "ai";
886
- human: "human";
887
1010
  hybrid: "hybrid";
1011
+ human: "human";
888
1012
  }>>;
889
1013
  assistMode: z.ZodOptional<z.ZodEnum<{
890
1014
  off: "off";
@@ -931,8 +1055,8 @@ export declare const conversationsProcessInboundEventResponseSchema: z.ZodObject
931
1055
  channelThreadRef: z.ZodString;
932
1056
  ownershipMode: z.ZodEnum<{
933
1057
  ai: "ai";
934
- human: "human";
935
1058
  hybrid: "hybrid";
1059
+ human: "human";
936
1060
  }>;
937
1061
  assistMode: z.ZodEnum<{
938
1062
  off: "off";
@@ -969,8 +1093,8 @@ 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";
1097
+ ai: "ai";
974
1098
  operator: "operator";
975
1099
  system: "system";
976
1100
  }>;
@@ -985,8 +1109,8 @@ export declare const conversationsProcessInboundEventResponseSchema: z.ZodObject
985
1109
  conversationId: z.ZodString;
986
1110
  messageId: z.ZodString;
987
1111
  kind: z.ZodEnum<{
988
- photo: "photo";
989
1112
  document: "document";
1113
+ photo: "photo";
990
1114
  audio: "audio";
991
1115
  video: "video";
992
1116
  other: "other";
@@ -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,8 +1164,8 @@ 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";
1168
+ ai: "ai";
1036
1169
  operator: "operator";
1037
1170
  system: "system";
1038
1171
  }>>>;
@@ -1049,8 +1182,8 @@ 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";
1186
+ ai: "ai";
1054
1187
  operator: "operator";
1055
1188
  system: "system";
1056
1189
  }>>>;
@@ -1074,10 +1207,10 @@ export declare const conversationsProcessInboundEventResponseSchema: z.ZodObject
1074
1207
  }>;
1075
1208
  status: z.ZodEnum<{
1076
1209
  active: "active";
1210
+ superseded: "superseded";
1077
1211
  viewed: "viewed";
1078
1212
  accepted: "accepted";
1079
1213
  dismissed: "dismissed";
1080
- superseded: "superseded";
1081
1214
  }>;
1082
1215
  textPreview: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1083
1216
  outputJson: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -1096,8 +1229,8 @@ export declare const conversationsProcessInboundEventResponseSchema: z.ZodObject
1096
1229
  conversationId: z.ZodString;
1097
1230
  sourceMessageId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1098
1231
  mode: z.ZodEnum<{
1099
- reply: "reply";
1100
1232
  draft: "draft";
1233
+ reply: "reply";
1101
1234
  review: "review";
1102
1235
  }>;
1103
1236
  status: z.ZodEnum<{
@@ -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;
@@ -1300,6 +1421,38 @@ export declare const conversationsProcessInboundEventResponseSchema: z.ZodObject
1300
1421
  model: "model";
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
+ request_media_folders: "request_media_folders";
1428
+ request_media_folder_contents: "request_media_folder_contents";
1429
+ "handoff.request": "handoff.request";
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<{
@@ -1314,8 +1467,8 @@ export declare const conversationsProcessInboundEventResponseSchema: z.ZodObject
1314
1467
  reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1315
1468
  topicHint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1316
1469
  desiredKinds: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1317
- document: "document";
1318
1470
  image: "image";
1471
+ document: "document";
1319
1472
  link: "link";
1320
1473
  deck: "deck";
1321
1474
  }>>>;
@@ -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
  }>;
@@ -1341,8 +1512,8 @@ export declare const conversationsProcessInboundEventResponseSchema: z.ZodObject
1341
1512
  corrective_retry: "corrective_retry";
1342
1513
  }>;
1343
1514
  status: z.ZodEnum<{
1344
- failed: "failed";
1345
1515
  succeeded: "succeeded";
1516
+ failed: "failed";
1346
1517
  }>;
1347
1518
  promptMeta: z.ZodObject<{
1348
1519
  promptId: z.ZodString;
@@ -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
+ succeeded: "succeeded";
1552
+ failed: "failed";
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
+ configuration: "configuration";
1564
+ provider: "provider";
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";
@@ -1387,9 +1617,9 @@ export declare const conversationsProcessInboundEventResponseSchema: z.ZodObject
1387
1617
  "followup.schedule": "followup.schedule";
1388
1618
  }>;
1389
1619
  status: z.ZodEnum<{
1390
- skipped: "skipped";
1391
1620
  blocked: "blocked";
1392
1621
  executed: "executed";
1622
+ skipped: "skipped";
1393
1623
  }>;
1394
1624
  summary: z.ZodString;
1395
1625
  metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -1401,8 +1631,8 @@ 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";
1635
+ ai: "ai";
1406
1636
  operator: "operator";
1407
1637
  system: "system";
1408
1638
  }>;
@@ -1417,8 +1647,8 @@ export declare const conversationsProcessInboundEventResponseSchema: z.ZodObject
1417
1647
  conversationId: z.ZodString;
1418
1648
  messageId: z.ZodString;
1419
1649
  kind: z.ZodEnum<{
1420
- photo: "photo";
1421
1650
  document: "document";
1651
+ photo: "photo";
1422
1652
  audio: "audio";
1423
1653
  video: "video";
1424
1654
  other: "other";
@@ -1433,12 +1663,57 @@ 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
+ cancelled: "cancelled";
1670
+ failed: "failed";
1671
+ superseded: "superseded";
1672
+ completed: "completed";
1673
+ queued: "queued";
1674
+ running: "running";
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";
1716
+ ai: "ai";
1442
1717
  operator: "operator";
1443
1718
  system: "system";
1444
1719
  }>;
@@ -1453,8 +1728,8 @@ export declare const conversationsProcessInboundEventResponseSchema: z.ZodObject
1453
1728
  conversationId: z.ZodString;
1454
1729
  messageId: z.ZodString;
1455
1730
  kind: z.ZodEnum<{
1456
- photo: "photo";
1457
1731
  document: "document";
1732
+ photo: "photo";
1458
1733
  audio: "audio";
1459
1734
  video: "video";
1460
1735
  other: "other";
@@ -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,8 +1783,8 @@ 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";
1787
+ ai: "ai";
1504
1788
  operator: "operator";
1505
1789
  system: "system";
1506
1790
  }>>>;
@@ -1521,10 +1805,10 @@ export declare const conversationsProcessInboundEventResponseSchema: z.ZodObject
1521
1805
  }>;
1522
1806
  status: z.ZodEnum<{
1523
1807
  active: "active";
1808
+ superseded: "superseded";
1524
1809
  viewed: "viewed";
1525
1810
  accepted: "accepted";
1526
1811
  dismissed: "dismissed";
1527
- superseded: "superseded";
1528
1812
  }>;
1529
1813
  textPreview: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1530
1814
  outputJson: 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";
1836
+ skipped: "skipped";
1551
1837
  sent: "sent";
1552
1838
  simulated: "simulated";
1553
- 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,11 +1852,11 @@ 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
+ cancelled: "cancelled";
1571
1856
  failed: "failed";
1857
+ completed: "completed";
1572
1858
  queued: "queued";
1573
1859
  running: "running";
1574
- completed: "completed";
1575
- cancelled: "cancelled";
1576
1860
  }>;
1577
1861
  export declare const conversationReplayJobErrorSchema: z.ZodObject<{
1578
1862
  code: z.ZodString;
@@ -1582,11 +1866,11 @@ 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
+ cancelled: "cancelled";
1585
1870
  failed: "failed";
1871
+ completed: "completed";
1586
1872
  queued: "queued";
1587
1873
  running: "running";
1588
- completed: "completed";
1589
- cancelled: "cancelled";
1590
1874
  }>;
1591
1875
  businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1592
1876
  referenceTranscriptId: z.ZodString;
@@ -1623,11 +1907,11 @@ 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
+ cancelled: "cancelled";
1626
1911
  failed: "failed";
1912
+ completed: "completed";
1627
1913
  queued: "queued";
1628
1914
  running: "running";
1629
- completed: "completed";
1630
- cancelled: "cancelled";
1631
1915
  }>;
1632
1916
  businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1633
1917
  referenceTranscriptId: z.ZodString;
@@ -1688,9 +1972,9 @@ export declare const conversationReplayJobRecordSchema: z.ZodObject<{
1688
1972
  company: "company";
1689
1973
  }>;
1690
1974
  actorMode: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
1691
- hybrid: "hybrid";
1692
1975
  operator: "operator";
1693
1976
  bot: "bot";
1977
+ hybrid: "hybrid";
1694
1978
  }>>>;
1695
1979
  label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1696
1980
  }, z.core.$strip>>>;
@@ -1703,9 +1987,9 @@ export declare const conversationReplayJobRecordSchema: z.ZodObject<{
1703
1987
  company: "company";
1704
1988
  }>;
1705
1989
  actorMode: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
1706
- hybrid: "hybrid";
1707
1990
  operator: "operator";
1708
1991
  bot: "bot";
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>>;
@@ -1714,12 +1998,12 @@ export declare const conversationReplayJobRecordSchema: z.ZodObject<{
1714
1998
  text: z.ZodString;
1715
1999
  attachments: z.ZodDefault<z.ZodArray<z.ZodObject<{
1716
2000
  kind: z.ZodEnum<{
1717
- photo: "photo";
1718
2001
  document: "document";
2002
+ photo: "photo";
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
2063
  operator: "operator";
1781
2064
  bot: "bot";
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>>;
@@ -1840,9 +2124,9 @@ export declare const conversationsReplayTranscriptRequestSchema: z.ZodObject<{
1840
2124
  company: "company";
1841
2125
  }>;
1842
2126
  actorMode: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
1843
- hybrid: "hybrid";
1844
2127
  operator: "operator";
1845
2128
  bot: "bot";
2129
+ hybrid: "hybrid";
1846
2130
  }>>>;
1847
2131
  label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1848
2132
  }, z.core.$strip>>>;
@@ -1855,9 +2139,9 @@ export declare const conversationsReplayTranscriptRequestSchema: z.ZodObject<{
1855
2139
  company: "company";
1856
2140
  }>;
1857
2141
  actorMode: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
1858
- hybrid: "hybrid";
1859
2142
  operator: "operator";
1860
2143
  bot: "bot";
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>>;
@@ -1866,12 +2150,12 @@ export declare const conversationsReplayTranscriptRequestSchema: z.ZodObject<{
1866
2150
  text: z.ZodString;
1867
2151
  attachments: z.ZodDefault<z.ZodArray<z.ZodObject<{
1868
2152
  kind: z.ZodEnum<{
1869
- photo: "photo";
1870
2153
  document: "document";
2154
+ photo: "photo";
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
2215
  operator: "operator";
1933
2216
  bot: "bot";
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,11 +2263,11 @@ export declare const conversationsReplayTranscriptResponseSchema: z.ZodObject<{
1979
2263
  job: z.ZodObject<{
1980
2264
  replayJobId: z.ZodString;
1981
2265
  status: z.ZodEnum<{
2266
+ cancelled: "cancelled";
1982
2267
  failed: "failed";
2268
+ completed: "completed";
1983
2269
  queued: "queued";
1984
2270
  running: "running";
1985
- completed: "completed";
1986
- cancelled: "cancelled";
1987
2271
  }>;
1988
2272
  businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1989
2273
  referenceTranscriptId: z.ZodString;
@@ -2027,11 +2311,11 @@ export declare const conversationsGetReplayJobResponseSchema: z.ZodObject<{
2027
2311
  job: z.ZodNullable<z.ZodObject<{
2028
2312
  replayJobId: z.ZodString;
2029
2313
  status: z.ZodEnum<{
2314
+ cancelled: "cancelled";
2030
2315
  failed: "failed";
2316
+ completed: "completed";
2031
2317
  queued: "queued";
2032
2318
  running: "running";
2033
- completed: "completed";
2034
- cancelled: "cancelled";
2035
2319
  }>;
2036
2320
  businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2037
2321
  referenceTranscriptId: 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
+ cancelled: "cancelled";
2355
+ failed: "failed";
2356
+ superseded: "superseded";
2357
+ completed: "completed";
2358
+ queued: "queued";
2359
+ running: "running";
2360
+ }>;
2361
+ export declare const conversationReplyBurstStatusSchema: z.ZodEnum<{
2362
+ cancelled: "cancelled";
2363
+ completed: "completed";
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
+ cancelled: "cancelled";
2375
+ failed: "failed";
2376
+ superseded: "superseded";
2377
+ completed: "completed";
2378
+ queued: "queued";
2379
+ running: "running";
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
+ cancelled: "cancelled";
2420
+ failed: "failed";
2421
+ superseded: "superseded";
2422
+ completed: "completed";
2423
+ queued: "queued";
2424
+ running: "running";
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
+ cancelled: "cancelled";
2466
+ completed: "completed";
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
+ cancelled: "cancelled";
2498
+ completed: "completed";
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
+ cancelled: "cancelled";
2536
+ failed: "failed";
2537
+ superseded: "superseded";
2538
+ completed: "completed";
2539
+ queued: "queued";
2540
+ running: "running";
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<{
@@ -2099,8 +2608,8 @@ export declare const conversationsGetContextResponseSchema: z.ZodObject<{
2099
2608
  channelThreadRef: z.ZodString;
2100
2609
  ownershipMode: z.ZodEnum<{
2101
2610
  ai: "ai";
2102
- human: "human";
2103
2611
  hybrid: "hybrid";
2612
+ human: "human";
2104
2613
  }>;
2105
2614
  assistMode: z.ZodEnum<{
2106
2615
  off: "off";
@@ -2137,8 +2646,8 @@ 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";
2650
+ ai: "ai";
2142
2651
  operator: "operator";
2143
2652
  system: "system";
2144
2653
  }>;
@@ -2153,8 +2662,8 @@ export declare const conversationsGetContextResponseSchema: z.ZodObject<{
2153
2662
  conversationId: z.ZodString;
2154
2663
  messageId: z.ZodString;
2155
2664
  kind: z.ZodEnum<{
2156
- photo: "photo";
2157
2665
  document: "document";
2666
+ photo: "photo";
2158
2667
  audio: "audio";
2159
2668
  video: "video";
2160
2669
  other: "other";
@@ -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,8 +2717,8 @@ 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";
2721
+ ai: "ai";
2204
2722
  operator: "operator";
2205
2723
  system: "system";
2206
2724
  }>>>;
@@ -2217,8 +2735,8 @@ 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";
2739
+ ai: "ai";
2222
2740
  operator: "operator";
2223
2741
  system: "system";
2224
2742
  }>>>;
@@ -2242,10 +2760,10 @@ export declare const conversationsGetContextResponseSchema: z.ZodObject<{
2242
2760
  }>;
2243
2761
  status: z.ZodEnum<{
2244
2762
  active: "active";
2763
+ superseded: "superseded";
2245
2764
  viewed: "viewed";
2246
2765
  accepted: "accepted";
2247
2766
  dismissed: "dismissed";
2248
- superseded: "superseded";
2249
2767
  }>;
2250
2768
  textPreview: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2251
2769
  outputJson: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -2264,8 +2782,8 @@ export declare const conversationsGetContextResponseSchema: z.ZodObject<{
2264
2782
  conversationId: z.ZodString;
2265
2783
  sourceMessageId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2266
2784
  mode: z.ZodEnum<{
2267
- reply: "reply";
2268
2785
  draft: "draft";
2786
+ reply: "reply";
2269
2787
  review: "review";
2270
2788
  }>;
2271
2789
  status: z.ZodEnum<{
@@ -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;
@@ -2468,6 +2974,38 @@ export declare const conversationsGetContextResponseSchema: z.ZodObject<{
2468
2974
  model: "model";
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
+ request_media_folders: "request_media_folders";
2981
+ request_media_folder_contents: "request_media_folder_contents";
2982
+ "handoff.request": "handoff.request";
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<{
@@ -2482,8 +3020,8 @@ export declare const conversationsGetContextResponseSchema: z.ZodObject<{
2482
3020
  reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2483
3021
  topicHint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2484
3022
  desiredKinds: z.ZodDefault<z.ZodArray<z.ZodEnum<{
2485
- document: "document";
2486
3023
  image: "image";
3024
+ document: "document";
2487
3025
  link: "link";
2488
3026
  deck: "deck";
2489
3027
  }>>>;
@@ -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
  }>;
@@ -2509,8 +3065,8 @@ export declare const conversationsGetContextResponseSchema: z.ZodObject<{
2509
3065
  corrective_retry: "corrective_retry";
2510
3066
  }>;
2511
3067
  status: z.ZodEnum<{
2512
- failed: "failed";
2513
3068
  succeeded: "succeeded";
3069
+ failed: "failed";
2514
3070
  }>;
2515
3071
  promptMeta: z.ZodObject<{
2516
3072
  promptId: z.ZodString;
@@ -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
+ succeeded: "succeeded";
3105
+ failed: "failed";
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
+ configuration: "configuration";
3117
+ provider: "provider";
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";
@@ -2555,9 +3170,9 @@ export declare const conversationsGetContextResponseSchema: z.ZodObject<{
2555
3170
  "followup.schedule": "followup.schedule";
2556
3171
  }>;
2557
3172
  status: z.ZodEnum<{
2558
- skipped: "skipped";
2559
3173
  blocked: "blocked";
2560
3174
  executed: "executed";
3175
+ skipped: "skipped";
2561
3176
  }>;
2562
3177
  summary: z.ZodString;
2563
3178
  metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -2589,8 +3204,8 @@ export declare const conversationsListTimelineResponseSchema: z.ZodObject<{
2589
3204
  channelThreadRef: z.ZodString;
2590
3205
  ownershipMode: z.ZodEnum<{
2591
3206
  ai: "ai";
2592
- human: "human";
2593
3207
  hybrid: "hybrid";
3208
+ human: "human";
2594
3209
  }>;
2595
3210
  assistMode: z.ZodEnum<{
2596
3211
  off: "off";
@@ -2633,8 +3248,8 @@ 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";
3252
+ ai: "ai";
2638
3253
  operator: "operator";
2639
3254
  system: "system";
2640
3255
  }>>>;
@@ -2658,10 +3273,10 @@ export declare const conversationsListTimelineResponseSchema: z.ZodObject<{
2658
3273
  }>;
2659
3274
  status: z.ZodEnum<{
2660
3275
  active: "active";
3276
+ superseded: "superseded";
2661
3277
  viewed: "viewed";
2662
3278
  accepted: "accepted";
2663
3279
  dismissed: "dismissed";
2664
- superseded: "superseded";
2665
3280
  }>;
2666
3281
  textPreview: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2667
3282
  outputJson: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -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