@aui.io/aui-client 1.2.33 → 1.2.35
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/README.md +36 -50
- package/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/resources/controllerApi/client/Client.d.ts +34 -2
- package/dist/cjs/api/resources/controllerApi/client/Client.js +141 -3
- package/dist/cjs/api/resources/controllerApi/client/requests/ExternalWidgetRenderRequest.d.ts +21 -0
- package/dist/cjs/api/resources/controllerApi/client/requests/ExternalWidgetRenderRequest.js +3 -0
- package/dist/cjs/api/resources/controllerApi/client/requests/SubmitMessageRequest.d.ts +5 -3
- package/dist/cjs/api/resources/controllerApi/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/types/Card.d.ts +1 -0
- package/dist/cjs/api/types/EntityItemParameter.d.ts +2 -1
- package/dist/cjs/api/types/Message.d.ts +1 -0
- package/dist/cjs/api/types/TaskParameter.d.ts +1 -0
- package/dist/cjs/api/types/TracSelfReviewSubEntity.d.ts +4 -0
- package/dist/cjs/api/types/TracSelfReviewSubEntity.js +3 -0
- package/dist/cjs/api/types/TraceActiveTool.d.ts +5 -0
- package/dist/cjs/api/types/TraceActiveTool.js +3 -0
- package/dist/cjs/api/types/TraceActiveToolStatus.d.ts +6 -0
- package/dist/cjs/api/types/TraceActiveToolStatus.js +9 -0
- package/dist/cjs/api/types/TraceApiResponseSubEntity.d.ts +5 -0
- package/dist/cjs/api/types/TraceApiResponseSubEntity.js +3 -0
- package/dist/cjs/api/types/TraceContext.d.ts +8 -0
- package/dist/cjs/api/types/TraceContext.js +3 -0
- package/dist/cjs/api/types/TraceDecisionActivateSubTool.d.ts +8 -0
- package/dist/cjs/api/types/TraceDecisionActivateSubTool.js +3 -0
- package/dist/cjs/api/types/TraceDecisionActivateTool.d.ts +9 -0
- package/dist/cjs/api/types/TraceDecisionActivateTool.js +3 -0
- package/dist/cjs/api/types/TraceDecisionAskForConfirmation.d.ts +7 -0
- package/dist/cjs/api/types/TraceDecisionAskForConfirmation.js +3 -0
- package/dist/cjs/api/types/TraceDecisionCallIntegration.d.ts +10 -0
- package/dist/cjs/api/types/TraceDecisionCallIntegration.js +3 -0
- package/dist/cjs/api/types/TraceDecisionParamsCheck.d.ts +11 -0
- package/dist/cjs/api/types/TraceDecisionParamsCheck.js +3 -0
- package/dist/cjs/api/types/TraceDecisionRuleTriggered.d.ts +10 -0
- package/dist/cjs/api/types/TraceDecisionRuleTriggered.js +3 -0
- package/dist/cjs/api/types/TraceDecisionSelfReview.d.ts +7 -0
- package/dist/cjs/api/types/TraceDecisionSelfReview.js +3 -0
- package/dist/cjs/api/types/TraceDecisionToolTextResponse.d.ts +10 -0
- package/dist/cjs/api/types/TraceDecisionToolTextResponse.js +3 -0
- package/dist/cjs/api/types/TraceDecisionType.d.ts +15 -0
- package/dist/cjs/api/types/TraceDecisionType.js +18 -0
- package/dist/cjs/api/types/TraceEntity.d.ts +9 -0
- package/dist/cjs/api/types/TraceEntity.js +3 -0
- package/dist/cjs/api/types/TraceEntitySource.d.ts +7 -0
- package/dist/cjs/api/types/TraceEntitySource.js +10 -0
- package/dist/cjs/api/types/TraceGuardrails.d.ts +4 -0
- package/dist/cjs/api/types/TraceGuardrails.js +3 -0
- package/dist/cjs/api/types/TraceInfo.d.ts +17 -0
- package/dist/cjs/api/types/TraceInfo.js +3 -0
- package/dist/cjs/api/types/TraceInput.d.ts +6 -0
- package/dist/cjs/api/types/TraceInput.js +3 -0
- package/dist/cjs/api/types/TraceIntegrationRequest.d.ts +7 -0
- package/dist/cjs/api/types/TraceIntegrationRequest.js +3 -0
- package/dist/cjs/api/types/TraceIntegrationResponse.d.ts +5 -0
- package/dist/cjs/api/types/TraceIntegrationResponse.js +3 -0
- package/dist/cjs/api/types/TraceIntegrationResponseItem.d.ts +5 -0
- package/dist/cjs/api/types/TraceIntegrationResponseItem.js +3 -0
- package/dist/cjs/api/types/TraceIntegrationType.d.ts +10 -0
- package/dist/cjs/api/types/TraceIntegrationType.js +13 -0
- package/dist/cjs/api/types/TraceParamsCheckStatus.d.ts +9 -0
- package/dist/cjs/api/types/TraceParamsCheckStatus.js +12 -0
- package/dist/cjs/api/types/TraceQuestionReason.d.ts +7 -0
- package/dist/cjs/api/types/TraceQuestionReason.js +10 -0
- package/dist/cjs/api/types/TraceRagIntegration.d.ts +10 -0
- package/dist/cjs/api/types/TraceRagIntegration.js +3 -0
- package/dist/cjs/api/types/TraceRagRequest.d.ts +6 -0
- package/dist/cjs/api/types/TraceRagRequest.js +3 -0
- package/dist/cjs/api/types/TraceRagResource.d.ts +10 -0
- package/dist/cjs/api/types/TraceRagResource.js +3 -0
- package/dist/cjs/api/types/TraceRagResponse.d.ts +7 -0
- package/dist/cjs/api/types/TraceRagResponse.js +3 -0
- package/dist/cjs/api/types/TraceReferencedEntity.d.ts +6 -0
- package/dist/cjs/api/types/TraceReferencedEntity.js +3 -0
- package/dist/cjs/api/types/TraceResponse.d.ts +13 -0
- package/dist/cjs/api/types/TraceResponse.js +3 -0
- package/dist/cjs/api/types/TraceResponseType.d.ts +9 -0
- package/dist/cjs/api/types/TraceResponseType.js +12 -0
- package/dist/cjs/api/types/TraceRestIntegration.d.ts +15 -0
- package/dist/cjs/api/types/TraceRestIntegration.js +3 -0
- package/dist/cjs/api/types/TraceRuleAction.d.ts +12 -0
- package/dist/cjs/api/types/TraceRuleAction.js +15 -0
- package/dist/cjs/api/types/TraceRuleBase.d.ts +9 -0
- package/dist/cjs/api/types/TraceRuleBase.js +3 -0
- package/dist/cjs/api/types/TraceRuleMissingInfo.d.ts +10 -0
- package/dist/cjs/api/types/TraceRuleMissingInfo.js +3 -0
- package/dist/cjs/api/types/TraceRuleParamsMissing.d.ts +12 -0
- package/dist/cjs/api/types/TraceRuleParamsMissing.js +3 -0
- package/dist/cjs/api/types/TraceRuleType.d.ts +10 -0
- package/dist/cjs/api/types/TraceRuleType.js +13 -0
- package/dist/cjs/api/types/TraceSelfReviewEntity.d.ts +9 -0
- package/dist/cjs/api/types/TraceSelfReviewEntity.js +3 -0
- package/dist/cjs/api/types/TraceSelfReviewSection.d.ts +7 -0
- package/dist/cjs/api/types/TraceSelfReviewSection.js +3 -0
- package/dist/cjs/api/types/TraceSubEntity.d.ts +5 -0
- package/dist/cjs/api/types/TraceSubEntity.js +3 -0
- package/dist/cjs/api/types/TraceTrigger.d.ts +9 -0
- package/dist/cjs/api/types/TraceTrigger.js +3 -0
- package/dist/cjs/api/types/TraceTriggerType.d.ts +9 -0
- package/dist/cjs/api/types/TraceTriggerType.js +12 -0
- package/dist/cjs/api/types/TraceUnderstanding.d.ts +6 -0
- package/dist/cjs/api/types/TraceUnderstanding.js +3 -0
- package/dist/cjs/api/types/VectorSearchTaskInteractionQaAnswerScoreLabel.d.ts +5 -0
- package/dist/cjs/api/types/VectorSearchTaskInteractionQaAnswerScoreLabel.js +8 -0
- package/dist/cjs/api/types/WidgetRenderResponse.d.ts +3 -0
- package/dist/cjs/api/types/WidgetRenderResponse.js +3 -0
- package/dist/cjs/api/types/WorkflowCheckStatus.d.ts +7 -0
- package/dist/cjs/api/types/WorkflowCheckStatus.js +10 -0
- package/dist/cjs/api/types/index.d.ts +47 -0
- package/dist/cjs/api/types/index.js +47 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/resources/controllerApi/client/Client.d.mts +34 -2
- package/dist/esm/api/resources/controllerApi/client/Client.mjs +141 -3
- package/dist/esm/api/resources/controllerApi/client/requests/ExternalWidgetRenderRequest.d.mts +21 -0
- package/dist/esm/api/resources/controllerApi/client/requests/ExternalWidgetRenderRequest.mjs +2 -0
- package/dist/esm/api/resources/controllerApi/client/requests/SubmitMessageRequest.d.mts +5 -3
- package/dist/esm/api/resources/controllerApi/client/requests/index.d.mts +1 -0
- package/dist/esm/api/types/Card.d.mts +1 -0
- package/dist/esm/api/types/EntityItemParameter.d.mts +2 -1
- package/dist/esm/api/types/Message.d.mts +1 -0
- package/dist/esm/api/types/TaskParameter.d.mts +1 -0
- package/dist/esm/api/types/TracSelfReviewSubEntity.d.mts +4 -0
- package/dist/esm/api/types/TracSelfReviewSubEntity.mjs +2 -0
- package/dist/esm/api/types/TraceActiveTool.d.mts +5 -0
- package/dist/esm/api/types/TraceActiveTool.mjs +2 -0
- package/dist/esm/api/types/TraceActiveToolStatus.d.mts +6 -0
- package/dist/esm/api/types/TraceActiveToolStatus.mjs +6 -0
- package/dist/esm/api/types/TraceApiResponseSubEntity.d.mts +5 -0
- package/dist/esm/api/types/TraceApiResponseSubEntity.mjs +2 -0
- package/dist/esm/api/types/TraceContext.d.mts +8 -0
- package/dist/esm/api/types/TraceContext.mjs +2 -0
- package/dist/esm/api/types/TraceDecisionActivateSubTool.d.mts +8 -0
- package/dist/esm/api/types/TraceDecisionActivateSubTool.mjs +2 -0
- package/dist/esm/api/types/TraceDecisionActivateTool.d.mts +9 -0
- package/dist/esm/api/types/TraceDecisionActivateTool.mjs +2 -0
- package/dist/esm/api/types/TraceDecisionAskForConfirmation.d.mts +7 -0
- package/dist/esm/api/types/TraceDecisionAskForConfirmation.mjs +2 -0
- package/dist/esm/api/types/TraceDecisionCallIntegration.d.mts +10 -0
- package/dist/esm/api/types/TraceDecisionCallIntegration.mjs +2 -0
- package/dist/esm/api/types/TraceDecisionParamsCheck.d.mts +11 -0
- package/dist/esm/api/types/TraceDecisionParamsCheck.mjs +2 -0
- package/dist/esm/api/types/TraceDecisionRuleTriggered.d.mts +10 -0
- package/dist/esm/api/types/TraceDecisionRuleTriggered.mjs +2 -0
- package/dist/esm/api/types/TraceDecisionSelfReview.d.mts +7 -0
- package/dist/esm/api/types/TraceDecisionSelfReview.mjs +2 -0
- package/dist/esm/api/types/TraceDecisionToolTextResponse.d.mts +10 -0
- package/dist/esm/api/types/TraceDecisionToolTextResponse.mjs +2 -0
- package/dist/esm/api/types/TraceDecisionType.d.mts +15 -0
- package/dist/esm/api/types/TraceDecisionType.mjs +15 -0
- package/dist/esm/api/types/TraceEntity.d.mts +9 -0
- package/dist/esm/api/types/TraceEntity.mjs +2 -0
- package/dist/esm/api/types/TraceEntitySource.d.mts +7 -0
- package/dist/esm/api/types/TraceEntitySource.mjs +7 -0
- package/dist/esm/api/types/TraceGuardrails.d.mts +4 -0
- package/dist/esm/api/types/TraceGuardrails.mjs +2 -0
- package/dist/esm/api/types/TraceInfo.d.mts +17 -0
- package/dist/esm/api/types/TraceInfo.mjs +2 -0
- package/dist/esm/api/types/TraceInput.d.mts +6 -0
- package/dist/esm/api/types/TraceInput.mjs +2 -0
- package/dist/esm/api/types/TraceIntegrationRequest.d.mts +7 -0
- package/dist/esm/api/types/TraceIntegrationRequest.mjs +2 -0
- package/dist/esm/api/types/TraceIntegrationResponse.d.mts +5 -0
- package/dist/esm/api/types/TraceIntegrationResponse.mjs +2 -0
- package/dist/esm/api/types/TraceIntegrationResponseItem.d.mts +5 -0
- package/dist/esm/api/types/TraceIntegrationResponseItem.mjs +2 -0
- package/dist/esm/api/types/TraceIntegrationType.d.mts +10 -0
- package/dist/esm/api/types/TraceIntegrationType.mjs +10 -0
- package/dist/esm/api/types/TraceParamsCheckStatus.d.mts +9 -0
- package/dist/esm/api/types/TraceParamsCheckStatus.mjs +9 -0
- package/dist/esm/api/types/TraceQuestionReason.d.mts +7 -0
- package/dist/esm/api/types/TraceQuestionReason.mjs +7 -0
- package/dist/esm/api/types/TraceRagIntegration.d.mts +10 -0
- package/dist/esm/api/types/TraceRagIntegration.mjs +2 -0
- package/dist/esm/api/types/TraceRagRequest.d.mts +6 -0
- package/dist/esm/api/types/TraceRagRequest.mjs +2 -0
- package/dist/esm/api/types/TraceRagResource.d.mts +10 -0
- package/dist/esm/api/types/TraceRagResource.mjs +2 -0
- package/dist/esm/api/types/TraceRagResponse.d.mts +7 -0
- package/dist/esm/api/types/TraceRagResponse.mjs +2 -0
- package/dist/esm/api/types/TraceReferencedEntity.d.mts +6 -0
- package/dist/esm/api/types/TraceReferencedEntity.mjs +2 -0
- package/dist/esm/api/types/TraceResponse.d.mts +13 -0
- package/dist/esm/api/types/TraceResponse.mjs +2 -0
- package/dist/esm/api/types/TraceResponseType.d.mts +9 -0
- package/dist/esm/api/types/TraceResponseType.mjs +9 -0
- package/dist/esm/api/types/TraceRestIntegration.d.mts +15 -0
- package/dist/esm/api/types/TraceRestIntegration.mjs +2 -0
- package/dist/esm/api/types/TraceRuleAction.d.mts +12 -0
- package/dist/esm/api/types/TraceRuleAction.mjs +12 -0
- package/dist/esm/api/types/TraceRuleBase.d.mts +9 -0
- package/dist/esm/api/types/TraceRuleBase.mjs +2 -0
- package/dist/esm/api/types/TraceRuleMissingInfo.d.mts +10 -0
- package/dist/esm/api/types/TraceRuleMissingInfo.mjs +2 -0
- package/dist/esm/api/types/TraceRuleParamsMissing.d.mts +12 -0
- package/dist/esm/api/types/TraceRuleParamsMissing.mjs +2 -0
- package/dist/esm/api/types/TraceRuleType.d.mts +10 -0
- package/dist/esm/api/types/TraceRuleType.mjs +10 -0
- package/dist/esm/api/types/TraceSelfReviewEntity.d.mts +9 -0
- package/dist/esm/api/types/TraceSelfReviewEntity.mjs +2 -0
- package/dist/esm/api/types/TraceSelfReviewSection.d.mts +7 -0
- package/dist/esm/api/types/TraceSelfReviewSection.mjs +2 -0
- package/dist/esm/api/types/TraceSubEntity.d.mts +5 -0
- package/dist/esm/api/types/TraceSubEntity.mjs +2 -0
- package/dist/esm/api/types/TraceTrigger.d.mts +9 -0
- package/dist/esm/api/types/TraceTrigger.mjs +2 -0
- package/dist/esm/api/types/TraceTriggerType.d.mts +9 -0
- package/dist/esm/api/types/TraceTriggerType.mjs +9 -0
- package/dist/esm/api/types/TraceUnderstanding.d.mts +6 -0
- package/dist/esm/api/types/TraceUnderstanding.mjs +2 -0
- package/dist/esm/api/types/VectorSearchTaskInteractionQaAnswerScoreLabel.d.mts +5 -0
- package/dist/esm/api/types/VectorSearchTaskInteractionQaAnswerScoreLabel.mjs +5 -0
- package/dist/esm/api/types/WidgetRenderResponse.d.mts +3 -0
- package/dist/esm/api/types/WidgetRenderResponse.mjs +2 -0
- package/dist/esm/api/types/WorkflowCheckStatus.d.mts +7 -0
- package/dist/esm/api/types/WorkflowCheckStatus.mjs +7 -0
- package/dist/esm/api/types/index.d.mts +47 -0
- package/dist/esm/api/types/index.mjs +47 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +129 -2
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** Schema: no_tool | activate_tool | params_check | rule_triggered | call_integration | ask_question | ask_confirmation | block | self_review. */
|
|
2
|
+
export declare const TraceDecisionType: {
|
|
3
|
+
readonly NoTool: "no_tool";
|
|
4
|
+
readonly ActivateTool: "activate_tool";
|
|
5
|
+
readonly ActivateSubTool: "activate_sub_tool";
|
|
6
|
+
readonly ParamsCheck: "params_check";
|
|
7
|
+
readonly RuleTriggered: "rule_triggered";
|
|
8
|
+
readonly CallIntegration: "call_integration";
|
|
9
|
+
readonly AskQuestion: "ask_question";
|
|
10
|
+
readonly AskConfirmation: "ask_confirmation";
|
|
11
|
+
readonly Block: "block";
|
|
12
|
+
readonly SelfReview: "self_review";
|
|
13
|
+
readonly ToolTextResponse: "tool_text_response";
|
|
14
|
+
};
|
|
15
|
+
export type TraceDecisionType = (typeof TraceDecisionType)[keyof typeof TraceDecisionType];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
/** Schema: no_tool | activate_tool | params_check | rule_triggered | call_integration | ask_question | ask_confirmation | block | self_review. */
|
|
3
|
+
export const TraceDecisionType = {
|
|
4
|
+
NoTool: "no_tool",
|
|
5
|
+
ActivateTool: "activate_tool",
|
|
6
|
+
ActivateSubTool: "activate_sub_tool",
|
|
7
|
+
ParamsCheck: "params_check",
|
|
8
|
+
RuleTriggered: "rule_triggered",
|
|
9
|
+
CallIntegration: "call_integration",
|
|
10
|
+
AskQuestion: "ask_question",
|
|
11
|
+
AskConfirmation: "ask_confirmation",
|
|
12
|
+
Block: "block",
|
|
13
|
+
SelfReview: "self_review",
|
|
14
|
+
ToolTextResponse: "tool_text_response",
|
|
15
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** Entity source. Schema enum: external_context | user_message | response_mapping. */
|
|
2
|
+
export declare const TraceEntitySource: {
|
|
3
|
+
readonly ExternalContext: "external_context";
|
|
4
|
+
readonly UserMessage: "user_message";
|
|
5
|
+
readonly ResponseMapping: "response_mapping";
|
|
6
|
+
};
|
|
7
|
+
export type TraceEntitySource = (typeof TraceEntitySource)[keyof typeof TraceEntitySource];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
/** Entity source. Schema enum: external_context | user_message | response_mapping. */
|
|
3
|
+
export const TraceEntitySource = {
|
|
4
|
+
ExternalContext: "external_context",
|
|
5
|
+
UserMessage: "user_message",
|
|
6
|
+
ResponseMapping: "response_mapping",
|
|
7
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type * as Apollo from "../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Root trace. Schema: input, understanding, decisions, response (required); context (optional).
|
|
4
|
+
*/
|
|
5
|
+
export interface TraceInfo {
|
|
6
|
+
input: Apollo.TraceInput;
|
|
7
|
+
context?: Apollo.TraceContext;
|
|
8
|
+
understanding: Apollo.TraceUnderstanding;
|
|
9
|
+
decisions?: TraceInfo.Decisions.Item[];
|
|
10
|
+
response: Apollo.TraceResponse;
|
|
11
|
+
}
|
|
12
|
+
export declare namespace TraceInfo {
|
|
13
|
+
type Decisions = Decisions.Item[];
|
|
14
|
+
namespace Decisions {
|
|
15
|
+
type Item = Apollo.TraceDecisionActivateTool | Apollo.TraceDecisionRuleTriggered | Apollo.TraceDecisionParamsCheck | Apollo.TraceDecisionCallIntegration | Apollo.TraceDecisionAskForConfirmation | Apollo.TraceDecisionToolTextResponse | Apollo.TraceDecisionSelfReview | Apollo.TraceDecisionActivateSubTool;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** Schema: REST | MCP | RAG | INTERNAL_CONTEXT | STRUCTURED | GEN_AI. */
|
|
2
|
+
export declare const TraceIntegrationType: {
|
|
3
|
+
readonly Rest: "REST";
|
|
4
|
+
readonly Mcp: "MCP";
|
|
5
|
+
readonly Rag: "RAG";
|
|
6
|
+
readonly InternalContext: "INTERNAL_CONTEXT";
|
|
7
|
+
readonly Structured: "STRUCTURED";
|
|
8
|
+
readonly GenAi: "GEN_AI";
|
|
9
|
+
};
|
|
10
|
+
export type TraceIntegrationType = (typeof TraceIntegrationType)[keyof typeof TraceIntegrationType];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
/** Schema: REST | MCP | RAG | INTERNAL_CONTEXT | STRUCTURED | GEN_AI. */
|
|
3
|
+
export const TraceIntegrationType = {
|
|
4
|
+
Rest: "REST",
|
|
5
|
+
Mcp: "MCP",
|
|
6
|
+
Rag: "RAG",
|
|
7
|
+
InternalContext: "INTERNAL_CONTEXT",
|
|
8
|
+
Structured: "STRUCTURED",
|
|
9
|
+
GenAi: "GEN_AI",
|
|
10
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** Schema: all_filled | missing_required | missing_optional | missing_optional_and_required | missing_optional_ask_once. */
|
|
2
|
+
export declare const TraceParamsCheckStatus: {
|
|
3
|
+
readonly AllFilled: "all_filled";
|
|
4
|
+
readonly MissingRequired: "missing_required";
|
|
5
|
+
readonly MissingOptional: "missing_optional";
|
|
6
|
+
readonly MissingOptionalAskOnce: "missing_optional_ask_once";
|
|
7
|
+
readonly MissingOptionalAndRequired: "missing_optional_and_required";
|
|
8
|
+
};
|
|
9
|
+
export type TraceParamsCheckStatus = (typeof TraceParamsCheckStatus)[keyof typeof TraceParamsCheckStatus];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
/** Schema: all_filled | missing_required | missing_optional | missing_optional_and_required | missing_optional_ask_once. */
|
|
3
|
+
export const TraceParamsCheckStatus = {
|
|
4
|
+
AllFilled: "all_filled",
|
|
5
|
+
MissingRequired: "missing_required",
|
|
6
|
+
MissingOptional: "missing_optional",
|
|
7
|
+
MissingOptionalAskOnce: "missing_optional_ask_once",
|
|
8
|
+
MissingOptionalAndRequired: "missing_optional_and_required",
|
|
9
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** Schema: missing_params | from_rule | clarification. Why asking a question. */
|
|
2
|
+
export declare const TraceQuestionReason: {
|
|
3
|
+
readonly MissingParams: "missing_params";
|
|
4
|
+
readonly FromRule: "from_rule";
|
|
5
|
+
readonly Clarification: "clarification";
|
|
6
|
+
};
|
|
7
|
+
export type TraceQuestionReason = (typeof TraceQuestionReason)[keyof typeof TraceQuestionReason];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
/** Schema: missing_params | from_rule | clarification. Why asking a question. */
|
|
3
|
+
export const TraceQuestionReason = {
|
|
4
|
+
MissingParams: "missing_params",
|
|
5
|
+
FromRule: "from_rule",
|
|
6
|
+
Clarification: "clarification",
|
|
7
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as Apollo from "../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* RAG (knowledge hub) integration call details.
|
|
4
|
+
*/
|
|
5
|
+
export interface TraceRagIntegration {
|
|
6
|
+
code: string;
|
|
7
|
+
type?: Apollo.TraceIntegrationType;
|
|
8
|
+
request: Apollo.TraceRagRequest;
|
|
9
|
+
response?: Apollo.TraceRagResponse;
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as Apollo from "../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* RAG (knowledge hub) retrieval resource.
|
|
4
|
+
*/
|
|
5
|
+
export interface TraceRagResource {
|
|
6
|
+
title: string;
|
|
7
|
+
content: string;
|
|
8
|
+
score: number;
|
|
9
|
+
score_label?: Apollo.VectorSearchTaskInteractionQaAnswerScoreLabel;
|
|
10
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type * as Apollo from "../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Schema: type, message (required); tool, tool_status, suggestions, rules, question_reason, asking_for, block_message, error (optional).
|
|
4
|
+
*/
|
|
5
|
+
export interface TraceResponse {
|
|
6
|
+
type: Apollo.TraceResponseType;
|
|
7
|
+
message: string;
|
|
8
|
+
suggestions?: string[];
|
|
9
|
+
question_reason?: Apollo.TraceQuestionReason;
|
|
10
|
+
asking_for?: string[];
|
|
11
|
+
block_message?: string;
|
|
12
|
+
error?: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** Schema: answer | question | blocked | confirmation_request | error. */
|
|
2
|
+
export declare const TraceResponseType: {
|
|
3
|
+
readonly Answer: "answer";
|
|
4
|
+
readonly Question: "question";
|
|
5
|
+
readonly Blocked: "blocked";
|
|
6
|
+
readonly ConfirmationRequest: "confirmation_request";
|
|
7
|
+
readonly Error: "error";
|
|
8
|
+
};
|
|
9
|
+
export type TraceResponseType = (typeof TraceResponseType)[keyof typeof TraceResponseType];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
/** Schema: answer | question | blocked | confirmation_request | error. */
|
|
3
|
+
export const TraceResponseType = {
|
|
4
|
+
Answer: "answer",
|
|
5
|
+
Question: "question",
|
|
6
|
+
Blocked: "blocked",
|
|
7
|
+
ConfirmationRequest: "confirmation_request",
|
|
8
|
+
Error: "error",
|
|
9
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type * as Apollo from "../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* REST API integration call details.
|
|
4
|
+
*/
|
|
5
|
+
export interface TraceRestIntegration {
|
|
6
|
+
code: string;
|
|
7
|
+
type?: Apollo.TraceIntegrationType;
|
|
8
|
+
requests: Apollo.TraceIntegrationRequest[];
|
|
9
|
+
response?: TraceRestIntegration.Response;
|
|
10
|
+
status_code?: number;
|
|
11
|
+
error_message?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare namespace TraceRestIntegration {
|
|
14
|
+
type Response = Record<string, Apollo.TraceIntegrationResponse[]> | unknown;
|
|
15
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** Schema: BLOCK | ADD_REQUIRED_PARAM | ASK_A_QUESTION | TEXT | ACTIVATE_ANOTHER_TOOL. */
|
|
2
|
+
export declare const TraceRuleAction: {
|
|
3
|
+
readonly AddRequiredParam: "ADD_REQUIRED_PARAM";
|
|
4
|
+
readonly AskAQuestion: "ASK_A_QUESTION";
|
|
5
|
+
readonly Block: "BLOCK";
|
|
6
|
+
readonly PartialBlock: "PARTIAL_BLOCK";
|
|
7
|
+
readonly Text: "TEXT";
|
|
8
|
+
readonly BlockAndActivateAnotherTool: "BLOCK_AND_ACTIVATE_ANOTHER_TOOL";
|
|
9
|
+
readonly ActivateSubTool: "ACTIVATE_SUB_TOOL";
|
|
10
|
+
readonly Integration: "INTEGRATION";
|
|
11
|
+
};
|
|
12
|
+
export type TraceRuleAction = (typeof TraceRuleAction)[keyof typeof TraceRuleAction];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
/** Schema: BLOCK | ADD_REQUIRED_PARAM | ASK_A_QUESTION | TEXT | ACTIVATE_ANOTHER_TOOL. */
|
|
3
|
+
export const TraceRuleAction = {
|
|
4
|
+
AddRequiredParam: "ADD_REQUIRED_PARAM",
|
|
5
|
+
AskAQuestion: "ASK_A_QUESTION",
|
|
6
|
+
Block: "BLOCK",
|
|
7
|
+
PartialBlock: "PARTIAL_BLOCK",
|
|
8
|
+
Text: "TEXT",
|
|
9
|
+
BlockAndActivateAnotherTool: "BLOCK_AND_ACTIVATE_ANOTHER_TOOL",
|
|
10
|
+
ActivateSubTool: "ACTIVATE_SUB_TOOL",
|
|
11
|
+
Integration: "INTEGRATION",
|
|
12
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as Apollo from "../index.mjs";
|
|
2
|
+
export interface TraceRuleMissingInfo {
|
|
3
|
+
type: Apollo.TraceRuleType;
|
|
4
|
+
action?: Apollo.TraceRuleAction;
|
|
5
|
+
reason?: string;
|
|
6
|
+
params_added?: Record<string, unknown>;
|
|
7
|
+
excluded_entities?: string[];
|
|
8
|
+
code?: string;
|
|
9
|
+
required_missing_params_by_group?: string[][];
|
|
10
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type * as Apollo from "../index.mjs";
|
|
2
|
+
export interface TraceRuleParamsMissing {
|
|
3
|
+
type?: Apollo.TraceRuleType;
|
|
4
|
+
action?: Apollo.TraceRuleAction;
|
|
5
|
+
status: Apollo.TraceParamsCheckStatus;
|
|
6
|
+
/** Per mandatory group (workflow order); inner list = unfilled param codes. */
|
|
7
|
+
required_missing_params_by_group?: string[][];
|
|
8
|
+
/** Per optional group (workflow order); inner list = unfilled param codes. */
|
|
9
|
+
optional_missing_params_by_group?: string[][];
|
|
10
|
+
reason?: string;
|
|
11
|
+
code?: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** Schema: constraint | required_param | missing_info | success | fail. */
|
|
2
|
+
export declare const TraceRuleType: {
|
|
3
|
+
readonly Constraint: "constraint";
|
|
4
|
+
readonly RequiredParam: "required_param";
|
|
5
|
+
readonly MissingInfo: "missing_info";
|
|
6
|
+
readonly Success: "success";
|
|
7
|
+
readonly Fail: "fail";
|
|
8
|
+
readonly Block: "block";
|
|
9
|
+
};
|
|
10
|
+
export type TraceRuleType = (typeof TraceRuleType)[keyof typeof TraceRuleType];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
/** Schema: constraint | required_param | missing_info | success | fail. */
|
|
3
|
+
export const TraceRuleType = {
|
|
4
|
+
Constraint: "constraint",
|
|
5
|
+
RequiredParam: "required_param",
|
|
6
|
+
MissingInfo: "missing_info",
|
|
7
|
+
Success: "success",
|
|
8
|
+
Fail: "fail",
|
|
9
|
+
Block: "block",
|
|
10
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as Apollo from "../index.mjs";
|
|
2
|
+
export interface TraceSelfReviewEntity {
|
|
3
|
+
entity: string;
|
|
4
|
+
identifier?: string;
|
|
5
|
+
reference?: string;
|
|
6
|
+
sub_entities?: Apollo.TracSelfReviewSubEntity[];
|
|
7
|
+
self_review?: Apollo.TraceSelfReviewSection;
|
|
8
|
+
is_visible: boolean;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** Schema: active_tool | intent_classification | structured. */
|
|
2
|
+
export declare const TraceTriggerType: {
|
|
3
|
+
readonly Structured: "structured";
|
|
4
|
+
readonly IntentClassification: "intent_classification";
|
|
5
|
+
readonly ActiveTool: "active_tool";
|
|
6
|
+
readonly Rule: "rule";
|
|
7
|
+
readonly SubTool: "sub_tool";
|
|
8
|
+
};
|
|
9
|
+
export type TraceTriggerType = (typeof TraceTriggerType)[keyof typeof TraceTriggerType];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
/** Schema: active_tool | intent_classification | structured. */
|
|
3
|
+
export const TraceTriggerType = {
|
|
4
|
+
Structured: "structured",
|
|
5
|
+
IntentClassification: "intent_classification",
|
|
6
|
+
ActiveTool: "active_tool",
|
|
7
|
+
Rule: "rule",
|
|
8
|
+
SubTool: "sub_tool",
|
|
9
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const VectorSearchTaskInteractionQaAnswerScoreLabel: {
|
|
2
|
+
readonly High: "HIGH";
|
|
3
|
+
readonly Low: "LOW";
|
|
4
|
+
};
|
|
5
|
+
export type VectorSearchTaskInteractionQaAnswerScoreLabel = (typeof VectorSearchTaskInteractionQaAnswerScoreLabel)[keyof typeof VectorSearchTaskInteractionQaAnswerScoreLabel];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const WorkflowCheckStatus: {
|
|
2
|
+
readonly Confirmed: "CONFIRMED";
|
|
3
|
+
readonly Blocked: "BLOCKED";
|
|
4
|
+
readonly Active: "ACTIVE";
|
|
5
|
+
readonly Cancelled: "CANCELLED";
|
|
6
|
+
};
|
|
7
|
+
export type WorkflowCheckStatus = (typeof WorkflowCheckStatus)[keyof typeof WorkflowCheckStatus];
|