@aui.io/aui-client 1.2.40 → 2.0.0
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 +108 -2
- package/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/resources/controllerApi/client/Client.d.ts +0 -13
- package/dist/cjs/api/resources/controllerApi/client/Client.js +0 -66
- package/dist/cjs/api/resources/controllerApi/client/requests/CreateTaskRequest.d.ts +1 -0
- package/dist/cjs/api/resources/controllerApi/client/requests/SubmitMessageRequest.d.ts +0 -1
- package/dist/cjs/api/resources/controllerApi/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/types/AgentMetadata.d.ts +6 -0
- package/dist/cjs/api/types/ConstraintTriggerType.d.ts +5 -0
- package/dist/cjs/api/types/ConstraintTriggerType.js +8 -0
- package/dist/cjs/api/types/LatencyMetadata.d.ts +6 -0
- package/dist/cjs/api/types/LatencyUnit.d.ts +7 -0
- package/dist/cjs/api/types/LatencyUnit.js +10 -0
- package/dist/cjs/api/types/OffsetType.d.ts +6 -0
- package/dist/cjs/api/types/OffsetType.js +9 -0
- package/dist/cjs/api/types/OffsetUnit.d.ts +10 -0
- package/dist/cjs/api/types/OffsetUnit.js +13 -0
- package/dist/cjs/api/types/OptionsSearchSelfReviewMethod.d.ts +2 -0
- package/dist/cjs/api/types/OptionsSearchSelfReviewMethod.js +2 -0
- package/dist/cjs/api/types/SimpleViewCondition.d.ts +66 -0
- package/dist/cjs/api/types/SimpleViewCondition.js +3 -0
- package/dist/cjs/api/types/SimpleViewMethod.d.ts +19 -0
- package/dist/cjs/api/types/SimpleViewMethod.js +22 -0
- package/dist/cjs/api/types/SimpleViewOperation.d.ts +48 -0
- package/dist/cjs/api/types/SimpleViewOperation.js +51 -0
- package/dist/cjs/api/types/TaskParameter.d.ts +5 -1
- package/dist/cjs/api/types/TraceDecisionRuleTriggered.d.ts +2 -1
- package/dist/cjs/api/types/TraceDecisionToolTextResponse.d.ts +2 -0
- package/dist/cjs/api/types/TraceEntity.d.ts +4 -1
- package/dist/cjs/api/types/TraceInfo.d.ts +2 -0
- package/dist/cjs/api/types/TraceMcpIntegration.d.ts +2 -0
- package/dist/cjs/api/types/TraceMcpToolCall.d.ts +2 -0
- package/dist/cjs/api/types/TraceReferencedEntity.d.ts +4 -1
- package/dist/cjs/api/types/TraceRuleAction.d.ts +1 -0
- package/dist/cjs/api/types/TraceRuleAction.js +1 -0
- package/dist/cjs/api/types/TraceRuleAskForConfirmation.d.ts +13 -0
- package/dist/cjs/api/types/TraceRuleAskForConfirmation.js +3 -0
- package/dist/cjs/api/types/TraceRuleConditionResult.d.ts +5 -0
- package/dist/cjs/api/types/TraceRuleConditionResult.js +3 -0
- package/dist/cjs/api/types/TraceRuleTriggerEvaluation.d.ts +6 -0
- package/dist/cjs/api/types/TraceRuleTriggerEvaluation.js +3 -0
- package/dist/cjs/api/types/TraceRuleType.d.ts +1 -0
- package/dist/cjs/api/types/TraceRuleType.js +1 -0
- package/dist/cjs/api/types/TraceSelfReviewEntity.d.ts +4 -2
- package/dist/cjs/api/types/index.d.ts +12 -1
- package/dist/cjs/api/types/index.js +12 -1
- 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 +0 -13
- package/dist/esm/api/resources/controllerApi/client/Client.mjs +0 -66
- package/dist/esm/api/resources/controllerApi/client/requests/CreateTaskRequest.d.mts +1 -0
- package/dist/esm/api/resources/controllerApi/client/requests/SubmitMessageRequest.d.mts +0 -1
- package/dist/esm/api/resources/controllerApi/client/requests/index.d.mts +0 -1
- package/dist/esm/api/types/AgentMetadata.d.mts +6 -0
- package/dist/esm/api/types/ConstraintTriggerType.d.mts +5 -0
- package/dist/esm/api/types/ConstraintTriggerType.mjs +5 -0
- package/dist/esm/api/types/LatencyMetadata.d.mts +6 -0
- package/dist/esm/api/types/LatencyUnit.d.mts +7 -0
- package/dist/esm/api/types/LatencyUnit.mjs +7 -0
- package/dist/esm/api/types/OffsetType.d.mts +6 -0
- package/dist/esm/api/types/OffsetType.mjs +6 -0
- package/dist/esm/api/types/OffsetUnit.d.mts +10 -0
- package/dist/esm/api/types/OffsetUnit.mjs +10 -0
- package/dist/esm/api/types/OptionsSearchSelfReviewMethod.d.mts +2 -0
- package/dist/esm/api/types/OptionsSearchSelfReviewMethod.mjs +2 -0
- package/dist/esm/api/types/SimpleViewCondition.d.mts +66 -0
- package/dist/esm/api/types/SimpleViewCondition.mjs +2 -0
- package/dist/esm/api/types/SimpleViewMethod.d.mts +19 -0
- package/dist/esm/api/types/SimpleViewMethod.mjs +19 -0
- package/dist/esm/api/types/SimpleViewOperation.d.mts +48 -0
- package/dist/esm/api/types/SimpleViewOperation.mjs +48 -0
- package/dist/esm/api/types/TaskParameter.d.mts +5 -1
- package/dist/esm/api/types/TraceDecisionRuleTriggered.d.mts +2 -1
- package/dist/esm/api/types/TraceDecisionToolTextResponse.d.mts +2 -0
- package/dist/esm/api/types/TraceEntity.d.mts +4 -1
- package/dist/esm/api/types/TraceInfo.d.mts +2 -0
- package/dist/esm/api/types/TraceMcpIntegration.d.mts +2 -0
- package/dist/esm/api/types/TraceMcpToolCall.d.mts +2 -0
- package/dist/esm/api/types/TraceReferencedEntity.d.mts +4 -1
- package/dist/esm/api/types/TraceRuleAction.d.mts +1 -0
- package/dist/esm/api/types/TraceRuleAction.mjs +1 -0
- package/dist/esm/api/types/TraceRuleAskForConfirmation.d.mts +13 -0
- package/dist/esm/api/types/TraceRuleAskForConfirmation.mjs +2 -0
- package/dist/esm/api/types/TraceRuleConditionResult.d.mts +5 -0
- package/dist/esm/api/types/TraceRuleConditionResult.mjs +2 -0
- package/dist/esm/api/types/TraceRuleTriggerEvaluation.d.mts +6 -0
- package/dist/esm/api/types/TraceRuleTriggerEvaluation.mjs +2 -0
- package/dist/esm/api/types/TraceRuleType.d.mts +1 -0
- package/dist/esm/api/types/TraceRuleType.mjs +1 -0
- package/dist/esm/api/types/TraceSelfReviewEntity.d.mts +4 -2
- package/dist/esm/api/types/index.d.mts +12 -1
- package/dist/esm/api/types/index.mjs +12 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +0 -51
- package/dist/cjs/api/resources/controllerApi/client/requests/GetProductMetadataRequest.d.ts +0 -9
- package/dist/cjs/api/types/TracSelfReviewSubEntity.d.ts +0 -4
- package/dist/esm/api/resources/controllerApi/client/requests/GetProductMetadataRequest.d.mts +0 -9
- package/dist/esm/api/types/TracSelfReviewSubEntity.d.mts +0 -4
- /package/dist/cjs/api/{resources/controllerApi/client/requests/GetProductMetadataRequest.js → types/AgentMetadata.js} +0 -0
- /package/dist/cjs/api/types/{TracSelfReviewSubEntity.js → LatencyMetadata.js} +0 -0
- /package/dist/esm/api/{resources/controllerApi/client/requests/GetProductMetadataRequest.mjs → types/AgentMetadata.mjs} +0 -0
- /package/dist/esm/api/types/{TracSelfReviewSubEntity.mjs → LatencyMetadata.mjs} +0 -0
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import type * as Apollo from "../index.js";
|
|
2
2
|
export interface TraceEntity {
|
|
3
3
|
entity: string;
|
|
4
|
-
identifier?:
|
|
4
|
+
identifier?: TraceEntity.Identifier;
|
|
5
5
|
reference?: string;
|
|
6
6
|
source: Apollo.TraceEntitySource;
|
|
7
7
|
params?: Record<string, unknown>;
|
|
8
8
|
sub_entities?: Apollo.TraceSubEntity[];
|
|
9
9
|
}
|
|
10
|
+
export declare namespace TraceEntity {
|
|
11
|
+
type Identifier = string | number;
|
|
12
|
+
}
|
|
@@ -8,6 +8,8 @@ export interface TraceInfo {
|
|
|
8
8
|
understanding?: Apollo.TraceUnderstanding;
|
|
9
9
|
decisions?: TraceInfo.Decisions.Item[];
|
|
10
10
|
response: Apollo.TraceResponse;
|
|
11
|
+
rules_evaluations?: Apollo.TraceRuleTriggerEvaluation[];
|
|
12
|
+
latency?: Apollo.LatencyMetadata;
|
|
11
13
|
}
|
|
12
14
|
export declare namespace TraceInfo {
|
|
13
15
|
type Decisions = Decisions.Item[];
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export interface TraceReferencedEntity {
|
|
2
2
|
entity: string;
|
|
3
|
-
identifier?:
|
|
3
|
+
identifier?: TraceReferencedEntity.Identifier;
|
|
4
4
|
reference?: string;
|
|
5
5
|
is_visible: boolean;
|
|
6
6
|
}
|
|
7
|
+
export declare namespace TraceReferencedEntity {
|
|
8
|
+
type Identifier = string | number;
|
|
9
|
+
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
export declare const TraceRuleAction: {
|
|
3
3
|
readonly AddRequiredParam: "ADD_REQUIRED_PARAM";
|
|
4
4
|
readonly AskAQuestion: "ASK_A_QUESTION";
|
|
5
|
+
readonly AskForConfirmation: "ASK_FOR_CONFIRMATION";
|
|
5
6
|
readonly Block: "BLOCK";
|
|
6
7
|
readonly PartialBlock: "PARTIAL_BLOCK";
|
|
7
8
|
readonly Text: "TEXT";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type * as Apollo from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Constraint rule with QUERY-derived preview; only this rule subtype carries confirmation_preview.
|
|
4
|
+
*/
|
|
5
|
+
export interface TraceRuleAskForConfirmation {
|
|
6
|
+
type: Apollo.TraceRuleType;
|
|
7
|
+
action?: "ASK_FOR_CONFIRMATION";
|
|
8
|
+
reason?: string;
|
|
9
|
+
params_added?: Record<string, unknown>;
|
|
10
|
+
excluded_entities?: string[];
|
|
11
|
+
code?: string;
|
|
12
|
+
confirmation_preview?: Record<string, unknown>[];
|
|
13
|
+
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import type * as Apollo from "../index.js";
|
|
2
2
|
export interface TraceSelfReviewEntity {
|
|
3
3
|
entity: string;
|
|
4
|
-
identifier?:
|
|
4
|
+
identifier?: TraceSelfReviewEntity.Identifier;
|
|
5
5
|
reference?: string;
|
|
6
|
-
sub_entities?: Apollo.TracSelfReviewSubEntity[];
|
|
7
6
|
self_review?: Apollo.TraceSelfReviewSection;
|
|
8
7
|
is_visible: boolean;
|
|
9
8
|
}
|
|
9
|
+
export declare namespace TraceSelfReviewEntity {
|
|
10
|
+
type Identifier = string | number;
|
|
11
|
+
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export * from "./Actor.js";
|
|
2
|
+
export * from "./AgentMetadata.js";
|
|
2
3
|
export * from "./Card.js";
|
|
3
4
|
export * from "./CardParameter.js";
|
|
5
|
+
export * from "./ConstraintTriggerType.js";
|
|
4
6
|
export * from "./Context.js";
|
|
5
7
|
export * from "./CreateTaskResponse.js";
|
|
6
8
|
export * from "./CreateTopicRequestBody.js";
|
|
@@ -11,12 +13,16 @@ export * from "./EntityItemSubEntityItem.js";
|
|
|
11
13
|
export * from "./ErrorMessagePayload.js";
|
|
12
14
|
export * from "./FinalMessagePayload.js";
|
|
13
15
|
export * from "./HttpValidationError.js";
|
|
16
|
+
export * from "./LatencyMetadata.js";
|
|
17
|
+
export * from "./LatencyUnit.js";
|
|
14
18
|
export * from "./ListTasksResponse.js";
|
|
15
19
|
export * from "./Message.js";
|
|
16
20
|
export * from "./MessageCardParameter.js";
|
|
17
21
|
export * from "./MessageCardSubEntity.js";
|
|
18
22
|
export * from "./MessageCardSubEntityItem.js";
|
|
19
23
|
export * from "./MessageContactParty.js";
|
|
24
|
+
export * from "./OffsetType.js";
|
|
25
|
+
export * from "./OffsetUnit.js";
|
|
20
26
|
export * from "./OptionsSearchSelfReviewMethod.js";
|
|
21
27
|
export * from "./ParameterPresenceLevel.js";
|
|
22
28
|
export * from "./ParameterSource.js";
|
|
@@ -26,6 +32,9 @@ export * from "./ProductParameter.js";
|
|
|
26
32
|
export * from "./RecordOriginType.js";
|
|
27
33
|
export * from "./RecordScope.js";
|
|
28
34
|
export * from "./RecordScopeType.js";
|
|
35
|
+
export * from "./SimpleViewCondition.js";
|
|
36
|
+
export * from "./SimpleViewMethod.js";
|
|
37
|
+
export * from "./SimpleViewOperation.js";
|
|
29
38
|
export * from "./Source.js";
|
|
30
39
|
export * from "./StreamingUpdatePayload.js";
|
|
31
40
|
export * from "./TaskInteractionFacetsTaskParametersMatchGroup.js";
|
|
@@ -75,9 +84,12 @@ export * from "./TraceResponse.js";
|
|
|
75
84
|
export * from "./TraceResponseType.js";
|
|
76
85
|
export * from "./TraceRestIntegration.js";
|
|
77
86
|
export * from "./TraceRuleAction.js";
|
|
87
|
+
export * from "./TraceRuleAskForConfirmation.js";
|
|
78
88
|
export * from "./TraceRuleBase.js";
|
|
89
|
+
export * from "./TraceRuleConditionResult.js";
|
|
79
90
|
export * from "./TraceRuleMissingInfo.js";
|
|
80
91
|
export * from "./TraceRuleParamsMissing.js";
|
|
92
|
+
export * from "./TraceRuleTriggerEvaluation.js";
|
|
81
93
|
export * from "./TraceRuleType.js";
|
|
82
94
|
export * from "./TraceSelfReviewEntity.js";
|
|
83
95
|
export * from "./TraceSelfReviewSection.js";
|
|
@@ -85,7 +97,6 @@ export * from "./TraceSubEntity.js";
|
|
|
85
97
|
export * from "./TraceTrigger.js";
|
|
86
98
|
export * from "./TraceTriggerType.js";
|
|
87
99
|
export * from "./TraceUnderstanding.js";
|
|
88
|
-
export * from "./TracSelfReviewSubEntity.js";
|
|
89
100
|
export * from "./UserMessagePayload.js";
|
|
90
101
|
export * from "./ValidationError.js";
|
|
91
102
|
export * from "./VectorSearchTaskInteractionQaAnswerScoreLabel.js";
|
|
@@ -15,8 +15,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./Actor.js"), exports);
|
|
18
|
+
__exportStar(require("./AgentMetadata.js"), exports);
|
|
18
19
|
__exportStar(require("./Card.js"), exports);
|
|
19
20
|
__exportStar(require("./CardParameter.js"), exports);
|
|
21
|
+
__exportStar(require("./ConstraintTriggerType.js"), exports);
|
|
20
22
|
__exportStar(require("./Context.js"), exports);
|
|
21
23
|
__exportStar(require("./CreateTaskResponse.js"), exports);
|
|
22
24
|
__exportStar(require("./CreateTopicRequestBody.js"), exports);
|
|
@@ -27,12 +29,16 @@ __exportStar(require("./EntityItemSubEntityItem.js"), exports);
|
|
|
27
29
|
__exportStar(require("./ErrorMessagePayload.js"), exports);
|
|
28
30
|
__exportStar(require("./FinalMessagePayload.js"), exports);
|
|
29
31
|
__exportStar(require("./HttpValidationError.js"), exports);
|
|
32
|
+
__exportStar(require("./LatencyMetadata.js"), exports);
|
|
33
|
+
__exportStar(require("./LatencyUnit.js"), exports);
|
|
30
34
|
__exportStar(require("./ListTasksResponse.js"), exports);
|
|
31
35
|
__exportStar(require("./Message.js"), exports);
|
|
32
36
|
__exportStar(require("./MessageCardParameter.js"), exports);
|
|
33
37
|
__exportStar(require("./MessageCardSubEntity.js"), exports);
|
|
34
38
|
__exportStar(require("./MessageCardSubEntityItem.js"), exports);
|
|
35
39
|
__exportStar(require("./MessageContactParty.js"), exports);
|
|
40
|
+
__exportStar(require("./OffsetType.js"), exports);
|
|
41
|
+
__exportStar(require("./OffsetUnit.js"), exports);
|
|
36
42
|
__exportStar(require("./OptionsSearchSelfReviewMethod.js"), exports);
|
|
37
43
|
__exportStar(require("./ParameterPresenceLevel.js"), exports);
|
|
38
44
|
__exportStar(require("./ParameterSource.js"), exports);
|
|
@@ -42,6 +48,9 @@ __exportStar(require("./ProductParameter.js"), exports);
|
|
|
42
48
|
__exportStar(require("./RecordOriginType.js"), exports);
|
|
43
49
|
__exportStar(require("./RecordScope.js"), exports);
|
|
44
50
|
__exportStar(require("./RecordScopeType.js"), exports);
|
|
51
|
+
__exportStar(require("./SimpleViewCondition.js"), exports);
|
|
52
|
+
__exportStar(require("./SimpleViewMethod.js"), exports);
|
|
53
|
+
__exportStar(require("./SimpleViewOperation.js"), exports);
|
|
45
54
|
__exportStar(require("./Source.js"), exports);
|
|
46
55
|
__exportStar(require("./StreamingUpdatePayload.js"), exports);
|
|
47
56
|
__exportStar(require("./TaskInteractionFacetsTaskParametersMatchGroup.js"), exports);
|
|
@@ -91,9 +100,12 @@ __exportStar(require("./TraceResponse.js"), exports);
|
|
|
91
100
|
__exportStar(require("./TraceResponseType.js"), exports);
|
|
92
101
|
__exportStar(require("./TraceRestIntegration.js"), exports);
|
|
93
102
|
__exportStar(require("./TraceRuleAction.js"), exports);
|
|
103
|
+
__exportStar(require("./TraceRuleAskForConfirmation.js"), exports);
|
|
94
104
|
__exportStar(require("./TraceRuleBase.js"), exports);
|
|
105
|
+
__exportStar(require("./TraceRuleConditionResult.js"), exports);
|
|
95
106
|
__exportStar(require("./TraceRuleMissingInfo.js"), exports);
|
|
96
107
|
__exportStar(require("./TraceRuleParamsMissing.js"), exports);
|
|
108
|
+
__exportStar(require("./TraceRuleTriggerEvaluation.js"), exports);
|
|
97
109
|
__exportStar(require("./TraceRuleType.js"), exports);
|
|
98
110
|
__exportStar(require("./TraceSelfReviewEntity.js"), exports);
|
|
99
111
|
__exportStar(require("./TraceSelfReviewSection.js"), exports);
|
|
@@ -101,7 +113,6 @@ __exportStar(require("./TraceSubEntity.js"), exports);
|
|
|
101
113
|
__exportStar(require("./TraceTrigger.js"), exports);
|
|
102
114
|
__exportStar(require("./TraceTriggerType.js"), exports);
|
|
103
115
|
__exportStar(require("./TraceUnderstanding.js"), exports);
|
|
104
|
-
__exportStar(require("./TracSelfReviewSubEntity.js"), exports);
|
|
105
116
|
__exportStar(require("./UserMessagePayload.js"), exports);
|
|
106
117
|
__exportStar(require("./ValidationError.js"), exports);
|
|
107
118
|
__exportStar(require("./VectorSearchTaskInteractionQaAnswerScoreLabel.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "
|
|
1
|
+
export declare const SDK_VERSION = "2.0.0";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.mjs
CHANGED
|
@@ -9,8 +9,8 @@ export class ApolloClient {
|
|
|
9
9
|
"x-network-api-key": _options === null || _options === void 0 ? void 0 : _options.networkApiKey,
|
|
10
10
|
"X-Fern-Language": "JavaScript",
|
|
11
11
|
"X-Fern-SDK-Name": "@aui.io/aui-client",
|
|
12
|
-
"X-Fern-SDK-Version": "
|
|
13
|
-
"User-Agent": "@aui.io/aui-client/
|
|
12
|
+
"X-Fern-SDK-Version": "2.0.0",
|
|
13
|
+
"User-Agent": "@aui.io/aui-client/2.0.0",
|
|
14
14
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
15
15
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
16
16
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -77,19 +77,6 @@ export declare class ControllerApi {
|
|
|
77
77
|
*/
|
|
78
78
|
sendMessage(request: Apollo.SubmitMessageRequest, requestOptions?: ControllerApi.RequestOptions): core.HttpResponsePromise<Apollo.Message>;
|
|
79
79
|
private __sendMessage;
|
|
80
|
-
/**
|
|
81
|
-
* @param {Apollo.GetProductMetadataRequest} request
|
|
82
|
-
* @param {ControllerApi.RequestOptions} requestOptions - Request-specific configuration.
|
|
83
|
-
*
|
|
84
|
-
* @throws {@link Apollo.UnprocessableEntityError}
|
|
85
|
-
*
|
|
86
|
-
* @example
|
|
87
|
-
* await client.controllerApi.getProductMetadata({
|
|
88
|
-
* link: "link"
|
|
89
|
-
* })
|
|
90
|
-
*/
|
|
91
|
-
getProductMetadata(request: Apollo.GetProductMetadataRequest, requestOptions?: ControllerApi.RequestOptions): core.HttpResponsePromise<Record<string, unknown>>;
|
|
92
|
-
private __getProductMetadata;
|
|
93
80
|
/**
|
|
94
81
|
* @param {Record<string, unknown>} request
|
|
95
82
|
* @param {ControllerApi.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -371,72 +371,6 @@ export class ControllerApi {
|
|
|
371
371
|
}
|
|
372
372
|
});
|
|
373
373
|
}
|
|
374
|
-
/**
|
|
375
|
-
* @param {Apollo.GetProductMetadataRequest} request
|
|
376
|
-
* @param {ControllerApi.RequestOptions} requestOptions - Request-specific configuration.
|
|
377
|
-
*
|
|
378
|
-
* @throws {@link Apollo.UnprocessableEntityError}
|
|
379
|
-
*
|
|
380
|
-
* @example
|
|
381
|
-
* await client.controllerApi.getProductMetadata({
|
|
382
|
-
* link: "link"
|
|
383
|
-
* })
|
|
384
|
-
*/
|
|
385
|
-
getProductMetadata(request, requestOptions) {
|
|
386
|
-
return core.HttpResponsePromise.fromPromise(this.__getProductMetadata(request, requestOptions));
|
|
387
|
-
}
|
|
388
|
-
__getProductMetadata(request, requestOptions) {
|
|
389
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
390
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
391
|
-
const { link } = request;
|
|
392
|
-
const _queryParams = {};
|
|
393
|
-
_queryParams.link = link;
|
|
394
|
-
const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({
|
|
395
|
-
"x-network-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.networkApiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.networkApiKey,
|
|
396
|
-
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
397
|
-
const _response = yield core.fetcher({
|
|
398
|
-
url: core.url.join((_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : ((_e = (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ApolloEnvironment.Gcp).base, "api/v1/external/product-metadata"),
|
|
399
|
-
method: "GET",
|
|
400
|
-
headers: _headers,
|
|
401
|
-
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
402
|
-
timeoutMs: ((_h = (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.timeoutInSeconds) !== null && _h !== void 0 ? _h : 60) * 1000,
|
|
403
|
-
maxRetries: (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.maxRetries,
|
|
404
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
405
|
-
fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
|
|
406
|
-
logging: this._options.logging,
|
|
407
|
-
});
|
|
408
|
-
if (_response.ok) {
|
|
409
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
410
|
-
}
|
|
411
|
-
if (_response.error.reason === "status-code") {
|
|
412
|
-
switch (_response.error.statusCode) {
|
|
413
|
-
case 422:
|
|
414
|
-
throw new Apollo.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
415
|
-
default:
|
|
416
|
-
throw new errors.ApolloError({
|
|
417
|
-
statusCode: _response.error.statusCode,
|
|
418
|
-
body: _response.error.body,
|
|
419
|
-
rawResponse: _response.rawResponse,
|
|
420
|
-
});
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
switch (_response.error.reason) {
|
|
424
|
-
case "non-json":
|
|
425
|
-
throw new errors.ApolloError({
|
|
426
|
-
statusCode: _response.error.statusCode,
|
|
427
|
-
body: _response.error.rawBody,
|
|
428
|
-
rawResponse: _response.rawResponse,
|
|
429
|
-
});
|
|
430
|
-
case "timeout":
|
|
431
|
-
throw new errors.ApolloTimeoutError("Timeout exceeded when calling GET /api/v1/external/product-metadata.");
|
|
432
|
-
case "unknown":
|
|
433
|
-
throw new errors.ApolloError({
|
|
434
|
-
message: _response.error.errorMessage,
|
|
435
|
-
rawResponse: _response.rawResponse,
|
|
436
|
-
});
|
|
437
|
-
}
|
|
438
|
-
});
|
|
439
|
-
}
|
|
440
374
|
/**
|
|
441
375
|
* @param {Record<string, unknown>} request
|
|
442
376
|
* @param {ControllerApi.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export type { CreateTaskRequest } from "./CreateTaskRequest.mjs";
|
|
2
2
|
export type { DirectFollowupSuggestionsRequest } from "./DirectFollowupSuggestionsRequest.mjs";
|
|
3
3
|
export type { ExternalWidgetRenderRequest } from "./ExternalWidgetRenderRequest.mjs";
|
|
4
|
-
export type { GetProductMetadataRequest } from "./GetProductMetadataRequest.mjs";
|
|
5
4
|
export type { GetTraceInfoRequest } from "./GetTraceInfoRequest.mjs";
|
|
6
5
|
export type { ListUserTasksRequest } from "./ListUserTasksRequest.mjs";
|
|
7
6
|
export type { SubmitMessageRequest } from "./SubmitMessageRequest.mjs";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** Time/calendar units for ``offset`` with ``after_date_offset`` (and similar). */
|
|
2
|
+
export declare const OffsetUnit: {
|
|
3
|
+
readonly Minutes: "minutes";
|
|
4
|
+
readonly Hours: "hours";
|
|
5
|
+
readonly Days: "days";
|
|
6
|
+
readonly Weeks: "weeks";
|
|
7
|
+
readonly Months: "months";
|
|
8
|
+
readonly Years: "years";
|
|
9
|
+
};
|
|
10
|
+
export type OffsetUnit = (typeof OffsetUnit)[keyof typeof OffsetUnit];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
/** Time/calendar units for ``offset`` with ``after_date_offset`` (and similar). */
|
|
3
|
+
export const OffsetUnit = {
|
|
4
|
+
Minutes: "minutes",
|
|
5
|
+
Hours: "hours",
|
|
6
|
+
Days: "days",
|
|
7
|
+
Weeks: "weeks",
|
|
8
|
+
Months: "months",
|
|
9
|
+
Years: "years",
|
|
10
|
+
};
|
|
@@ -2,6 +2,8 @@ export declare const OptionsSearchSelfReviewMethod: {
|
|
|
2
2
|
readonly InventoryClassification: "INVENTORY_CLASSIFICATION";
|
|
3
3
|
readonly Llm: "LLM";
|
|
4
4
|
readonly LlmPerOption: "LLM_PER_OPTION";
|
|
5
|
+
readonly CrossEncoderRanker: "CROSS_ENCODER_RANKER";
|
|
6
|
+
readonly CohereRanker: "COHERE_RANKER";
|
|
5
7
|
readonly ConstantScore: "CONSTANT_SCORE";
|
|
6
8
|
readonly ParamMatching: "PARAM_MATCHING";
|
|
7
9
|
};
|
|
@@ -3,6 +3,8 @@ export const OptionsSearchSelfReviewMethod = {
|
|
|
3
3
|
InventoryClassification: "INVENTORY_CLASSIFICATION",
|
|
4
4
|
Llm: "LLM",
|
|
5
5
|
LlmPerOption: "LLM_PER_OPTION",
|
|
6
|
+
CrossEncoderRanker: "CROSS_ENCODER_RANKER",
|
|
7
|
+
CohereRanker: "COHERE_RANKER",
|
|
6
8
|
ConstantScore: "CONSTANT_SCORE",
|
|
7
9
|
ParamMatching: "PARAM_MATCHING",
|
|
8
10
|
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type * as Apollo from "../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* A leaf condition in a when clause. Combines a method (what to check),
|
|
4
|
+
* params/entities (what to check on), an operation (how to compare),
|
|
5
|
+
* and a value (what to compare against).
|
|
6
|
+
*/
|
|
7
|
+
export interface SimpleViewCondition {
|
|
8
|
+
method: SimpleViewCondition.Method;
|
|
9
|
+
/** List of param codes (can be empty) */
|
|
10
|
+
params?: string[];
|
|
11
|
+
/** Optional entity context */
|
|
12
|
+
entities?: string[];
|
|
13
|
+
/** Optional sub-entity context in case of checking sub-entity param value as source and not entity, entities and params should be filled when filling sub_entities */
|
|
14
|
+
sub_entities?: string[];
|
|
15
|
+
/** Optional operation, in case of having more than one param under params, then the only allowed operations are all_has_value and any_has_value */
|
|
16
|
+
operation?: Apollo.SimpleViewOperation;
|
|
17
|
+
/** Value to compare against. Can be a literal (string, number, boolean). */
|
|
18
|
+
value?: SimpleViewCondition.Value;
|
|
19
|
+
/** Target param code to compare against instead of static value as value will be null when this is filled. */
|
|
20
|
+
target_param?: string;
|
|
21
|
+
/** Target entity name to fetch target value to compare with by target_param instead of static value as value will be null when this is filled. */
|
|
22
|
+
target_entity?: string;
|
|
23
|
+
/** When target_entity is used, fetch the target value from desired entities only. Set false to include saved task entities too. Defaults to true when not set. */
|
|
24
|
+
target_from_desired_only?: boolean;
|
|
25
|
+
/** Multiple target param codes (e.g. gt_sum, gte_sum, lt_sum, lte_sum). Stored as target_param_ids in predicate kwargs. */
|
|
26
|
+
target_params?: string[];
|
|
27
|
+
/** Numeric offset: gt_offset/lte_offset margins, after_date_offset magnitude (with offset_unit), *_entity_sum / *_sum margins, etc. */
|
|
28
|
+
offset?: SimpleViewCondition.Offset;
|
|
29
|
+
/** For gt_offset / lte_offset: add or subtract (with offset) relative to the target value. */
|
|
30
|
+
offset_type?: Apollo.OffsetType;
|
|
31
|
+
/** For gt_percentage / lt_percentage / lte_percentage / gte_percentage: percentage of target value to compare against. */
|
|
32
|
+
percentage?: SimpleViewCondition.Percentage;
|
|
33
|
+
/** Calendar/time unit for offset fields: use with any offset-related operation (gt_offset, lte_offset, between_offset, after_date_offset, gt/gte/lt/lte_entity_sum, gt/gte/lt/lte_sum, etc.). */
|
|
34
|
+
offset_unit?: Apollo.OffsetUnit;
|
|
35
|
+
/** For between_offset: lower bound relative to target. */
|
|
36
|
+
offset_min?: SimpleViewCondition.OffsetMin;
|
|
37
|
+
/** For between_offset: upper bound relative to target. */
|
|
38
|
+
offset_max?: SimpleViewCondition.OffsetMax;
|
|
39
|
+
/** For gt/gte/lt/lte_entity_sum: aggregate function name (e.g. sum). */
|
|
40
|
+
aggregate?: string;
|
|
41
|
+
/** For gt/gte/lt/lte_entity_sum: filter on related entity records. */
|
|
42
|
+
filter?: Record<string, unknown>;
|
|
43
|
+
}
|
|
44
|
+
export declare namespace SimpleViewCondition {
|
|
45
|
+
type Method = Apollo.SimpleViewMethod | string;
|
|
46
|
+
/**
|
|
47
|
+
* Value to compare against. Can be a literal (string, number, boolean).
|
|
48
|
+
*/
|
|
49
|
+
type Value = string | number | number | boolean | unknown[] | Record<string, unknown>;
|
|
50
|
+
/**
|
|
51
|
+
* Numeric offset: gt_offset/lte_offset margins, after_date_offset magnitude (with offset_unit), *_entity_sum / *_sum margins, etc.
|
|
52
|
+
*/
|
|
53
|
+
type Offset = number | number;
|
|
54
|
+
/**
|
|
55
|
+
* For gt_percentage / lt_percentage / lte_percentage / gte_percentage: percentage of target value to compare against.
|
|
56
|
+
*/
|
|
57
|
+
type Percentage = number | number;
|
|
58
|
+
/**
|
|
59
|
+
* For between_offset: lower bound relative to target.
|
|
60
|
+
*/
|
|
61
|
+
type OffsetMin = number | number;
|
|
62
|
+
/**
|
|
63
|
+
* For between_offset: upper bound relative to target.
|
|
64
|
+
*/
|
|
65
|
+
type OffsetMax = number | number;
|
|
66
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/** Full set of condition methods supported by the SimpleView when-tree. Subsets are exposed per rule kind (`ConstraintMethod`, `SummaryMethod`, `ToolTriggerMethod`). */
|
|
2
|
+
export declare const SimpleViewMethod: {
|
|
3
|
+
readonly EntityParamReferenced: "entity_param_referenced";
|
|
4
|
+
readonly EntityParam: "entity_param";
|
|
5
|
+
readonly ParamValue: "param_value";
|
|
6
|
+
readonly ParamExtractedCurrent: "param_extracted_current";
|
|
7
|
+
readonly UserQuestion: "user_question";
|
|
8
|
+
readonly ConversationStarted: "conversation_started";
|
|
9
|
+
readonly ParamMissing: "param_missing";
|
|
10
|
+
readonly UserProfileParam: "user_profile_param";
|
|
11
|
+
readonly CurrentUrl: "current_url";
|
|
12
|
+
readonly ApiRequestParamValue: "api_request_param_value";
|
|
13
|
+
readonly ApiResponseParamValue: "api_response_param_value";
|
|
14
|
+
readonly EntityMissing: "entity_missing";
|
|
15
|
+
readonly ToolParamsFilled: "tool_params_filled";
|
|
16
|
+
readonly ToolRequiredParamsFilled: "tool_required_params_filled";
|
|
17
|
+
readonly ToolOptionalParamsFilled: "tool_optional_params_filled";
|
|
18
|
+
};
|
|
19
|
+
export type SimpleViewMethod = (typeof SimpleViewMethod)[keyof typeof SimpleViewMethod];
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
/** Full set of condition methods supported by the SimpleView when-tree. Subsets are exposed per rule kind (`ConstraintMethod`, `SummaryMethod`, `ToolTriggerMethod`). */
|
|
3
|
+
export const SimpleViewMethod = {
|
|
4
|
+
EntityParamReferenced: "entity_param_referenced",
|
|
5
|
+
EntityParam: "entity_param",
|
|
6
|
+
ParamValue: "param_value",
|
|
7
|
+
ParamExtractedCurrent: "param_extracted_current",
|
|
8
|
+
UserQuestion: "user_question",
|
|
9
|
+
ConversationStarted: "conversation_started",
|
|
10
|
+
ParamMissing: "param_missing",
|
|
11
|
+
UserProfileParam: "user_profile_param",
|
|
12
|
+
CurrentUrl: "current_url",
|
|
13
|
+
ApiRequestParamValue: "api_request_param_value",
|
|
14
|
+
ApiResponseParamValue: "api_response_param_value",
|
|
15
|
+
EntityMissing: "entity_missing",
|
|
16
|
+
ToolParamsFilled: "tool_params_filled",
|
|
17
|
+
ToolRequiredParamsFilled: "tool_required_params_filled",
|
|
18
|
+
ToolOptionalParamsFilled: "tool_optional_params_filled",
|
|
19
|
+
};
|