@opencx/widget-core 5.0.0-beta.5 → 5.0.0-beta.7
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/index.cjs +8 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1577 -1062
- package/dist/index.js.map +1 -1
- package/dist/src/api/api-caller.d.ts +67 -0
- package/dist/src/api/api-caller.d.ts.map +1 -1
- package/dist/src/api/elicitation.d.ts +60 -0
- package/dist/src/api/elicitation.d.ts.map +1 -0
- package/dist/src/api/schema.d.ts +517 -56
- package/dist/src/api/schema.d.ts.map +1 -1
- package/dist/src/context/active-session-polling.ctx.d.ts +2 -0
- package/dist/src/context/active-session-polling.ctx.d.ts.map +1 -1
- package/dist/src/context/message.ctx.d.ts +4 -0
- package/dist/src/context/message.ctx.d.ts.map +1 -1
- package/dist/src/context/resolve-client-presentation.d.ts.map +1 -1
- package/dist/src/context/session.ctx.d.ts +5 -0
- package/dist/src/context/session.ctx.d.ts.map +1 -1
- package/dist/src/context/widget.ctx.d.ts +6 -1
- package/dist/src/context/widget.ctx.d.ts.map +1 -1
- package/dist/src/index.d.ts +3 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/translation/ar.d.ts.map +1 -1
- package/dist/src/translation/bg.d.ts.map +1 -1
- package/dist/src/translation/bn.d.ts.map +1 -1
- package/dist/src/translation/cs.d.ts.map +1 -1
- package/dist/src/translation/da.d.ts.map +1 -1
- package/dist/src/translation/de.d.ts.map +1 -1
- package/dist/src/translation/el.d.ts.map +1 -1
- package/dist/src/translation/en.d.ts.map +1 -1
- package/dist/src/translation/es.d.ts.map +1 -1
- package/dist/src/translation/et.d.ts.map +1 -1
- package/dist/src/translation/fi.d.ts.map +1 -1
- package/dist/src/translation/fil.d.ts.map +1 -1
- package/dist/src/translation/fr.d.ts.map +1 -1
- package/dist/src/translation/hi.d.ts.map +1 -1
- package/dist/src/translation/hr.d.ts.map +1 -1
- package/dist/src/translation/hu.d.ts.map +1 -1
- package/dist/src/translation/index.d.ts +12 -0
- package/dist/src/translation/index.d.ts.map +1 -1
- package/dist/src/translation/is.d.ts.map +1 -1
- package/dist/src/translation/it.d.ts.map +1 -1
- package/dist/src/translation/ja.d.ts.map +1 -1
- package/dist/src/translation/ko.d.ts.map +1 -1
- package/dist/src/translation/lb.d.ts.map +1 -1
- package/dist/src/translation/lt.d.ts.map +1 -1
- package/dist/src/translation/lv.d.ts.map +1 -1
- package/dist/src/translation/mt.d.ts.map +1 -1
- package/dist/src/translation/nb.d.ts.map +1 -1
- package/dist/src/translation/nl.d.ts.map +1 -1
- package/dist/src/translation/no.d.ts.map +1 -1
- package/dist/src/translation/pl.d.ts.map +1 -1
- package/dist/src/translation/pt.d.ts.map +1 -1
- package/dist/src/translation/ro.d.ts.map +1 -1
- package/dist/src/translation/ru.d.ts.map +1 -1
- package/dist/src/translation/sk.d.ts.map +1 -1
- package/dist/src/translation/sv.d.ts.map +1 -1
- package/dist/src/translation/th.d.ts.map +1 -1
- package/dist/src/translation/tr.d.ts.map +1 -1
- package/dist/src/translation/ur.d.ts.map +1 -1
- package/dist/src/translation/vi.d.ts.map +1 -1
- package/dist/src/translation/zh-cn.d.ts.map +1 -1
- package/dist/src/types/component-name.d.ts +1 -1
- package/dist/src/types/component-name.d.ts.map +1 -1
- package/dist/src/types/messages.d.ts +2 -0
- package/dist/src/types/messages.d.ts.map +1 -1
- package/dist/src/types/widget-config.d.ts +4 -0
- package/dist/src/types/widget-config.d.ts.map +1 -1
- package/package.json +3 -2
- package/dist/src/__tests__/api/agent-stream-parts.spec.d.ts +0 -2
- package/dist/src/__tests__/api/agent-stream-parts.spec.d.ts.map +0 -1
- package/dist/src/__tests__/api/dictation-mint-cache.spec.d.ts +0 -2
- package/dist/src/__tests__/api/dictation-mint-cache.spec.d.ts.map +0 -1
- package/dist/src/__tests__/api/widget-api-wire.spec.d.ts +0 -2
- package/dist/src/__tests__/api/widget-api-wire.spec.d.ts.map +0 -1
- package/dist/src/__tests__/api-caller.mock.d.ts +0 -2
- package/dist/src/__tests__/api-caller.mock.d.ts.map +0 -1
- package/dist/src/__tests__/context/contact/auth/auto-create-unverified-anonymous.spec.d.ts +0 -1
- package/dist/src/__tests__/context/contact/auth/auto-create-unverified-anonymous.spec.d.ts.map +0 -1
- package/dist/src/__tests__/context/contact/auth/auto-create-unverified-with-user-data-provided-by-org.spec.d.ts +0 -1
- package/dist/src/__tests__/context/contact/auth/auto-create-unverified-with-user-data-provided-by-org.spec.d.ts.map +0 -1
- package/dist/src/__tests__/context/contact/auth/manually-create-unverified-with-user-data-provided-by-user.spec.d.ts +0 -1
- package/dist/src/__tests__/context/contact/auth/manually-create-unverified-with-user-data-provided-by-user.spec.d.ts.map +0 -1
- package/dist/src/__tests__/context/contact/auth/with-secure-token.spec.d.ts +0 -1
- package/dist/src/__tests__/context/contact/auth/with-secure-token.spec.d.ts.map +0 -1
- package/dist/src/__tests__/context/contact/should-collect-data.spec.d.ts +0 -1
- package/dist/src/__tests__/context/contact/should-collect-data.spec.d.ts.map +0 -1
- package/dist/src/__tests__/context/contact-ctx.create-failure.spec.d.ts +0 -2
- package/dist/src/__tests__/context/contact-ctx.create-failure.spec.d.ts.map +0 -1
- package/dist/src/__tests__/context/dictation-ctx.spec.d.ts +0 -1
- package/dist/src/__tests__/context/dictation-ctx.spec.d.ts.map +0 -1
- package/dist/src/__tests__/context/message/merge-send-context.spec.d.ts +0 -2
- package/dist/src/__tests__/context/message/merge-send-context.spec.d.ts.map +0 -1
- package/dist/src/__tests__/context/message/on-message-received-hook.spec.d.ts +0 -1
- package/dist/src/__tests__/context/message/on-message-received-hook.spec.d.ts.map +0 -1
- package/dist/src/__tests__/context/message/pending-user-messages.spec.d.ts +0 -1
- package/dist/src/__tests__/context/message/pending-user-messages.spec.d.ts.map +0 -1
- package/dist/src/__tests__/context/message/sent-text-history.spec.d.ts +0 -1
- package/dist/src/__tests__/context/message/sent-text-history.spec.d.ts.map +0 -1
- package/dist/src/__tests__/context/message-ctx.agent-handlers.spec.d.ts +0 -2
- package/dist/src/__tests__/context/message-ctx.agent-handlers.spec.d.ts.map +0 -1
- package/dist/src/__tests__/context/message-ctx.client-context.spec.d.ts +0 -2
- package/dist/src/__tests__/context/message-ctx.client-context.spec.d.ts.map +0 -1
- package/dist/src/__tests__/context/message-ctx.mentions.spec.d.ts +0 -2
- package/dist/src/__tests__/context/message-ctx.mentions.spec.d.ts.map +0 -1
- package/dist/src/__tests__/context/message-ctx.page-mark-chips.spec.d.ts +0 -2
- package/dist/src/__tests__/context/message-ctx.page-mark-chips.spec.d.ts.map +0 -1
- package/dist/src/__tests__/context/message-ctx.send-acceptance.spec.d.ts +0 -2
- package/dist/src/__tests__/context/message-ctx.send-acceptance.spec.d.ts.map +0 -1
- package/dist/src/__tests__/context/message-ctx.send-features.spec.d.ts +0 -2
- package/dist/src/__tests__/context/message-ctx.send-features.spec.d.ts.map +0 -1
- package/dist/src/__tests__/context/reconcile-after-stream.spec.d.ts +0 -1
- package/dist/src/__tests__/context/reconcile-after-stream.spec.d.ts.map +0 -1
- package/dist/src/__tests__/context/resolve-client-presentation.spec.d.ts +0 -2
- package/dist/src/__tests__/context/resolve-client-presentation.spec.d.ts.map +0 -1
- package/dist/src/__tests__/context/restore-last-session.spec.d.ts +0 -2
- package/dist/src/__tests__/context/restore-last-session.spec.d.ts.map +0 -1
- package/dist/src/__tests__/context/session-ctx.stale-token-retry.spec.d.ts +0 -2
- package/dist/src/__tests__/context/session-ctx.stale-token-retry.spec.d.ts.map +0 -1
- package/dist/src/__tests__/context/storage-ctx.spec.d.ts +0 -2
- package/dist/src/__tests__/context/storage-ctx.spec.d.ts.map +0 -1
- package/dist/src/__tests__/context/streaming-engine.spec.d.ts +0 -1
- package/dist/src/__tests__/context/streaming-engine.spec.d.ts.map +0 -1
- package/dist/src/__tests__/context/upload.ctx.spec.d.ts +0 -2
- package/dist/src/__tests__/context/upload.ctx.spec.d.ts.map +0 -1
- package/dist/src/__tests__/context/widget-ctx.conversations.spec.d.ts +0 -1
- package/dist/src/__tests__/context/widget-ctx.conversations.spec.d.ts.map +0 -1
- package/dist/src/__tests__/context/widget-ctx.features.spec.d.ts +0 -1
- package/dist/src/__tests__/context/widget-ctx.features.spec.d.ts.map +0 -1
- package/dist/src/__tests__/dictation/dictation-commands.utils.spec.d.ts +0 -2
- package/dist/src/__tests__/dictation/dictation-commands.utils.spec.d.ts.map +0 -1
- package/dist/src/__tests__/test-utils.d.ts +0 -452
- package/dist/src/__tests__/test-utils.d.ts.map +0 -1
- package/dist/src/__tests__/translation.spec.d.ts +0 -2
- package/dist/src/__tests__/translation.spec.d.ts.map +0 -1
- package/dist/src/__tests__/utils/Poller.spec.d.ts +0 -2
- package/dist/src/__tests__/utils/Poller.spec.d.ts.map +0 -1
- package/dist/src/__tests__/utils/PrimitiveState.spec.d.ts +0 -2
- package/dist/src/__tests__/utils/PrimitiveState.spec.d.ts.map +0 -1
- package/dist/src/__tests__/utils/companion-layout.spec.d.ts +0 -2
- package/dist/src/__tests__/utils/companion-layout.spec.d.ts.map +0 -1
package/dist/src/api/schema.d.ts
CHANGED
|
@@ -526,7 +526,7 @@ export interface paths {
|
|
|
526
526
|
patch?: never;
|
|
527
527
|
trace?: never;
|
|
528
528
|
};
|
|
529
|
-
'/backend/widget/v2/
|
|
529
|
+
'/backend/widget/v2/submit-csat': {
|
|
530
530
|
parameters: {
|
|
531
531
|
query?: never;
|
|
532
532
|
header?: never;
|
|
@@ -544,7 +544,7 @@ export interface paths {
|
|
|
544
544
|
};
|
|
545
545
|
requestBody: {
|
|
546
546
|
content: {
|
|
547
|
-
'application/json': components['schemas']['
|
|
547
|
+
'application/json': components['schemas']['WidgetSubmitCsatInputDto'];
|
|
548
548
|
};
|
|
549
549
|
};
|
|
550
550
|
responses: {
|
|
@@ -554,7 +554,7 @@ export interface paths {
|
|
|
554
554
|
[name: string]: unknown;
|
|
555
555
|
};
|
|
556
556
|
content: {
|
|
557
|
-
'application/json': components['schemas']['
|
|
557
|
+
'application/json': components['schemas']['WidgetSubmitCsatOutputDto'];
|
|
558
558
|
};
|
|
559
559
|
};
|
|
560
560
|
/** @description Internal Server Error */
|
|
@@ -574,7 +574,7 @@ export interface paths {
|
|
|
574
574
|
patch?: never;
|
|
575
575
|
trace?: never;
|
|
576
576
|
};
|
|
577
|
-
'/backend/widget/
|
|
577
|
+
'/backend/widget/v5/chat/stream': {
|
|
578
578
|
parameters: {
|
|
579
579
|
query?: never;
|
|
580
580
|
header?: never;
|
|
@@ -592,7 +592,7 @@ export interface paths {
|
|
|
592
592
|
};
|
|
593
593
|
requestBody: {
|
|
594
594
|
content: {
|
|
595
|
-
'application/json': components['schemas']['
|
|
595
|
+
'application/json': components['schemas']['WidgetSendMessageInputDto'];
|
|
596
596
|
};
|
|
597
597
|
};
|
|
598
598
|
responses: {
|
|
@@ -601,9 +601,7 @@ export interface paths {
|
|
|
601
601
|
headers: {
|
|
602
602
|
[name: string]: unknown;
|
|
603
603
|
};
|
|
604
|
-
content
|
|
605
|
-
'application/json': components['schemas']['WidgetSubmitCsatOutputDto'];
|
|
606
|
-
};
|
|
604
|
+
content?: never;
|
|
607
605
|
};
|
|
608
606
|
/** @description Internal Server Error */
|
|
609
607
|
500: {
|
|
@@ -622,27 +620,26 @@ export interface paths {
|
|
|
622
620
|
patch?: never;
|
|
623
621
|
trace?: never;
|
|
624
622
|
};
|
|
625
|
-
'/backend/widget/v5/chat/stream': {
|
|
623
|
+
'/backend/widget/v5/chat/{sessionId}/stream': {
|
|
626
624
|
parameters: {
|
|
627
625
|
query?: never;
|
|
628
626
|
header?: never;
|
|
629
627
|
path?: never;
|
|
630
628
|
cookie?: never;
|
|
631
629
|
};
|
|
632
|
-
get
|
|
633
|
-
put?: never;
|
|
634
|
-
post: {
|
|
630
|
+
get: {
|
|
635
631
|
parameters: {
|
|
636
|
-
query?:
|
|
632
|
+
query?: {
|
|
633
|
+
toolActivity?: 'hidden' | 'status' | 'details';
|
|
634
|
+
reasoning?: 'true' | 'false';
|
|
635
|
+
};
|
|
637
636
|
header?: never;
|
|
638
|
-
path
|
|
639
|
-
|
|
640
|
-
};
|
|
641
|
-
requestBody: {
|
|
642
|
-
content: {
|
|
643
|
-
'application/json': components['schemas']['WidgetSendMessageInputDto'];
|
|
637
|
+
path: {
|
|
638
|
+
sessionId: string;
|
|
644
639
|
};
|
|
640
|
+
cookie?: never;
|
|
645
641
|
};
|
|
642
|
+
requestBody?: never;
|
|
646
643
|
responses: {
|
|
647
644
|
/** @description Default Response */
|
|
648
645
|
200: {
|
|
@@ -662,13 +659,15 @@ export interface paths {
|
|
|
662
659
|
};
|
|
663
660
|
};
|
|
664
661
|
};
|
|
662
|
+
put?: never;
|
|
663
|
+
post?: never;
|
|
665
664
|
delete?: never;
|
|
666
665
|
options?: never;
|
|
667
666
|
head?: never;
|
|
668
667
|
patch?: never;
|
|
669
668
|
trace?: never;
|
|
670
669
|
};
|
|
671
|
-
'/backend/widget/v5/chat/{sessionId}/
|
|
670
|
+
'/backend/widget/v5/chat/{sessionId}/messages': {
|
|
672
671
|
parameters: {
|
|
673
672
|
query?: never;
|
|
674
673
|
header?: never;
|
|
@@ -694,7 +693,9 @@ export interface paths {
|
|
|
694
693
|
headers: {
|
|
695
694
|
[name: string]: unknown;
|
|
696
695
|
};
|
|
697
|
-
content
|
|
696
|
+
content: {
|
|
697
|
+
'application/json': components['schemas']['WidgetAgentTurnMessagesDto'];
|
|
698
|
+
};
|
|
698
699
|
};
|
|
699
700
|
/** @description Internal Server Error */
|
|
700
701
|
500: {
|
|
@@ -715,7 +716,51 @@ export interface paths {
|
|
|
715
716
|
patch?: never;
|
|
716
717
|
trace?: never;
|
|
717
718
|
};
|
|
718
|
-
'/backend/widget/v5/chat/{sessionId}/
|
|
719
|
+
'/backend/widget/v5/chat/{sessionId}/stop': {
|
|
720
|
+
parameters: {
|
|
721
|
+
query?: never;
|
|
722
|
+
header?: never;
|
|
723
|
+
path?: never;
|
|
724
|
+
cookie?: never;
|
|
725
|
+
};
|
|
726
|
+
get?: never;
|
|
727
|
+
put?: never;
|
|
728
|
+
post: {
|
|
729
|
+
parameters: {
|
|
730
|
+
query?: never;
|
|
731
|
+
header?: never;
|
|
732
|
+
path: {
|
|
733
|
+
sessionId: string;
|
|
734
|
+
};
|
|
735
|
+
cookie?: never;
|
|
736
|
+
};
|
|
737
|
+
requestBody?: never;
|
|
738
|
+
responses: {
|
|
739
|
+
/** @description Default Response */
|
|
740
|
+
200: {
|
|
741
|
+
headers: {
|
|
742
|
+
[name: string]: unknown;
|
|
743
|
+
};
|
|
744
|
+
content?: never;
|
|
745
|
+
};
|
|
746
|
+
/** @description Internal Server Error */
|
|
747
|
+
500: {
|
|
748
|
+
headers: {
|
|
749
|
+
[name: string]: unknown;
|
|
750
|
+
};
|
|
751
|
+
content: {
|
|
752
|
+
'application/json': components['schemas']['ErrorDto'];
|
|
753
|
+
};
|
|
754
|
+
};
|
|
755
|
+
};
|
|
756
|
+
};
|
|
757
|
+
delete?: never;
|
|
758
|
+
options?: never;
|
|
759
|
+
head?: never;
|
|
760
|
+
patch?: never;
|
|
761
|
+
trace?: never;
|
|
762
|
+
};
|
|
763
|
+
'/backend/widget/v5/connections/approval-preferences': {
|
|
719
764
|
parameters: {
|
|
720
765
|
query?: never;
|
|
721
766
|
header?: never;
|
|
@@ -724,10 +769,102 @@ export interface paths {
|
|
|
724
769
|
};
|
|
725
770
|
get: {
|
|
726
771
|
parameters: {
|
|
727
|
-
query?:
|
|
728
|
-
|
|
729
|
-
|
|
772
|
+
query?: never;
|
|
773
|
+
header?: never;
|
|
774
|
+
path?: never;
|
|
775
|
+
cookie?: never;
|
|
776
|
+
};
|
|
777
|
+
requestBody?: never;
|
|
778
|
+
responses: {
|
|
779
|
+
/** @description Default Response */
|
|
780
|
+
200: {
|
|
781
|
+
headers: {
|
|
782
|
+
[name: string]: unknown;
|
|
783
|
+
};
|
|
784
|
+
content: {
|
|
785
|
+
'application/json': {
|
|
786
|
+
key: string;
|
|
787
|
+
message: string;
|
|
788
|
+
toolName: string;
|
|
789
|
+
serverId: string;
|
|
790
|
+
serverName: string;
|
|
791
|
+
}[];
|
|
792
|
+
};
|
|
793
|
+
};
|
|
794
|
+
/** @description Internal Server Error */
|
|
795
|
+
500: {
|
|
796
|
+
headers: {
|
|
797
|
+
[name: string]: unknown;
|
|
798
|
+
};
|
|
799
|
+
content: {
|
|
800
|
+
'application/json': components['schemas']['ErrorDto'];
|
|
801
|
+
};
|
|
802
|
+
};
|
|
803
|
+
};
|
|
804
|
+
};
|
|
805
|
+
put?: never;
|
|
806
|
+
post?: never;
|
|
807
|
+
delete?: never;
|
|
808
|
+
options?: never;
|
|
809
|
+
head?: never;
|
|
810
|
+
patch?: never;
|
|
811
|
+
trace?: never;
|
|
812
|
+
};
|
|
813
|
+
'/backend/widget/v5/connections/{serverId}/approval-preferences/{key}': {
|
|
814
|
+
parameters: {
|
|
815
|
+
query?: never;
|
|
816
|
+
header?: never;
|
|
817
|
+
path?: never;
|
|
818
|
+
cookie?: never;
|
|
819
|
+
};
|
|
820
|
+
get?: never;
|
|
821
|
+
put?: never;
|
|
822
|
+
post?: never;
|
|
823
|
+
delete: {
|
|
824
|
+
parameters: {
|
|
825
|
+
query?: never;
|
|
826
|
+
header?: never;
|
|
827
|
+
path: {
|
|
828
|
+
serverId: string;
|
|
829
|
+
key: string;
|
|
830
|
+
};
|
|
831
|
+
cookie?: never;
|
|
832
|
+
};
|
|
833
|
+
requestBody?: never;
|
|
834
|
+
responses: {
|
|
835
|
+
/** @description Default Response */
|
|
836
|
+
204: {
|
|
837
|
+
headers: {
|
|
838
|
+
[name: string]: unknown;
|
|
839
|
+
};
|
|
840
|
+
content?: never;
|
|
730
841
|
};
|
|
842
|
+
/** @description Internal Server Error */
|
|
843
|
+
500: {
|
|
844
|
+
headers: {
|
|
845
|
+
[name: string]: unknown;
|
|
846
|
+
};
|
|
847
|
+
content: {
|
|
848
|
+
'application/json': components['schemas']['ErrorDto'];
|
|
849
|
+
};
|
|
850
|
+
};
|
|
851
|
+
};
|
|
852
|
+
};
|
|
853
|
+
options?: never;
|
|
854
|
+
head?: never;
|
|
855
|
+
patch?: never;
|
|
856
|
+
trace?: never;
|
|
857
|
+
};
|
|
858
|
+
'/backend/widget/v5/connections/elicitation/{sessionId}': {
|
|
859
|
+
parameters: {
|
|
860
|
+
query?: never;
|
|
861
|
+
header?: never;
|
|
862
|
+
path?: never;
|
|
863
|
+
cookie?: never;
|
|
864
|
+
};
|
|
865
|
+
get: {
|
|
866
|
+
parameters: {
|
|
867
|
+
query?: never;
|
|
731
868
|
header?: never;
|
|
732
869
|
path: {
|
|
733
870
|
sessionId: string;
|
|
@@ -742,7 +879,116 @@ export interface paths {
|
|
|
742
879
|
[name: string]: unknown;
|
|
743
880
|
};
|
|
744
881
|
content: {
|
|
745
|
-
'application/json':
|
|
882
|
+
'application/json': {
|
|
883
|
+
/** Format: uuid */
|
|
884
|
+
id: string;
|
|
885
|
+
/** Format: uuid */
|
|
886
|
+
serverId: string;
|
|
887
|
+
serverName: string;
|
|
888
|
+
expiresAt: number;
|
|
889
|
+
approvalKey?: string;
|
|
890
|
+
toolName?: string;
|
|
891
|
+
form: {
|
|
892
|
+
_meta?: {
|
|
893
|
+
progressToken?: string | number;
|
|
894
|
+
'io.modelcontextprotocol/related-task'?: {
|
|
895
|
+
taskId: string;
|
|
896
|
+
};
|
|
897
|
+
} & {
|
|
898
|
+
[key: string]: unknown;
|
|
899
|
+
};
|
|
900
|
+
task?: {
|
|
901
|
+
ttl?: number;
|
|
902
|
+
};
|
|
903
|
+
/** @enum {string} */
|
|
904
|
+
mode?: 'form';
|
|
905
|
+
message: string;
|
|
906
|
+
requestedSchema: {
|
|
907
|
+
/** @enum {string} */
|
|
908
|
+
type: 'object';
|
|
909
|
+
properties: {
|
|
910
|
+
[key: string]: ({
|
|
911
|
+
/** @enum {string} */
|
|
912
|
+
type: 'string';
|
|
913
|
+
title?: string;
|
|
914
|
+
description?: string;
|
|
915
|
+
enum: string[];
|
|
916
|
+
enumNames?: string[];
|
|
917
|
+
default?: string;
|
|
918
|
+
} | ({
|
|
919
|
+
/** @enum {string} */
|
|
920
|
+
type: 'string';
|
|
921
|
+
title?: string;
|
|
922
|
+
description?: string;
|
|
923
|
+
enum: string[];
|
|
924
|
+
default?: string;
|
|
925
|
+
} | {
|
|
926
|
+
/** @enum {string} */
|
|
927
|
+
type: 'string';
|
|
928
|
+
title?: string;
|
|
929
|
+
description?: string;
|
|
930
|
+
oneOf: {
|
|
931
|
+
const: string;
|
|
932
|
+
title: string;
|
|
933
|
+
}[];
|
|
934
|
+
default?: string;
|
|
935
|
+
}) | ({
|
|
936
|
+
/** @enum {string} */
|
|
937
|
+
type: 'array';
|
|
938
|
+
title?: string;
|
|
939
|
+
description?: string;
|
|
940
|
+
minItems?: number;
|
|
941
|
+
maxItems?: number;
|
|
942
|
+
items: {
|
|
943
|
+
/** @enum {string} */
|
|
944
|
+
type: 'string';
|
|
945
|
+
enum: string[];
|
|
946
|
+
};
|
|
947
|
+
default?: string[];
|
|
948
|
+
} | {
|
|
949
|
+
/** @enum {string} */
|
|
950
|
+
type: 'array';
|
|
951
|
+
title?: string;
|
|
952
|
+
description?: string;
|
|
953
|
+
minItems?: number;
|
|
954
|
+
maxItems?: number;
|
|
955
|
+
items: {
|
|
956
|
+
anyOf: {
|
|
957
|
+
const: string;
|
|
958
|
+
title: string;
|
|
959
|
+
}[];
|
|
960
|
+
};
|
|
961
|
+
default?: string[];
|
|
962
|
+
})) | {
|
|
963
|
+
/** @enum {string} */
|
|
964
|
+
type: 'boolean';
|
|
965
|
+
title?: string;
|
|
966
|
+
description?: string;
|
|
967
|
+
default?: boolean;
|
|
968
|
+
} | {
|
|
969
|
+
/** @enum {string} */
|
|
970
|
+
type: 'string';
|
|
971
|
+
title?: string;
|
|
972
|
+
description?: string;
|
|
973
|
+
minLength?: number;
|
|
974
|
+
maxLength?: number;
|
|
975
|
+
/** @enum {string} */
|
|
976
|
+
format?: 'email' | 'uri' | 'date' | 'date-time';
|
|
977
|
+
default?: string;
|
|
978
|
+
} | {
|
|
979
|
+
/** @enum {string} */
|
|
980
|
+
type: 'number' | 'integer';
|
|
981
|
+
title?: string;
|
|
982
|
+
description?: string;
|
|
983
|
+
minimum?: number;
|
|
984
|
+
maximum?: number;
|
|
985
|
+
default?: number;
|
|
986
|
+
};
|
|
987
|
+
};
|
|
988
|
+
required?: string[];
|
|
989
|
+
};
|
|
990
|
+
};
|
|
991
|
+
}[];
|
|
746
992
|
};
|
|
747
993
|
};
|
|
748
994
|
/** @description Internal Server Error */
|
|
@@ -764,7 +1010,7 @@ export interface paths {
|
|
|
764
1010
|
patch?: never;
|
|
765
1011
|
trace?: never;
|
|
766
1012
|
};
|
|
767
|
-
'/backend/widget/v5/
|
|
1013
|
+
'/backend/widget/v5/connections/elicitation/{sessionId}/{requestId}': {
|
|
768
1014
|
parameters: {
|
|
769
1015
|
query?: never;
|
|
770
1016
|
header?: never;
|
|
@@ -779,9 +1025,76 @@ export interface paths {
|
|
|
779
1025
|
header?: never;
|
|
780
1026
|
path: {
|
|
781
1027
|
sessionId: string;
|
|
1028
|
+
requestId: string;
|
|
782
1029
|
};
|
|
783
1030
|
cookie?: never;
|
|
784
1031
|
};
|
|
1032
|
+
requestBody: {
|
|
1033
|
+
content: {
|
|
1034
|
+
'application/json': {
|
|
1035
|
+
_meta?: {
|
|
1036
|
+
progressToken?: string | number;
|
|
1037
|
+
'io.modelcontextprotocol/related-task'?: {
|
|
1038
|
+
taskId: string;
|
|
1039
|
+
};
|
|
1040
|
+
} & {
|
|
1041
|
+
[key: string]: unknown;
|
|
1042
|
+
};
|
|
1043
|
+
/** @enum {string} */
|
|
1044
|
+
action: 'accept' | 'decline' | 'cancel';
|
|
1045
|
+
content: {
|
|
1046
|
+
[key: string]: string | number | boolean | string[];
|
|
1047
|
+
};
|
|
1048
|
+
remember?: boolean;
|
|
1049
|
+
} & {
|
|
1050
|
+
[key: string]: unknown;
|
|
1051
|
+
};
|
|
1052
|
+
};
|
|
1053
|
+
};
|
|
1054
|
+
responses: {
|
|
1055
|
+
/** @description Default Response */
|
|
1056
|
+
201: {
|
|
1057
|
+
headers: {
|
|
1058
|
+
[name: string]: unknown;
|
|
1059
|
+
};
|
|
1060
|
+
content: {
|
|
1061
|
+
'application/json': {
|
|
1062
|
+
/** @enum {boolean} */
|
|
1063
|
+
received: true;
|
|
1064
|
+
};
|
|
1065
|
+
};
|
|
1066
|
+
};
|
|
1067
|
+
/** @description Internal Server Error */
|
|
1068
|
+
500: {
|
|
1069
|
+
headers: {
|
|
1070
|
+
[name: string]: unknown;
|
|
1071
|
+
};
|
|
1072
|
+
content: {
|
|
1073
|
+
'application/json': components['schemas']['ErrorDto'];
|
|
1074
|
+
};
|
|
1075
|
+
};
|
|
1076
|
+
};
|
|
1077
|
+
};
|
|
1078
|
+
delete?: never;
|
|
1079
|
+
options?: never;
|
|
1080
|
+
head?: never;
|
|
1081
|
+
patch?: never;
|
|
1082
|
+
trace?: never;
|
|
1083
|
+
};
|
|
1084
|
+
'/backend/widget/v5/connections': {
|
|
1085
|
+
parameters: {
|
|
1086
|
+
query?: never;
|
|
1087
|
+
header?: never;
|
|
1088
|
+
path?: never;
|
|
1089
|
+
cookie?: never;
|
|
1090
|
+
};
|
|
1091
|
+
get: {
|
|
1092
|
+
parameters: {
|
|
1093
|
+
query?: never;
|
|
1094
|
+
header?: never;
|
|
1095
|
+
path?: never;
|
|
1096
|
+
cookie?: never;
|
|
1097
|
+
};
|
|
785
1098
|
requestBody?: never;
|
|
786
1099
|
responses: {
|
|
787
1100
|
/** @description Default Response */
|
|
@@ -789,7 +1102,81 @@ export interface paths {
|
|
|
789
1102
|
headers: {
|
|
790
1103
|
[name: string]: unknown;
|
|
791
1104
|
};
|
|
792
|
-
content
|
|
1105
|
+
content: {
|
|
1106
|
+
'application/json': {
|
|
1107
|
+
/** Format: uuid */
|
|
1108
|
+
server_id: string;
|
|
1109
|
+
name: string;
|
|
1110
|
+
/** @enum {string} */
|
|
1111
|
+
status: 'not_connected' | 'connected' | 'reconnect_required';
|
|
1112
|
+
}[];
|
|
1113
|
+
};
|
|
1114
|
+
};
|
|
1115
|
+
/** @description Internal Server Error */
|
|
1116
|
+
500: {
|
|
1117
|
+
headers: {
|
|
1118
|
+
[name: string]: unknown;
|
|
1119
|
+
};
|
|
1120
|
+
content: {
|
|
1121
|
+
'application/json': components['schemas']['ErrorDto'];
|
|
1122
|
+
};
|
|
1123
|
+
};
|
|
1124
|
+
};
|
|
1125
|
+
};
|
|
1126
|
+
put?: never;
|
|
1127
|
+
post?: never;
|
|
1128
|
+
delete?: never;
|
|
1129
|
+
options?: never;
|
|
1130
|
+
head?: never;
|
|
1131
|
+
patch?: never;
|
|
1132
|
+
trace?: never;
|
|
1133
|
+
};
|
|
1134
|
+
'/backend/widget/v5/connections/{serverId}/start': {
|
|
1135
|
+
parameters: {
|
|
1136
|
+
query?: never;
|
|
1137
|
+
header?: never;
|
|
1138
|
+
path?: never;
|
|
1139
|
+
cookie?: never;
|
|
1140
|
+
};
|
|
1141
|
+
get?: never;
|
|
1142
|
+
put?: never;
|
|
1143
|
+
post: {
|
|
1144
|
+
parameters: {
|
|
1145
|
+
query?: never;
|
|
1146
|
+
header?: never;
|
|
1147
|
+
path: {
|
|
1148
|
+
serverId: string;
|
|
1149
|
+
};
|
|
1150
|
+
cookie?: never;
|
|
1151
|
+
};
|
|
1152
|
+
requestBody: {
|
|
1153
|
+
content: {
|
|
1154
|
+
'application/json': {
|
|
1155
|
+
/** Format: uuid */
|
|
1156
|
+
request_id?: string;
|
|
1157
|
+
};
|
|
1158
|
+
};
|
|
1159
|
+
};
|
|
1160
|
+
responses: {
|
|
1161
|
+
/** @description Default Response */
|
|
1162
|
+
201: {
|
|
1163
|
+
headers: {
|
|
1164
|
+
[name: string]: unknown;
|
|
1165
|
+
};
|
|
1166
|
+
content: {
|
|
1167
|
+
'application/json': {
|
|
1168
|
+
/** Format: uri */
|
|
1169
|
+
authorization_url: string;
|
|
1170
|
+
/** @enum {string} */
|
|
1171
|
+
completion: 'oauth';
|
|
1172
|
+
attempt_id: string;
|
|
1173
|
+
} | {
|
|
1174
|
+
/** Format: uri */
|
|
1175
|
+
authorization_url: string;
|
|
1176
|
+
/** @enum {string} */
|
|
1177
|
+
completion: 'external';
|
|
1178
|
+
};
|
|
1179
|
+
};
|
|
793
1180
|
};
|
|
794
1181
|
/** @description Internal Server Error */
|
|
795
1182
|
500: {
|
|
@@ -808,6 +1195,100 @@ export interface paths {
|
|
|
808
1195
|
patch?: never;
|
|
809
1196
|
trace?: never;
|
|
810
1197
|
};
|
|
1198
|
+
'/backend/widget/v5/connections/{serverId}/attempts/{attemptId}': {
|
|
1199
|
+
parameters: {
|
|
1200
|
+
query?: never;
|
|
1201
|
+
header?: never;
|
|
1202
|
+
path?: never;
|
|
1203
|
+
cookie?: never;
|
|
1204
|
+
};
|
|
1205
|
+
get: {
|
|
1206
|
+
parameters: {
|
|
1207
|
+
query?: never;
|
|
1208
|
+
header?: never;
|
|
1209
|
+
path: {
|
|
1210
|
+
serverId: string;
|
|
1211
|
+
attemptId: string;
|
|
1212
|
+
};
|
|
1213
|
+
cookie?: never;
|
|
1214
|
+
};
|
|
1215
|
+
requestBody?: never;
|
|
1216
|
+
responses: {
|
|
1217
|
+
/** @description Default Response */
|
|
1218
|
+
200: {
|
|
1219
|
+
headers: {
|
|
1220
|
+
[name: string]: unknown;
|
|
1221
|
+
};
|
|
1222
|
+
content: {
|
|
1223
|
+
'application/json': {
|
|
1224
|
+
/** @enum {string} */
|
|
1225
|
+
status: 'pending' | 'connected' | 'canceled' | 'failed' | 'expired';
|
|
1226
|
+
};
|
|
1227
|
+
};
|
|
1228
|
+
};
|
|
1229
|
+
/** @description Internal Server Error */
|
|
1230
|
+
500: {
|
|
1231
|
+
headers: {
|
|
1232
|
+
[name: string]: unknown;
|
|
1233
|
+
};
|
|
1234
|
+
content: {
|
|
1235
|
+
'application/json': components['schemas']['ErrorDto'];
|
|
1236
|
+
};
|
|
1237
|
+
};
|
|
1238
|
+
};
|
|
1239
|
+
};
|
|
1240
|
+
put?: never;
|
|
1241
|
+
post?: never;
|
|
1242
|
+
delete?: never;
|
|
1243
|
+
options?: never;
|
|
1244
|
+
head?: never;
|
|
1245
|
+
patch?: never;
|
|
1246
|
+
trace?: never;
|
|
1247
|
+
};
|
|
1248
|
+
'/backend/widget/v5/connections/{serverId}': {
|
|
1249
|
+
parameters: {
|
|
1250
|
+
query?: never;
|
|
1251
|
+
header?: never;
|
|
1252
|
+
path?: never;
|
|
1253
|
+
cookie?: never;
|
|
1254
|
+
};
|
|
1255
|
+
get?: never;
|
|
1256
|
+
put?: never;
|
|
1257
|
+
post?: never;
|
|
1258
|
+
delete: {
|
|
1259
|
+
parameters: {
|
|
1260
|
+
query?: never;
|
|
1261
|
+
header?: never;
|
|
1262
|
+
path: {
|
|
1263
|
+
serverId: string;
|
|
1264
|
+
};
|
|
1265
|
+
cookie?: never;
|
|
1266
|
+
};
|
|
1267
|
+
requestBody?: never;
|
|
1268
|
+
responses: {
|
|
1269
|
+
/** @description Default Response */
|
|
1270
|
+
204: {
|
|
1271
|
+
headers: {
|
|
1272
|
+
[name: string]: unknown;
|
|
1273
|
+
};
|
|
1274
|
+
content?: never;
|
|
1275
|
+
};
|
|
1276
|
+
/** @description Internal Server Error */
|
|
1277
|
+
500: {
|
|
1278
|
+
headers: {
|
|
1279
|
+
[name: string]: unknown;
|
|
1280
|
+
};
|
|
1281
|
+
content: {
|
|
1282
|
+
'application/json': components['schemas']['ErrorDto'];
|
|
1283
|
+
};
|
|
1284
|
+
};
|
|
1285
|
+
};
|
|
1286
|
+
};
|
|
1287
|
+
options?: never;
|
|
1288
|
+
head?: never;
|
|
1289
|
+
patch?: never;
|
|
1290
|
+
trace?: never;
|
|
1291
|
+
};
|
|
811
1292
|
'/backend/widget/v5/dictation/sessions': {
|
|
812
1293
|
parameters: {
|
|
813
1294
|
query?: never;
|
|
@@ -872,16 +1353,18 @@ export interface components {
|
|
|
872
1353
|
type: string;
|
|
873
1354
|
url: string;
|
|
874
1355
|
openai_file_id?: string;
|
|
1356
|
+
email_inline?: boolean;
|
|
1357
|
+
content_id?: string;
|
|
875
1358
|
};
|
|
876
|
-
FileUploadDto: {
|
|
877
|
-
/** Format: binary */
|
|
878
|
-
file: string;
|
|
879
|
-
} | null;
|
|
880
1359
|
WidgetPresentationOverrideDto: {
|
|
881
1360
|
/** @enum {string} */
|
|
882
1361
|
toolActivity?: 'hidden' | 'status' | 'details';
|
|
883
1362
|
reasoning?: boolean;
|
|
884
1363
|
};
|
|
1364
|
+
FileUploadDto: {
|
|
1365
|
+
/** Format: binary */
|
|
1366
|
+
file: string;
|
|
1367
|
+
} | null;
|
|
885
1368
|
CreateWidgetSessionDto: {
|
|
886
1369
|
customData?: {
|
|
887
1370
|
[key: string]: string | number | boolean;
|
|
@@ -914,6 +1397,7 @@ export interface components {
|
|
|
914
1397
|
presentation?: components['schemas']['WidgetPresentationOverrideDto'];
|
|
915
1398
|
/** @description What the receiving client can render. Set structured_questions to true only when it renders selectable questions from the streaming response. Missing or false disables the structured question tool; this never enables an organization feature. */
|
|
916
1399
|
capabilities?: {
|
|
1400
|
+
connections?: boolean;
|
|
917
1401
|
structured_questions?: boolean;
|
|
918
1402
|
rich_replies?: boolean;
|
|
919
1403
|
page_effects?: boolean;
|
|
@@ -960,25 +1444,6 @@ export interface components {
|
|
|
960
1444
|
[key: string]: string | number | boolean;
|
|
961
1445
|
} | null;
|
|
962
1446
|
};
|
|
963
|
-
WidgetActionFormSubmissionInputDto: {
|
|
964
|
-
sessionId: string;
|
|
965
|
-
formMessageId: string;
|
|
966
|
-
actionId: string;
|
|
967
|
-
request: {
|
|
968
|
-
queryParams?: {
|
|
969
|
-
[key: string]: string;
|
|
970
|
-
};
|
|
971
|
-
pathParams?: {
|
|
972
|
-
[key: string]: string;
|
|
973
|
-
};
|
|
974
|
-
bodyParams?: {
|
|
975
|
-
[key: string]: unknown;
|
|
976
|
-
};
|
|
977
|
-
headers?: {
|
|
978
|
-
[key: string]: string;
|
|
979
|
-
};
|
|
980
|
-
};
|
|
981
|
-
};
|
|
982
1447
|
WidgetSubmitCsatInputDto: {
|
|
983
1448
|
session_id: string;
|
|
984
1449
|
score: number;
|
|
@@ -1217,11 +1682,6 @@ export interface components {
|
|
|
1217
1682
|
WidgetCreateStateCheckpointOutputDto: {
|
|
1218
1683
|
success: boolean;
|
|
1219
1684
|
};
|
|
1220
|
-
WidgetActionFormSubmissionOutputDto: {
|
|
1221
|
-
action: {
|
|
1222
|
-
response: unknown;
|
|
1223
|
-
};
|
|
1224
|
-
};
|
|
1225
1685
|
WidgetSubmitCsatOutputDto: {
|
|
1226
1686
|
success: boolean;
|
|
1227
1687
|
/**
|
|
@@ -1239,6 +1699,7 @@ export interface components {
|
|
|
1239
1699
|
fileUrl: string;
|
|
1240
1700
|
};
|
|
1241
1701
|
WidgetAgentTurnMessagesDto: {
|
|
1702
|
+
handled_connection_request_ids: string[];
|
|
1242
1703
|
turns: {
|
|
1243
1704
|
/** Format: uuid */
|
|
1244
1705
|
turn_id: string;
|