@opencx/widget-core 5.0.0-beta.1 → 5.0.0-beta.10
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 +9 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1608 -901
- package/dist/index.js.map +1 -1
- package/dist/src/api/api-caller.d.ts +102 -3
- 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 +596 -41
- package/dist/src/api/schema.d.ts.map +1 -1
- package/dist/src/context/active-session-polling.ctx.d.ts +11 -1
- package/dist/src/context/active-session-polling.ctx.d.ts.map +1 -1
- package/dist/src/context/message.ctx.d.ts +25 -6
- package/dist/src/context/message.ctx.d.ts.map +1 -1
- package/dist/src/context/resolve-client-presentation.d.ts +5 -0
- package/dist/src/context/resolve-client-presentation.d.ts.map +1 -0
- package/dist/src/context/router.ctx.d.ts +8 -10
- package/dist/src/context/router.ctx.d.ts.map +1 -1
- package/dist/src/context/session.ctx.d.ts +18 -1
- package/dist/src/context/session.ctx.d.ts.map +1 -1
- package/dist/src/context/upload.ctx.d.ts +23 -0
- package/dist/src/context/upload.ctx.d.ts.map +1 -0
- package/dist/src/context/widget-agent.d.ts +4 -4
- package/dist/src/context/widget-agent.d.ts.map +1 -1
- package/dist/src/context/widget.ctx.d.ts +19 -6
- package/dist/src/context/widget.ctx.d.ts.map +1 -1
- package/dist/src/index.d.ts +5 -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 +24 -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 +14 -1
- package/dist/src/types/messages.d.ts.map +1 -1
- package/dist/src/types/widget-config.d.ts +29 -6
- package/dist/src/types/widget-config.d.ts.map +1 -1
- package/package.json +6 -5
- 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/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/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 -448
- 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,18 +592,61 @@ 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: {
|
|
599
599
|
/** @description Default Response */
|
|
600
600
|
200: {
|
|
601
|
+
headers: {
|
|
602
|
+
[name: string]: unknown;
|
|
603
|
+
};
|
|
604
|
+
content?: never;
|
|
605
|
+
};
|
|
606
|
+
/** @description Internal Server Error */
|
|
607
|
+
500: {
|
|
601
608
|
headers: {
|
|
602
609
|
[name: string]: unknown;
|
|
603
610
|
};
|
|
604
611
|
content: {
|
|
605
|
-
'application/json': components['schemas']['
|
|
612
|
+
'application/json': components['schemas']['ErrorDto'];
|
|
613
|
+
};
|
|
614
|
+
};
|
|
615
|
+
};
|
|
616
|
+
};
|
|
617
|
+
delete?: never;
|
|
618
|
+
options?: never;
|
|
619
|
+
head?: never;
|
|
620
|
+
patch?: never;
|
|
621
|
+
trace?: never;
|
|
622
|
+
};
|
|
623
|
+
'/backend/widget/v5/chat/{sessionId}/stream': {
|
|
624
|
+
parameters: {
|
|
625
|
+
query?: never;
|
|
626
|
+
header?: never;
|
|
627
|
+
path?: never;
|
|
628
|
+
cookie?: never;
|
|
629
|
+
};
|
|
630
|
+
get: {
|
|
631
|
+
parameters: {
|
|
632
|
+
query?: {
|
|
633
|
+
toolActivity?: 'hidden' | 'status' | 'details';
|
|
634
|
+
reasoning?: 'true' | 'false';
|
|
635
|
+
};
|
|
636
|
+
header?: never;
|
|
637
|
+
path: {
|
|
638
|
+
sessionId: string;
|
|
639
|
+
};
|
|
640
|
+
cookie?: never;
|
|
641
|
+
};
|
|
642
|
+
requestBody?: never;
|
|
643
|
+
responses: {
|
|
644
|
+
/** @description Default Response */
|
|
645
|
+
200: {
|
|
646
|
+
headers: {
|
|
647
|
+
[name: string]: unknown;
|
|
606
648
|
};
|
|
649
|
+
content?: never;
|
|
607
650
|
};
|
|
608
651
|
/** @description Internal Server Error */
|
|
609
652
|
500: {
|
|
@@ -616,13 +659,64 @@ export interface paths {
|
|
|
616
659
|
};
|
|
617
660
|
};
|
|
618
661
|
};
|
|
662
|
+
put?: never;
|
|
663
|
+
post?: never;
|
|
619
664
|
delete?: never;
|
|
620
665
|
options?: never;
|
|
621
666
|
head?: never;
|
|
622
667
|
patch?: never;
|
|
623
668
|
trace?: never;
|
|
624
669
|
};
|
|
625
|
-
'/backend/widget/v5/chat/
|
|
670
|
+
'/backend/widget/v5/chat/{sessionId}/messages': {
|
|
671
|
+
parameters: {
|
|
672
|
+
query?: never;
|
|
673
|
+
header?: never;
|
|
674
|
+
path?: never;
|
|
675
|
+
cookie?: never;
|
|
676
|
+
};
|
|
677
|
+
get: {
|
|
678
|
+
parameters: {
|
|
679
|
+
query?: {
|
|
680
|
+
toolActivity?: 'hidden' | 'status' | 'details';
|
|
681
|
+
reasoning?: 'true' | 'false';
|
|
682
|
+
};
|
|
683
|
+
header?: never;
|
|
684
|
+
path: {
|
|
685
|
+
sessionId: string;
|
|
686
|
+
};
|
|
687
|
+
cookie?: never;
|
|
688
|
+
};
|
|
689
|
+
requestBody?: never;
|
|
690
|
+
responses: {
|
|
691
|
+
/** @description Default Response */
|
|
692
|
+
200: {
|
|
693
|
+
headers: {
|
|
694
|
+
[name: string]: unknown;
|
|
695
|
+
};
|
|
696
|
+
content: {
|
|
697
|
+
'application/json': components['schemas']['WidgetAgentTurnMessagesDto'];
|
|
698
|
+
};
|
|
699
|
+
};
|
|
700
|
+
/** @description Internal Server Error */
|
|
701
|
+
500: {
|
|
702
|
+
headers: {
|
|
703
|
+
[name: string]: unknown;
|
|
704
|
+
};
|
|
705
|
+
content: {
|
|
706
|
+
'application/json': components['schemas']['ErrorDto'];
|
|
707
|
+
};
|
|
708
|
+
};
|
|
709
|
+
};
|
|
710
|
+
};
|
|
711
|
+
put?: never;
|
|
712
|
+
post?: never;
|
|
713
|
+
delete?: never;
|
|
714
|
+
options?: never;
|
|
715
|
+
head?: never;
|
|
716
|
+
patch?: never;
|
|
717
|
+
trace?: never;
|
|
718
|
+
};
|
|
719
|
+
'/backend/widget/v5/chat/{sessionId}/stop': {
|
|
626
720
|
parameters: {
|
|
627
721
|
query?: never;
|
|
628
722
|
header?: never;
|
|
@@ -635,12 +729,69 @@ export interface paths {
|
|
|
635
729
|
parameters: {
|
|
636
730
|
query?: never;
|
|
637
731
|
header?: never;
|
|
638
|
-
path
|
|
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/chat/{sessionId}/page-reply': {
|
|
764
|
+
parameters: {
|
|
765
|
+
query?: never;
|
|
766
|
+
header?: never;
|
|
767
|
+
path?: never;
|
|
768
|
+
cookie?: never;
|
|
769
|
+
};
|
|
770
|
+
get?: never;
|
|
771
|
+
put?: never;
|
|
772
|
+
post: {
|
|
773
|
+
parameters: {
|
|
774
|
+
query?: never;
|
|
775
|
+
header?: never;
|
|
776
|
+
path: {
|
|
777
|
+
sessionId: string;
|
|
778
|
+
};
|
|
639
779
|
cookie?: never;
|
|
640
780
|
};
|
|
641
781
|
requestBody: {
|
|
642
782
|
content: {
|
|
643
|
-
'application/json':
|
|
783
|
+
'application/json': {
|
|
784
|
+
callId: string;
|
|
785
|
+
outcome: 'done' | 'covered' | 'gone' | 'hidden' | 'unsupported' | 'no_change' | 'declined';
|
|
786
|
+
detail?: string;
|
|
787
|
+
controls?: {
|
|
788
|
+
ref: string;
|
|
789
|
+
role: string;
|
|
790
|
+
name: string;
|
|
791
|
+
disabled?: boolean;
|
|
792
|
+
}[];
|
|
793
|
+
truncated?: boolean;
|
|
794
|
+
};
|
|
644
795
|
};
|
|
645
796
|
};
|
|
646
797
|
responses: {
|
|
@@ -668,7 +819,102 @@ export interface paths {
|
|
|
668
819
|
patch?: never;
|
|
669
820
|
trace?: never;
|
|
670
821
|
};
|
|
671
|
-
'/backend/widget/v5/
|
|
822
|
+
'/backend/widget/v5/connections/approval-preferences': {
|
|
823
|
+
parameters: {
|
|
824
|
+
query?: never;
|
|
825
|
+
header?: never;
|
|
826
|
+
path?: never;
|
|
827
|
+
cookie?: never;
|
|
828
|
+
};
|
|
829
|
+
get: {
|
|
830
|
+
parameters: {
|
|
831
|
+
query?: never;
|
|
832
|
+
header?: never;
|
|
833
|
+
path?: never;
|
|
834
|
+
cookie?: never;
|
|
835
|
+
};
|
|
836
|
+
requestBody?: never;
|
|
837
|
+
responses: {
|
|
838
|
+
/** @description Default Response */
|
|
839
|
+
200: {
|
|
840
|
+
headers: {
|
|
841
|
+
[name: string]: unknown;
|
|
842
|
+
};
|
|
843
|
+
content: {
|
|
844
|
+
'application/json': {
|
|
845
|
+
key: string;
|
|
846
|
+
message: string;
|
|
847
|
+
toolName: string;
|
|
848
|
+
serverId: string;
|
|
849
|
+
serverName: string;
|
|
850
|
+
}[];
|
|
851
|
+
};
|
|
852
|
+
};
|
|
853
|
+
/** @description Internal Server Error */
|
|
854
|
+
500: {
|
|
855
|
+
headers: {
|
|
856
|
+
[name: string]: unknown;
|
|
857
|
+
};
|
|
858
|
+
content: {
|
|
859
|
+
'application/json': components['schemas']['ErrorDto'];
|
|
860
|
+
};
|
|
861
|
+
};
|
|
862
|
+
};
|
|
863
|
+
};
|
|
864
|
+
put?: never;
|
|
865
|
+
post?: never;
|
|
866
|
+
delete?: never;
|
|
867
|
+
options?: never;
|
|
868
|
+
head?: never;
|
|
869
|
+
patch?: never;
|
|
870
|
+
trace?: never;
|
|
871
|
+
};
|
|
872
|
+
'/backend/widget/v5/connections/{serverId}/approval-preferences/{key}': {
|
|
873
|
+
parameters: {
|
|
874
|
+
query?: never;
|
|
875
|
+
header?: never;
|
|
876
|
+
path?: never;
|
|
877
|
+
cookie?: never;
|
|
878
|
+
};
|
|
879
|
+
get?: never;
|
|
880
|
+
put?: never;
|
|
881
|
+
post?: never;
|
|
882
|
+
delete: {
|
|
883
|
+
parameters: {
|
|
884
|
+
query?: never;
|
|
885
|
+
header?: never;
|
|
886
|
+
path: {
|
|
887
|
+
serverId: string;
|
|
888
|
+
key: string;
|
|
889
|
+
};
|
|
890
|
+
cookie?: never;
|
|
891
|
+
};
|
|
892
|
+
requestBody?: never;
|
|
893
|
+
responses: {
|
|
894
|
+
/** @description Default Response */
|
|
895
|
+
204: {
|
|
896
|
+
headers: {
|
|
897
|
+
[name: string]: unknown;
|
|
898
|
+
};
|
|
899
|
+
content?: never;
|
|
900
|
+
};
|
|
901
|
+
/** @description Internal Server Error */
|
|
902
|
+
500: {
|
|
903
|
+
headers: {
|
|
904
|
+
[name: string]: unknown;
|
|
905
|
+
};
|
|
906
|
+
content: {
|
|
907
|
+
'application/json': components['schemas']['ErrorDto'];
|
|
908
|
+
};
|
|
909
|
+
};
|
|
910
|
+
};
|
|
911
|
+
};
|
|
912
|
+
options?: never;
|
|
913
|
+
head?: never;
|
|
914
|
+
patch?: never;
|
|
915
|
+
trace?: never;
|
|
916
|
+
};
|
|
917
|
+
'/backend/widget/v5/connections/elicitation/{sessionId}': {
|
|
672
918
|
parameters: {
|
|
673
919
|
query?: never;
|
|
674
920
|
header?: never;
|
|
@@ -691,7 +937,118 @@ export interface paths {
|
|
|
691
937
|
headers: {
|
|
692
938
|
[name: string]: unknown;
|
|
693
939
|
};
|
|
694
|
-
content
|
|
940
|
+
content: {
|
|
941
|
+
'application/json': {
|
|
942
|
+
/** Format: uuid */
|
|
943
|
+
id: string;
|
|
944
|
+
/** Format: uuid */
|
|
945
|
+
serverId: string;
|
|
946
|
+
serverName: string;
|
|
947
|
+
expiresAt: number;
|
|
948
|
+
approvalKey?: string;
|
|
949
|
+
toolName?: string;
|
|
950
|
+
form: {
|
|
951
|
+
_meta?: {
|
|
952
|
+
progressToken?: string | number;
|
|
953
|
+
'io.modelcontextprotocol/related-task'?: {
|
|
954
|
+
taskId: string;
|
|
955
|
+
};
|
|
956
|
+
} & {
|
|
957
|
+
[key: string]: unknown;
|
|
958
|
+
};
|
|
959
|
+
task?: {
|
|
960
|
+
ttl?: number;
|
|
961
|
+
};
|
|
962
|
+
/** @enum {string} */
|
|
963
|
+
mode?: 'form';
|
|
964
|
+
message: string;
|
|
965
|
+
requestedSchema: {
|
|
966
|
+
/** @enum {string} */
|
|
967
|
+
type: 'object';
|
|
968
|
+
properties: {
|
|
969
|
+
[key: string]: ({
|
|
970
|
+
/** @enum {string} */
|
|
971
|
+
type: 'string';
|
|
972
|
+
title?: string;
|
|
973
|
+
description?: string;
|
|
974
|
+
enum: string[];
|
|
975
|
+
enumNames?: string[];
|
|
976
|
+
default?: string;
|
|
977
|
+
} | ({
|
|
978
|
+
/** @enum {string} */
|
|
979
|
+
type: 'string';
|
|
980
|
+
title?: string;
|
|
981
|
+
description?: string;
|
|
982
|
+
enum: string[];
|
|
983
|
+
default?: string;
|
|
984
|
+
} | {
|
|
985
|
+
/** @enum {string} */
|
|
986
|
+
type: 'string';
|
|
987
|
+
title?: string;
|
|
988
|
+
description?: string;
|
|
989
|
+
oneOf: {
|
|
990
|
+
const: string;
|
|
991
|
+
title: string;
|
|
992
|
+
}[];
|
|
993
|
+
default?: string;
|
|
994
|
+
}) | ({
|
|
995
|
+
/** @enum {string} */
|
|
996
|
+
type: 'array';
|
|
997
|
+
title?: string;
|
|
998
|
+
description?: string;
|
|
999
|
+
minItems?: number;
|
|
1000
|
+
maxItems?: number;
|
|
1001
|
+
items: {
|
|
1002
|
+
/** @enum {string} */
|
|
1003
|
+
type: 'string';
|
|
1004
|
+
enum: string[];
|
|
1005
|
+
};
|
|
1006
|
+
default?: string[];
|
|
1007
|
+
} | {
|
|
1008
|
+
/** @enum {string} */
|
|
1009
|
+
type: 'array';
|
|
1010
|
+
title?: string;
|
|
1011
|
+
description?: string;
|
|
1012
|
+
minItems?: number;
|
|
1013
|
+
maxItems?: number;
|
|
1014
|
+
items: {
|
|
1015
|
+
anyOf: {
|
|
1016
|
+
const: string;
|
|
1017
|
+
title: string;
|
|
1018
|
+
}[];
|
|
1019
|
+
};
|
|
1020
|
+
default?: string[];
|
|
1021
|
+
})) | {
|
|
1022
|
+
/** @enum {string} */
|
|
1023
|
+
type: 'boolean';
|
|
1024
|
+
title?: string;
|
|
1025
|
+
description?: string;
|
|
1026
|
+
default?: boolean;
|
|
1027
|
+
} | {
|
|
1028
|
+
/** @enum {string} */
|
|
1029
|
+
type: 'string';
|
|
1030
|
+
title?: string;
|
|
1031
|
+
description?: string;
|
|
1032
|
+
minLength?: number;
|
|
1033
|
+
maxLength?: number;
|
|
1034
|
+
/** @enum {string} */
|
|
1035
|
+
format?: 'email' | 'uri' | 'date' | 'date-time';
|
|
1036
|
+
default?: string;
|
|
1037
|
+
} | {
|
|
1038
|
+
/** @enum {string} */
|
|
1039
|
+
type: 'number' | 'integer';
|
|
1040
|
+
title?: string;
|
|
1041
|
+
description?: string;
|
|
1042
|
+
minimum?: number;
|
|
1043
|
+
maximum?: number;
|
|
1044
|
+
default?: number;
|
|
1045
|
+
};
|
|
1046
|
+
};
|
|
1047
|
+
required?: string[];
|
|
1048
|
+
};
|
|
1049
|
+
};
|
|
1050
|
+
}[];
|
|
1051
|
+
};
|
|
695
1052
|
};
|
|
696
1053
|
/** @description Internal Server Error */
|
|
697
1054
|
500: {
|
|
@@ -712,20 +1069,89 @@ export interface paths {
|
|
|
712
1069
|
patch?: never;
|
|
713
1070
|
trace?: never;
|
|
714
1071
|
};
|
|
715
|
-
'/backend/widget/v5/
|
|
1072
|
+
'/backend/widget/v5/connections/elicitation/{sessionId}/{requestId}': {
|
|
716
1073
|
parameters: {
|
|
717
1074
|
query?: never;
|
|
718
1075
|
header?: never;
|
|
719
1076
|
path?: never;
|
|
720
1077
|
cookie?: never;
|
|
721
1078
|
};
|
|
722
|
-
get
|
|
1079
|
+
get?: never;
|
|
1080
|
+
put?: never;
|
|
1081
|
+
post: {
|
|
723
1082
|
parameters: {
|
|
724
1083
|
query?: never;
|
|
725
1084
|
header?: never;
|
|
726
1085
|
path: {
|
|
727
1086
|
sessionId: string;
|
|
1087
|
+
requestId: string;
|
|
1088
|
+
};
|
|
1089
|
+
cookie?: never;
|
|
1090
|
+
};
|
|
1091
|
+
requestBody: {
|
|
1092
|
+
content: {
|
|
1093
|
+
'application/json': {
|
|
1094
|
+
_meta?: {
|
|
1095
|
+
progressToken?: string | number;
|
|
1096
|
+
'io.modelcontextprotocol/related-task'?: {
|
|
1097
|
+
taskId: string;
|
|
1098
|
+
};
|
|
1099
|
+
} & {
|
|
1100
|
+
[key: string]: unknown;
|
|
1101
|
+
};
|
|
1102
|
+
/** @enum {string} */
|
|
1103
|
+
action: 'accept' | 'decline' | 'cancel';
|
|
1104
|
+
content: {
|
|
1105
|
+
[key: string]: string | number | boolean | string[];
|
|
1106
|
+
};
|
|
1107
|
+
remember?: boolean;
|
|
1108
|
+
} & {
|
|
1109
|
+
[key: string]: unknown;
|
|
1110
|
+
};
|
|
1111
|
+
};
|
|
1112
|
+
};
|
|
1113
|
+
responses: {
|
|
1114
|
+
/** @description Default Response */
|
|
1115
|
+
201: {
|
|
1116
|
+
headers: {
|
|
1117
|
+
[name: string]: unknown;
|
|
1118
|
+
};
|
|
1119
|
+
content: {
|
|
1120
|
+
'application/json': {
|
|
1121
|
+
/** @enum {boolean} */
|
|
1122
|
+
received: true;
|
|
1123
|
+
};
|
|
1124
|
+
};
|
|
728
1125
|
};
|
|
1126
|
+
/** @description Internal Server Error */
|
|
1127
|
+
500: {
|
|
1128
|
+
headers: {
|
|
1129
|
+
[name: string]: unknown;
|
|
1130
|
+
};
|
|
1131
|
+
content: {
|
|
1132
|
+
'application/json': components['schemas']['ErrorDto'];
|
|
1133
|
+
};
|
|
1134
|
+
};
|
|
1135
|
+
};
|
|
1136
|
+
};
|
|
1137
|
+
delete?: never;
|
|
1138
|
+
options?: never;
|
|
1139
|
+
head?: never;
|
|
1140
|
+
patch?: never;
|
|
1141
|
+
trace?: never;
|
|
1142
|
+
};
|
|
1143
|
+
'/backend/widget/v5/connections': {
|
|
1144
|
+
parameters: {
|
|
1145
|
+
query?: never;
|
|
1146
|
+
header?: never;
|
|
1147
|
+
path?: never;
|
|
1148
|
+
cookie?: never;
|
|
1149
|
+
};
|
|
1150
|
+
get: {
|
|
1151
|
+
parameters: {
|
|
1152
|
+
query?: never;
|
|
1153
|
+
header?: never;
|
|
1154
|
+
path?: never;
|
|
729
1155
|
cookie?: never;
|
|
730
1156
|
};
|
|
731
1157
|
requestBody?: never;
|
|
@@ -736,7 +1162,13 @@ export interface paths {
|
|
|
736
1162
|
[name: string]: unknown;
|
|
737
1163
|
};
|
|
738
1164
|
content: {
|
|
739
|
-
'application/json':
|
|
1165
|
+
'application/json': {
|
|
1166
|
+
/** Format: uuid */
|
|
1167
|
+
server_id: string;
|
|
1168
|
+
name: string;
|
|
1169
|
+
/** @enum {string} */
|
|
1170
|
+
status: 'not_connected' | 'connected' | 'reconnect_required';
|
|
1171
|
+
}[];
|
|
740
1172
|
};
|
|
741
1173
|
};
|
|
742
1174
|
/** @description Internal Server Error */
|
|
@@ -758,7 +1190,7 @@ export interface paths {
|
|
|
758
1190
|
patch?: never;
|
|
759
1191
|
trace?: never;
|
|
760
1192
|
};
|
|
761
|
-
'/backend/widget/v5/
|
|
1193
|
+
'/backend/widget/v5/connections/{serverId}/start': {
|
|
762
1194
|
parameters: {
|
|
763
1195
|
query?: never;
|
|
764
1196
|
header?: never;
|
|
@@ -772,7 +1204,70 @@ export interface paths {
|
|
|
772
1204
|
query?: never;
|
|
773
1205
|
header?: never;
|
|
774
1206
|
path: {
|
|
775
|
-
|
|
1207
|
+
serverId: string;
|
|
1208
|
+
};
|
|
1209
|
+
cookie?: never;
|
|
1210
|
+
};
|
|
1211
|
+
requestBody: {
|
|
1212
|
+
content: {
|
|
1213
|
+
'application/json': {
|
|
1214
|
+
/** Format: uuid */
|
|
1215
|
+
request_id?: string;
|
|
1216
|
+
};
|
|
1217
|
+
};
|
|
1218
|
+
};
|
|
1219
|
+
responses: {
|
|
1220
|
+
/** @description Default Response */
|
|
1221
|
+
201: {
|
|
1222
|
+
headers: {
|
|
1223
|
+
[name: string]: unknown;
|
|
1224
|
+
};
|
|
1225
|
+
content: {
|
|
1226
|
+
'application/json': {
|
|
1227
|
+
/** Format: uri */
|
|
1228
|
+
authorization_url: string;
|
|
1229
|
+
/** @enum {string} */
|
|
1230
|
+
completion: 'oauth';
|
|
1231
|
+
attempt_id: string;
|
|
1232
|
+
} | {
|
|
1233
|
+
/** Format: uri */
|
|
1234
|
+
authorization_url: string;
|
|
1235
|
+
/** @enum {string} */
|
|
1236
|
+
completion: 'external';
|
|
1237
|
+
};
|
|
1238
|
+
};
|
|
1239
|
+
};
|
|
1240
|
+
/** @description Internal Server Error */
|
|
1241
|
+
500: {
|
|
1242
|
+
headers: {
|
|
1243
|
+
[name: string]: unknown;
|
|
1244
|
+
};
|
|
1245
|
+
content: {
|
|
1246
|
+
'application/json': components['schemas']['ErrorDto'];
|
|
1247
|
+
};
|
|
1248
|
+
};
|
|
1249
|
+
};
|
|
1250
|
+
};
|
|
1251
|
+
delete?: never;
|
|
1252
|
+
options?: never;
|
|
1253
|
+
head?: never;
|
|
1254
|
+
patch?: never;
|
|
1255
|
+
trace?: never;
|
|
1256
|
+
};
|
|
1257
|
+
'/backend/widget/v5/connections/{serverId}/attempts/{attemptId}': {
|
|
1258
|
+
parameters: {
|
|
1259
|
+
query?: never;
|
|
1260
|
+
header?: never;
|
|
1261
|
+
path?: never;
|
|
1262
|
+
cookie?: never;
|
|
1263
|
+
};
|
|
1264
|
+
get: {
|
|
1265
|
+
parameters: {
|
|
1266
|
+
query?: never;
|
|
1267
|
+
header?: never;
|
|
1268
|
+
path: {
|
|
1269
|
+
serverId: string;
|
|
1270
|
+
attemptId: string;
|
|
776
1271
|
};
|
|
777
1272
|
cookie?: never;
|
|
778
1273
|
};
|
|
@@ -783,7 +1278,12 @@ export interface paths {
|
|
|
783
1278
|
headers: {
|
|
784
1279
|
[name: string]: unknown;
|
|
785
1280
|
};
|
|
786
|
-
content
|
|
1281
|
+
content: {
|
|
1282
|
+
'application/json': {
|
|
1283
|
+
/** @enum {string} */
|
|
1284
|
+
status: 'pending' | 'connected' | 'canceled' | 'failed' | 'expired';
|
|
1285
|
+
};
|
|
1286
|
+
};
|
|
787
1287
|
};
|
|
788
1288
|
/** @description Internal Server Error */
|
|
789
1289
|
500: {
|
|
@@ -796,12 +1296,58 @@ export interface paths {
|
|
|
796
1296
|
};
|
|
797
1297
|
};
|
|
798
1298
|
};
|
|
1299
|
+
put?: never;
|
|
1300
|
+
post?: never;
|
|
799
1301
|
delete?: never;
|
|
800
1302
|
options?: never;
|
|
801
1303
|
head?: never;
|
|
802
1304
|
patch?: never;
|
|
803
1305
|
trace?: never;
|
|
804
1306
|
};
|
|
1307
|
+
'/backend/widget/v5/connections/{serverId}': {
|
|
1308
|
+
parameters: {
|
|
1309
|
+
query?: never;
|
|
1310
|
+
header?: never;
|
|
1311
|
+
path?: never;
|
|
1312
|
+
cookie?: never;
|
|
1313
|
+
};
|
|
1314
|
+
get?: never;
|
|
1315
|
+
put?: never;
|
|
1316
|
+
post?: never;
|
|
1317
|
+
delete: {
|
|
1318
|
+
parameters: {
|
|
1319
|
+
query?: never;
|
|
1320
|
+
header?: never;
|
|
1321
|
+
path: {
|
|
1322
|
+
serverId: string;
|
|
1323
|
+
};
|
|
1324
|
+
cookie?: never;
|
|
1325
|
+
};
|
|
1326
|
+
requestBody?: never;
|
|
1327
|
+
responses: {
|
|
1328
|
+
/** @description Default Response */
|
|
1329
|
+
204: {
|
|
1330
|
+
headers: {
|
|
1331
|
+
[name: string]: unknown;
|
|
1332
|
+
};
|
|
1333
|
+
content?: never;
|
|
1334
|
+
};
|
|
1335
|
+
/** @description Internal Server Error */
|
|
1336
|
+
500: {
|
|
1337
|
+
headers: {
|
|
1338
|
+
[name: string]: unknown;
|
|
1339
|
+
};
|
|
1340
|
+
content: {
|
|
1341
|
+
'application/json': components['schemas']['ErrorDto'];
|
|
1342
|
+
};
|
|
1343
|
+
};
|
|
1344
|
+
};
|
|
1345
|
+
};
|
|
1346
|
+
options?: never;
|
|
1347
|
+
head?: never;
|
|
1348
|
+
patch?: never;
|
|
1349
|
+
trace?: never;
|
|
1350
|
+
};
|
|
805
1351
|
'/backend/widget/v5/dictation/sessions': {
|
|
806
1352
|
parameters: {
|
|
807
1353
|
query?: never;
|
|
@@ -866,6 +1412,13 @@ export interface components {
|
|
|
866
1412
|
type: string;
|
|
867
1413
|
url: string;
|
|
868
1414
|
openai_file_id?: string;
|
|
1415
|
+
email_inline?: boolean;
|
|
1416
|
+
content_id?: string;
|
|
1417
|
+
};
|
|
1418
|
+
WidgetPresentationOverrideDto: {
|
|
1419
|
+
/** @enum {string} */
|
|
1420
|
+
toolActivity?: 'hidden' | 'status' | 'details';
|
|
1421
|
+
reasoning?: boolean;
|
|
869
1422
|
};
|
|
870
1423
|
FileUploadDto: {
|
|
871
1424
|
/** Format: binary */
|
|
@@ -900,9 +1453,13 @@ export interface components {
|
|
|
900
1453
|
clientContext?: {
|
|
901
1454
|
[key: string]: unknown;
|
|
902
1455
|
} | null;
|
|
1456
|
+
presentation?: components['schemas']['WidgetPresentationOverrideDto'];
|
|
903
1457
|
/** @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. */
|
|
904
1458
|
capabilities?: {
|
|
1459
|
+
connections?: boolean;
|
|
905
1460
|
structured_questions?: boolean;
|
|
1461
|
+
rich_replies?: boolean;
|
|
1462
|
+
page_effects?: boolean;
|
|
906
1463
|
} | null;
|
|
907
1464
|
/** @description Per-embed feature narrowing: each flag can only switch OFF a feature the organization enabled for its agent (preamble = progress updates before and during longer tasks; inline_ui = inline rendered components in replies; page_context = the agent sees the page context sent with the message; client_tools = the agent may act on the page). Absent = the organization settings apply. */
|
|
908
1465
|
features?: {
|
|
@@ -946,25 +1503,6 @@ export interface components {
|
|
|
946
1503
|
[key: string]: string | number | boolean;
|
|
947
1504
|
} | null;
|
|
948
1505
|
};
|
|
949
|
-
WidgetActionFormSubmissionInputDto: {
|
|
950
|
-
sessionId: string;
|
|
951
|
-
formMessageId: string;
|
|
952
|
-
actionId: string;
|
|
953
|
-
request: {
|
|
954
|
-
queryParams?: {
|
|
955
|
-
[key: string]: string;
|
|
956
|
-
};
|
|
957
|
-
pathParams?: {
|
|
958
|
-
[key: string]: string;
|
|
959
|
-
};
|
|
960
|
-
bodyParams?: {
|
|
961
|
-
[key: string]: unknown;
|
|
962
|
-
};
|
|
963
|
-
headers?: {
|
|
964
|
-
[key: string]: string;
|
|
965
|
-
};
|
|
966
|
-
};
|
|
967
|
-
};
|
|
968
1506
|
WidgetSubmitCsatInputDto: {
|
|
969
1507
|
session_id: string;
|
|
970
1508
|
score: number;
|
|
@@ -974,6 +1512,17 @@ export interface components {
|
|
|
974
1512
|
CreateWidgetDictationSessionDto: {
|
|
975
1513
|
language?: string;
|
|
976
1514
|
};
|
|
1515
|
+
WidgetPresentationDto: {
|
|
1516
|
+
/** @default true */
|
|
1517
|
+
streaming: boolean;
|
|
1518
|
+
/**
|
|
1519
|
+
* @default status
|
|
1520
|
+
* @enum {string}
|
|
1521
|
+
*/
|
|
1522
|
+
toolActivity: 'hidden' | 'status' | 'details';
|
|
1523
|
+
/** @default false */
|
|
1524
|
+
reasoning: boolean;
|
|
1525
|
+
};
|
|
977
1526
|
WidgetVoteResponseDto: {
|
|
978
1527
|
messagePublicId: string | null;
|
|
979
1528
|
success: boolean;
|
|
@@ -1057,6 +1606,7 @@ export interface components {
|
|
|
1057
1606
|
name: string;
|
|
1058
1607
|
avatar_url: string | null;
|
|
1059
1608
|
streaming: boolean;
|
|
1609
|
+
presentation?: components['schemas']['WidgetPresentationDto'];
|
|
1060
1610
|
features: components['schemas']['WidgetAgentFeaturesDto'];
|
|
1061
1611
|
};
|
|
1062
1612
|
WidgetConfigDto: {
|
|
@@ -1124,6 +1674,15 @@ export interface components {
|
|
|
1124
1674
|
note?: string;
|
|
1125
1675
|
snapshotUrl?: string;
|
|
1126
1676
|
}[];
|
|
1677
|
+
replyTo?: {
|
|
1678
|
+
publicId: string;
|
|
1679
|
+
text: string;
|
|
1680
|
+
sender: {
|
|
1681
|
+
kind: components['schemas']['SenderTypeEnum'];
|
|
1682
|
+
name?: string | null;
|
|
1683
|
+
avatar?: string | null;
|
|
1684
|
+
};
|
|
1685
|
+
};
|
|
1127
1686
|
};
|
|
1128
1687
|
WidgetSessionAndHistoryDto: {
|
|
1129
1688
|
/** @description WidgetSession */
|
|
@@ -1191,11 +1750,6 @@ export interface components {
|
|
|
1191
1750
|
WidgetCreateStateCheckpointOutputDto: {
|
|
1192
1751
|
success: boolean;
|
|
1193
1752
|
};
|
|
1194
|
-
WidgetActionFormSubmissionOutputDto: {
|
|
1195
|
-
action: {
|
|
1196
|
-
response: unknown;
|
|
1197
|
-
};
|
|
1198
|
-
};
|
|
1199
1753
|
WidgetSubmitCsatOutputDto: {
|
|
1200
1754
|
success: boolean;
|
|
1201
1755
|
/**
|
|
@@ -1213,6 +1767,7 @@ export interface components {
|
|
|
1213
1767
|
fileUrl: string;
|
|
1214
1768
|
};
|
|
1215
1769
|
WidgetAgentTurnMessagesDto: {
|
|
1770
|
+
handled_connection_request_ids: string[];
|
|
1216
1771
|
turns: {
|
|
1217
1772
|
/** Format: uuid */
|
|
1218
1773
|
turn_id: string;
|