mavenagi 1.2.59 → 1.2.61
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/BaseClient.d.ts +12 -0
- package/BaseClient.js +5 -3
- package/Client.d.ts +3 -0
- package/Client.js +33 -28
- package/api/resources/actions/client/Client.d.ts +10 -0
- package/api/resources/actions/client/Client.js +14 -3
- package/api/resources/actions/client/requests/ActionPatchRequest.d.ts +2 -3
- package/api/resources/agents/client/Client.d.ts +12 -0
- package/api/resources/agents/client/Client.js +16 -3
- package/api/resources/agents/client/requests/AgentPatchRequest.d.ts +7 -3
- package/api/resources/agents/types/AgentPrompting.d.ts +7 -3
- package/api/resources/analytics/client/Client.d.ts +21 -1
- package/api/resources/analytics/client/Client.js +29 -8
- package/api/resources/analytics/types/ConversationMedian.d.ts +4 -0
- package/api/resources/analytics/types/ConversationPercentile.d.ts +4 -0
- package/api/resources/analytics/types/RowBase.d.ts +5 -1
- package/api/resources/analytics/types/Series.d.ts +4 -1
- package/api/resources/analytics/types/TimeSeries.d.ts +5 -1
- package/api/resources/appDirectory/client/Client.d.ts +12 -0
- package/api/resources/appDirectory/client/Client.js +16 -3
- package/api/resources/appSettings/client/Client.d.ts +6 -0
- package/api/resources/appSettings/client/Client.js +8 -1
- package/api/resources/assets/client/Client.d.ts +4 -0
- package/api/resources/assets/client/Client.js +7 -2
- package/api/resources/charters/client/Client.d.ts +245 -0
- package/api/resources/charters/client/Client.js +884 -0
- package/api/resources/charters/client/index.d.ts +1 -0
- package/api/resources/charters/client/index.js +17 -0
- package/api/resources/charters/client/requests/CharterDeleteRequest.d.ts +20 -0
- package/api/resources/charters/client/requests/CharterDeleteRequest.js +3 -0
- package/api/resources/charters/client/requests/CharterGetAncestorsRequest.d.ts +8 -0
- package/api/resources/charters/client/requests/CharterGetAncestorsRequest.js +3 -0
- package/api/resources/charters/client/requests/CharterGetRequest.d.ts +8 -0
- package/api/resources/charters/client/requests/CharterGetRequest.js +3 -0
- package/api/resources/charters/client/requests/CharterPatchRequest.d.ts +67 -0
- package/api/resources/charters/client/requests/CharterPatchRequest.js +3 -0
- package/api/resources/charters/client/requests/index.d.ts +4 -0
- package/api/resources/charters/client/requests/index.js +2 -0
- package/api/resources/charters/exports.d.ts +2 -0
- package/api/resources/charters/exports.js +21 -0
- package/api/resources/charters/index.d.ts +1 -0
- package/api/resources/charters/index.js +1 -0
- package/api/resources/charters/types/CharterAncestorsResponse.d.ts +8 -0
- package/api/resources/charters/types/CharterAncestorsResponse.js +3 -0
- package/api/resources/charters/types/CharterBase.d.ts +14 -0
- package/api/resources/charters/types/CharterBase.js +3 -0
- package/api/resources/charters/types/CharterChildrenExclusionPolicy.d.ts +1 -1
- package/api/resources/charters/types/CharterChildrenExclusionPolicy.js +1 -1
- package/api/resources/charters/types/CharterChildrenGroup.d.ts +18 -0
- package/api/resources/charters/types/CharterChildrenGroup.js +3 -0
- package/api/resources/charters/types/CharterContent.d.ts +60 -0
- package/api/resources/charters/types/CharterContent.js +3 -0
- package/api/resources/charters/types/CharterKnowledgeBaseReference.d.ts +16 -0
- package/api/resources/charters/types/CharterKnowledgeBaseReference.js +3 -0
- package/api/resources/charters/types/CharterListChildrenRequest.d.ts +18 -0
- package/api/resources/charters/types/CharterListChildrenRequest.js +3 -0
- package/api/resources/charters/types/CharterListChildrenResponse.d.ts +55 -0
- package/api/resources/charters/types/CharterListChildrenResponse.js +3 -0
- package/api/resources/charters/types/CharterPatchReferences.d.ts +22 -0
- package/api/resources/charters/types/CharterPatchReferences.js +3 -0
- package/api/resources/charters/types/CharterReferences.d.ts +21 -0
- package/api/resources/charters/types/CharterReferences.js +3 -0
- package/api/resources/charters/types/CharterRequest.d.ts +36 -0
- package/api/resources/charters/types/CharterRequest.js +3 -0
- package/api/resources/charters/types/CharterResponse.d.ts +66 -0
- package/api/resources/charters/types/CharterResponse.js +3 -0
- package/api/resources/charters/types/CharterSearchField.d.ts +5 -0
- package/api/resources/charters/types/CharterSearchField.js +8 -0
- package/api/resources/charters/types/CharterSearchFilter.d.ts +15 -0
- package/api/resources/charters/types/CharterSearchFilter.js +3 -0
- package/api/resources/charters/types/CharterSearchRequest.d.ts +5 -0
- package/api/resources/charters/types/CharterSearchRequest.js +3 -0
- package/api/resources/charters/types/CharterSearchResponse.d.ts +36 -0
- package/api/resources/charters/types/CharterSearchResponse.js +3 -0
- package/api/resources/charters/types/CharterStatus.d.ts +2 -2
- package/api/resources/charters/types/CharterStatus.js +2 -2
- package/api/resources/charters/types/CharterSummary.d.ts +2 -5
- package/api/resources/charters/types/CharterType.d.ts +4 -4
- package/api/resources/charters/types/CharterType.js +4 -4
- package/api/resources/charters/types/index.d.ts +15 -0
- package/api/resources/charters/types/index.js +15 -0
- package/api/resources/commons/errors/BadRequestError.d.ts +1 -0
- package/api/resources/commons/errors/BadRequestError.js +1 -1
- package/api/resources/commons/errors/NotFoundError.d.ts +1 -0
- package/api/resources/commons/errors/NotFoundError.js +1 -1
- package/api/resources/commons/errors/PayloadTooLargeError.d.ts +1 -0
- package/api/resources/commons/errors/PayloadTooLargeError.js +1 -1
- package/api/resources/commons/errors/ServerError.d.ts +1 -0
- package/api/resources/commons/errors/ServerError.js +1 -1
- package/api/resources/commons/errors/TooManyRequestsError.d.ts +1 -0
- package/api/resources/commons/errors/TooManyRequestsError.js +1 -1
- package/api/resources/commons/types/ActionProperties.d.ts +5 -1
- package/api/resources/commons/types/ActionResponse.d.ts +3 -3
- package/api/resources/commons/types/AskType.d.ts +2 -2
- package/api/resources/commons/types/AskType.js +2 -2
- package/api/resources/commons/types/BotObjectResponse.d.ts +1 -1
- package/api/resources/commons/types/ConversationRound.d.ts +1 -1
- package/api/resources/commons/types/ConversationRound.js +1 -1
- package/api/resources/commons/types/EventFilter.d.ts +5 -0
- package/api/resources/commons/types/EventTriggerType.d.ts +2 -0
- package/api/resources/commons/types/EventTriggerType.js +2 -0
- package/api/resources/commons/types/IntelligentFieldPrecondition.d.ts +0 -4
- package/api/resources/commons/types/KnowledgeContextByEntities.d.ts +11 -0
- package/api/resources/commons/types/KnowledgeContextByEntityTypes.d.ts +3 -0
- package/api/resources/commons/types/KnowledgeContextFilter.d.ts +6 -1
- package/api/resources/commons/types/LlmPersona.d.ts +1 -0
- package/api/resources/commons/types/LlmPersona.js +1 -0
- package/api/resources/commons/types/MetadataComparisonCondition.d.ts +10 -0
- package/api/resources/commons/types/MetadataComparisonCondition.js +3 -0
- package/api/resources/commons/types/MetadataComparisonOperator.d.ts +22 -0
- package/api/resources/commons/types/MetadataComparisonOperator.js +25 -0
- package/api/resources/commons/types/MetadataCondition.d.ts +21 -0
- package/api/resources/commons/types/MetadataCondition.js +3 -0
- package/api/resources/commons/types/MetadataEntryCondition.d.ts +10 -0
- package/api/resources/commons/types/MetadataEntryCondition.js +3 -0
- package/api/resources/commons/types/MetadataFilter.d.ts +41 -0
- package/api/resources/commons/types/MetadataFilter.js +3 -0
- package/api/resources/commons/types/MetadataFilterGroup.d.ts +14 -0
- package/api/resources/commons/types/MetadataFilterGroup.js +3 -0
- package/api/resources/commons/types/NovelUserEvent.d.ts +4 -1
- package/api/resources/commons/types/ResponseConfig.d.ts +9 -3
- package/api/resources/commons/types/SimulationContext.d.ts +3 -3
- package/api/resources/commons/types/SystemEventName.d.ts +27 -0
- package/api/resources/commons/types/SystemEventName.js +27 -0
- package/api/resources/commons/types/UserEvent.d.ts +4 -1
- package/api/resources/commons/types/UserEventName.d.ts +84 -0
- package/api/resources/commons/types/UserEventName.js +84 -0
- package/api/resources/commons/types/UserMessage.d.ts +7 -0
- package/api/resources/commons/types/index.d.ts +6 -0
- package/api/resources/commons/types/index.js +6 -0
- package/api/resources/conversation/client/Client.d.ts +35 -1
- package/api/resources/conversation/client/Client.js +51 -18
- package/api/resources/conversation/types/AskRequest.d.ts +10 -10
- package/api/resources/conversation/types/ConversationFilter.d.ts +10 -4
- package/api/resources/customers/client/Client.d.ts +8 -0
- package/api/resources/customers/client/Client.js +12 -3
- package/api/resources/events/client/Client.d.ts +8 -0
- package/api/resources/events/client/Client.js +12 -3
- package/api/resources/inbox/client/Client.d.ts +16 -0
- package/api/resources/inbox/client/Client.js +22 -5
- package/api/resources/index.d.ts +1 -0
- package/api/resources/index.js +1 -0
- package/api/resources/integrations/client/Client.d.ts +2 -0
- package/api/resources/integrations/client/Client.js +4 -1
- package/api/resources/intelligentFields/client/Client.d.ts +28 -3
- package/api/resources/intelligentFields/client/Client.js +36 -8
- package/api/resources/intelligentFields/client/requests/IntelligentFieldGetRequest.d.ts +4 -0
- package/api/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.d.ts +13 -4
- package/api/resources/intelligentFields/types/EnumOption.d.ts +3 -1
- package/api/resources/intelligentFields/types/IntelligentFieldBase.d.ts +1 -1
- package/api/resources/intelligentFields/types/IntelligentFieldCore.d.ts +12 -11
- package/api/resources/intelligentFields/types/IntelligentFieldDetailResponse.d.ts +4 -1
- package/api/resources/intelligentFields/types/IntelligentFieldRequest.d.ts +4 -1
- package/api/resources/intelligentFields/types/IntelligentFieldStatus.d.ts +8 -1
- package/api/resources/intelligentFields/types/IntelligentFieldStatus.js +8 -1
- package/api/resources/intelligentFields/types/IntelligentFieldType.d.ts +10 -0
- package/api/resources/intelligentFields/types/IntelligentFieldType.js +10 -0
- package/api/resources/knowledge/client/Client.d.ts +32 -0
- package/api/resources/knowledge/client/Client.js +47 -16
- package/api/resources/knowledge/client/requests/KnowledgeBasePatchRequest.d.ts +18 -10
- package/api/resources/knowledge/types/KnowledgeBaseFilter.d.ts +6 -1
- package/api/resources/knowledge/types/KnowledgeBaseProperties.d.ts +5 -1
- package/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +10 -6
- package/api/resources/knowledge/types/KnowledgeDocumentFilter.d.ts +13 -0
- package/api/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +16 -1
- package/api/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +33 -9
- package/api/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +7 -1
- package/api/resources/organizations/client/Client.d.ts +12 -0
- package/api/resources/organizations/client/Client.js +17 -4
- package/api/resources/segments/client/Client.d.ts +20 -0
- package/api/resources/segments/client/Client.js +24 -3
- package/api/resources/translations/client/Client.d.ts +2 -0
- package/api/resources/translations/client/Client.js +4 -1
- package/api/resources/triggers/client/Client.d.ts +10 -0
- package/api/resources/triggers/client/Client.js +14 -3
- package/api/resources/triggers/types/EventTriggerBase.d.ts +3 -1
- package/api/resources/users/client/Client.d.ts +10 -0
- package/api/resources/users/client/Client.js +13 -2
- package/api/resources/voice/client/Client.d.ts +2 -0
- package/api/resources/voice/client/Client.js +4 -1
- package/api/resources/voiceConversations/client/Client.d.ts +4 -1
- package/api/resources/voiceConversations/client/Client.js +2 -1
- package/api/resources/voiceConversations/client/Socket.d.ts +11 -0
- package/api/resources/voiceConversations/client/Socket.js +15 -0
- package/core/fetcher/Fetcher.js +9 -92
- package/core/fetcher/getResponseBody.js +11 -0
- package/core/fetcher/makePassthroughRequest.js +26 -4
- package/core/fetcher/redactUrl.d.ts +2 -0
- package/core/fetcher/redactUrl.js +88 -0
- package/core/fetcher/signals.js +9 -1
- package/core/file/file.js +3 -0
- package/core/form-data-utils/FormDataWrapper.js +3 -0
- package/core/requestBody.d.ts +12 -0
- package/core/requestBody.js +26 -0
- package/core/runtime/index.d.ts +1 -1
- package/core/runtime/index.js +2 -1
- package/core/runtime/runtime.d.ts +19 -0
- package/core/runtime/runtime.js +74 -2
- package/core/schemas/builders/schema-utils/JsonError.js +2 -2
- package/core/schemas/builders/schema-utils/ParseError.js +2 -2
- package/core/stream/Stream.d.ts +45 -1
- package/core/stream/Stream.js +323 -84
- package/core/stream/index.d.ts +1 -0
- package/core/url/qs.js +2 -2
- package/core/websocket/ws.d.ts +6 -0
- package/core/websocket/ws.js +14 -1
- package/errors/MavenAGIError.d.ts +1 -0
- package/errors/MavenAGIError.js +5 -1
- package/errors/MavenAGITimeoutError.d.ts +2 -2
- package/errors/MavenAGITimeoutError.js +40 -6
- package/package.json +2 -2
- package/reference.md +595 -5
- package/serialization/resources/charters/client/index.d.ts +1 -0
- package/serialization/resources/charters/client/index.js +17 -0
- package/serialization/resources/charters/client/requests/CharterPatchRequest.d.ts +24 -0
- package/serialization/resources/charters/client/requests/CharterPatchRequest.js +57 -0
- package/serialization/resources/charters/client/requests/index.d.ts +1 -0
- package/serialization/resources/charters/client/requests/index.js +5 -0
- package/serialization/resources/charters/index.d.ts +1 -0
- package/serialization/resources/charters/index.js +1 -0
- package/serialization/resources/charters/types/CharterAncestorsResponse.d.ts +10 -0
- package/serialization/resources/charters/types/CharterAncestorsResponse.js +42 -0
- package/serialization/resources/charters/types/CharterBase.d.ts +11 -0
- package/serialization/resources/charters/types/CharterBase.js +43 -0
- package/serialization/resources/charters/types/CharterChildrenGroup.d.ts +13 -0
- package/serialization/resources/charters/types/CharterChildrenGroup.js +45 -0
- package/serialization/resources/charters/types/CharterContent.d.ts +19 -0
- package/serialization/resources/charters/types/CharterContent.js +54 -0
- package/serialization/resources/charters/types/CharterKnowledgeBaseReference.d.ts +11 -0
- package/serialization/resources/charters/types/CharterKnowledgeBaseReference.js +44 -0
- package/serialization/resources/charters/types/CharterListChildrenRequest.d.ts +11 -0
- package/serialization/resources/charters/types/CharterListChildrenRequest.js +45 -0
- package/serialization/resources/charters/types/CharterListChildrenResponse.d.ts +11 -0
- package/serialization/resources/charters/types/CharterListChildrenResponse.js +45 -0
- package/serialization/resources/charters/types/CharterPatchReferences.d.ts +12 -0
- package/serialization/resources/charters/types/CharterPatchReferences.js +44 -0
- package/serialization/resources/charters/types/CharterReferences.d.ts +12 -0
- package/serialization/resources/charters/types/CharterReferences.js +44 -0
- package/serialization/resources/charters/types/CharterRequest.d.ts +13 -0
- package/serialization/resources/charters/types/CharterRequest.js +47 -0
- package/serialization/resources/charters/types/CharterResponse.d.ts +25 -0
- package/serialization/resources/charters/types/CharterResponse.js +60 -0
- package/serialization/resources/charters/types/CharterSearchField.d.ts +7 -0
- package/serialization/resources/charters/types/CharterSearchField.js +39 -0
- package/serialization/resources/charters/types/CharterSearchFilter.d.ts +11 -0
- package/serialization/resources/charters/types/CharterSearchFilter.js +43 -0
- package/serialization/resources/charters/types/CharterSearchRequest.d.ts +13 -0
- package/serialization/resources/charters/types/CharterSearchRequest.js +47 -0
- package/serialization/resources/charters/types/CharterSearchResponse.d.ts +11 -0
- package/serialization/resources/charters/types/CharterSearchResponse.js +45 -0
- package/serialization/resources/charters/types/CharterSummary.d.ts +2 -3
- package/serialization/resources/charters/types/CharterSummary.js +2 -2
- package/serialization/resources/charters/types/index.d.ts +15 -0
- package/serialization/resources/charters/types/index.js +15 -0
- package/serialization/resources/commons/types/MetadataComparisonCondition.d.ts +11 -0
- package/serialization/resources/commons/types/MetadataComparisonCondition.js +43 -0
- package/serialization/resources/commons/types/MetadataComparisonOperator.d.ts +7 -0
- package/serialization/resources/commons/types/MetadataComparisonOperator.js +39 -0
- package/serialization/resources/commons/types/MetadataCondition.d.ts +19 -0
- package/serialization/resources/commons/types/MetadataCondition.js +51 -0
- package/serialization/resources/commons/types/MetadataEntryCondition.d.ts +11 -0
- package/serialization/resources/commons/types/MetadataEntryCondition.js +43 -0
- package/serialization/resources/commons/types/MetadataFilter.d.ts +14 -0
- package/serialization/resources/commons/types/MetadataFilter.js +49 -0
- package/serialization/resources/commons/types/MetadataFilterGroup.d.ts +11 -0
- package/serialization/resources/commons/types/MetadataFilterGroup.js +44 -0
- package/serialization/resources/commons/types/SystemEventName.d.ts +1 -1
- package/serialization/resources/commons/types/SystemEventName.js +14 -1
- package/serialization/resources/commons/types/UserEventName.d.ts +1 -1
- package/serialization/resources/commons/types/UserEventName.js +28 -0
- package/serialization/resources/commons/types/UserMessage.d.ts +1 -0
- package/serialization/resources/commons/types/UserMessage.js +1 -0
- package/serialization/resources/commons/types/index.d.ts +6 -0
- package/serialization/resources/commons/types/index.js +6 -0
- package/serialization/resources/index.d.ts +1 -0
- package/serialization/resources/index.js +1 -0
- package/serialization/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.d.ts +1 -0
- package/serialization/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.js +1 -0
- package/serialization/resources/knowledge/types/KnowledgeDocumentFilter.d.ts +2 -0
- package/serialization/resources/knowledge/types/KnowledgeDocumentFilter.js +2 -0
- package/serialization/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +0 -2
- package/serialization/resources/knowledge/types/KnowledgeDocumentResponse.js +0 -2
- package/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +2 -0
- package/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.js +2 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -48,6 +48,7 @@ const BaseClient_1 = require("../../../../BaseClient");
|
|
|
48
48
|
const core = __importStar(require("../../../../core"));
|
|
49
49
|
const headers_1 = require("../../../../core/headers");
|
|
50
50
|
const json_1 = require("../../../../core/json");
|
|
51
|
+
const requestBody_1 = require("../../../../core/requestBody");
|
|
51
52
|
const environments = __importStar(require("../../../../environments"));
|
|
52
53
|
const handleNonStatusCodeError_1 = require("../../../../errors/handleNonStatusCodeError");
|
|
53
54
|
const errors = __importStar(require("../../../../errors/index"));
|
|
@@ -75,6 +76,8 @@ class ConversationClient {
|
|
|
75
76
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
76
77
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
77
78
|
* @throws {@link MavenAGI.ServerError}
|
|
79
|
+
* @throws {@link errors.MavenAGIError}
|
|
80
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
78
81
|
*
|
|
79
82
|
* @example
|
|
80
83
|
* await client.conversation.initialize({
|
|
@@ -120,7 +123,7 @@ class ConversationClient {
|
|
|
120
123
|
contentType: "application/json",
|
|
121
124
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
122
125
|
requestType: "json",
|
|
123
|
-
body: serializers.ConversationRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
126
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.ConversationRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
124
127
|
timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
|
|
125
128
|
maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
|
|
126
129
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -201,6 +204,8 @@ class ConversationClient {
|
|
|
201
204
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
202
205
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
203
206
|
* @throws {@link MavenAGI.ServerError}
|
|
207
|
+
* @throws {@link errors.MavenAGIError}
|
|
208
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
204
209
|
*
|
|
205
210
|
* @example
|
|
206
211
|
* await client.conversation.patch("conversation-0", {
|
|
@@ -225,7 +230,7 @@ class ConversationClient {
|
|
|
225
230
|
contentType: "application/json",
|
|
226
231
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
227
232
|
requestType: "json",
|
|
228
|
-
body: serializers.ConversationPatchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
233
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.ConversationPatchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
229
234
|
timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
|
|
230
235
|
maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
|
|
231
236
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -303,6 +308,8 @@ class ConversationClient {
|
|
|
303
308
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
304
309
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
305
310
|
* @throws {@link MavenAGI.ServerError}
|
|
311
|
+
* @throws {@link errors.MavenAGIError}
|
|
312
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
306
313
|
*
|
|
307
314
|
* @example
|
|
308
315
|
* await client.conversation.get("conversationId")
|
|
@@ -418,6 +425,8 @@ class ConversationClient {
|
|
|
418
425
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
419
426
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
420
427
|
* @throws {@link MavenAGI.ServerError}
|
|
428
|
+
* @throws {@link errors.MavenAGIError}
|
|
429
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
421
430
|
*
|
|
422
431
|
* @example
|
|
423
432
|
* await client.conversation.delete("conversation-0", {
|
|
@@ -518,6 +527,8 @@ class ConversationClient {
|
|
|
518
527
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
519
528
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
520
529
|
* @throws {@link MavenAGI.ServerError}
|
|
530
|
+
* @throws {@link errors.MavenAGIError}
|
|
531
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
521
532
|
*
|
|
522
533
|
* @example
|
|
523
534
|
* await client.conversation.appendNewMessages("conversationId", [{
|
|
@@ -558,9 +569,9 @@ class ConversationClient {
|
|
|
558
569
|
contentType: "application/json",
|
|
559
570
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
560
571
|
requestType: "json",
|
|
561
|
-
body: serializers.conversation.appendNewMessages.Request.jsonOrThrow(request, {
|
|
572
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.conversation.appendNewMessages.Request.jsonOrThrow(request, {
|
|
562
573
|
unrecognizedObjectKeys: "strip",
|
|
563
|
-
}),
|
|
574
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
564
575
|
timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
|
|
565
576
|
maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
|
|
566
577
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -646,6 +657,8 @@ class ConversationClient {
|
|
|
646
657
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
647
658
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
648
659
|
* @throws {@link MavenAGI.ServerError}
|
|
660
|
+
* @throws {@link errors.MavenAGIError}
|
|
661
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
649
662
|
*
|
|
650
663
|
* @example
|
|
651
664
|
* await client.conversation.ask("conversation-0", {
|
|
@@ -685,7 +698,7 @@ class ConversationClient {
|
|
|
685
698
|
contentType: "application/json",
|
|
686
699
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
687
700
|
requestType: "json",
|
|
688
|
-
body: serializers.AskRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
701
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.AskRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
689
702
|
timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
|
|
690
703
|
maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
|
|
691
704
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -784,7 +797,7 @@ class ConversationClient {
|
|
|
784
797
|
contentType: "application/json",
|
|
785
798
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
786
799
|
requestType: "json",
|
|
787
|
-
body: serializers.AskRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
800
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.AskRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
788
801
|
responseType: "sse",
|
|
789
802
|
timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
|
|
790
803
|
maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
|
|
@@ -873,6 +886,8 @@ class ConversationClient {
|
|
|
873
886
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
874
887
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
875
888
|
* @throws {@link MavenAGI.ServerError}
|
|
889
|
+
* @throws {@link errors.MavenAGIError}
|
|
890
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
876
891
|
*
|
|
877
892
|
* @example
|
|
878
893
|
* await client.conversation.categorize("conversationId")
|
|
@@ -961,7 +976,9 @@ class ConversationClient {
|
|
|
961
976
|
/**
|
|
962
977
|
* @deprecated
|
|
963
978
|
*
|
|
964
|
-
*
|
|
979
|
+
* Deprecated. Use the Create events API instead, which records feedback as a user event:
|
|
980
|
+
* emit a `USER` event with an `eventName` of `BUTTON_CLICKED` for thumbs up/down or
|
|
981
|
+
* `TEXT_INSERTED` for inserts.
|
|
965
982
|
*
|
|
966
983
|
* Update feedback or create it if it doesn't exist.
|
|
967
984
|
*
|
|
@@ -973,6 +990,8 @@ class ConversationClient {
|
|
|
973
990
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
974
991
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
975
992
|
* @throws {@link MavenAGI.ServerError}
|
|
993
|
+
* @throws {@link errors.MavenAGIError}
|
|
994
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
976
995
|
*
|
|
977
996
|
* @example
|
|
978
997
|
* await client.conversation.createFeedback({
|
|
@@ -1010,7 +1029,7 @@ class ConversationClient {
|
|
|
1010
1029
|
contentType: "application/json",
|
|
1011
1030
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
1012
1031
|
requestType: "json",
|
|
1013
|
-
body: serializers.FeedbackRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
1032
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.FeedbackRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
1014
1033
|
timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
|
|
1015
1034
|
maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
|
|
1016
1035
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -1092,6 +1111,8 @@ class ConversationClient {
|
|
|
1092
1111
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
1093
1112
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
1094
1113
|
* @throws {@link MavenAGI.ServerError}
|
|
1114
|
+
* @throws {@link errors.MavenAGIError}
|
|
1115
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
1095
1116
|
*
|
|
1096
1117
|
* @example
|
|
1097
1118
|
* await client.conversation.submitActionForm("conversationId", {
|
|
@@ -1121,7 +1142,7 @@ class ConversationClient {
|
|
|
1121
1142
|
contentType: "application/json",
|
|
1122
1143
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
1123
1144
|
requestType: "json",
|
|
1124
|
-
body: serializers.SubmitActionFormRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
1145
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.SubmitActionFormRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
1125
1146
|
timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
|
|
1126
1147
|
maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
|
|
1127
1148
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -1203,6 +1224,8 @@ class ConversationClient {
|
|
|
1203
1224
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
1204
1225
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
1205
1226
|
* @throws {@link MavenAGI.ServerError}
|
|
1227
|
+
* @throws {@link errors.MavenAGIError}
|
|
1228
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
1206
1229
|
*
|
|
1207
1230
|
* @example
|
|
1208
1231
|
* await client.conversation.addConversationMetadata("conversationId", {
|
|
@@ -1227,9 +1250,9 @@ class ConversationClient {
|
|
|
1227
1250
|
contentType: "application/json",
|
|
1228
1251
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
1229
1252
|
requestType: "json",
|
|
1230
|
-
body: serializers.conversation.addConversationMetadata.Request.jsonOrThrow(request, {
|
|
1253
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.conversation.addConversationMetadata.Request.jsonOrThrow(request, {
|
|
1231
1254
|
unrecognizedObjectKeys: "strip",
|
|
1232
|
-
}),
|
|
1255
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
1233
1256
|
timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
|
|
1234
1257
|
maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
|
|
1235
1258
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -1313,6 +1336,8 @@ class ConversationClient {
|
|
|
1313
1336
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
1314
1337
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
1315
1338
|
* @throws {@link MavenAGI.ServerError}
|
|
1339
|
+
* @throws {@link errors.MavenAGIError}
|
|
1340
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
1316
1341
|
*
|
|
1317
1342
|
* @example
|
|
1318
1343
|
* await client.conversation.updateConversationMetadata("conversation-0", {
|
|
@@ -1340,7 +1365,7 @@ class ConversationClient {
|
|
|
1340
1365
|
contentType: "application/json",
|
|
1341
1366
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
1342
1367
|
requestType: "json",
|
|
1343
|
-
body: serializers.UpdateMetadataRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
1368
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.UpdateMetadataRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
1344
1369
|
timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
|
|
1345
1370
|
maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
|
|
1346
1371
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -1417,6 +1442,8 @@ class ConversationClient {
|
|
|
1417
1442
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
1418
1443
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
1419
1444
|
* @throws {@link MavenAGI.ServerError}
|
|
1445
|
+
* @throws {@link errors.MavenAGIError}
|
|
1446
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
1420
1447
|
*
|
|
1421
1448
|
* @example
|
|
1422
1449
|
* await client.conversation.search({})
|
|
@@ -1439,7 +1466,7 @@ class ConversationClient {
|
|
|
1439
1466
|
contentType: "application/json",
|
|
1440
1467
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
1441
1468
|
requestType: "json",
|
|
1442
|
-
body: serializers.ConversationsSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
1469
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.ConversationsSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
1443
1470
|
timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
|
|
1444
1471
|
maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
|
|
1445
1472
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -1526,6 +1553,8 @@ class ConversationClient {
|
|
|
1526
1553
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
1527
1554
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
1528
1555
|
* @throws {@link MavenAGI.ServerError}
|
|
1556
|
+
* @throws {@link errors.MavenAGIError}
|
|
1557
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
1529
1558
|
*
|
|
1530
1559
|
* @example
|
|
1531
1560
|
* await client.conversation.searchCursor({})
|
|
@@ -1548,9 +1577,7 @@ class ConversationClient {
|
|
|
1548
1577
|
contentType: "application/json",
|
|
1549
1578
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
1550
1579
|
requestType: "json",
|
|
1551
|
-
body: serializers.ConversationsCursorSearchRequest.jsonOrThrow(request, {
|
|
1552
|
-
unrecognizedObjectKeys: "strip",
|
|
1553
|
-
}),
|
|
1580
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.ConversationsCursorSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
1554
1581
|
timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
|
|
1555
1582
|
maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
|
|
1556
1583
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -1629,6 +1656,8 @@ class ConversationClient {
|
|
|
1629
1656
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
1630
1657
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
1631
1658
|
* @throws {@link MavenAGI.ServerError}
|
|
1659
|
+
* @throws {@link errors.MavenAGIError}
|
|
1660
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
1632
1661
|
*/
|
|
1633
1662
|
export(request, requestOptions) {
|
|
1634
1663
|
return core.HttpResponsePromise.fromPromise(this.__export(request, requestOptions));
|
|
@@ -1648,7 +1677,7 @@ class ConversationClient {
|
|
|
1648
1677
|
contentType: "application/json",
|
|
1649
1678
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
1650
1679
|
requestType: "json",
|
|
1651
|
-
body: serializers.ConversationsSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
1680
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.ConversationsSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
1652
1681
|
responseType: "binary-response",
|
|
1653
1682
|
timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
|
|
1654
1683
|
maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
|
|
@@ -1725,6 +1754,8 @@ class ConversationClient {
|
|
|
1725
1754
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
1726
1755
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
1727
1756
|
* @throws {@link MavenAGI.ServerError}
|
|
1757
|
+
* @throws {@link errors.MavenAGIError}
|
|
1758
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
1728
1759
|
*/
|
|
1729
1760
|
importSimulations(file, request, requestOptions) {
|
|
1730
1761
|
return core.HttpResponsePromise.fromPromise(this.__importSimulations(file, request, requestOptions));
|
|
@@ -1823,6 +1854,8 @@ class ConversationClient {
|
|
|
1823
1854
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
1824
1855
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
1825
1856
|
* @throws {@link MavenAGI.ServerError}
|
|
1857
|
+
* @throws {@link errors.MavenAGIError}
|
|
1858
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
1826
1859
|
*
|
|
1827
1860
|
* @example
|
|
1828
1861
|
* await client.conversation.deliverMessage({
|
|
@@ -1862,7 +1895,7 @@ class ConversationClient {
|
|
|
1862
1895
|
contentType: "application/json",
|
|
1863
1896
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
1864
1897
|
requestType: "json",
|
|
1865
|
-
body: serializers.DeliverMessageRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
1898
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.DeliverMessageRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
1866
1899
|
timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
|
|
1867
1900
|
maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
|
|
1868
1901
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -81,7 +81,7 @@ export interface AskRequest {
|
|
|
81
81
|
/** Externally supplied ID to uniquely identify the user that created this message */
|
|
82
82
|
userId: MavenAGI.EntityIdBase;
|
|
83
83
|
/**
|
|
84
|
-
* What prompts this assistant
|
|
84
|
+
* What prompts this assistant response. Omit (or send USER_MESSAGE) for a normal user
|
|
85
85
|
* question — this is the backwards-compatible default. Use WELCOME for an agent-authored
|
|
86
86
|
* opener, or PROACTIVE for a message the user did not prompt.
|
|
87
87
|
*/
|
|
@@ -90,7 +90,7 @@ export interface AskRequest {
|
|
|
90
90
|
* For USER_MESSAGE (the default) this is the user's message, in the user's own words, and
|
|
91
91
|
* is required. For WELCOME and PROACTIVE it is optional and, when provided, steers the
|
|
92
92
|
* agent's response (a directive to the agent, not the user's own words). (Changed from
|
|
93
|
-
* required to optional to support the non-user
|
|
93
|
+
* required to optional to support the non-user ask types — existing USER_MESSAGE callers
|
|
94
94
|
* are unaffected.)
|
|
95
95
|
*/
|
|
96
96
|
text?: string;
|
|
@@ -99,26 +99,26 @@ export interface AskRequest {
|
|
|
99
99
|
* `BotObjectResponse` matching a schema you supply.
|
|
100
100
|
*
|
|
101
101
|
* Set per ask and independent of `type`, so one conversation can mix prose and structured
|
|
102
|
-
*
|
|
102
|
+
* rounds. Only the answer's form changes: knowledge, actions, charters and segments apply
|
|
103
103
|
* the same way either way.
|
|
104
104
|
*
|
|
105
|
-
* A structured answer accompanies the prose one rather than replacing it — the same
|
|
105
|
+
* A structured answer accompanies the prose one rather than replacing it — the same round
|
|
106
106
|
* produces both, so the conversation stays readable. On `ask_stream` the prose still streams
|
|
107
107
|
* on `text` events as it always has, and the object arrives whole on a single `object` event
|
|
108
108
|
* near the end.
|
|
109
109
|
*
|
|
110
|
-
* Every answering
|
|
110
|
+
* Every answering round carries an object, including one where the agent asks a clarifying
|
|
111
111
|
* question rather than answering. Shape the schema so it can say "not enough information"
|
|
112
112
|
* — a populated object is not on its own evidence of a confident answer.
|
|
113
113
|
*
|
|
114
|
-
* Two exceptions. A
|
|
115
|
-
* action rather than from an answer, so it carries no object; the
|
|
114
|
+
* Two exceptions. A round that asks the user to *act* produces an action form from the
|
|
115
|
+
* action rather than from an answer, so it carries no object; the round that answers after
|
|
116
116
|
* the form is submitted does carry one. Leave the `FORMS` capability off if you need an
|
|
117
|
-
* object on every
|
|
117
|
+
* object on every round.
|
|
118
118
|
*
|
|
119
|
-
* A
|
|
119
|
+
* A round answered verbatim by a `STRICT_RETURN` charter also carries no object. That
|
|
120
120
|
* charter's manual is returned exactly as written without consulting the agent, so there is
|
|
121
|
-
* nothing to shape into the requested schema — the
|
|
121
|
+
* nothing to shape into the requested schema — the round returns the manual as `text` alone.
|
|
122
122
|
*/
|
|
123
123
|
textFormat?: MavenAGI.TextFormat;
|
|
124
124
|
/**
|
|
@@ -37,9 +37,10 @@ export interface ConversationFilter {
|
|
|
37
37
|
/** Filter by actions that returned an error when executed in the conversation */
|
|
38
38
|
erroredActions?: MavenAGI.EntityIdFilter[];
|
|
39
39
|
/**
|
|
40
|
-
* Filter by
|
|
41
|
-
*
|
|
42
|
-
*
|
|
40
|
+
* Filter by the user events recorded on the conversation. `ThumbsUp` and `ThumbsDown` match
|
|
41
|
+
* `BUTTON_CLICKED` events by their `feedbackInfo.thumbUp` value, and `Insert` matches
|
|
42
|
+
* `TEXT_INSERTED` events. `Handoff` matches bot responses that returned the system fallback
|
|
43
|
+
* message.
|
|
43
44
|
*/
|
|
44
45
|
feedback?: MavenAGI.FeedbackType[];
|
|
45
46
|
/** Filter by human agents who participated in the conversation */
|
|
@@ -85,7 +86,12 @@ export interface ConversationFilter {
|
|
|
85
86
|
userMessageCount?: MavenAGI.NumberRange;
|
|
86
87
|
/** Filter by whether any message in the conversation has an attachment */
|
|
87
88
|
hasAttachment?: boolean;
|
|
88
|
-
/**
|
|
89
|
+
/**
|
|
90
|
+
* Filter by the segments that any message on a conversation matched.
|
|
91
|
+
*
|
|
92
|
+
* Superseded by `matchedCharterIds`. Segments are being phased out in favour of
|
|
93
|
+
* charter preconditions.
|
|
94
|
+
*/
|
|
89
95
|
matchedSegmentIds?: MavenAGI.EntityIdFilter[];
|
|
90
96
|
/**
|
|
91
97
|
* Filter by the charters that any bot-response message on a conversation matched.
|
|
@@ -19,6 +19,8 @@ export declare class CustomersClient {
|
|
|
19
19
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
20
20
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
21
21
|
* @throws {@link MavenAGI.ServerError}
|
|
22
|
+
* @throws {@link errors.MavenAGIError}
|
|
23
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
22
24
|
*
|
|
23
25
|
* @example
|
|
24
26
|
* await client.customers.search({})
|
|
@@ -36,6 +38,8 @@ export declare class CustomersClient {
|
|
|
36
38
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
37
39
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
38
40
|
* @throws {@link MavenAGI.ServerError}
|
|
41
|
+
* @throws {@link errors.MavenAGIError}
|
|
42
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
39
43
|
*
|
|
40
44
|
* @example
|
|
41
45
|
* await client.customers.createOrUpdate({
|
|
@@ -59,6 +63,8 @@ export declare class CustomersClient {
|
|
|
59
63
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
60
64
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
61
65
|
* @throws {@link MavenAGI.ServerError}
|
|
66
|
+
* @throws {@link errors.MavenAGIError}
|
|
67
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
62
68
|
*
|
|
63
69
|
* @example
|
|
64
70
|
* await client.customers.get("acme")
|
|
@@ -80,6 +86,8 @@ export declare class CustomersClient {
|
|
|
80
86
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
81
87
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
82
88
|
* @throws {@link MavenAGI.ServerError}
|
|
89
|
+
* @throws {@link errors.MavenAGIError}
|
|
90
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
83
91
|
*
|
|
84
92
|
* @example
|
|
85
93
|
* await client.customers.patch("customerReferenceId", {})
|
|
@@ -47,6 +47,7 @@ exports.CustomersClient = void 0;
|
|
|
47
47
|
const BaseClient_1 = require("../../../../BaseClient");
|
|
48
48
|
const core = __importStar(require("../../../../core"));
|
|
49
49
|
const headers_1 = require("../../../../core/headers");
|
|
50
|
+
const requestBody_1 = require("../../../../core/requestBody");
|
|
50
51
|
const environments = __importStar(require("../../../../environments"));
|
|
51
52
|
const handleNonStatusCodeError_1 = require("../../../../errors/handleNonStatusCodeError");
|
|
52
53
|
const errors = __importStar(require("../../../../errors/index"));
|
|
@@ -65,6 +66,8 @@ class CustomersClient {
|
|
|
65
66
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
66
67
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
67
68
|
* @throws {@link MavenAGI.ServerError}
|
|
69
|
+
* @throws {@link errors.MavenAGIError}
|
|
70
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
68
71
|
*
|
|
69
72
|
* @example
|
|
70
73
|
* await client.customers.search({})
|
|
@@ -87,7 +90,7 @@ class CustomersClient {
|
|
|
87
90
|
contentType: "application/json",
|
|
88
91
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
89
92
|
requestType: "json",
|
|
90
|
-
body: serializers.CustomersSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
93
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.CustomersSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
91
94
|
timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
|
|
92
95
|
maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
|
|
93
96
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -164,6 +167,8 @@ class CustomersClient {
|
|
|
164
167
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
165
168
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
166
169
|
* @throws {@link MavenAGI.ServerError}
|
|
170
|
+
* @throws {@link errors.MavenAGIError}
|
|
171
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
167
172
|
*
|
|
168
173
|
* @example
|
|
169
174
|
* await client.customers.createOrUpdate({
|
|
@@ -191,7 +196,7 @@ class CustomersClient {
|
|
|
191
196
|
contentType: "application/json",
|
|
192
197
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
193
198
|
requestType: "json",
|
|
194
|
-
body: serializers.CustomerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
199
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.CustomerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
195
200
|
timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
|
|
196
201
|
maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
|
|
197
202
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -269,6 +274,8 @@ class CustomersClient {
|
|
|
269
274
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
270
275
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
271
276
|
* @throws {@link MavenAGI.ServerError}
|
|
277
|
+
* @throws {@link errors.MavenAGIError}
|
|
278
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
272
279
|
*
|
|
273
280
|
* @example
|
|
274
281
|
* await client.customers.get("acme")
|
|
@@ -377,6 +384,8 @@ class CustomersClient {
|
|
|
377
384
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
378
385
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
379
386
|
* @throws {@link MavenAGI.ServerError}
|
|
387
|
+
* @throws {@link errors.MavenAGIError}
|
|
388
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
380
389
|
*
|
|
381
390
|
* @example
|
|
382
391
|
* await client.customers.patch("customerReferenceId", {})
|
|
@@ -399,7 +408,7 @@ class CustomersClient {
|
|
|
399
408
|
contentType: "application/merge-patch+json",
|
|
400
409
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
401
410
|
requestType: "json",
|
|
402
|
-
body: serializers.CustomerPatchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
411
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.CustomerPatchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
403
412
|
timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
|
|
404
413
|
maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
|
|
405
414
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -21,6 +21,8 @@ export declare class EventsClient {
|
|
|
21
21
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
22
22
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
23
23
|
* @throws {@link MavenAGI.ServerError}
|
|
24
|
+
* @throws {@link errors.MavenAGIError}
|
|
25
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
24
26
|
*
|
|
25
27
|
* @example
|
|
26
28
|
* await client.events.create({
|
|
@@ -49,6 +51,8 @@ export declare class EventsClient {
|
|
|
49
51
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
50
52
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
51
53
|
* @throws {@link MavenAGI.ServerError}
|
|
54
|
+
* @throws {@link errors.MavenAGIError}
|
|
55
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
52
56
|
*
|
|
53
57
|
* @example
|
|
54
58
|
* await client.events.search({})
|
|
@@ -67,6 +71,8 @@ export declare class EventsClient {
|
|
|
67
71
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
68
72
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
69
73
|
* @throws {@link MavenAGI.ServerError}
|
|
74
|
+
* @throws {@link errors.MavenAGIError}
|
|
75
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
70
76
|
*
|
|
71
77
|
* @example
|
|
72
78
|
* await client.events.get("eventId", {
|
|
@@ -85,6 +91,8 @@ export declare class EventsClient {
|
|
|
85
91
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
86
92
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
87
93
|
* @throws {@link MavenAGI.ServerError}
|
|
94
|
+
* @throws {@link errors.MavenAGIError}
|
|
95
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
88
96
|
*/
|
|
89
97
|
export(request: MavenAGI.EventsSearchRequest, requestOptions?: EventsClient.RequestOptions): core.HttpResponsePromise<core.BinaryResponse>;
|
|
90
98
|
private __export;
|
|
@@ -47,6 +47,7 @@ exports.EventsClient = void 0;
|
|
|
47
47
|
const BaseClient_1 = require("../../../../BaseClient");
|
|
48
48
|
const core = __importStar(require("../../../../core"));
|
|
49
49
|
const headers_1 = require("../../../../core/headers");
|
|
50
|
+
const requestBody_1 = require("../../../../core/requestBody");
|
|
50
51
|
const environments = __importStar(require("../../../../environments"));
|
|
51
52
|
const handleNonStatusCodeError_1 = require("../../../../errors/handleNonStatusCodeError");
|
|
52
53
|
const errors = __importStar(require("../../../../errors/index"));
|
|
@@ -67,6 +68,8 @@ class EventsClient {
|
|
|
67
68
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
68
69
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
69
70
|
* @throws {@link MavenAGI.ServerError}
|
|
71
|
+
* @throws {@link errors.MavenAGIError}
|
|
72
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
70
73
|
*
|
|
71
74
|
* @example
|
|
72
75
|
* await client.events.create({
|
|
@@ -100,7 +103,7 @@ class EventsClient {
|
|
|
100
103
|
contentType: "application/json",
|
|
101
104
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
102
105
|
requestType: "json",
|
|
103
|
-
body: serializers.EventRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
106
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.EventRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
104
107
|
timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
|
|
105
108
|
maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
|
|
106
109
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -177,6 +180,8 @@ class EventsClient {
|
|
|
177
180
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
178
181
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
179
182
|
* @throws {@link MavenAGI.ServerError}
|
|
183
|
+
* @throws {@link errors.MavenAGIError}
|
|
184
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
180
185
|
*
|
|
181
186
|
* @example
|
|
182
187
|
* await client.events.search({})
|
|
@@ -199,7 +204,7 @@ class EventsClient {
|
|
|
199
204
|
contentType: "application/json",
|
|
200
205
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
201
206
|
requestType: "json",
|
|
202
|
-
body: serializers.EventsSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
207
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.EventsSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
203
208
|
timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
|
|
204
209
|
maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
|
|
205
210
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -277,6 +282,8 @@ class EventsClient {
|
|
|
277
282
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
278
283
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
279
284
|
* @throws {@link MavenAGI.ServerError}
|
|
285
|
+
* @throws {@link errors.MavenAGIError}
|
|
286
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
280
287
|
*
|
|
281
288
|
* @example
|
|
282
289
|
* await client.events.get("eventId", {
|
|
@@ -382,6 +389,8 @@ class EventsClient {
|
|
|
382
389
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
383
390
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
384
391
|
* @throws {@link MavenAGI.ServerError}
|
|
392
|
+
* @throws {@link errors.MavenAGIError}
|
|
393
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
385
394
|
*/
|
|
386
395
|
export(request, requestOptions) {
|
|
387
396
|
return core.HttpResponsePromise.fromPromise(this.__export(request, requestOptions));
|
|
@@ -401,7 +410,7 @@ class EventsClient {
|
|
|
401
410
|
contentType: "application/json",
|
|
402
411
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
403
412
|
requestType: "json",
|
|
404
|
-
body: serializers.EventsSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
413
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.EventsSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
405
414
|
responseType: "binary-response",
|
|
406
415
|
timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
|
|
407
416
|
maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
|