@scout9/admin 1.0.0-alpha.0.0.66 → 1.0.0-alpha.0.0.68

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/src/api.ts CHANGED
@@ -577,6 +577,44 @@ export interface ContextTrainingInner {
577
577
  */
578
578
  'text': string;
579
579
  }
580
+ /**
581
+ *
582
+ * @export
583
+ * @interface ContextualizerRequest
584
+ */
585
+ export interface ContextualizerRequest {
586
+ /**
587
+ *
588
+ * @type {Array<Message>}
589
+ * @memberof ContextualizerRequest
590
+ */
591
+ 'messages': Array<Message>;
592
+ /**
593
+ *
594
+ * @type {Conversation}
595
+ * @memberof ContextualizerRequest
596
+ */
597
+ 'conversation': Conversation;
598
+ }
599
+ /**
600
+ *
601
+ * @export
602
+ * @interface ContextualizerResponse
603
+ */
604
+ export interface ContextualizerResponse {
605
+ /**
606
+ *
607
+ * @type {Array<Message>}
608
+ * @memberof ContextualizerResponse
609
+ */
610
+ 'messages': Array<Message>;
611
+ /**
612
+ *
613
+ * @type {TokenUsage}
614
+ * @memberof ContextualizerResponse
615
+ */
616
+ 'usage'?: TokenUsage;
617
+ }
580
618
  /**
581
619
  *
582
620
  * @export
@@ -595,10 +633,17 @@ export interface Conversation {
595
633
  * @memberof Conversation
596
634
  */
597
635
  'initialContexts'?: Array<string>;
636
+ /**
637
+ *
638
+ * @type {ConversationChannelProps}
639
+ * @memberof Conversation
640
+ */
641
+ 'channelProps'?: ConversationChannelProps;
598
642
  /**
599
643
  *
600
644
  * @type {ConversationBaseEnvironmentProps}
601
645
  * @memberof Conversation
646
+ * @deprecated
602
647
  */
603
648
  'environmentProps'?: ConversationBaseEnvironmentProps;
604
649
  /**
@@ -614,12 +659,19 @@ export interface Conversation {
614
659
  * @deprecated
615
660
  */
616
661
  '$customer'?: string;
662
+ /**
663
+ *
664
+ * @type {ConversationChannel}
665
+ * @memberof Conversation
666
+ */
667
+ 'channel': ConversationChannel;
617
668
  /**
618
669
  *
619
670
  * @type {ConversationEnvironment}
620
671
  * @memberof Conversation
672
+ * @deprecated
621
673
  */
622
- 'environment': ConversationEnvironment;
674
+ 'environment'?: ConversationEnvironment;
623
675
  /**
624
676
  * Whether this conversation is a test or not
625
677
  * @type {boolean}
@@ -648,12 +700,19 @@ export interface ConversationAllOf {
648
700
  * @deprecated
649
701
  */
650
702
  '$customer'?: string;
703
+ /**
704
+ *
705
+ * @type {ConversationChannel}
706
+ * @memberof ConversationAllOf
707
+ */
708
+ 'channel': ConversationChannel;
651
709
  /**
652
710
  *
653
711
  * @type {ConversationEnvironment}
654
712
  * @memberof ConversationAllOf
713
+ * @deprecated
655
714
  */
656
- 'environment': ConversationEnvironment;
715
+ 'environment'?: ConversationEnvironment;
657
716
  /**
658
717
  * Whether this conversation is a test or not
659
718
  * @type {boolean}
@@ -681,32 +740,124 @@ export interface ConversationBase {
681
740
  * @memberof ConversationBase
682
741
  */
683
742
  'initialContexts'?: Array<string>;
743
+ /**
744
+ *
745
+ * @type {ConversationChannelProps}
746
+ * @memberof ConversationBase
747
+ */
748
+ 'channelProps'?: ConversationChannelProps;
684
749
  /**
685
750
  *
686
751
  * @type {ConversationBaseEnvironmentProps}
687
752
  * @memberof ConversationBase
753
+ * @deprecated
688
754
  */
689
755
  'environmentProps'?: ConversationBaseEnvironmentProps;
690
756
  }
691
757
  /**
692
- * Environment properties for the conversation
758
+ * Deprecated legacy environment properties. Use channelProps.
693
759
  * @export
694
760
  * @interface ConversationBaseEnvironmentProps
695
761
  */
696
762
  export interface ConversationBaseEnvironmentProps {
697
763
  /**
698
- * HTML subject line
764
+ * Subject line for email-style channels such as Gmail and Outlook.
699
765
  * @type {string}
700
766
  * @memberof ConversationBaseEnvironmentProps
701
767
  */
702
768
  'subject'?: string;
703
769
  /**
704
- * Used to sync email messages with the conversation
770
+ * Provider thread id used to sync Gmail/Outlook channel messages with this conversation.
705
771
  * @type {string}
706
772
  * @memberof ConversationBaseEnvironmentProps
707
773
  */
708
774
  'platformEmailThreadId'?: string;
775
+ /**
776
+ * Twilio message sid that initiated this conversation.
777
+ * @type {string}
778
+ * @memberof ConversationBaseEnvironmentProps
779
+ */
780
+ 'smsMessageSid'?: string;
781
+ /**
782
+ * Persisted channel-resolution path used for the current conversation.
783
+ * @type {string}
784
+ * @memberof ConversationBaseEnvironmentProps
785
+ */
786
+ 'channelResolutionPath'?: ConversationBaseEnvironmentPropsChannelResolutionPathEnum;
709
787
  }
788
+
789
+ export const ConversationBaseEnvironmentPropsChannelResolutionPathEnum = {
790
+ Production: 'twilio_production',
791
+ LegacyPmt: 'twilio_legacy_pmt',
792
+ FreeBridge: 'twilio_free_bridge'
793
+ } as const;
794
+
795
+ export type ConversationBaseEnvironmentPropsChannelResolutionPathEnum = typeof ConversationBaseEnvironmentPropsChannelResolutionPathEnum[keyof typeof ConversationBaseEnvironmentPropsChannelResolutionPathEnum];
796
+
797
+ /**
798
+ * Canonical channel that initiated and should continue the customer conversation.
799
+ * @export
800
+ * @enum {string}
801
+ */
802
+
803
+ export const ConversationChannel = {
804
+ Web: 'web',
805
+ DemoPhoneTest: 'demo_phone_test',
806
+ SmsPhone: 'sms_phone',
807
+ Outlook: 'outlook',
808
+ Gmail: 'gmail',
809
+ Iphone: 'iphone',
810
+ Android: 'android',
811
+ Teams: 'teams',
812
+ Discord: 'discord',
813
+ Whatsapp: 'whatsapp'
814
+ } as const;
815
+
816
+ export type ConversationChannel = typeof ConversationChannel[keyof typeof ConversationChannel];
817
+
818
+
819
+ /**
820
+ * Channel-specific properties needed to continue a conversation on its canonical channel.
821
+ * @export
822
+ * @interface ConversationChannelProps
823
+ */
824
+ export interface ConversationChannelProps {
825
+ [key: string]: any;
826
+
827
+ /**
828
+ * Subject line for email-style channels such as Gmail and Outlook.
829
+ * @type {string}
830
+ * @memberof ConversationChannelProps
831
+ */
832
+ 'subject'?: string;
833
+ /**
834
+ * Provider thread id used to sync Gmail/Outlook channel messages with this conversation.
835
+ * @type {string}
836
+ * @memberof ConversationChannelProps
837
+ */
838
+ 'platformEmailThreadId'?: string;
839
+ /**
840
+ * Twilio message sid that initiated this conversation.
841
+ * @type {string}
842
+ * @memberof ConversationChannelProps
843
+ */
844
+ 'smsMessageSid'?: string;
845
+ /**
846
+ * Persisted channel-resolution path used for the current conversation.
847
+ * @type {string}
848
+ * @memberof ConversationChannelProps
849
+ */
850
+ 'channelResolutionPath'?: ConversationChannelPropsChannelResolutionPathEnum;
851
+ }
852
+
853
+ export const ConversationChannelPropsChannelResolutionPathEnum = {
854
+ Production: 'twilio_production',
855
+ LegacyPmt: 'twilio_legacy_pmt',
856
+ FreeBridge: 'twilio_free_bridge'
857
+ } as const;
858
+
859
+ export type ConversationChannelPropsChannelResolutionPathEnum = typeof ConversationChannelPropsChannelResolutionPathEnum[keyof typeof ConversationChannelPropsChannelResolutionPathEnum];
860
+
710
861
  /**
711
862
  *
712
863
  * @export
@@ -884,10 +1035,17 @@ export interface ConversationCreateRequest {
884
1035
  * @memberof ConversationCreateRequest
885
1036
  */
886
1037
  'initialContexts'?: Array<string>;
1038
+ /**
1039
+ *
1040
+ * @type {ConversationChannelProps}
1041
+ * @memberof ConversationCreateRequest
1042
+ */
1043
+ 'channelProps'?: ConversationChannelProps;
887
1044
  /**
888
1045
  *
889
1046
  * @type {ConversationBaseEnvironmentProps}
890
1047
  * @memberof ConversationCreateRequest
1048
+ * @deprecated
891
1049
  */
892
1050
  'environmentProps'?: ConversationBaseEnvironmentProps;
893
1051
  /**
@@ -903,12 +1061,19 @@ export interface ConversationCreateRequest {
903
1061
  * @deprecated
904
1062
  */
905
1063
  '$customer'?: string;
1064
+ /**
1065
+ *
1066
+ * @type {ConversationChannel}
1067
+ * @memberof ConversationCreateRequest
1068
+ */
1069
+ 'channel': ConversationChannel;
906
1070
  /**
907
1071
  *
908
1072
  * @type {ConversationEnvironment}
909
1073
  * @memberof ConversationCreateRequest
1074
+ * @deprecated
910
1075
  */
911
- 'environment': ConversationEnvironment;
1076
+ 'environment'?: ConversationEnvironment;
912
1077
  /**
913
1078
  * Whether this conversation is a test or not
914
1079
  * @type {boolean}
@@ -1000,7 +1165,7 @@ export interface ConversationCreateResponseAllOf {
1000
1165
  'initiated': string;
1001
1166
  }
1002
1167
  /**
1003
- * Environment this conversation is in (phone, web, or email) - this determines which device to send messages to
1168
+ * Deprecated broad environment bucket (phone, web, or email). Use ConversationChannel for routing.
1004
1169
  * @export
1005
1170
  * @enum {string}
1006
1171
  */
@@ -1032,10 +1197,17 @@ export interface ConversationGetResponse {
1032
1197
  * @memberof ConversationGetResponse
1033
1198
  */
1034
1199
  'initialContexts'?: Array<string>;
1200
+ /**
1201
+ *
1202
+ * @type {ConversationChannelProps}
1203
+ * @memberof ConversationGetResponse
1204
+ */
1205
+ 'channelProps'?: ConversationChannelProps;
1035
1206
  /**
1036
1207
  *
1037
1208
  * @type {ConversationBaseEnvironmentProps}
1038
1209
  * @memberof ConversationGetResponse
1210
+ * @deprecated
1039
1211
  */
1040
1212
  'environmentProps'?: ConversationBaseEnvironmentProps;
1041
1213
  /**
@@ -1051,12 +1223,19 @@ export interface ConversationGetResponse {
1051
1223
  * @deprecated
1052
1224
  */
1053
1225
  '$customer'?: string;
1226
+ /**
1227
+ *
1228
+ * @type {ConversationChannel}
1229
+ * @memberof ConversationGetResponse
1230
+ */
1231
+ 'channel': ConversationChannel;
1054
1232
  /**
1055
1233
  *
1056
1234
  * @type {ConversationEnvironment}
1057
1235
  * @memberof ConversationGetResponse
1236
+ * @deprecated
1058
1237
  */
1059
- 'environment': ConversationEnvironment;
1238
+ 'environment'?: ConversationEnvironment;
1060
1239
  /**
1061
1240
  * Whether this conversation is a test or not
1062
1241
  * @type {boolean}
@@ -1183,10 +1362,17 @@ export interface ConversationUpdateRequest {
1183
1362
  * @memberof ConversationUpdateRequest
1184
1363
  */
1185
1364
  'initialContexts'?: Array<string>;
1365
+ /**
1366
+ *
1367
+ * @type {ConversationChannelProps}
1368
+ * @memberof ConversationUpdateRequest
1369
+ */
1370
+ 'channelProps'?: ConversationChannelProps;
1186
1371
  /**
1187
1372
  *
1188
1373
  * @type {ConversationBaseEnvironmentProps}
1189
1374
  * @memberof ConversationUpdateRequest
1375
+ * @deprecated
1190
1376
  */
1191
1377
  'environmentProps'?: ConversationBaseEnvironmentProps;
1192
1378
  /**
@@ -1277,10 +1463,17 @@ export interface ConversationWithId {
1277
1463
  * @memberof ConversationWithId
1278
1464
  */
1279
1465
  'initialContexts'?: Array<string>;
1466
+ /**
1467
+ *
1468
+ * @type {ConversationChannelProps}
1469
+ * @memberof ConversationWithId
1470
+ */
1471
+ 'channelProps'?: ConversationChannelProps;
1280
1472
  /**
1281
1473
  *
1282
1474
  * @type {ConversationBaseEnvironmentProps}
1283
1475
  * @memberof ConversationWithId
1476
+ * @deprecated
1284
1477
  */
1285
1478
  'environmentProps'?: ConversationBaseEnvironmentProps;
1286
1479
  /**
@@ -1296,12 +1489,19 @@ export interface ConversationWithId {
1296
1489
  * @deprecated
1297
1490
  */
1298
1491
  '$customer'?: string;
1492
+ /**
1493
+ *
1494
+ * @type {ConversationChannel}
1495
+ * @memberof ConversationWithId
1496
+ */
1497
+ 'channel': ConversationChannel;
1299
1498
  /**
1300
1499
  *
1301
1500
  * @type {ConversationEnvironment}
1302
1501
  * @memberof ConversationWithId
1502
+ * @deprecated
1303
1503
  */
1304
- 'environment': ConversationEnvironment;
1504
+ 'environment'?: ConversationEnvironment;
1305
1505
  /**
1306
1506
  * Whether this conversation is a test or not
1307
1507
  * @type {boolean}
@@ -1888,12 +2088,19 @@ export interface CustomerGroupRecord {
1888
2088
  * @memberof CustomerGroupRecord
1889
2089
  */
1890
2090
  'id': string;
2091
+ /**
2092
+ *
2093
+ * @type {ConversationChannel}
2094
+ * @memberof CustomerGroupRecord
2095
+ */
2096
+ 'channel': ConversationChannel;
1891
2097
  /**
1892
2098
  *
1893
2099
  * @type {ConversationEnvironment}
1894
2100
  * @memberof CustomerGroupRecord
2101
+ * @deprecated
1895
2102
  */
1896
- 'environment': ConversationEnvironment;
2103
+ 'environment'?: ConversationEnvironment;
1897
2104
  /**
1898
2105
  * Overrides the default $agent for this customer
1899
2106
  * @type {string}
@@ -2766,6 +2973,12 @@ export interface GenerateResponse {
2766
2973
  * @memberof GenerateResponse
2767
2974
  */
2768
2975
  'confidence'?: number;
2976
+ /**
2977
+ *
2978
+ * @type {TokenUsage}
2979
+ * @memberof GenerateResponse
2980
+ */
2981
+ 'usage'?: TokenUsage;
2769
2982
  }
2770
2983
  /**
2771
2984
  *
@@ -3299,10 +3512,17 @@ export interface ListConversationsResponseInner {
3299
3512
  * @memberof ListConversationsResponseInner
3300
3513
  */
3301
3514
  'initialContexts'?: Array<string>;
3515
+ /**
3516
+ *
3517
+ * @type {ConversationChannelProps}
3518
+ * @memberof ListConversationsResponseInner
3519
+ */
3520
+ 'channelProps'?: ConversationChannelProps;
3302
3521
  /**
3303
3522
  *
3304
3523
  * @type {ConversationBaseEnvironmentProps}
3305
3524
  * @memberof ListConversationsResponseInner
3525
+ * @deprecated
3306
3526
  */
3307
3527
  'environmentProps'?: ConversationBaseEnvironmentProps;
3308
3528
  /**
@@ -3318,12 +3538,19 @@ export interface ListConversationsResponseInner {
3318
3538
  * @deprecated
3319
3539
  */
3320
3540
  '$customer'?: string;
3541
+ /**
3542
+ *
3543
+ * @type {ConversationChannel}
3544
+ * @memberof ListConversationsResponseInner
3545
+ */
3546
+ 'channel': ConversationChannel;
3321
3547
  /**
3322
3548
  *
3323
3549
  * @type {ConversationEnvironment}
3324
3550
  * @memberof ListConversationsResponseInner
3551
+ * @deprecated
3325
3552
  */
3326
- 'environment': ConversationEnvironment;
3553
+ 'environment'?: ConversationEnvironment;
3327
3554
  /**
3328
3555
  * Whether this conversation is a test or not
3329
3556
  * @type {boolean}
@@ -5366,10 +5593,17 @@ export interface MessageCreateRequestConvoOneOf {
5366
5593
  * @memberof MessageCreateRequestConvoOneOf
5367
5594
  */
5368
5595
  'agentIdOrPhoneOrEmail'?: string;
5596
+ /**
5597
+ *
5598
+ * @type {ConversationChannel}
5599
+ * @memberof MessageCreateRequestConvoOneOf
5600
+ */
5601
+ 'channel'?: ConversationChannel;
5369
5602
  /**
5370
5603
  *
5371
5604
  * @type {ConversationEnvironment}
5372
5605
  * @memberof MessageCreateRequestConvoOneOf
5606
+ * @deprecated
5373
5607
  */
5374
5608
  'environment'?: ConversationEnvironment;
5375
5609
  }
@@ -5918,7 +6152,13 @@ export interface PmtTransformResponse {
5918
6152
  * @type {string}
5919
6153
  * @memberof PmtTransformResponse
5920
6154
  */
5921
- 'message': string;
6155
+ 'message'?: string;
6156
+ /**
6157
+ * Formatted persona responses
6158
+ * @type {Array<Message>}
6159
+ * @memberof PmtTransformResponse
6160
+ */
6161
+ 'messages'?: Array<Message>;
5922
6162
  /**
5923
6163
  * How confident this message meets the persona\'s own words
5924
6164
  * @type {number}
@@ -5937,6 +6177,12 @@ export interface PmtTransformResponse {
5937
6177
  * @memberof PmtTransformResponse
5938
6178
  */
5939
6179
  'errors'?: Array<string>;
6180
+ /**
6181
+ *
6182
+ * @type {TokenUsage}
6183
+ * @memberof PmtTransformResponse
6184
+ */
6185
+ 'usage'?: TokenUsage;
5940
6186
  }
5941
6187
 
5942
6188
  export const PmtTransformResponseTypeEnum = {
@@ -6069,10 +6315,17 @@ export interface ScheduleCreateRequest {
6069
6315
  * @memberof ScheduleCreateRequest
6070
6316
  */
6071
6317
  'initialContexts'?: Array<string>;
6318
+ /**
6319
+ *
6320
+ * @type {ConversationChannelProps}
6321
+ * @memberof ScheduleCreateRequest
6322
+ */
6323
+ 'channelProps'?: ConversationChannelProps;
6072
6324
  /**
6073
6325
  *
6074
6326
  * @type {ConversationBaseEnvironmentProps}
6075
6327
  * @memberof ScheduleCreateRequest
6328
+ * @deprecated
6076
6329
  */
6077
6330
  'environmentProps'?: ConversationBaseEnvironmentProps;
6078
6331
  /**
@@ -6088,12 +6341,19 @@ export interface ScheduleCreateRequest {
6088
6341
  * @deprecated
6089
6342
  */
6090
6343
  '$customer'?: string;
6344
+ /**
6345
+ *
6346
+ * @type {ConversationChannel}
6347
+ * @memberof ScheduleCreateRequest
6348
+ */
6349
+ 'channel': ConversationChannel;
6091
6350
  /**
6092
6351
  *
6093
6352
  * @type {ConversationEnvironment}
6094
6353
  * @memberof ScheduleCreateRequest
6354
+ * @deprecated
6095
6355
  */
6096
- 'environment': ConversationEnvironment;
6356
+ 'environment'?: ConversationEnvironment;
6097
6357
  /**
6098
6358
  * Whether this conversation is a test or not
6099
6359
  * @type {boolean}
@@ -6189,10 +6449,17 @@ export interface ScheduleGetResponse {
6189
6449
  * @memberof ScheduleGetResponse
6190
6450
  */
6191
6451
  'initialContexts'?: Array<string>;
6452
+ /**
6453
+ *
6454
+ * @type {ConversationChannelProps}
6455
+ * @memberof ScheduleGetResponse
6456
+ */
6457
+ 'channelProps'?: ConversationChannelProps;
6192
6458
  /**
6193
6459
  *
6194
6460
  * @type {ConversationBaseEnvironmentProps}
6195
6461
  * @memberof ScheduleGetResponse
6462
+ * @deprecated
6196
6463
  */
6197
6464
  'environmentProps'?: ConversationBaseEnvironmentProps;
6198
6465
  /**
@@ -6208,12 +6475,19 @@ export interface ScheduleGetResponse {
6208
6475
  * @deprecated
6209
6476
  */
6210
6477
  '$customer'?: string;
6478
+ /**
6479
+ *
6480
+ * @type {ConversationChannel}
6481
+ * @memberof ScheduleGetResponse
6482
+ */
6483
+ 'channel': ConversationChannel;
6211
6484
  /**
6212
6485
  *
6213
6486
  * @type {ConversationEnvironment}
6214
6487
  * @memberof ScheduleGetResponse
6488
+ * @deprecated
6215
6489
  */
6216
- 'environment': ConversationEnvironment;
6490
+ 'environment'?: ConversationEnvironment;
6217
6491
  /**
6218
6492
  * Whether this conversation is a test or not
6219
6493
  * @type {boolean}
@@ -6283,10 +6557,17 @@ export interface ScheduleGroupCreateRequest {
6283
6557
  * @memberof ScheduleGroupCreateRequest
6284
6558
  */
6285
6559
  'initialContexts'?: Array<string>;
6560
+ /**
6561
+ *
6562
+ * @type {ConversationChannelProps}
6563
+ * @memberof ScheduleGroupCreateRequest
6564
+ */
6565
+ 'channelProps'?: ConversationChannelProps;
6286
6566
  /**
6287
6567
  *
6288
6568
  * @type {ConversationBaseEnvironmentProps}
6289
6569
  * @memberof ScheduleGroupCreateRequest
6570
+ * @deprecated
6290
6571
  */
6291
6572
  'environmentProps'?: ConversationBaseEnvironmentProps;
6292
6573
  /**
@@ -6382,10 +6663,17 @@ export interface ScheduleGroupGetResponse {
6382
6663
  * @memberof ScheduleGroupGetResponse
6383
6664
  */
6384
6665
  'initialContexts'?: Array<string>;
6666
+ /**
6667
+ *
6668
+ * @type {ConversationChannelProps}
6669
+ * @memberof ScheduleGroupGetResponse
6670
+ */
6671
+ 'channelProps'?: ConversationChannelProps;
6385
6672
  /**
6386
6673
  *
6387
6674
  * @type {ConversationBaseEnvironmentProps}
6388
6675
  * @memberof ScheduleGroupGetResponse
6676
+ * @deprecated
6389
6677
  */
6390
6678
  'environmentProps'?: ConversationBaseEnvironmentProps;
6391
6679
  /**
@@ -6499,10 +6787,17 @@ export interface ScheduleGroupUpdateRequest {
6499
6787
  * @memberof ScheduleGroupUpdateRequest
6500
6788
  */
6501
6789
  'initialContexts'?: Array<string>;
6790
+ /**
6791
+ *
6792
+ * @type {ConversationChannelProps}
6793
+ * @memberof ScheduleGroupUpdateRequest
6794
+ */
6795
+ 'channelProps'?: ConversationChannelProps;
6502
6796
  /**
6503
6797
  *
6504
6798
  * @type {ConversationBaseEnvironmentProps}
6505
6799
  * @memberof ScheduleGroupUpdateRequest
6800
+ * @deprecated
6506
6801
  */
6507
6802
  'environmentProps'?: ConversationBaseEnvironmentProps;
6508
6803
  /**
@@ -6629,10 +6924,17 @@ export interface ScheduleUpdateRequest {
6629
6924
  * @memberof ScheduleUpdateRequest
6630
6925
  */
6631
6926
  'initialContexts'?: Array<string>;
6927
+ /**
6928
+ *
6929
+ * @type {ConversationChannelProps}
6930
+ * @memberof ScheduleUpdateRequest
6931
+ */
6932
+ 'channelProps'?: ConversationChannelProps;
6632
6933
  /**
6633
6934
  *
6634
6935
  * @type {ConversationBaseEnvironmentProps}
6635
6936
  * @memberof ScheduleUpdateRequest
6937
+ * @deprecated
6636
6938
  */
6637
6939
  'environmentProps'?: ConversationBaseEnvironmentProps;
6638
6940
  /**
@@ -6648,12 +6950,19 @@ export interface ScheduleUpdateRequest {
6648
6950
  * @deprecated
6649
6951
  */
6650
6952
  '$customer'?: string;
6953
+ /**
6954
+ *
6955
+ * @type {ConversationChannel}
6956
+ * @memberof ScheduleUpdateRequest
6957
+ */
6958
+ 'channel': ConversationChannel;
6651
6959
  /**
6652
6960
  *
6653
6961
  * @type {ConversationEnvironment}
6654
6962
  * @memberof ScheduleUpdateRequest
6963
+ * @deprecated
6655
6964
  */
6656
- 'environment': ConversationEnvironment;
6965
+ 'environment'?: ConversationEnvironment;
6657
6966
  /**
6658
6967
  * Whether this conversation is a test or not
6659
6968
  * @type {boolean}
@@ -6749,10 +7058,17 @@ export interface ScheduledConversation {
6749
7058
  * @memberof ScheduledConversation
6750
7059
  */
6751
7060
  'initialContexts'?: Array<string>;
7061
+ /**
7062
+ *
7063
+ * @type {ConversationChannelProps}
7064
+ * @memberof ScheduledConversation
7065
+ */
7066
+ 'channelProps'?: ConversationChannelProps;
6752
7067
  /**
6753
7068
  *
6754
7069
  * @type {ConversationBaseEnvironmentProps}
6755
7070
  * @memberof ScheduledConversation
7071
+ * @deprecated
6756
7072
  */
6757
7073
  'environmentProps'?: ConversationBaseEnvironmentProps;
6758
7074
  /**
@@ -6768,12 +7084,19 @@ export interface ScheduledConversation {
6768
7084
  * @deprecated
6769
7085
  */
6770
7086
  '$customer'?: string;
7087
+ /**
7088
+ *
7089
+ * @type {ConversationChannel}
7090
+ * @memberof ScheduledConversation
7091
+ */
7092
+ 'channel': ConversationChannel;
6771
7093
  /**
6772
7094
  *
6773
7095
  * @type {ConversationEnvironment}
6774
7096
  * @memberof ScheduledConversation
7097
+ * @deprecated
6775
7098
  */
6776
- 'environment': ConversationEnvironment;
7099
+ 'environment'?: ConversationEnvironment;
6777
7100
  /**
6778
7101
  * Whether this conversation is a test or not
6779
7102
  * @type {boolean}
@@ -6838,10 +7161,17 @@ export interface ScheduledConversationGroup {
6838
7161
  * @memberof ScheduledConversationGroup
6839
7162
  */
6840
7163
  'initialContexts'?: Array<string>;
7164
+ /**
7165
+ *
7166
+ * @type {ConversationChannelProps}
7167
+ * @memberof ScheduledConversationGroup
7168
+ */
7169
+ 'channelProps'?: ConversationChannelProps;
6841
7170
  /**
6842
7171
  *
6843
7172
  * @type {ConversationBaseEnvironmentProps}
6844
7173
  * @memberof ScheduledConversationGroup
7174
+ * @deprecated
6845
7175
  */
6846
7176
  'environmentProps'?: ConversationBaseEnvironmentProps;
6847
7177
  /**
@@ -6956,6 +7286,93 @@ export interface Scout9ProjectConfig {
6956
7286
  */
6957
7287
  'pmt': PmtConfig;
6958
7288
  }
7289
+ /**
7290
+ * Usage statistics for the completion request
7291
+ * @export
7292
+ * @interface TokenUsage
7293
+ */
7294
+ export interface TokenUsage {
7295
+ /**
7296
+ * Number of tokens in the generated completion
7297
+ * @type {number}
7298
+ * @memberof TokenUsage
7299
+ */
7300
+ 'completion_tokens': number;
7301
+ /**
7302
+ * Number of tokens in the prompt
7303
+ * @type {number}
7304
+ * @memberof TokenUsage
7305
+ */
7306
+ 'prompt_tokens': number;
7307
+ /**
7308
+ * Total number of tokens used in the request (prompt + completion)
7309
+ * @type {number}
7310
+ * @memberof TokenUsage
7311
+ */
7312
+ 'total_tokens': number;
7313
+ /**
7314
+ *
7315
+ * @type {TokenUsageCompletionTokensDetails}
7316
+ * @memberof TokenUsage
7317
+ */
7318
+ 'completion_tokens_details'?: TokenUsageCompletionTokensDetails;
7319
+ /**
7320
+ *
7321
+ * @type {TokenUsagePromptTokensDetails}
7322
+ * @memberof TokenUsage
7323
+ */
7324
+ 'prompt_tokens_details'?: TokenUsagePromptTokensDetails;
7325
+ }
7326
+ /**
7327
+ * Breakdown of tokens used in a completion
7328
+ * @export
7329
+ * @interface TokenUsageCompletionTokensDetails
7330
+ */
7331
+ export interface TokenUsageCompletionTokensDetails {
7332
+ /**
7333
+ * Number of prediction tokens that appeared in the completion
7334
+ * @type {number}
7335
+ * @memberof TokenUsageCompletionTokensDetails
7336
+ */
7337
+ 'accepted_prediction_tokens'?: number;
7338
+ /**
7339
+ * Audio input tokens generated by the model
7340
+ * @type {number}
7341
+ * @memberof TokenUsageCompletionTokensDetails
7342
+ */
7343
+ 'audio_tokens'?: number;
7344
+ /**
7345
+ * Tokens generated by the model for reasoning
7346
+ * @type {number}
7347
+ * @memberof TokenUsageCompletionTokensDetails
7348
+ */
7349
+ 'reasoning_tokens'?: number;
7350
+ /**
7351
+ * Number of prediction tokens that did not appear in the completion
7352
+ * @type {number}
7353
+ * @memberof TokenUsageCompletionTokensDetails
7354
+ */
7355
+ 'rejected_prediction_tokens'?: number;
7356
+ }
7357
+ /**
7358
+ * Breakdown of tokens used in the prompt
7359
+ * @export
7360
+ * @interface TokenUsagePromptTokensDetails
7361
+ */
7362
+ export interface TokenUsagePromptTokensDetails {
7363
+ /**
7364
+ * Audio input tokens present in the prompt
7365
+ * @type {number}
7366
+ * @memberof TokenUsagePromptTokensDetails
7367
+ */
7368
+ 'audio_tokens'?: number;
7369
+ /**
7370
+ * Cached tokens present in the prompt
7371
+ * @type {number}
7372
+ * @memberof TokenUsagePromptTokensDetails
7373
+ */
7374
+ 'cached_tokens'?: number;
7375
+ }
6959
7376
  /**
6960
7377
  *
6961
7378
  * @export
@@ -7616,6 +8033,12 @@ export interface WorkflowResponseSlot {
7616
8033
  * @memberof WorkflowResponseSlot
7617
8034
  */
7618
8035
  'resetIntent'?: boolean;
8036
+ /**
8037
+ *
8038
+ * @type {TokenUsage}
8039
+ * @memberof WorkflowResponseSlot
8040
+ */
8041
+ 'usage'?: TokenUsage;
7619
8042
  }
7620
8043
  /**
7621
8044
  * @type WorkflowResponseSlotForward
@@ -8173,6 +8596,42 @@ export const Scout9ApiAxiosParamCreator = function (configuration?: Configuratio
8173
8596
  options: localVarRequestOptions,
8174
8597
  };
8175
8598
  },
8599
+ /**
8600
+ * Runs contextualization on workflow event messages and returns contextualized messages.
8601
+ * @summary Contextualize workflow event messages
8602
+ * @param {ContextualizerRequest} contextualizerRequest
8603
+ * @param {*} [options] Override http request option.
8604
+ * @throws {RequiredError}
8605
+ */
8606
+ contextualize: async (contextualizerRequest: ContextualizerRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
8607
+ // verify required parameter 'contextualizerRequest' is not null or undefined
8608
+ assertParamExists('contextualize', 'contextualizerRequest', contextualizerRequest)
8609
+ const localVarPath = `/v1-contextualize`;
8610
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8611
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8612
+ let baseOptions;
8613
+ if (configuration) {
8614
+ baseOptions = configuration.baseOptions;
8615
+ }
8616
+
8617
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
8618
+ const localVarHeaderParameter = {} as any;
8619
+ const localVarQueryParameter = {} as any;
8620
+
8621
+
8622
+
8623
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8624
+
8625
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8626
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8627
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8628
+ localVarRequestOptions.data = serializeDataIfNeeded(contextualizerRequest, localVarRequestOptions, configuration)
8629
+
8630
+ return {
8631
+ url: toPathString(localVarUrlObj),
8632
+ options: localVarRequestOptions,
8633
+ };
8634
+ },
8176
8635
  /**
8177
8636
  *
8178
8637
  * @summary Gets a conversation
@@ -10112,6 +10571,17 @@ export const Scout9ApiFp = function(configuration?: Configuration) {
10112
10571
  const localVarAxiosArgs = await localVarAxiosParamCreator.config(options);
10113
10572
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
10114
10573
  },
10574
+ /**
10575
+ * Runs contextualization on workflow event messages and returns contextualized messages.
10576
+ * @summary Contextualize workflow event messages
10577
+ * @param {ContextualizerRequest} contextualizerRequest
10578
+ * @param {*} [options] Override http request option.
10579
+ * @throws {RequiredError}
10580
+ */
10581
+ async contextualize(contextualizerRequest: ContextualizerRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ContextualizerResponse>> {
10582
+ const localVarAxiosArgs = await localVarAxiosParamCreator.contextualize(contextualizerRequest, options);
10583
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
10584
+ },
10115
10585
  /**
10116
10586
  *
10117
10587
  * @summary Gets a conversation
@@ -10774,6 +11244,16 @@ export const Scout9ApiFactory = function (configuration?: Configuration, basePat
10774
11244
  config(options?: any): AxiosPromise<Config200Response> {
10775
11245
  return localVarFp.config(options).then((request) => request(axios, basePath));
10776
11246
  },
11247
+ /**
11248
+ * Runs contextualization on workflow event messages and returns contextualized messages.
11249
+ * @summary Contextualize workflow event messages
11250
+ * @param {ContextualizerRequest} contextualizerRequest
11251
+ * @param {*} [options] Override http request option.
11252
+ * @throws {RequiredError}
11253
+ */
11254
+ contextualize(contextualizerRequest: ContextualizerRequest, options?: any): AxiosPromise<ContextualizerResponse> {
11255
+ return localVarFp.contextualize(contextualizerRequest, options).then((request) => request(axios, basePath));
11256
+ },
10777
11257
  /**
10778
11258
  *
10779
11259
  * @summary Gets a conversation
@@ -11411,6 +11891,18 @@ export class Scout9ApiGenerated extends BaseAPI {
11411
11891
  return Scout9ApiFp(this.configuration).config(options).then((request) => request(this.axios, this.basePath));
11412
11892
  }
11413
11893
 
11894
+ /**
11895
+ * Runs contextualization on workflow event messages and returns contextualized messages.
11896
+ * @summary Contextualize workflow event messages
11897
+ * @param {ContextualizerRequest} contextualizerRequest
11898
+ * @param {*} [options] Override http request option.
11899
+ * @throws {RequiredError}
11900
+ * @memberof Scout9Api
11901
+ */
11902
+ public contextualize(contextualizerRequest: ContextualizerRequest, options?: AxiosRequestConfig) {
11903
+ return Scout9ApiFp(this.configuration).contextualize(contextualizerRequest, options).then((request) => request(this.axios, this.basePath));
11904
+ }
11905
+
11414
11906
  /**
11415
11907
  *
11416
11908
  * @summary Gets a conversation