@selleragent/api-contract 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.tsbuildinfo +1 -1
- package/dist/conversations.d.ts +270 -40
- package/dist/conversations.d.ts.map +1 -1
- package/dist/conversations.js +7 -1
- package/dist/conversations.js.map +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +49 -20
- package/dist/index.js.map +1 -1
- package/dist/judge-files.d.ts +20 -20
- package/dist/operations.d.ts +2194 -148
- package/dist/operations.d.ts.map +1 -1
- package/dist/operations.js +176 -42
- package/dist/operations.js.map +1 -1
- package/dist/ops.d.ts +428 -34
- package/dist/ops.d.ts.map +1 -1
- package/dist/ops.js +73 -9
- package/dist/ops.js.map +1 -1
- package/dist/runtime.d.ts +838 -0
- package/dist/runtime.d.ts.map +1 -1
- package/dist/runtime.js +132 -2
- package/dist/runtime.js.map +1 -1
- package/dist/semantic-eval.d.ts +25 -25
- package/package.json +1 -1
package/dist/conversations.d.ts
CHANGED
|
@@ -18,8 +18,8 @@ export declare const ownershipModeSchema: z.ZodEnum<{
|
|
|
18
18
|
hybrid: "hybrid";
|
|
19
19
|
}>;
|
|
20
20
|
export declare const messageAuthorKindSchema: z.ZodEnum<{
|
|
21
|
-
customer: "customer";
|
|
22
21
|
ai: "ai";
|
|
22
|
+
customer: "customer";
|
|
23
23
|
operator: "operator";
|
|
24
24
|
system: "system";
|
|
25
25
|
}>;
|
|
@@ -49,6 +49,7 @@ export declare const conversationEventKindSchema: z.ZodEnum<{
|
|
|
49
49
|
"operator.note.added": "operator.note.added";
|
|
50
50
|
"channel.outbound.skipped": "channel.outbound.skipped";
|
|
51
51
|
"channel.outbound.sent": "channel.outbound.sent";
|
|
52
|
+
"channel.outbound.failed": "channel.outbound.failed";
|
|
52
53
|
"followup.classified": "followup.classified";
|
|
53
54
|
"followup.task.scheduled": "followup.task.scheduled";
|
|
54
55
|
"followup.task.completed": "followup.task.completed";
|
|
@@ -79,10 +80,10 @@ export declare const assistArtifactKindSchema: z.ZodEnum<{
|
|
|
79
80
|
}>;
|
|
80
81
|
export declare const assistArtifactStatusSchema: z.ZodEnum<{
|
|
81
82
|
active: "active";
|
|
82
|
-
superseded: "superseded";
|
|
83
|
-
accepted: "accepted";
|
|
84
83
|
viewed: "viewed";
|
|
84
|
+
accepted: "accepted";
|
|
85
85
|
dismissed: "dismissed";
|
|
86
|
+
superseded: "superseded";
|
|
86
87
|
}>;
|
|
87
88
|
export declare const inboundEventKindSchema: z.ZodEnum<{
|
|
88
89
|
message: "message";
|
|
@@ -195,8 +196,8 @@ export declare const messageSchema: z.ZodObject<{
|
|
|
195
196
|
messageId: z.ZodString;
|
|
196
197
|
conversationId: z.ZodString;
|
|
197
198
|
authorKind: z.ZodEnum<{
|
|
198
|
-
customer: "customer";
|
|
199
199
|
ai: "ai";
|
|
200
|
+
customer: "customer";
|
|
200
201
|
operator: "operator";
|
|
201
202
|
system: "system";
|
|
202
203
|
}>;
|
|
@@ -246,6 +247,7 @@ export declare const conversationEventSchema: z.ZodObject<{
|
|
|
246
247
|
"operator.note.added": "operator.note.added";
|
|
247
248
|
"channel.outbound.skipped": "channel.outbound.skipped";
|
|
248
249
|
"channel.outbound.sent": "channel.outbound.sent";
|
|
250
|
+
"channel.outbound.failed": "channel.outbound.failed";
|
|
249
251
|
"followup.classified": "followup.classified";
|
|
250
252
|
"followup.task.scheduled": "followup.task.scheduled";
|
|
251
253
|
"followup.task.completed": "followup.task.completed";
|
|
@@ -257,8 +259,8 @@ export declare const conversationEventSchema: z.ZodObject<{
|
|
|
257
259
|
}>;
|
|
258
260
|
title: z.ZodString;
|
|
259
261
|
actorKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
|
|
260
|
-
customer: "customer";
|
|
261
262
|
ai: "ai";
|
|
263
|
+
customer: "customer";
|
|
262
264
|
operator: "operator";
|
|
263
265
|
system: "system";
|
|
264
266
|
}>>>;
|
|
@@ -276,8 +278,8 @@ export declare const timelineEntrySchema: z.ZodObject<{
|
|
|
276
278
|
occurredAt: z.ZodString;
|
|
277
279
|
title: z.ZodString;
|
|
278
280
|
actorKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
|
|
279
|
-
customer: "customer";
|
|
280
281
|
ai: "ai";
|
|
282
|
+
customer: "customer";
|
|
281
283
|
operator: "operator";
|
|
282
284
|
system: "system";
|
|
283
285
|
}>>>;
|
|
@@ -302,10 +304,10 @@ export declare const assistArtifactSchema: z.ZodObject<{
|
|
|
302
304
|
}>;
|
|
303
305
|
status: z.ZodEnum<{
|
|
304
306
|
active: "active";
|
|
305
|
-
superseded: "superseded";
|
|
306
|
-
accepted: "accepted";
|
|
307
307
|
viewed: "viewed";
|
|
308
|
+
accepted: "accepted";
|
|
308
309
|
dismissed: "dismissed";
|
|
310
|
+
superseded: "superseded";
|
|
309
311
|
}>;
|
|
310
312
|
textPreview: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
311
313
|
outputJson: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -330,10 +332,21 @@ export declare const outboundDispatchSchema: z.ZodObject<{
|
|
|
330
332
|
manual: "manual";
|
|
331
333
|
}>;
|
|
332
334
|
deliveryStatus: z.ZodEnum<{
|
|
333
|
-
skipped: "skipped";
|
|
334
335
|
sent: "sent";
|
|
335
336
|
simulated: "simulated";
|
|
337
|
+
skipped: "skipped";
|
|
338
|
+
failed: "failed";
|
|
336
339
|
}>;
|
|
340
|
+
planId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
341
|
+
stepId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
342
|
+
sequence: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
343
|
+
stepType: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
|
|
344
|
+
send_text: "send_text";
|
|
345
|
+
send_media: "send_media";
|
|
346
|
+
send_media_group: "send_media_group";
|
|
347
|
+
send_document: "send_document";
|
|
348
|
+
send_link: "send_link";
|
|
349
|
+
}>>>;
|
|
337
350
|
transportMessageRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
338
351
|
reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
339
352
|
}, z.core.$strip>;
|
|
@@ -396,8 +409,8 @@ export declare const conversationContextSchema: z.ZodObject<{
|
|
|
396
409
|
messageId: z.ZodString;
|
|
397
410
|
conversationId: z.ZodString;
|
|
398
411
|
authorKind: z.ZodEnum<{
|
|
399
|
-
customer: "customer";
|
|
400
412
|
ai: "ai";
|
|
413
|
+
customer: "customer";
|
|
401
414
|
operator: "operator";
|
|
402
415
|
system: "system";
|
|
403
416
|
}>;
|
|
@@ -446,6 +459,7 @@ export declare const conversationContextSchema: z.ZodObject<{
|
|
|
446
459
|
"operator.note.added": "operator.note.added";
|
|
447
460
|
"channel.outbound.skipped": "channel.outbound.skipped";
|
|
448
461
|
"channel.outbound.sent": "channel.outbound.sent";
|
|
462
|
+
"channel.outbound.failed": "channel.outbound.failed";
|
|
449
463
|
"followup.classified": "followup.classified";
|
|
450
464
|
"followup.task.scheduled": "followup.task.scheduled";
|
|
451
465
|
"followup.task.completed": "followup.task.completed";
|
|
@@ -457,8 +471,8 @@ export declare const conversationContextSchema: z.ZodObject<{
|
|
|
457
471
|
}>;
|
|
458
472
|
title: z.ZodString;
|
|
459
473
|
actorKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
|
|
460
|
-
customer: "customer";
|
|
461
474
|
ai: "ai";
|
|
475
|
+
customer: "customer";
|
|
462
476
|
operator: "operator";
|
|
463
477
|
system: "system";
|
|
464
478
|
}>>>;
|
|
@@ -475,8 +489,8 @@ export declare const conversationContextSchema: z.ZodObject<{
|
|
|
475
489
|
occurredAt: z.ZodString;
|
|
476
490
|
title: z.ZodString;
|
|
477
491
|
actorKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
|
|
478
|
-
customer: "customer";
|
|
479
492
|
ai: "ai";
|
|
493
|
+
customer: "customer";
|
|
480
494
|
operator: "operator";
|
|
481
495
|
system: "system";
|
|
482
496
|
}>>>;
|
|
@@ -500,10 +514,10 @@ export declare const conversationContextSchema: z.ZodObject<{
|
|
|
500
514
|
}>;
|
|
501
515
|
status: z.ZodEnum<{
|
|
502
516
|
active: "active";
|
|
503
|
-
superseded: "superseded";
|
|
504
|
-
accepted: "accepted";
|
|
505
517
|
viewed: "viewed";
|
|
518
|
+
accepted: "accepted";
|
|
506
519
|
dismissed: "dismissed";
|
|
520
|
+
superseded: "superseded";
|
|
507
521
|
}>;
|
|
508
522
|
textPreview: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
509
523
|
outputJson: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -570,6 +584,45 @@ export declare const conversationContextSchema: z.ZodObject<{
|
|
|
570
584
|
}>>;
|
|
571
585
|
channelHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
572
586
|
}, z.core.$strip>;
|
|
587
|
+
outboundPlan: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
588
|
+
planId: z.ZodString;
|
|
589
|
+
conversationId: z.ZodString;
|
|
590
|
+
basedOnCustomerMessageId: z.ZodString;
|
|
591
|
+
kind: z.ZodEnum<{
|
|
592
|
+
draft_outbound_plan: "draft_outbound_plan";
|
|
593
|
+
final_outbound_plan: "final_outbound_plan";
|
|
594
|
+
}>;
|
|
595
|
+
steps: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
596
|
+
stepId: z.ZodString;
|
|
597
|
+
sequence: z.ZodNumber;
|
|
598
|
+
type: z.ZodLiteral<"send_text">;
|
|
599
|
+
text: z.ZodString;
|
|
600
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
601
|
+
stepId: z.ZodString;
|
|
602
|
+
sequence: z.ZodNumber;
|
|
603
|
+
type: z.ZodLiteral<"send_media">;
|
|
604
|
+
assetId: z.ZodString;
|
|
605
|
+
caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
606
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
607
|
+
stepId: z.ZodString;
|
|
608
|
+
sequence: z.ZodNumber;
|
|
609
|
+
type: z.ZodLiteral<"send_media_group">;
|
|
610
|
+
assetIds: z.ZodArray<z.ZodString>;
|
|
611
|
+
caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
612
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
613
|
+
stepId: z.ZodString;
|
|
614
|
+
sequence: z.ZodNumber;
|
|
615
|
+
type: z.ZodLiteral<"send_document">;
|
|
616
|
+
assetId: z.ZodString;
|
|
617
|
+
caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
618
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
619
|
+
stepId: z.ZodString;
|
|
620
|
+
sequence: z.ZodNumber;
|
|
621
|
+
type: z.ZodLiteral<"send_link">;
|
|
622
|
+
assetId: z.ZodString;
|
|
623
|
+
text: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
624
|
+
}, z.core.$strip>], "type">>;
|
|
625
|
+
}, z.core.$strip>>>;
|
|
573
626
|
classification: z.ZodObject<{
|
|
574
627
|
primaryIntent: z.ZodString;
|
|
575
628
|
secondaryIntents: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -686,6 +739,34 @@ export declare const conversationContextSchema: z.ZodObject<{
|
|
|
686
739
|
heuristic: "heuristic";
|
|
687
740
|
model: "model";
|
|
688
741
|
}>;
|
|
742
|
+
protocolResponseKind: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
743
|
+
mediaProfileVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
744
|
+
mediaProfileVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
745
|
+
mediaDiscovery: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
746
|
+
requestKind: z.ZodEnum<{
|
|
747
|
+
request_media_folders: "request_media_folders";
|
|
748
|
+
request_media_folder_contents: "request_media_folder_contents";
|
|
749
|
+
}>;
|
|
750
|
+
status: z.ZodEnum<{
|
|
751
|
+
served: "served";
|
|
752
|
+
rejected: "rejected";
|
|
753
|
+
}>;
|
|
754
|
+
reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
755
|
+
topicHint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
756
|
+
desiredKinds: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
757
|
+
document: "document";
|
|
758
|
+
image: "image";
|
|
759
|
+
link: "link";
|
|
760
|
+
deck: "deck";
|
|
761
|
+
}>>>;
|
|
762
|
+
folderKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
763
|
+
requestedLimit: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
764
|
+
returnedFolderKeys: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
765
|
+
returnedAssetIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
766
|
+
registryVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
767
|
+
registryVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
768
|
+
errorMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
769
|
+
}, z.core.$strip>>>;
|
|
689
770
|
}, z.core.$strip>>>;
|
|
690
771
|
generationAttempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
691
772
|
stage: z.ZodEnum<{
|
|
@@ -700,8 +781,8 @@ export declare const conversationContextSchema: z.ZodObject<{
|
|
|
700
781
|
corrective_retry: "corrective_retry";
|
|
701
782
|
}>;
|
|
702
783
|
status: z.ZodEnum<{
|
|
703
|
-
succeeded: "succeeded";
|
|
704
784
|
failed: "failed";
|
|
785
|
+
succeeded: "succeeded";
|
|
705
786
|
}>;
|
|
706
787
|
promptMeta: z.ZodObject<{
|
|
707
788
|
promptId: z.ZodString;
|
|
@@ -746,9 +827,9 @@ export declare const conversationContextSchema: z.ZodObject<{
|
|
|
746
827
|
"followup.schedule": "followup.schedule";
|
|
747
828
|
}>;
|
|
748
829
|
status: z.ZodEnum<{
|
|
830
|
+
skipped: "skipped";
|
|
749
831
|
blocked: "blocked";
|
|
750
832
|
executed: "executed";
|
|
751
|
-
skipped: "skipped";
|
|
752
833
|
}>;
|
|
753
834
|
summary: z.ZodString;
|
|
754
835
|
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -774,8 +855,8 @@ export declare const conversationsProcessInboundEventRequestSchema: z.ZodObject<
|
|
|
774
855
|
connection_update: "connection_update";
|
|
775
856
|
}>>;
|
|
776
857
|
authorKind: z.ZodDefault<z.ZodEnum<{
|
|
777
|
-
customer: "customer";
|
|
778
858
|
ai: "ai";
|
|
859
|
+
customer: "customer";
|
|
779
860
|
operator: "operator";
|
|
780
861
|
system: "system";
|
|
781
862
|
}>>;
|
|
@@ -797,6 +878,7 @@ export declare const conversationsProcessInboundEventRequestSchema: z.ZodObject<
|
|
|
797
878
|
sourceRef: z.ZodString;
|
|
798
879
|
metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
799
880
|
}, z.core.$strip>>>;
|
|
881
|
+
mediaRegistryOverride: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
800
882
|
deletedMessageRefs: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
801
883
|
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
802
884
|
ownershipMode: z.ZodOptional<z.ZodEnum<{
|
|
@@ -887,8 +969,8 @@ export declare const conversationsProcessInboundEventResponseSchema: z.ZodObject
|
|
|
887
969
|
messageId: z.ZodString;
|
|
888
970
|
conversationId: z.ZodString;
|
|
889
971
|
authorKind: z.ZodEnum<{
|
|
890
|
-
customer: "customer";
|
|
891
972
|
ai: "ai";
|
|
973
|
+
customer: "customer";
|
|
892
974
|
operator: "operator";
|
|
893
975
|
system: "system";
|
|
894
976
|
}>;
|
|
@@ -937,6 +1019,7 @@ export declare const conversationsProcessInboundEventResponseSchema: z.ZodObject
|
|
|
937
1019
|
"operator.note.added": "operator.note.added";
|
|
938
1020
|
"channel.outbound.skipped": "channel.outbound.skipped";
|
|
939
1021
|
"channel.outbound.sent": "channel.outbound.sent";
|
|
1022
|
+
"channel.outbound.failed": "channel.outbound.failed";
|
|
940
1023
|
"followup.classified": "followup.classified";
|
|
941
1024
|
"followup.task.scheduled": "followup.task.scheduled";
|
|
942
1025
|
"followup.task.completed": "followup.task.completed";
|
|
@@ -948,8 +1031,8 @@ export declare const conversationsProcessInboundEventResponseSchema: z.ZodObject
|
|
|
948
1031
|
}>;
|
|
949
1032
|
title: z.ZodString;
|
|
950
1033
|
actorKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
|
|
951
|
-
customer: "customer";
|
|
952
1034
|
ai: "ai";
|
|
1035
|
+
customer: "customer";
|
|
953
1036
|
operator: "operator";
|
|
954
1037
|
system: "system";
|
|
955
1038
|
}>>>;
|
|
@@ -966,8 +1049,8 @@ export declare const conversationsProcessInboundEventResponseSchema: z.ZodObject
|
|
|
966
1049
|
occurredAt: z.ZodString;
|
|
967
1050
|
title: z.ZodString;
|
|
968
1051
|
actorKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
|
|
969
|
-
customer: "customer";
|
|
970
1052
|
ai: "ai";
|
|
1053
|
+
customer: "customer";
|
|
971
1054
|
operator: "operator";
|
|
972
1055
|
system: "system";
|
|
973
1056
|
}>>>;
|
|
@@ -991,10 +1074,10 @@ export declare const conversationsProcessInboundEventResponseSchema: z.ZodObject
|
|
|
991
1074
|
}>;
|
|
992
1075
|
status: z.ZodEnum<{
|
|
993
1076
|
active: "active";
|
|
994
|
-
superseded: "superseded";
|
|
995
|
-
accepted: "accepted";
|
|
996
1077
|
viewed: "viewed";
|
|
1078
|
+
accepted: "accepted";
|
|
997
1079
|
dismissed: "dismissed";
|
|
1080
|
+
superseded: "superseded";
|
|
998
1081
|
}>;
|
|
999
1082
|
textPreview: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1000
1083
|
outputJson: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -1061,6 +1144,45 @@ export declare const conversationsProcessInboundEventResponseSchema: z.ZodObject
|
|
|
1061
1144
|
}>>;
|
|
1062
1145
|
channelHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1063
1146
|
}, z.core.$strip>;
|
|
1147
|
+
outboundPlan: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
1148
|
+
planId: z.ZodString;
|
|
1149
|
+
conversationId: z.ZodString;
|
|
1150
|
+
basedOnCustomerMessageId: z.ZodString;
|
|
1151
|
+
kind: z.ZodEnum<{
|
|
1152
|
+
draft_outbound_plan: "draft_outbound_plan";
|
|
1153
|
+
final_outbound_plan: "final_outbound_plan";
|
|
1154
|
+
}>;
|
|
1155
|
+
steps: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1156
|
+
stepId: z.ZodString;
|
|
1157
|
+
sequence: z.ZodNumber;
|
|
1158
|
+
type: z.ZodLiteral<"send_text">;
|
|
1159
|
+
text: z.ZodString;
|
|
1160
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1161
|
+
stepId: z.ZodString;
|
|
1162
|
+
sequence: z.ZodNumber;
|
|
1163
|
+
type: z.ZodLiteral<"send_media">;
|
|
1164
|
+
assetId: z.ZodString;
|
|
1165
|
+
caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1166
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1167
|
+
stepId: z.ZodString;
|
|
1168
|
+
sequence: z.ZodNumber;
|
|
1169
|
+
type: z.ZodLiteral<"send_media_group">;
|
|
1170
|
+
assetIds: z.ZodArray<z.ZodString>;
|
|
1171
|
+
caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1172
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1173
|
+
stepId: z.ZodString;
|
|
1174
|
+
sequence: z.ZodNumber;
|
|
1175
|
+
type: z.ZodLiteral<"send_document">;
|
|
1176
|
+
assetId: z.ZodString;
|
|
1177
|
+
caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1178
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1179
|
+
stepId: z.ZodString;
|
|
1180
|
+
sequence: z.ZodNumber;
|
|
1181
|
+
type: z.ZodLiteral<"send_link">;
|
|
1182
|
+
assetId: z.ZodString;
|
|
1183
|
+
text: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1184
|
+
}, z.core.$strip>], "type">>;
|
|
1185
|
+
}, z.core.$strip>>>;
|
|
1064
1186
|
classification: z.ZodObject<{
|
|
1065
1187
|
primaryIntent: z.ZodString;
|
|
1066
1188
|
secondaryIntents: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -1177,6 +1299,34 @@ export declare const conversationsProcessInboundEventResponseSchema: z.ZodObject
|
|
|
1177
1299
|
heuristic: "heuristic";
|
|
1178
1300
|
model: "model";
|
|
1179
1301
|
}>;
|
|
1302
|
+
protocolResponseKind: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1303
|
+
mediaProfileVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1304
|
+
mediaProfileVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
1305
|
+
mediaDiscovery: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1306
|
+
requestKind: z.ZodEnum<{
|
|
1307
|
+
request_media_folders: "request_media_folders";
|
|
1308
|
+
request_media_folder_contents: "request_media_folder_contents";
|
|
1309
|
+
}>;
|
|
1310
|
+
status: z.ZodEnum<{
|
|
1311
|
+
served: "served";
|
|
1312
|
+
rejected: "rejected";
|
|
1313
|
+
}>;
|
|
1314
|
+
reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1315
|
+
topicHint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1316
|
+
desiredKinds: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
1317
|
+
document: "document";
|
|
1318
|
+
image: "image";
|
|
1319
|
+
link: "link";
|
|
1320
|
+
deck: "deck";
|
|
1321
|
+
}>>>;
|
|
1322
|
+
folderKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1323
|
+
requestedLimit: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
1324
|
+
returnedFolderKeys: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1325
|
+
returnedAssetIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1326
|
+
registryVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1327
|
+
registryVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
1328
|
+
errorMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1329
|
+
}, z.core.$strip>>>;
|
|
1180
1330
|
}, z.core.$strip>>>;
|
|
1181
1331
|
generationAttempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1182
1332
|
stage: z.ZodEnum<{
|
|
@@ -1191,8 +1341,8 @@ export declare const conversationsProcessInboundEventResponseSchema: z.ZodObject
|
|
|
1191
1341
|
corrective_retry: "corrective_retry";
|
|
1192
1342
|
}>;
|
|
1193
1343
|
status: z.ZodEnum<{
|
|
1194
|
-
succeeded: "succeeded";
|
|
1195
1344
|
failed: "failed";
|
|
1345
|
+
succeeded: "succeeded";
|
|
1196
1346
|
}>;
|
|
1197
1347
|
promptMeta: z.ZodObject<{
|
|
1198
1348
|
promptId: z.ZodString;
|
|
@@ -1237,9 +1387,9 @@ export declare const conversationsProcessInboundEventResponseSchema: z.ZodObject
|
|
|
1237
1387
|
"followup.schedule": "followup.schedule";
|
|
1238
1388
|
}>;
|
|
1239
1389
|
status: z.ZodEnum<{
|
|
1390
|
+
skipped: "skipped";
|
|
1240
1391
|
blocked: "blocked";
|
|
1241
1392
|
executed: "executed";
|
|
1242
|
-
skipped: "skipped";
|
|
1243
1393
|
}>;
|
|
1244
1394
|
summary: z.ZodString;
|
|
1245
1395
|
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -1251,8 +1401,8 @@ export declare const conversationsProcessInboundEventResponseSchema: z.ZodObject
|
|
|
1251
1401
|
messageId: z.ZodString;
|
|
1252
1402
|
conversationId: z.ZodString;
|
|
1253
1403
|
authorKind: z.ZodEnum<{
|
|
1254
|
-
customer: "customer";
|
|
1255
1404
|
ai: "ai";
|
|
1405
|
+
customer: "customer";
|
|
1256
1406
|
operator: "operator";
|
|
1257
1407
|
system: "system";
|
|
1258
1408
|
}>;
|
|
@@ -1287,8 +1437,8 @@ export declare const conversationsProcessInboundEventResponseSchema: z.ZodObject
|
|
|
1287
1437
|
messageId: z.ZodString;
|
|
1288
1438
|
conversationId: z.ZodString;
|
|
1289
1439
|
authorKind: z.ZodEnum<{
|
|
1290
|
-
customer: "customer";
|
|
1291
1440
|
ai: "ai";
|
|
1441
|
+
customer: "customer";
|
|
1292
1442
|
operator: "operator";
|
|
1293
1443
|
system: "system";
|
|
1294
1444
|
}>;
|
|
@@ -1337,6 +1487,7 @@ export declare const conversationsProcessInboundEventResponseSchema: z.ZodObject
|
|
|
1337
1487
|
"operator.note.added": "operator.note.added";
|
|
1338
1488
|
"channel.outbound.skipped": "channel.outbound.skipped";
|
|
1339
1489
|
"channel.outbound.sent": "channel.outbound.sent";
|
|
1490
|
+
"channel.outbound.failed": "channel.outbound.failed";
|
|
1340
1491
|
"followup.classified": "followup.classified";
|
|
1341
1492
|
"followup.task.scheduled": "followup.task.scheduled";
|
|
1342
1493
|
"followup.task.completed": "followup.task.completed";
|
|
@@ -1348,8 +1499,8 @@ export declare const conversationsProcessInboundEventResponseSchema: z.ZodObject
|
|
|
1348
1499
|
}>;
|
|
1349
1500
|
title: z.ZodString;
|
|
1350
1501
|
actorKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
|
|
1351
|
-
customer: "customer";
|
|
1352
1502
|
ai: "ai";
|
|
1503
|
+
customer: "customer";
|
|
1353
1504
|
operator: "operator";
|
|
1354
1505
|
system: "system";
|
|
1355
1506
|
}>>>;
|
|
@@ -1370,10 +1521,10 @@ export declare const conversationsProcessInboundEventResponseSchema: z.ZodObject
|
|
|
1370
1521
|
}>;
|
|
1371
1522
|
status: z.ZodEnum<{
|
|
1372
1523
|
active: "active";
|
|
1373
|
-
superseded: "superseded";
|
|
1374
|
-
accepted: "accepted";
|
|
1375
1524
|
viewed: "viewed";
|
|
1525
|
+
accepted: "accepted";
|
|
1376
1526
|
dismissed: "dismissed";
|
|
1527
|
+
superseded: "superseded";
|
|
1377
1528
|
}>;
|
|
1378
1529
|
textPreview: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1379
1530
|
outputJson: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -1397,10 +1548,21 @@ export declare const conversationsProcessInboundEventResponseSchema: z.ZodObject
|
|
|
1397
1548
|
manual: "manual";
|
|
1398
1549
|
}>;
|
|
1399
1550
|
deliveryStatus: z.ZodEnum<{
|
|
1400
|
-
skipped: "skipped";
|
|
1401
1551
|
sent: "sent";
|
|
1402
1552
|
simulated: "simulated";
|
|
1553
|
+
skipped: "skipped";
|
|
1554
|
+
failed: "failed";
|
|
1403
1555
|
}>;
|
|
1556
|
+
planId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1557
|
+
stepId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1558
|
+
sequence: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
1559
|
+
stepType: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
|
|
1560
|
+
send_text: "send_text";
|
|
1561
|
+
send_media: "send_media";
|
|
1562
|
+
send_media_group: "send_media_group";
|
|
1563
|
+
send_document: "send_document";
|
|
1564
|
+
send_link: "send_link";
|
|
1565
|
+
}>>>;
|
|
1404
1566
|
transportMessageRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1405
1567
|
reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1406
1568
|
}, z.core.$strip>>;
|
|
@@ -1476,8 +1638,8 @@ export declare const conversationsGetContextResponseSchema: z.ZodObject<{
|
|
|
1476
1638
|
messageId: z.ZodString;
|
|
1477
1639
|
conversationId: z.ZodString;
|
|
1478
1640
|
authorKind: z.ZodEnum<{
|
|
1479
|
-
customer: "customer";
|
|
1480
1641
|
ai: "ai";
|
|
1642
|
+
customer: "customer";
|
|
1481
1643
|
operator: "operator";
|
|
1482
1644
|
system: "system";
|
|
1483
1645
|
}>;
|
|
@@ -1526,6 +1688,7 @@ export declare const conversationsGetContextResponseSchema: z.ZodObject<{
|
|
|
1526
1688
|
"operator.note.added": "operator.note.added";
|
|
1527
1689
|
"channel.outbound.skipped": "channel.outbound.skipped";
|
|
1528
1690
|
"channel.outbound.sent": "channel.outbound.sent";
|
|
1691
|
+
"channel.outbound.failed": "channel.outbound.failed";
|
|
1529
1692
|
"followup.classified": "followup.classified";
|
|
1530
1693
|
"followup.task.scheduled": "followup.task.scheduled";
|
|
1531
1694
|
"followup.task.completed": "followup.task.completed";
|
|
@@ -1537,8 +1700,8 @@ export declare const conversationsGetContextResponseSchema: z.ZodObject<{
|
|
|
1537
1700
|
}>;
|
|
1538
1701
|
title: z.ZodString;
|
|
1539
1702
|
actorKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
|
|
1540
|
-
customer: "customer";
|
|
1541
1703
|
ai: "ai";
|
|
1704
|
+
customer: "customer";
|
|
1542
1705
|
operator: "operator";
|
|
1543
1706
|
system: "system";
|
|
1544
1707
|
}>>>;
|
|
@@ -1555,8 +1718,8 @@ export declare const conversationsGetContextResponseSchema: z.ZodObject<{
|
|
|
1555
1718
|
occurredAt: z.ZodString;
|
|
1556
1719
|
title: z.ZodString;
|
|
1557
1720
|
actorKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
|
|
1558
|
-
customer: "customer";
|
|
1559
1721
|
ai: "ai";
|
|
1722
|
+
customer: "customer";
|
|
1560
1723
|
operator: "operator";
|
|
1561
1724
|
system: "system";
|
|
1562
1725
|
}>>>;
|
|
@@ -1580,10 +1743,10 @@ export declare const conversationsGetContextResponseSchema: z.ZodObject<{
|
|
|
1580
1743
|
}>;
|
|
1581
1744
|
status: z.ZodEnum<{
|
|
1582
1745
|
active: "active";
|
|
1583
|
-
superseded: "superseded";
|
|
1584
|
-
accepted: "accepted";
|
|
1585
1746
|
viewed: "viewed";
|
|
1747
|
+
accepted: "accepted";
|
|
1586
1748
|
dismissed: "dismissed";
|
|
1749
|
+
superseded: "superseded";
|
|
1587
1750
|
}>;
|
|
1588
1751
|
textPreview: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1589
1752
|
outputJson: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -1650,6 +1813,45 @@ export declare const conversationsGetContextResponseSchema: z.ZodObject<{
|
|
|
1650
1813
|
}>>;
|
|
1651
1814
|
channelHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1652
1815
|
}, z.core.$strip>;
|
|
1816
|
+
outboundPlan: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
1817
|
+
planId: z.ZodString;
|
|
1818
|
+
conversationId: z.ZodString;
|
|
1819
|
+
basedOnCustomerMessageId: z.ZodString;
|
|
1820
|
+
kind: z.ZodEnum<{
|
|
1821
|
+
draft_outbound_plan: "draft_outbound_plan";
|
|
1822
|
+
final_outbound_plan: "final_outbound_plan";
|
|
1823
|
+
}>;
|
|
1824
|
+
steps: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1825
|
+
stepId: z.ZodString;
|
|
1826
|
+
sequence: z.ZodNumber;
|
|
1827
|
+
type: z.ZodLiteral<"send_text">;
|
|
1828
|
+
text: z.ZodString;
|
|
1829
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1830
|
+
stepId: z.ZodString;
|
|
1831
|
+
sequence: z.ZodNumber;
|
|
1832
|
+
type: z.ZodLiteral<"send_media">;
|
|
1833
|
+
assetId: z.ZodString;
|
|
1834
|
+
caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1835
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1836
|
+
stepId: z.ZodString;
|
|
1837
|
+
sequence: z.ZodNumber;
|
|
1838
|
+
type: z.ZodLiteral<"send_media_group">;
|
|
1839
|
+
assetIds: z.ZodArray<z.ZodString>;
|
|
1840
|
+
caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1841
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1842
|
+
stepId: z.ZodString;
|
|
1843
|
+
sequence: z.ZodNumber;
|
|
1844
|
+
type: z.ZodLiteral<"send_document">;
|
|
1845
|
+
assetId: z.ZodString;
|
|
1846
|
+
caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1847
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1848
|
+
stepId: z.ZodString;
|
|
1849
|
+
sequence: z.ZodNumber;
|
|
1850
|
+
type: z.ZodLiteral<"send_link">;
|
|
1851
|
+
assetId: z.ZodString;
|
|
1852
|
+
text: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1853
|
+
}, z.core.$strip>], "type">>;
|
|
1854
|
+
}, z.core.$strip>>>;
|
|
1653
1855
|
classification: z.ZodObject<{
|
|
1654
1856
|
primaryIntent: z.ZodString;
|
|
1655
1857
|
secondaryIntents: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -1766,6 +1968,34 @@ export declare const conversationsGetContextResponseSchema: z.ZodObject<{
|
|
|
1766
1968
|
heuristic: "heuristic";
|
|
1767
1969
|
model: "model";
|
|
1768
1970
|
}>;
|
|
1971
|
+
protocolResponseKind: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1972
|
+
mediaProfileVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1973
|
+
mediaProfileVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
1974
|
+
mediaDiscovery: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1975
|
+
requestKind: z.ZodEnum<{
|
|
1976
|
+
request_media_folders: "request_media_folders";
|
|
1977
|
+
request_media_folder_contents: "request_media_folder_contents";
|
|
1978
|
+
}>;
|
|
1979
|
+
status: z.ZodEnum<{
|
|
1980
|
+
served: "served";
|
|
1981
|
+
rejected: "rejected";
|
|
1982
|
+
}>;
|
|
1983
|
+
reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1984
|
+
topicHint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1985
|
+
desiredKinds: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
1986
|
+
document: "document";
|
|
1987
|
+
image: "image";
|
|
1988
|
+
link: "link";
|
|
1989
|
+
deck: "deck";
|
|
1990
|
+
}>>>;
|
|
1991
|
+
folderKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1992
|
+
requestedLimit: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
1993
|
+
returnedFolderKeys: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1994
|
+
returnedAssetIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1995
|
+
registryVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1996
|
+
registryVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
1997
|
+
errorMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1998
|
+
}, z.core.$strip>>>;
|
|
1769
1999
|
}, z.core.$strip>>>;
|
|
1770
2000
|
generationAttempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1771
2001
|
stage: z.ZodEnum<{
|
|
@@ -1780,8 +2010,8 @@ export declare const conversationsGetContextResponseSchema: z.ZodObject<{
|
|
|
1780
2010
|
corrective_retry: "corrective_retry";
|
|
1781
2011
|
}>;
|
|
1782
2012
|
status: z.ZodEnum<{
|
|
1783
|
-
succeeded: "succeeded";
|
|
1784
2013
|
failed: "failed";
|
|
2014
|
+
succeeded: "succeeded";
|
|
1785
2015
|
}>;
|
|
1786
2016
|
promptMeta: z.ZodObject<{
|
|
1787
2017
|
promptId: z.ZodString;
|
|
@@ -1826,9 +2056,9 @@ export declare const conversationsGetContextResponseSchema: z.ZodObject<{
|
|
|
1826
2056
|
"followup.schedule": "followup.schedule";
|
|
1827
2057
|
}>;
|
|
1828
2058
|
status: z.ZodEnum<{
|
|
2059
|
+
skipped: "skipped";
|
|
1829
2060
|
blocked: "blocked";
|
|
1830
2061
|
executed: "executed";
|
|
1831
|
-
skipped: "skipped";
|
|
1832
2062
|
}>;
|
|
1833
2063
|
summary: z.ZodString;
|
|
1834
2064
|
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -1904,8 +2134,8 @@ export declare const conversationsListTimelineResponseSchema: z.ZodObject<{
|
|
|
1904
2134
|
occurredAt: z.ZodString;
|
|
1905
2135
|
title: z.ZodString;
|
|
1906
2136
|
actorKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
|
|
1907
|
-
customer: "customer";
|
|
1908
2137
|
ai: "ai";
|
|
2138
|
+
customer: "customer";
|
|
1909
2139
|
operator: "operator";
|
|
1910
2140
|
system: "system";
|
|
1911
2141
|
}>>>;
|
|
@@ -1929,10 +2159,10 @@ export declare const conversationsListTimelineResponseSchema: z.ZodObject<{
|
|
|
1929
2159
|
}>;
|
|
1930
2160
|
status: z.ZodEnum<{
|
|
1931
2161
|
active: "active";
|
|
1932
|
-
superseded: "superseded";
|
|
1933
|
-
accepted: "accepted";
|
|
1934
2162
|
viewed: "viewed";
|
|
2163
|
+
accepted: "accepted";
|
|
1935
2164
|
dismissed: "dismissed";
|
|
2165
|
+
superseded: "superseded";
|
|
1936
2166
|
}>;
|
|
1937
2167
|
textPreview: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1938
2168
|
outputJson: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|