@farris/x-ui 0.3.5 → 0.3.6
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/components.d.ts +2 -0
- package/credential-auth-dialog/index.d.ts +7 -0
- package/credential-auth-dialog/src/credential-auth-dialog.component.d.ts +70 -0
- package/credential-auth-dialog/test/credential-auth-dialog.spec.d.ts +1 -0
- package/farris.x-ui.esm.js +4968 -4817
- package/farris.x-ui.umd.cjs +69 -69
- package/hitl-question/src/hitl-question.component.d.ts +19 -1
- package/hitl-question/src/types.d.ts +8 -1
- package/index.css +1 -1
- package/package.json +1 -1
- package/popover/src/popover.component.d.ts +3 -0
- package/popover/src/popover.props.d.ts +9 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropType } from '../../../vue';
|
|
2
|
-
import { MessageContentHitlQuestion } from '../../../types';
|
|
2
|
+
import { MessageContentHitlQuestion, CredentialAuthAnswer } from '../../../types';
|
|
3
3
|
|
|
4
4
|
declare const _default: import('../../../vue').DefineComponent<import('../../../vue').ExtractPropTypes<{
|
|
5
5
|
content: {
|
|
@@ -47,6 +47,13 @@ declare const _default: import('../../../vue').DefineComponent<import('../../../
|
|
|
47
47
|
}>) => void>;
|
|
48
48
|
default: undefined;
|
|
49
49
|
};
|
|
50
|
+
onSubmitAuthAnswer: {
|
|
51
|
+
type: PropType<(payload: {
|
|
52
|
+
questionId: string;
|
|
53
|
+
answer: CredentialAuthAnswer;
|
|
54
|
+
}) => void>;
|
|
55
|
+
default: undefined;
|
|
56
|
+
};
|
|
50
57
|
}>, () => import("vue/jsx-runtime").JSX.Element | null, {}, {}, {}, import('../../../vue').ComponentOptionsMixin, import('../../../vue').ComponentOptionsMixin, {}, string, import('../../../vue').PublicProps, Readonly<import('../../../vue').ExtractPropTypes<{
|
|
51
58
|
content: {
|
|
52
59
|
type: PropType<MessageContentHitlQuestion>;
|
|
@@ -93,6 +100,13 @@ declare const _default: import('../../../vue').DefineComponent<import('../../../
|
|
|
93
100
|
}>) => void>;
|
|
94
101
|
default: undefined;
|
|
95
102
|
};
|
|
103
|
+
onSubmitAuthAnswer: {
|
|
104
|
+
type: PropType<(payload: {
|
|
105
|
+
questionId: string;
|
|
106
|
+
answer: CredentialAuthAnswer;
|
|
107
|
+
}) => void>;
|
|
108
|
+
default: undefined;
|
|
109
|
+
};
|
|
96
110
|
}>> & Readonly<{}>, {
|
|
97
111
|
required: boolean;
|
|
98
112
|
disabled: boolean;
|
|
@@ -105,5 +119,9 @@ declare const _default: import('../../../vue').DefineComponent<import('../../../
|
|
|
105
119
|
id: string;
|
|
106
120
|
answer: unknown;
|
|
107
121
|
}>) => void;
|
|
122
|
+
onSubmitAuthAnswer: (payload: {
|
|
123
|
+
questionId: string;
|
|
124
|
+
answer: CredentialAuthAnswer;
|
|
125
|
+
}) => void;
|
|
108
126
|
}, {}, {}, {}, string, import('../../../vue').ComponentProvideOptions, true, {}, any>;
|
|
109
127
|
export default _default;
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
/** HITL 单题:`agent/hitl-question.content.questions[]`(见《HITL 前端对接》) */
|
|
2
|
-
export type HitlUiType = 'text' | 'select' | 'multi_select' | 'confirm' | 'form' | 'date' | 'number';
|
|
2
|
+
export type HitlUiType = 'text' | 'select' | 'multi_select' | 'confirm' | 'form' | 'date' | 'number' | 'authorize';
|
|
3
|
+
export type CredentialAuthAnswer = 'PER_ACCESS_YES' | 'SESSION_YES' | 'NO';
|
|
4
|
+
export interface HitlCredentialAuth {
|
|
5
|
+
systemId: string;
|
|
6
|
+
systemName: string;
|
|
7
|
+
callId: string;
|
|
8
|
+
}
|
|
3
9
|
export interface HitlQuestionOption {
|
|
4
10
|
label: string;
|
|
5
11
|
description?: string;
|
|
@@ -45,6 +51,7 @@ export interface MessageContentHitlQuestion {
|
|
|
45
51
|
standardType?: 'agent/hitl-question';
|
|
46
52
|
requestId: string;
|
|
47
53
|
questions: HitlQuestionItem[];
|
|
54
|
+
credentialAuth?: HitlCredentialAuth;
|
|
48
55
|
agentId?: string;
|
|
49
56
|
agentSessionId?: string;
|
|
50
57
|
userId?: string;
|