@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/build/api.d.ts +461 -16
- package/build/api.js +92 -3
- package/package.json +1 -1
- package/src/api.ts +508 -16
- package/tsconfig.tsbuildinfo +1 -1
package/build/api.d.ts
CHANGED
|
@@ -561,6 +561,44 @@ export interface ContextTrainingInner {
|
|
|
561
561
|
*/
|
|
562
562
|
'text': string;
|
|
563
563
|
}
|
|
564
|
+
/**
|
|
565
|
+
*
|
|
566
|
+
* @export
|
|
567
|
+
* @interface ContextualizerRequest
|
|
568
|
+
*/
|
|
569
|
+
export interface ContextualizerRequest {
|
|
570
|
+
/**
|
|
571
|
+
*
|
|
572
|
+
* @type {Array<Message>}
|
|
573
|
+
* @memberof ContextualizerRequest
|
|
574
|
+
*/
|
|
575
|
+
'messages': Array<Message>;
|
|
576
|
+
/**
|
|
577
|
+
*
|
|
578
|
+
* @type {Conversation}
|
|
579
|
+
* @memberof ContextualizerRequest
|
|
580
|
+
*/
|
|
581
|
+
'conversation': Conversation;
|
|
582
|
+
}
|
|
583
|
+
/**
|
|
584
|
+
*
|
|
585
|
+
* @export
|
|
586
|
+
* @interface ContextualizerResponse
|
|
587
|
+
*/
|
|
588
|
+
export interface ContextualizerResponse {
|
|
589
|
+
/**
|
|
590
|
+
*
|
|
591
|
+
* @type {Array<Message>}
|
|
592
|
+
* @memberof ContextualizerResponse
|
|
593
|
+
*/
|
|
594
|
+
'messages': Array<Message>;
|
|
595
|
+
/**
|
|
596
|
+
*
|
|
597
|
+
* @type {TokenUsage}
|
|
598
|
+
* @memberof ContextualizerResponse
|
|
599
|
+
*/
|
|
600
|
+
'usage'?: TokenUsage;
|
|
601
|
+
}
|
|
564
602
|
/**
|
|
565
603
|
*
|
|
566
604
|
* @export
|
|
@@ -579,10 +617,17 @@ export interface Conversation {
|
|
|
579
617
|
* @memberof Conversation
|
|
580
618
|
*/
|
|
581
619
|
'initialContexts'?: Array<string>;
|
|
620
|
+
/**
|
|
621
|
+
*
|
|
622
|
+
* @type {ConversationChannelProps}
|
|
623
|
+
* @memberof Conversation
|
|
624
|
+
*/
|
|
625
|
+
'channelProps'?: ConversationChannelProps;
|
|
582
626
|
/**
|
|
583
627
|
*
|
|
584
628
|
* @type {ConversationBaseEnvironmentProps}
|
|
585
629
|
* @memberof Conversation
|
|
630
|
+
* @deprecated
|
|
586
631
|
*/
|
|
587
632
|
'environmentProps'?: ConversationBaseEnvironmentProps;
|
|
588
633
|
/**
|
|
@@ -598,12 +643,19 @@ export interface Conversation {
|
|
|
598
643
|
* @deprecated
|
|
599
644
|
*/
|
|
600
645
|
'$customer'?: string;
|
|
646
|
+
/**
|
|
647
|
+
*
|
|
648
|
+
* @type {ConversationChannel}
|
|
649
|
+
* @memberof Conversation
|
|
650
|
+
*/
|
|
651
|
+
'channel': ConversationChannel;
|
|
601
652
|
/**
|
|
602
653
|
*
|
|
603
654
|
* @type {ConversationEnvironment}
|
|
604
655
|
* @memberof Conversation
|
|
656
|
+
* @deprecated
|
|
605
657
|
*/
|
|
606
|
-
'environment'
|
|
658
|
+
'environment'?: ConversationEnvironment;
|
|
607
659
|
/**
|
|
608
660
|
* Whether this conversation is a test or not
|
|
609
661
|
* @type {boolean}
|
|
@@ -630,12 +682,19 @@ export interface ConversationAllOf {
|
|
|
630
682
|
* @deprecated
|
|
631
683
|
*/
|
|
632
684
|
'$customer'?: string;
|
|
685
|
+
/**
|
|
686
|
+
*
|
|
687
|
+
* @type {ConversationChannel}
|
|
688
|
+
* @memberof ConversationAllOf
|
|
689
|
+
*/
|
|
690
|
+
'channel': ConversationChannel;
|
|
633
691
|
/**
|
|
634
692
|
*
|
|
635
693
|
* @type {ConversationEnvironment}
|
|
636
694
|
* @memberof ConversationAllOf
|
|
695
|
+
* @deprecated
|
|
637
696
|
*/
|
|
638
|
-
'environment'
|
|
697
|
+
'environment'?: ConversationEnvironment;
|
|
639
698
|
/**
|
|
640
699
|
* Whether this conversation is a test or not
|
|
641
700
|
* @type {boolean}
|
|
@@ -661,32 +720,113 @@ export interface ConversationBase {
|
|
|
661
720
|
* @memberof ConversationBase
|
|
662
721
|
*/
|
|
663
722
|
'initialContexts'?: Array<string>;
|
|
723
|
+
/**
|
|
724
|
+
*
|
|
725
|
+
* @type {ConversationChannelProps}
|
|
726
|
+
* @memberof ConversationBase
|
|
727
|
+
*/
|
|
728
|
+
'channelProps'?: ConversationChannelProps;
|
|
664
729
|
/**
|
|
665
730
|
*
|
|
666
731
|
* @type {ConversationBaseEnvironmentProps}
|
|
667
732
|
* @memberof ConversationBase
|
|
733
|
+
* @deprecated
|
|
668
734
|
*/
|
|
669
735
|
'environmentProps'?: ConversationBaseEnvironmentProps;
|
|
670
736
|
}
|
|
671
737
|
/**
|
|
672
|
-
*
|
|
738
|
+
* Deprecated legacy environment properties. Use channelProps.
|
|
673
739
|
* @export
|
|
674
740
|
* @interface ConversationBaseEnvironmentProps
|
|
675
741
|
*/
|
|
676
742
|
export interface ConversationBaseEnvironmentProps {
|
|
677
743
|
/**
|
|
678
|
-
*
|
|
744
|
+
* Subject line for email-style channels such as Gmail and Outlook.
|
|
679
745
|
* @type {string}
|
|
680
746
|
* @memberof ConversationBaseEnvironmentProps
|
|
681
747
|
*/
|
|
682
748
|
'subject'?: string;
|
|
683
749
|
/**
|
|
684
|
-
*
|
|
750
|
+
* Provider thread id used to sync Gmail/Outlook channel messages with this conversation.
|
|
685
751
|
* @type {string}
|
|
686
752
|
* @memberof ConversationBaseEnvironmentProps
|
|
687
753
|
*/
|
|
688
754
|
'platformEmailThreadId'?: string;
|
|
755
|
+
/**
|
|
756
|
+
* Twilio message sid that initiated this conversation.
|
|
757
|
+
* @type {string}
|
|
758
|
+
* @memberof ConversationBaseEnvironmentProps
|
|
759
|
+
*/
|
|
760
|
+
'smsMessageSid'?: string;
|
|
761
|
+
/**
|
|
762
|
+
* Persisted channel-resolution path used for the current conversation.
|
|
763
|
+
* @type {string}
|
|
764
|
+
* @memberof ConversationBaseEnvironmentProps
|
|
765
|
+
*/
|
|
766
|
+
'channelResolutionPath'?: ConversationBaseEnvironmentPropsChannelResolutionPathEnum;
|
|
689
767
|
}
|
|
768
|
+
export declare const ConversationBaseEnvironmentPropsChannelResolutionPathEnum: {
|
|
769
|
+
readonly Production: "twilio_production";
|
|
770
|
+
readonly LegacyPmt: "twilio_legacy_pmt";
|
|
771
|
+
readonly FreeBridge: "twilio_free_bridge";
|
|
772
|
+
};
|
|
773
|
+
export type ConversationBaseEnvironmentPropsChannelResolutionPathEnum = typeof ConversationBaseEnvironmentPropsChannelResolutionPathEnum[keyof typeof ConversationBaseEnvironmentPropsChannelResolutionPathEnum];
|
|
774
|
+
/**
|
|
775
|
+
* Canonical channel that initiated and should continue the customer conversation.
|
|
776
|
+
* @export
|
|
777
|
+
* @enum {string}
|
|
778
|
+
*/
|
|
779
|
+
export declare const ConversationChannel: {
|
|
780
|
+
readonly Web: "web";
|
|
781
|
+
readonly DemoPhoneTest: "demo_phone_test";
|
|
782
|
+
readonly SmsPhone: "sms_phone";
|
|
783
|
+
readonly Outlook: "outlook";
|
|
784
|
+
readonly Gmail: "gmail";
|
|
785
|
+
readonly Iphone: "iphone";
|
|
786
|
+
readonly Android: "android";
|
|
787
|
+
readonly Teams: "teams";
|
|
788
|
+
readonly Discord: "discord";
|
|
789
|
+
readonly Whatsapp: "whatsapp";
|
|
790
|
+
};
|
|
791
|
+
export type ConversationChannel = typeof ConversationChannel[keyof typeof ConversationChannel];
|
|
792
|
+
/**
|
|
793
|
+
* Channel-specific properties needed to continue a conversation on its canonical channel.
|
|
794
|
+
* @export
|
|
795
|
+
* @interface ConversationChannelProps
|
|
796
|
+
*/
|
|
797
|
+
export interface ConversationChannelProps {
|
|
798
|
+
[key: string]: any;
|
|
799
|
+
/**
|
|
800
|
+
* Subject line for email-style channels such as Gmail and Outlook.
|
|
801
|
+
* @type {string}
|
|
802
|
+
* @memberof ConversationChannelProps
|
|
803
|
+
*/
|
|
804
|
+
'subject'?: string;
|
|
805
|
+
/**
|
|
806
|
+
* Provider thread id used to sync Gmail/Outlook channel messages with this conversation.
|
|
807
|
+
* @type {string}
|
|
808
|
+
* @memberof ConversationChannelProps
|
|
809
|
+
*/
|
|
810
|
+
'platformEmailThreadId'?: string;
|
|
811
|
+
/**
|
|
812
|
+
* Twilio message sid that initiated this conversation.
|
|
813
|
+
* @type {string}
|
|
814
|
+
* @memberof ConversationChannelProps
|
|
815
|
+
*/
|
|
816
|
+
'smsMessageSid'?: string;
|
|
817
|
+
/**
|
|
818
|
+
* Persisted channel-resolution path used for the current conversation.
|
|
819
|
+
* @type {string}
|
|
820
|
+
* @memberof ConversationChannelProps
|
|
821
|
+
*/
|
|
822
|
+
'channelResolutionPath'?: ConversationChannelPropsChannelResolutionPathEnum;
|
|
823
|
+
}
|
|
824
|
+
export declare const ConversationChannelPropsChannelResolutionPathEnum: {
|
|
825
|
+
readonly Production: "twilio_production";
|
|
826
|
+
readonly LegacyPmt: "twilio_legacy_pmt";
|
|
827
|
+
readonly FreeBridge: "twilio_free_bridge";
|
|
828
|
+
};
|
|
829
|
+
export type ConversationChannelPropsChannelResolutionPathEnum = typeof ConversationChannelPropsChannelResolutionPathEnum[keyof typeof ConversationChannelPropsChannelResolutionPathEnum];
|
|
690
830
|
/**
|
|
691
831
|
*
|
|
692
832
|
* @export
|
|
@@ -861,10 +1001,17 @@ export interface ConversationCreateRequest {
|
|
|
861
1001
|
* @memberof ConversationCreateRequest
|
|
862
1002
|
*/
|
|
863
1003
|
'initialContexts'?: Array<string>;
|
|
1004
|
+
/**
|
|
1005
|
+
*
|
|
1006
|
+
* @type {ConversationChannelProps}
|
|
1007
|
+
* @memberof ConversationCreateRequest
|
|
1008
|
+
*/
|
|
1009
|
+
'channelProps'?: ConversationChannelProps;
|
|
864
1010
|
/**
|
|
865
1011
|
*
|
|
866
1012
|
* @type {ConversationBaseEnvironmentProps}
|
|
867
1013
|
* @memberof ConversationCreateRequest
|
|
1014
|
+
* @deprecated
|
|
868
1015
|
*/
|
|
869
1016
|
'environmentProps'?: ConversationBaseEnvironmentProps;
|
|
870
1017
|
/**
|
|
@@ -880,12 +1027,19 @@ export interface ConversationCreateRequest {
|
|
|
880
1027
|
* @deprecated
|
|
881
1028
|
*/
|
|
882
1029
|
'$customer'?: string;
|
|
1030
|
+
/**
|
|
1031
|
+
*
|
|
1032
|
+
* @type {ConversationChannel}
|
|
1033
|
+
* @memberof ConversationCreateRequest
|
|
1034
|
+
*/
|
|
1035
|
+
'channel': ConversationChannel;
|
|
883
1036
|
/**
|
|
884
1037
|
*
|
|
885
1038
|
* @type {ConversationEnvironment}
|
|
886
1039
|
* @memberof ConversationCreateRequest
|
|
1040
|
+
* @deprecated
|
|
887
1041
|
*/
|
|
888
|
-
'environment'
|
|
1042
|
+
'environment'?: ConversationEnvironment;
|
|
889
1043
|
/**
|
|
890
1044
|
* Whether this conversation is a test or not
|
|
891
1045
|
* @type {boolean}
|
|
@@ -975,7 +1129,7 @@ export interface ConversationCreateResponseAllOf {
|
|
|
975
1129
|
'initiated': string;
|
|
976
1130
|
}
|
|
977
1131
|
/**
|
|
978
|
-
*
|
|
1132
|
+
* Deprecated broad environment bucket (phone, web, or email). Use ConversationChannel for routing.
|
|
979
1133
|
* @export
|
|
980
1134
|
* @enum {string}
|
|
981
1135
|
*/
|
|
@@ -1003,10 +1157,17 @@ export interface ConversationGetResponse {
|
|
|
1003
1157
|
* @memberof ConversationGetResponse
|
|
1004
1158
|
*/
|
|
1005
1159
|
'initialContexts'?: Array<string>;
|
|
1160
|
+
/**
|
|
1161
|
+
*
|
|
1162
|
+
* @type {ConversationChannelProps}
|
|
1163
|
+
* @memberof ConversationGetResponse
|
|
1164
|
+
*/
|
|
1165
|
+
'channelProps'?: ConversationChannelProps;
|
|
1006
1166
|
/**
|
|
1007
1167
|
*
|
|
1008
1168
|
* @type {ConversationBaseEnvironmentProps}
|
|
1009
1169
|
* @memberof ConversationGetResponse
|
|
1170
|
+
* @deprecated
|
|
1010
1171
|
*/
|
|
1011
1172
|
'environmentProps'?: ConversationBaseEnvironmentProps;
|
|
1012
1173
|
/**
|
|
@@ -1022,12 +1183,19 @@ export interface ConversationGetResponse {
|
|
|
1022
1183
|
* @deprecated
|
|
1023
1184
|
*/
|
|
1024
1185
|
'$customer'?: string;
|
|
1186
|
+
/**
|
|
1187
|
+
*
|
|
1188
|
+
* @type {ConversationChannel}
|
|
1189
|
+
* @memberof ConversationGetResponse
|
|
1190
|
+
*/
|
|
1191
|
+
'channel': ConversationChannel;
|
|
1025
1192
|
/**
|
|
1026
1193
|
*
|
|
1027
1194
|
* @type {ConversationEnvironment}
|
|
1028
1195
|
* @memberof ConversationGetResponse
|
|
1196
|
+
* @deprecated
|
|
1029
1197
|
*/
|
|
1030
|
-
'environment'
|
|
1198
|
+
'environment'?: ConversationEnvironment;
|
|
1031
1199
|
/**
|
|
1032
1200
|
* Whether this conversation is a test or not
|
|
1033
1201
|
* @type {boolean}
|
|
@@ -1152,10 +1320,17 @@ export interface ConversationUpdateRequest {
|
|
|
1152
1320
|
* @memberof ConversationUpdateRequest
|
|
1153
1321
|
*/
|
|
1154
1322
|
'initialContexts'?: Array<string>;
|
|
1323
|
+
/**
|
|
1324
|
+
*
|
|
1325
|
+
* @type {ConversationChannelProps}
|
|
1326
|
+
* @memberof ConversationUpdateRequest
|
|
1327
|
+
*/
|
|
1328
|
+
'channelProps'?: ConversationChannelProps;
|
|
1155
1329
|
/**
|
|
1156
1330
|
*
|
|
1157
1331
|
* @type {ConversationBaseEnvironmentProps}
|
|
1158
1332
|
* @memberof ConversationUpdateRequest
|
|
1333
|
+
* @deprecated
|
|
1159
1334
|
*/
|
|
1160
1335
|
'environmentProps'?: ConversationBaseEnvironmentProps;
|
|
1161
1336
|
/**
|
|
@@ -1246,10 +1421,17 @@ export interface ConversationWithId {
|
|
|
1246
1421
|
* @memberof ConversationWithId
|
|
1247
1422
|
*/
|
|
1248
1423
|
'initialContexts'?: Array<string>;
|
|
1424
|
+
/**
|
|
1425
|
+
*
|
|
1426
|
+
* @type {ConversationChannelProps}
|
|
1427
|
+
* @memberof ConversationWithId
|
|
1428
|
+
*/
|
|
1429
|
+
'channelProps'?: ConversationChannelProps;
|
|
1249
1430
|
/**
|
|
1250
1431
|
*
|
|
1251
1432
|
* @type {ConversationBaseEnvironmentProps}
|
|
1252
1433
|
* @memberof ConversationWithId
|
|
1434
|
+
* @deprecated
|
|
1253
1435
|
*/
|
|
1254
1436
|
'environmentProps'?: ConversationBaseEnvironmentProps;
|
|
1255
1437
|
/**
|
|
@@ -1265,12 +1447,19 @@ export interface ConversationWithId {
|
|
|
1265
1447
|
* @deprecated
|
|
1266
1448
|
*/
|
|
1267
1449
|
'$customer'?: string;
|
|
1450
|
+
/**
|
|
1451
|
+
*
|
|
1452
|
+
* @type {ConversationChannel}
|
|
1453
|
+
* @memberof ConversationWithId
|
|
1454
|
+
*/
|
|
1455
|
+
'channel': ConversationChannel;
|
|
1268
1456
|
/**
|
|
1269
1457
|
*
|
|
1270
1458
|
* @type {ConversationEnvironment}
|
|
1271
1459
|
* @memberof ConversationWithId
|
|
1460
|
+
* @deprecated
|
|
1272
1461
|
*/
|
|
1273
|
-
'environment'
|
|
1462
|
+
'environment'?: ConversationEnvironment;
|
|
1274
1463
|
/**
|
|
1275
1464
|
* Whether this conversation is a test or not
|
|
1276
1465
|
* @type {boolean}
|
|
@@ -1858,12 +2047,19 @@ export interface CustomerGroupRecord {
|
|
|
1858
2047
|
* @memberof CustomerGroupRecord
|
|
1859
2048
|
*/
|
|
1860
2049
|
'id': string;
|
|
2050
|
+
/**
|
|
2051
|
+
*
|
|
2052
|
+
* @type {ConversationChannel}
|
|
2053
|
+
* @memberof CustomerGroupRecord
|
|
2054
|
+
*/
|
|
2055
|
+
'channel': ConversationChannel;
|
|
1861
2056
|
/**
|
|
1862
2057
|
*
|
|
1863
2058
|
* @type {ConversationEnvironment}
|
|
1864
2059
|
* @memberof CustomerGroupRecord
|
|
2060
|
+
* @deprecated
|
|
1865
2061
|
*/
|
|
1866
|
-
'environment'
|
|
2062
|
+
'environment'?: ConversationEnvironment;
|
|
1867
2063
|
/**
|
|
1868
2064
|
* Overrides the default $agent for this customer
|
|
1869
2065
|
* @type {string}
|
|
@@ -2714,6 +2910,12 @@ export interface GenerateResponse {
|
|
|
2714
2910
|
* @memberof GenerateResponse
|
|
2715
2911
|
*/
|
|
2716
2912
|
'confidence'?: number;
|
|
2913
|
+
/**
|
|
2914
|
+
*
|
|
2915
|
+
* @type {TokenUsage}
|
|
2916
|
+
* @memberof GenerateResponse
|
|
2917
|
+
*/
|
|
2918
|
+
'usage'?: TokenUsage;
|
|
2717
2919
|
}
|
|
2718
2920
|
/**
|
|
2719
2921
|
*
|
|
@@ -3247,10 +3449,17 @@ export interface ListConversationsResponseInner {
|
|
|
3247
3449
|
* @memberof ListConversationsResponseInner
|
|
3248
3450
|
*/
|
|
3249
3451
|
'initialContexts'?: Array<string>;
|
|
3452
|
+
/**
|
|
3453
|
+
*
|
|
3454
|
+
* @type {ConversationChannelProps}
|
|
3455
|
+
* @memberof ListConversationsResponseInner
|
|
3456
|
+
*/
|
|
3457
|
+
'channelProps'?: ConversationChannelProps;
|
|
3250
3458
|
/**
|
|
3251
3459
|
*
|
|
3252
3460
|
* @type {ConversationBaseEnvironmentProps}
|
|
3253
3461
|
* @memberof ListConversationsResponseInner
|
|
3462
|
+
* @deprecated
|
|
3254
3463
|
*/
|
|
3255
3464
|
'environmentProps'?: ConversationBaseEnvironmentProps;
|
|
3256
3465
|
/**
|
|
@@ -3266,12 +3475,19 @@ export interface ListConversationsResponseInner {
|
|
|
3266
3475
|
* @deprecated
|
|
3267
3476
|
*/
|
|
3268
3477
|
'$customer'?: string;
|
|
3478
|
+
/**
|
|
3479
|
+
*
|
|
3480
|
+
* @type {ConversationChannel}
|
|
3481
|
+
* @memberof ListConversationsResponseInner
|
|
3482
|
+
*/
|
|
3483
|
+
'channel': ConversationChannel;
|
|
3269
3484
|
/**
|
|
3270
3485
|
*
|
|
3271
3486
|
* @type {ConversationEnvironment}
|
|
3272
3487
|
* @memberof ListConversationsResponseInner
|
|
3488
|
+
* @deprecated
|
|
3273
3489
|
*/
|
|
3274
|
-
'environment'
|
|
3490
|
+
'environment'?: ConversationEnvironment;
|
|
3275
3491
|
/**
|
|
3276
3492
|
* Whether this conversation is a test or not
|
|
3277
3493
|
* @type {boolean}
|
|
@@ -5235,10 +5451,17 @@ export interface MessageCreateRequestConvoOneOf {
|
|
|
5235
5451
|
* @memberof MessageCreateRequestConvoOneOf
|
|
5236
5452
|
*/
|
|
5237
5453
|
'agentIdOrPhoneOrEmail'?: string;
|
|
5454
|
+
/**
|
|
5455
|
+
*
|
|
5456
|
+
* @type {ConversationChannel}
|
|
5457
|
+
* @memberof MessageCreateRequestConvoOneOf
|
|
5458
|
+
*/
|
|
5459
|
+
'channel'?: ConversationChannel;
|
|
5238
5460
|
/**
|
|
5239
5461
|
*
|
|
5240
5462
|
* @type {ConversationEnvironment}
|
|
5241
5463
|
* @memberof MessageCreateRequestConvoOneOf
|
|
5464
|
+
* @deprecated
|
|
5242
5465
|
*/
|
|
5243
5466
|
'environment'?: ConversationEnvironment;
|
|
5244
5467
|
}
|
|
@@ -5782,7 +6005,13 @@ export interface PmtTransformResponse {
|
|
|
5782
6005
|
* @type {string}
|
|
5783
6006
|
* @memberof PmtTransformResponse
|
|
5784
6007
|
*/
|
|
5785
|
-
'message'
|
|
6008
|
+
'message'?: string;
|
|
6009
|
+
/**
|
|
6010
|
+
* Formatted persona responses
|
|
6011
|
+
* @type {Array<Message>}
|
|
6012
|
+
* @memberof PmtTransformResponse
|
|
6013
|
+
*/
|
|
6014
|
+
'messages'?: Array<Message>;
|
|
5786
6015
|
/**
|
|
5787
6016
|
* How confident this message meets the persona\'s own words
|
|
5788
6017
|
* @type {number}
|
|
@@ -5801,6 +6030,12 @@ export interface PmtTransformResponse {
|
|
|
5801
6030
|
* @memberof PmtTransformResponse
|
|
5802
6031
|
*/
|
|
5803
6032
|
'errors'?: Array<string>;
|
|
6033
|
+
/**
|
|
6034
|
+
*
|
|
6035
|
+
* @type {TokenUsage}
|
|
6036
|
+
* @memberof PmtTransformResponse
|
|
6037
|
+
*/
|
|
6038
|
+
'usage'?: TokenUsage;
|
|
5804
6039
|
}
|
|
5805
6040
|
export declare const PmtTransformResponseTypeEnum: {
|
|
5806
6041
|
readonly Question: "question";
|
|
@@ -5926,10 +6161,17 @@ export interface ScheduleCreateRequest {
|
|
|
5926
6161
|
* @memberof ScheduleCreateRequest
|
|
5927
6162
|
*/
|
|
5928
6163
|
'initialContexts'?: Array<string>;
|
|
6164
|
+
/**
|
|
6165
|
+
*
|
|
6166
|
+
* @type {ConversationChannelProps}
|
|
6167
|
+
* @memberof ScheduleCreateRequest
|
|
6168
|
+
*/
|
|
6169
|
+
'channelProps'?: ConversationChannelProps;
|
|
5929
6170
|
/**
|
|
5930
6171
|
*
|
|
5931
6172
|
* @type {ConversationBaseEnvironmentProps}
|
|
5932
6173
|
* @memberof ScheduleCreateRequest
|
|
6174
|
+
* @deprecated
|
|
5933
6175
|
*/
|
|
5934
6176
|
'environmentProps'?: ConversationBaseEnvironmentProps;
|
|
5935
6177
|
/**
|
|
@@ -5945,12 +6187,19 @@ export interface ScheduleCreateRequest {
|
|
|
5945
6187
|
* @deprecated
|
|
5946
6188
|
*/
|
|
5947
6189
|
'$customer'?: string;
|
|
6190
|
+
/**
|
|
6191
|
+
*
|
|
6192
|
+
* @type {ConversationChannel}
|
|
6193
|
+
* @memberof ScheduleCreateRequest
|
|
6194
|
+
*/
|
|
6195
|
+
'channel': ConversationChannel;
|
|
5948
6196
|
/**
|
|
5949
6197
|
*
|
|
5950
6198
|
* @type {ConversationEnvironment}
|
|
5951
6199
|
* @memberof ScheduleCreateRequest
|
|
6200
|
+
* @deprecated
|
|
5952
6201
|
*/
|
|
5953
|
-
'environment'
|
|
6202
|
+
'environment'?: ConversationEnvironment;
|
|
5954
6203
|
/**
|
|
5955
6204
|
* Whether this conversation is a test or not
|
|
5956
6205
|
* @type {boolean}
|
|
@@ -6044,10 +6293,17 @@ export interface ScheduleGetResponse {
|
|
|
6044
6293
|
* @memberof ScheduleGetResponse
|
|
6045
6294
|
*/
|
|
6046
6295
|
'initialContexts'?: Array<string>;
|
|
6296
|
+
/**
|
|
6297
|
+
*
|
|
6298
|
+
* @type {ConversationChannelProps}
|
|
6299
|
+
* @memberof ScheduleGetResponse
|
|
6300
|
+
*/
|
|
6301
|
+
'channelProps'?: ConversationChannelProps;
|
|
6047
6302
|
/**
|
|
6048
6303
|
*
|
|
6049
6304
|
* @type {ConversationBaseEnvironmentProps}
|
|
6050
6305
|
* @memberof ScheduleGetResponse
|
|
6306
|
+
* @deprecated
|
|
6051
6307
|
*/
|
|
6052
6308
|
'environmentProps'?: ConversationBaseEnvironmentProps;
|
|
6053
6309
|
/**
|
|
@@ -6063,12 +6319,19 @@ export interface ScheduleGetResponse {
|
|
|
6063
6319
|
* @deprecated
|
|
6064
6320
|
*/
|
|
6065
6321
|
'$customer'?: string;
|
|
6322
|
+
/**
|
|
6323
|
+
*
|
|
6324
|
+
* @type {ConversationChannel}
|
|
6325
|
+
* @memberof ScheduleGetResponse
|
|
6326
|
+
*/
|
|
6327
|
+
'channel': ConversationChannel;
|
|
6066
6328
|
/**
|
|
6067
6329
|
*
|
|
6068
6330
|
* @type {ConversationEnvironment}
|
|
6069
6331
|
* @memberof ScheduleGetResponse
|
|
6332
|
+
* @deprecated
|
|
6070
6333
|
*/
|
|
6071
|
-
'environment'
|
|
6334
|
+
'environment'?: ConversationEnvironment;
|
|
6072
6335
|
/**
|
|
6073
6336
|
* Whether this conversation is a test or not
|
|
6074
6337
|
* @type {boolean}
|
|
@@ -6136,10 +6399,17 @@ export interface ScheduleGroupCreateRequest {
|
|
|
6136
6399
|
* @memberof ScheduleGroupCreateRequest
|
|
6137
6400
|
*/
|
|
6138
6401
|
'initialContexts'?: Array<string>;
|
|
6402
|
+
/**
|
|
6403
|
+
*
|
|
6404
|
+
* @type {ConversationChannelProps}
|
|
6405
|
+
* @memberof ScheduleGroupCreateRequest
|
|
6406
|
+
*/
|
|
6407
|
+
'channelProps'?: ConversationChannelProps;
|
|
6139
6408
|
/**
|
|
6140
6409
|
*
|
|
6141
6410
|
* @type {ConversationBaseEnvironmentProps}
|
|
6142
6411
|
* @memberof ScheduleGroupCreateRequest
|
|
6412
|
+
* @deprecated
|
|
6143
6413
|
*/
|
|
6144
6414
|
'environmentProps'?: ConversationBaseEnvironmentProps;
|
|
6145
6415
|
/**
|
|
@@ -6234,10 +6504,17 @@ export interface ScheduleGroupGetResponse {
|
|
|
6234
6504
|
* @memberof ScheduleGroupGetResponse
|
|
6235
6505
|
*/
|
|
6236
6506
|
'initialContexts'?: Array<string>;
|
|
6507
|
+
/**
|
|
6508
|
+
*
|
|
6509
|
+
* @type {ConversationChannelProps}
|
|
6510
|
+
* @memberof ScheduleGroupGetResponse
|
|
6511
|
+
*/
|
|
6512
|
+
'channelProps'?: ConversationChannelProps;
|
|
6237
6513
|
/**
|
|
6238
6514
|
*
|
|
6239
6515
|
* @type {ConversationBaseEnvironmentProps}
|
|
6240
6516
|
* @memberof ScheduleGroupGetResponse
|
|
6517
|
+
* @deprecated
|
|
6241
6518
|
*/
|
|
6242
6519
|
'environmentProps'?: ConversationBaseEnvironmentProps;
|
|
6243
6520
|
/**
|
|
@@ -6351,10 +6628,17 @@ export interface ScheduleGroupUpdateRequest {
|
|
|
6351
6628
|
* @memberof ScheduleGroupUpdateRequest
|
|
6352
6629
|
*/
|
|
6353
6630
|
'initialContexts'?: Array<string>;
|
|
6631
|
+
/**
|
|
6632
|
+
*
|
|
6633
|
+
* @type {ConversationChannelProps}
|
|
6634
|
+
* @memberof ScheduleGroupUpdateRequest
|
|
6635
|
+
*/
|
|
6636
|
+
'channelProps'?: ConversationChannelProps;
|
|
6354
6637
|
/**
|
|
6355
6638
|
*
|
|
6356
6639
|
* @type {ConversationBaseEnvironmentProps}
|
|
6357
6640
|
* @memberof ScheduleGroupUpdateRequest
|
|
6641
|
+
* @deprecated
|
|
6358
6642
|
*/
|
|
6359
6643
|
'environmentProps'?: ConversationBaseEnvironmentProps;
|
|
6360
6644
|
/**
|
|
@@ -6481,10 +6765,17 @@ export interface ScheduleUpdateRequest {
|
|
|
6481
6765
|
* @memberof ScheduleUpdateRequest
|
|
6482
6766
|
*/
|
|
6483
6767
|
'initialContexts'?: Array<string>;
|
|
6768
|
+
/**
|
|
6769
|
+
*
|
|
6770
|
+
* @type {ConversationChannelProps}
|
|
6771
|
+
* @memberof ScheduleUpdateRequest
|
|
6772
|
+
*/
|
|
6773
|
+
'channelProps'?: ConversationChannelProps;
|
|
6484
6774
|
/**
|
|
6485
6775
|
*
|
|
6486
6776
|
* @type {ConversationBaseEnvironmentProps}
|
|
6487
6777
|
* @memberof ScheduleUpdateRequest
|
|
6778
|
+
* @deprecated
|
|
6488
6779
|
*/
|
|
6489
6780
|
'environmentProps'?: ConversationBaseEnvironmentProps;
|
|
6490
6781
|
/**
|
|
@@ -6500,12 +6791,19 @@ export interface ScheduleUpdateRequest {
|
|
|
6500
6791
|
* @deprecated
|
|
6501
6792
|
*/
|
|
6502
6793
|
'$customer'?: string;
|
|
6794
|
+
/**
|
|
6795
|
+
*
|
|
6796
|
+
* @type {ConversationChannel}
|
|
6797
|
+
* @memberof ScheduleUpdateRequest
|
|
6798
|
+
*/
|
|
6799
|
+
'channel': ConversationChannel;
|
|
6503
6800
|
/**
|
|
6504
6801
|
*
|
|
6505
6802
|
* @type {ConversationEnvironment}
|
|
6506
6803
|
* @memberof ScheduleUpdateRequest
|
|
6804
|
+
* @deprecated
|
|
6507
6805
|
*/
|
|
6508
|
-
'environment'
|
|
6806
|
+
'environment'?: ConversationEnvironment;
|
|
6509
6807
|
/**
|
|
6510
6808
|
* Whether this conversation is a test or not
|
|
6511
6809
|
* @type {boolean}
|
|
@@ -6599,10 +6897,17 @@ export interface ScheduledConversation {
|
|
|
6599
6897
|
* @memberof ScheduledConversation
|
|
6600
6898
|
*/
|
|
6601
6899
|
'initialContexts'?: Array<string>;
|
|
6900
|
+
/**
|
|
6901
|
+
*
|
|
6902
|
+
* @type {ConversationChannelProps}
|
|
6903
|
+
* @memberof ScheduledConversation
|
|
6904
|
+
*/
|
|
6905
|
+
'channelProps'?: ConversationChannelProps;
|
|
6602
6906
|
/**
|
|
6603
6907
|
*
|
|
6604
6908
|
* @type {ConversationBaseEnvironmentProps}
|
|
6605
6909
|
* @memberof ScheduledConversation
|
|
6910
|
+
* @deprecated
|
|
6606
6911
|
*/
|
|
6607
6912
|
'environmentProps'?: ConversationBaseEnvironmentProps;
|
|
6608
6913
|
/**
|
|
@@ -6618,12 +6923,19 @@ export interface ScheduledConversation {
|
|
|
6618
6923
|
* @deprecated
|
|
6619
6924
|
*/
|
|
6620
6925
|
'$customer'?: string;
|
|
6926
|
+
/**
|
|
6927
|
+
*
|
|
6928
|
+
* @type {ConversationChannel}
|
|
6929
|
+
* @memberof ScheduledConversation
|
|
6930
|
+
*/
|
|
6931
|
+
'channel': ConversationChannel;
|
|
6621
6932
|
/**
|
|
6622
6933
|
*
|
|
6623
6934
|
* @type {ConversationEnvironment}
|
|
6624
6935
|
* @memberof ScheduledConversation
|
|
6936
|
+
* @deprecated
|
|
6625
6937
|
*/
|
|
6626
|
-
'environment'
|
|
6938
|
+
'environment'?: ConversationEnvironment;
|
|
6627
6939
|
/**
|
|
6628
6940
|
* Whether this conversation is a test or not
|
|
6629
6941
|
* @type {boolean}
|
|
@@ -6686,10 +6998,17 @@ export interface ScheduledConversationGroup {
|
|
|
6686
6998
|
* @memberof ScheduledConversationGroup
|
|
6687
6999
|
*/
|
|
6688
7000
|
'initialContexts'?: Array<string>;
|
|
7001
|
+
/**
|
|
7002
|
+
*
|
|
7003
|
+
* @type {ConversationChannelProps}
|
|
7004
|
+
* @memberof ScheduledConversationGroup
|
|
7005
|
+
*/
|
|
7006
|
+
'channelProps'?: ConversationChannelProps;
|
|
6689
7007
|
/**
|
|
6690
7008
|
*
|
|
6691
7009
|
* @type {ConversationBaseEnvironmentProps}
|
|
6692
7010
|
* @memberof ScheduledConversationGroup
|
|
7011
|
+
* @deprecated
|
|
6693
7012
|
*/
|
|
6694
7013
|
'environmentProps'?: ConversationBaseEnvironmentProps;
|
|
6695
7014
|
/**
|
|
@@ -6804,6 +7123,93 @@ export interface Scout9ProjectConfig {
|
|
|
6804
7123
|
*/
|
|
6805
7124
|
'pmt': PmtConfig;
|
|
6806
7125
|
}
|
|
7126
|
+
/**
|
|
7127
|
+
* Usage statistics for the completion request
|
|
7128
|
+
* @export
|
|
7129
|
+
* @interface TokenUsage
|
|
7130
|
+
*/
|
|
7131
|
+
export interface TokenUsage {
|
|
7132
|
+
/**
|
|
7133
|
+
* Number of tokens in the generated completion
|
|
7134
|
+
* @type {number}
|
|
7135
|
+
* @memberof TokenUsage
|
|
7136
|
+
*/
|
|
7137
|
+
'completion_tokens': number;
|
|
7138
|
+
/**
|
|
7139
|
+
* Number of tokens in the prompt
|
|
7140
|
+
* @type {number}
|
|
7141
|
+
* @memberof TokenUsage
|
|
7142
|
+
*/
|
|
7143
|
+
'prompt_tokens': number;
|
|
7144
|
+
/**
|
|
7145
|
+
* Total number of tokens used in the request (prompt + completion)
|
|
7146
|
+
* @type {number}
|
|
7147
|
+
* @memberof TokenUsage
|
|
7148
|
+
*/
|
|
7149
|
+
'total_tokens': number;
|
|
7150
|
+
/**
|
|
7151
|
+
*
|
|
7152
|
+
* @type {TokenUsageCompletionTokensDetails}
|
|
7153
|
+
* @memberof TokenUsage
|
|
7154
|
+
*/
|
|
7155
|
+
'completion_tokens_details'?: TokenUsageCompletionTokensDetails;
|
|
7156
|
+
/**
|
|
7157
|
+
*
|
|
7158
|
+
* @type {TokenUsagePromptTokensDetails}
|
|
7159
|
+
* @memberof TokenUsage
|
|
7160
|
+
*/
|
|
7161
|
+
'prompt_tokens_details'?: TokenUsagePromptTokensDetails;
|
|
7162
|
+
}
|
|
7163
|
+
/**
|
|
7164
|
+
* Breakdown of tokens used in a completion
|
|
7165
|
+
* @export
|
|
7166
|
+
* @interface TokenUsageCompletionTokensDetails
|
|
7167
|
+
*/
|
|
7168
|
+
export interface TokenUsageCompletionTokensDetails {
|
|
7169
|
+
/**
|
|
7170
|
+
* Number of prediction tokens that appeared in the completion
|
|
7171
|
+
* @type {number}
|
|
7172
|
+
* @memberof TokenUsageCompletionTokensDetails
|
|
7173
|
+
*/
|
|
7174
|
+
'accepted_prediction_tokens'?: number;
|
|
7175
|
+
/**
|
|
7176
|
+
* Audio input tokens generated by the model
|
|
7177
|
+
* @type {number}
|
|
7178
|
+
* @memberof TokenUsageCompletionTokensDetails
|
|
7179
|
+
*/
|
|
7180
|
+
'audio_tokens'?: number;
|
|
7181
|
+
/**
|
|
7182
|
+
* Tokens generated by the model for reasoning
|
|
7183
|
+
* @type {number}
|
|
7184
|
+
* @memberof TokenUsageCompletionTokensDetails
|
|
7185
|
+
*/
|
|
7186
|
+
'reasoning_tokens'?: number;
|
|
7187
|
+
/**
|
|
7188
|
+
* Number of prediction tokens that did not appear in the completion
|
|
7189
|
+
* @type {number}
|
|
7190
|
+
* @memberof TokenUsageCompletionTokensDetails
|
|
7191
|
+
*/
|
|
7192
|
+
'rejected_prediction_tokens'?: number;
|
|
7193
|
+
}
|
|
7194
|
+
/**
|
|
7195
|
+
* Breakdown of tokens used in the prompt
|
|
7196
|
+
* @export
|
|
7197
|
+
* @interface TokenUsagePromptTokensDetails
|
|
7198
|
+
*/
|
|
7199
|
+
export interface TokenUsagePromptTokensDetails {
|
|
7200
|
+
/**
|
|
7201
|
+
* Audio input tokens present in the prompt
|
|
7202
|
+
* @type {number}
|
|
7203
|
+
* @memberof TokenUsagePromptTokensDetails
|
|
7204
|
+
*/
|
|
7205
|
+
'audio_tokens'?: number;
|
|
7206
|
+
/**
|
|
7207
|
+
* Cached tokens present in the prompt
|
|
7208
|
+
* @type {number}
|
|
7209
|
+
* @memberof TokenUsagePromptTokensDetails
|
|
7210
|
+
*/
|
|
7211
|
+
'cached_tokens'?: number;
|
|
7212
|
+
}
|
|
6807
7213
|
/**
|
|
6808
7214
|
*
|
|
6809
7215
|
* @export
|
|
@@ -7466,6 +7872,12 @@ export interface WorkflowResponseSlot {
|
|
|
7466
7872
|
* @memberof WorkflowResponseSlot
|
|
7467
7873
|
*/
|
|
7468
7874
|
'resetIntent'?: boolean;
|
|
7875
|
+
/**
|
|
7876
|
+
*
|
|
7877
|
+
* @type {TokenUsage}
|
|
7878
|
+
* @memberof WorkflowResponseSlot
|
|
7879
|
+
*/
|
|
7880
|
+
'usage'?: TokenUsage;
|
|
7469
7881
|
}
|
|
7470
7882
|
/**
|
|
7471
7883
|
* @type WorkflowResponseSlotForward
|
|
@@ -7655,6 +8067,14 @@ export declare const Scout9ApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
7655
8067
|
* @throws {RequiredError}
|
|
7656
8068
|
*/
|
|
7657
8069
|
config: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
8070
|
+
/**
|
|
8071
|
+
* Runs contextualization on workflow event messages and returns contextualized messages.
|
|
8072
|
+
* @summary Contextualize workflow event messages
|
|
8073
|
+
* @param {ContextualizerRequest} contextualizerRequest
|
|
8074
|
+
* @param {*} [options] Override http request option.
|
|
8075
|
+
* @throws {RequiredError}
|
|
8076
|
+
*/
|
|
8077
|
+
contextualize: (contextualizerRequest: ContextualizerRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
7658
8078
|
/**
|
|
7659
8079
|
*
|
|
7660
8080
|
* @summary Gets a conversation
|
|
@@ -8150,6 +8570,14 @@ export declare const Scout9ApiFp: (configuration?: Configuration) => {
|
|
|
8150
8570
|
* @throws {RequiredError}
|
|
8151
8571
|
*/
|
|
8152
8572
|
config(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Config200Response>>;
|
|
8573
|
+
/**
|
|
8574
|
+
* Runs contextualization on workflow event messages and returns contextualized messages.
|
|
8575
|
+
* @summary Contextualize workflow event messages
|
|
8576
|
+
* @param {ContextualizerRequest} contextualizerRequest
|
|
8577
|
+
* @param {*} [options] Override http request option.
|
|
8578
|
+
* @throws {RequiredError}
|
|
8579
|
+
*/
|
|
8580
|
+
contextualize(contextualizerRequest: ContextualizerRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ContextualizerResponse>>;
|
|
8153
8581
|
/**
|
|
8154
8582
|
*
|
|
8155
8583
|
* @summary Gets a conversation
|
|
@@ -8651,6 +9079,14 @@ export declare const Scout9ApiFactory: (configuration?: Configuration, basePath?
|
|
|
8651
9079
|
* @throws {RequiredError}
|
|
8652
9080
|
*/
|
|
8653
9081
|
config(options?: any): AxiosPromise<Config200Response>;
|
|
9082
|
+
/**
|
|
9083
|
+
* Runs contextualization on workflow event messages and returns contextualized messages.
|
|
9084
|
+
* @summary Contextualize workflow event messages
|
|
9085
|
+
* @param {ContextualizerRequest} contextualizerRequest
|
|
9086
|
+
* @param {*} [options] Override http request option.
|
|
9087
|
+
* @throws {RequiredError}
|
|
9088
|
+
*/
|
|
9089
|
+
contextualize(contextualizerRequest: ContextualizerRequest, options?: any): AxiosPromise<ContextualizerResponse>;
|
|
8654
9090
|
/**
|
|
8655
9091
|
*
|
|
8656
9092
|
* @summary Gets a conversation
|
|
@@ -9165,6 +9601,15 @@ export declare class Scout9ApiGenerated extends BaseAPI {
|
|
|
9165
9601
|
* @memberof Scout9Api
|
|
9166
9602
|
*/
|
|
9167
9603
|
config(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Config200Response, any>>;
|
|
9604
|
+
/**
|
|
9605
|
+
* Runs contextualization on workflow event messages and returns contextualized messages.
|
|
9606
|
+
* @summary Contextualize workflow event messages
|
|
9607
|
+
* @param {ContextualizerRequest} contextualizerRequest
|
|
9608
|
+
* @param {*} [options] Override http request option.
|
|
9609
|
+
* @throws {RequiredError}
|
|
9610
|
+
* @memberof Scout9Api
|
|
9611
|
+
*/
|
|
9612
|
+
contextualize(contextualizerRequest: ContextualizerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ContextualizerResponse, any>>;
|
|
9168
9613
|
/**
|
|
9169
9614
|
*
|
|
9170
9615
|
* @summary Gets a conversation
|