@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.
Files changed (105) hide show
  1. package/README.md +108 -2
  2. package/dist/cjs/Client.js +2 -2
  3. package/dist/cjs/api/resources/controllerApi/client/Client.d.ts +0 -13
  4. package/dist/cjs/api/resources/controllerApi/client/Client.js +0 -66
  5. package/dist/cjs/api/resources/controllerApi/client/requests/CreateTaskRequest.d.ts +1 -0
  6. package/dist/cjs/api/resources/controllerApi/client/requests/SubmitMessageRequest.d.ts +0 -1
  7. package/dist/cjs/api/resources/controllerApi/client/requests/index.d.ts +0 -1
  8. package/dist/cjs/api/types/AgentMetadata.d.ts +6 -0
  9. package/dist/cjs/api/types/ConstraintTriggerType.d.ts +5 -0
  10. package/dist/cjs/api/types/ConstraintTriggerType.js +8 -0
  11. package/dist/cjs/api/types/LatencyMetadata.d.ts +6 -0
  12. package/dist/cjs/api/types/LatencyUnit.d.ts +7 -0
  13. package/dist/cjs/api/types/LatencyUnit.js +10 -0
  14. package/dist/cjs/api/types/OffsetType.d.ts +6 -0
  15. package/dist/cjs/api/types/OffsetType.js +9 -0
  16. package/dist/cjs/api/types/OffsetUnit.d.ts +10 -0
  17. package/dist/cjs/api/types/OffsetUnit.js +13 -0
  18. package/dist/cjs/api/types/OptionsSearchSelfReviewMethod.d.ts +2 -0
  19. package/dist/cjs/api/types/OptionsSearchSelfReviewMethod.js +2 -0
  20. package/dist/cjs/api/types/SimpleViewCondition.d.ts +66 -0
  21. package/dist/cjs/api/types/SimpleViewCondition.js +3 -0
  22. package/dist/cjs/api/types/SimpleViewMethod.d.ts +19 -0
  23. package/dist/cjs/api/types/SimpleViewMethod.js +22 -0
  24. package/dist/cjs/api/types/SimpleViewOperation.d.ts +48 -0
  25. package/dist/cjs/api/types/SimpleViewOperation.js +51 -0
  26. package/dist/cjs/api/types/TaskParameter.d.ts +5 -1
  27. package/dist/cjs/api/types/TraceDecisionRuleTriggered.d.ts +2 -1
  28. package/dist/cjs/api/types/TraceDecisionToolTextResponse.d.ts +2 -0
  29. package/dist/cjs/api/types/TraceEntity.d.ts +4 -1
  30. package/dist/cjs/api/types/TraceInfo.d.ts +2 -0
  31. package/dist/cjs/api/types/TraceMcpIntegration.d.ts +2 -0
  32. package/dist/cjs/api/types/TraceMcpToolCall.d.ts +2 -0
  33. package/dist/cjs/api/types/TraceReferencedEntity.d.ts +4 -1
  34. package/dist/cjs/api/types/TraceRuleAction.d.ts +1 -0
  35. package/dist/cjs/api/types/TraceRuleAction.js +1 -0
  36. package/dist/cjs/api/types/TraceRuleAskForConfirmation.d.ts +13 -0
  37. package/dist/cjs/api/types/TraceRuleAskForConfirmation.js +3 -0
  38. package/dist/cjs/api/types/TraceRuleConditionResult.d.ts +5 -0
  39. package/dist/cjs/api/types/TraceRuleConditionResult.js +3 -0
  40. package/dist/cjs/api/types/TraceRuleTriggerEvaluation.d.ts +6 -0
  41. package/dist/cjs/api/types/TraceRuleTriggerEvaluation.js +3 -0
  42. package/dist/cjs/api/types/TraceRuleType.d.ts +1 -0
  43. package/dist/cjs/api/types/TraceRuleType.js +1 -0
  44. package/dist/cjs/api/types/TraceSelfReviewEntity.d.ts +4 -2
  45. package/dist/cjs/api/types/index.d.ts +12 -1
  46. package/dist/cjs/api/types/index.js +12 -1
  47. package/dist/cjs/version.d.ts +1 -1
  48. package/dist/cjs/version.js +1 -1
  49. package/dist/esm/Client.mjs +2 -2
  50. package/dist/esm/api/resources/controllerApi/client/Client.d.mts +0 -13
  51. package/dist/esm/api/resources/controllerApi/client/Client.mjs +0 -66
  52. package/dist/esm/api/resources/controllerApi/client/requests/CreateTaskRequest.d.mts +1 -0
  53. package/dist/esm/api/resources/controllerApi/client/requests/SubmitMessageRequest.d.mts +0 -1
  54. package/dist/esm/api/resources/controllerApi/client/requests/index.d.mts +0 -1
  55. package/dist/esm/api/types/AgentMetadata.d.mts +6 -0
  56. package/dist/esm/api/types/ConstraintTriggerType.d.mts +5 -0
  57. package/dist/esm/api/types/ConstraintTriggerType.mjs +5 -0
  58. package/dist/esm/api/types/LatencyMetadata.d.mts +6 -0
  59. package/dist/esm/api/types/LatencyUnit.d.mts +7 -0
  60. package/dist/esm/api/types/LatencyUnit.mjs +7 -0
  61. package/dist/esm/api/types/OffsetType.d.mts +6 -0
  62. package/dist/esm/api/types/OffsetType.mjs +6 -0
  63. package/dist/esm/api/types/OffsetUnit.d.mts +10 -0
  64. package/dist/esm/api/types/OffsetUnit.mjs +10 -0
  65. package/dist/esm/api/types/OptionsSearchSelfReviewMethod.d.mts +2 -0
  66. package/dist/esm/api/types/OptionsSearchSelfReviewMethod.mjs +2 -0
  67. package/dist/esm/api/types/SimpleViewCondition.d.mts +66 -0
  68. package/dist/esm/api/types/SimpleViewCondition.mjs +2 -0
  69. package/dist/esm/api/types/SimpleViewMethod.d.mts +19 -0
  70. package/dist/esm/api/types/SimpleViewMethod.mjs +19 -0
  71. package/dist/esm/api/types/SimpleViewOperation.d.mts +48 -0
  72. package/dist/esm/api/types/SimpleViewOperation.mjs +48 -0
  73. package/dist/esm/api/types/TaskParameter.d.mts +5 -1
  74. package/dist/esm/api/types/TraceDecisionRuleTriggered.d.mts +2 -1
  75. package/dist/esm/api/types/TraceDecisionToolTextResponse.d.mts +2 -0
  76. package/dist/esm/api/types/TraceEntity.d.mts +4 -1
  77. package/dist/esm/api/types/TraceInfo.d.mts +2 -0
  78. package/dist/esm/api/types/TraceMcpIntegration.d.mts +2 -0
  79. package/dist/esm/api/types/TraceMcpToolCall.d.mts +2 -0
  80. package/dist/esm/api/types/TraceReferencedEntity.d.mts +4 -1
  81. package/dist/esm/api/types/TraceRuleAction.d.mts +1 -0
  82. package/dist/esm/api/types/TraceRuleAction.mjs +1 -0
  83. package/dist/esm/api/types/TraceRuleAskForConfirmation.d.mts +13 -0
  84. package/dist/esm/api/types/TraceRuleAskForConfirmation.mjs +2 -0
  85. package/dist/esm/api/types/TraceRuleConditionResult.d.mts +5 -0
  86. package/dist/esm/api/types/TraceRuleConditionResult.mjs +2 -0
  87. package/dist/esm/api/types/TraceRuleTriggerEvaluation.d.mts +6 -0
  88. package/dist/esm/api/types/TraceRuleTriggerEvaluation.mjs +2 -0
  89. package/dist/esm/api/types/TraceRuleType.d.mts +1 -0
  90. package/dist/esm/api/types/TraceRuleType.mjs +1 -0
  91. package/dist/esm/api/types/TraceSelfReviewEntity.d.mts +4 -2
  92. package/dist/esm/api/types/index.d.mts +12 -1
  93. package/dist/esm/api/types/index.mjs +12 -1
  94. package/dist/esm/version.d.mts +1 -1
  95. package/dist/esm/version.mjs +1 -1
  96. package/package.json +1 -1
  97. package/reference.md +0 -51
  98. package/dist/cjs/api/resources/controllerApi/client/requests/GetProductMetadataRequest.d.ts +0 -9
  99. package/dist/cjs/api/types/TracSelfReviewSubEntity.d.ts +0 -4
  100. package/dist/esm/api/resources/controllerApi/client/requests/GetProductMetadataRequest.d.mts +0 -9
  101. package/dist/esm/api/types/TracSelfReviewSubEntity.d.mts +0 -4
  102. /package/dist/cjs/api/{resources/controllerApi/client/requests/GetProductMetadataRequest.js → types/AgentMetadata.js} +0 -0
  103. /package/dist/cjs/api/types/{TracSelfReviewSubEntity.js → LatencyMetadata.js} +0 -0
  104. /package/dist/esm/api/{resources/controllerApi/client/requests/GetProductMetadataRequest.mjs → types/AgentMetadata.mjs} +0 -0
  105. /package/dist/esm/api/types/{TracSelfReviewSubEntity.mjs → LatencyMetadata.mjs} +0 -0
@@ -4,7 +4,9 @@ export interface TraceDecisionToolTextResponse {
4
4
  tool: string;
5
5
  status: string;
6
6
  text?: string;
7
+ fail_reason?: string;
7
8
  track_id?: string;
8
9
  tone_of_voice?: string;
9
10
  brevity?: string;
11
+ questions?: string[];
10
12
  }
@@ -1,9 +1,12 @@
1
1
  import type * as Apollo from "../index.js";
2
2
  export interface TraceEntity {
3
3
  entity: string;
4
- identifier?: string;
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[];
@@ -8,4 +8,6 @@ export interface TraceMcpIntegration {
8
8
  name: string;
9
9
  completion: string;
10
10
  tool_calls?: Apollo.TraceMcpToolCall[];
11
+ status?: string;
12
+ latency?: Apollo.LatencyMetadata;
11
13
  }
@@ -1,6 +1,8 @@
1
+ import type * as Apollo from "../index.js";
1
2
  export interface TraceMcpToolCall {
2
3
  tool_name: string;
3
4
  request_parameters?: Record<string, unknown>;
4
5
  response?: unknown;
5
6
  is_error?: boolean;
7
+ latency?: Apollo.LatencyMetadata;
6
8
  }
@@ -1,6 +1,9 @@
1
1
  export interface TraceReferencedEntity {
2
2
  entity: string;
3
- identifier?: string;
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";
@@ -6,6 +6,7 @@ exports.TraceRuleAction = void 0;
6
6
  exports.TraceRuleAction = {
7
7
  AddRequiredParam: "ADD_REQUIRED_PARAM",
8
8
  AskAQuestion: "ASK_A_QUESTION",
9
+ AskForConfirmation: "ASK_FOR_CONFIRMATION",
9
10
  Block: "BLOCK",
10
11
  PartialBlock: "PARTIAL_BLOCK",
11
12
  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
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ import type * as Apollo from "../index.js";
2
+ export interface TraceRuleConditionResult {
3
+ condition: Apollo.SimpleViewCondition;
4
+ passed: boolean;
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import type * as Apollo from "../index.js";
2
+ export interface TraceRuleTriggerEvaluation {
3
+ code: string;
4
+ triggered: boolean;
5
+ reason?: Apollo.TraceRuleConditionResult[];
6
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -6,5 +6,6 @@ export declare const TraceRuleType: {
6
6
  readonly Success: "success";
7
7
  readonly Fail: "fail";
8
8
  readonly Block: "block";
9
+ readonly Confirmation: "confirmation";
9
10
  };
10
11
  export type TraceRuleType = (typeof TraceRuleType)[keyof typeof TraceRuleType];
@@ -10,4 +10,5 @@ exports.TraceRuleType = {
10
10
  Success: "success",
11
11
  Fail: "fail",
12
12
  Block: "block",
13
+ Confirmation: "confirmation",
13
14
  };
@@ -1,9 +1,11 @@
1
1
  import type * as Apollo from "../index.js";
2
2
  export interface TraceSelfReviewEntity {
3
3
  entity: string;
4
- identifier?: string;
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);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.2.40";
1
+ export declare const SDK_VERSION = "2.0.0";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "1.2.40";
4
+ exports.SDK_VERSION = "2.0.0";
@@ -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": "1.2.40",
13
- "User-Agent": "@aui.io/aui-client/1.2.40",
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.
@@ -9,4 +9,5 @@ import type * as Apollo from "../../../../index.mjs";
9
9
  export interface CreateTaskRequest {
10
10
  user_id: string;
11
11
  task_origin_type: Apollo.RecordOriginType;
12
+ agent?: Apollo.AgentMetadata;
12
13
  }
@@ -18,5 +18,4 @@ export interface SubmitMessageRequest {
18
18
  text?: string;
19
19
  context?: Apollo.Context;
20
20
  agent_variables?: Record<string, unknown>;
21
- static_context?: Record<string, unknown>;
22
21
  }
@@ -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,6 @@
1
+ export interface AgentMetadata {
2
+ agent_id?: string;
3
+ version_id?: string;
4
+ version_tag?: string;
5
+ bundle_mode?: boolean;
6
+ }
@@ -0,0 +1,5 @@
1
+ export declare const ConstraintTriggerType: {
2
+ readonly Init: "init";
3
+ readonly PreIntegration: "pre-integration";
4
+ };
5
+ export type ConstraintTriggerType = (typeof ConstraintTriggerType)[keyof typeof ConstraintTriggerType];
@@ -0,0 +1,5 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export const ConstraintTriggerType = {
3
+ Init: "init",
4
+ PreIntegration: "pre-integration",
5
+ };
@@ -0,0 +1,6 @@
1
+ import type * as Apollo from "../index.mjs";
2
+ export interface LatencyMetadata {
3
+ elapsed: number;
4
+ unit?: Apollo.LatencyUnit;
5
+ time_to_first_token?: number;
6
+ }
@@ -0,0 +1,7 @@
1
+ export declare const LatencyUnit: {
2
+ readonly Microsecond: "microsecond";
3
+ readonly Millisecond: "millisecond";
4
+ readonly Second: "second";
5
+ readonly Minute: "minute";
6
+ };
7
+ export type LatencyUnit = (typeof LatencyUnit)[keyof typeof LatencyUnit];
@@ -0,0 +1,7 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export const LatencyUnit = {
3
+ Microsecond: "microsecond",
4
+ Millisecond: "millisecond",
5
+ Second: "second",
6
+ Minute: "minute",
7
+ };
@@ -0,0 +1,6 @@
1
+ /** How ``offset`` is combined with the target for ``gt_offset`` / ``lte_offset`` / etc. */
2
+ export declare const OffsetType: {
3
+ readonly Add: "add";
4
+ readonly Subtract: "subtract";
5
+ };
6
+ export type OffsetType = (typeof OffsetType)[keyof typeof OffsetType];
@@ -0,0 +1,6 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ /** How ``offset`` is combined with the target for ``gt_offset`` / ``lte_offset`` / etc. */
3
+ export const OffsetType = {
4
+ Add: "add",
5
+ Subtract: "subtract",
6
+ };
@@ -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,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -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
+ };