@revengai/sdk 3.74.2 → 3.79.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +53 -44
- package/dist/apis/AnalysesApi.d.ts +10 -0
- package/dist/apis/{AnalysisStagesApi.js → AnalysesApi.js} +54 -102
- package/dist/apis/AnalysesApi.js.map +1 -0
- package/dist/apis/AnalysesCoreApi.d.ts +2 -2
- package/dist/apis/AnalysesCoreApi.js +1 -1
- package/dist/apis/AnalysesCoreApi.js.map +1 -1
- package/dist/apis/ConversationsApi.d.ts +28 -0
- package/dist/apis/{AnalysesDynamicExecutionApi.js → ConversationsApi.js} +328 -157
- package/dist/apis/ConversationsApi.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/models/APIError.d.ts +22 -0
- package/dist/models/APIError.js +29 -0
- package/dist/models/APIError.js.map +1 -0
- package/dist/models/AnalysisRecord.d.ts +2 -2
- package/dist/models/AnalysisRecord.js +1 -1
- package/dist/models/AnalysisRecord.js.map +1 -1
- package/dist/models/{TTPSAttack.d.ts → ConfirmToolInputBody.d.ts} +3 -3
- package/dist/models/ConfirmToolInputBody.js +29 -0
- package/dist/models/ConfirmToolInputBody.js.map +1 -0
- package/dist/models/Conversation.d.ts +26 -0
- package/dist/models/Conversation.js +59 -0
- package/dist/models/Conversation.js.map +1 -0
- package/dist/models/{TTPSOccurance.d.ts → ConversationContext.d.ts} +3 -3
- package/dist/models/ConversationContext.js +29 -0
- package/dist/models/ConversationContext.js.map +1 -0
- package/dist/models/{NetworkOverviewDns.d.ts → ConversationWithEvents.d.ts} +10 -5
- package/dist/models/ConversationWithEvents.js +65 -0
- package/dist/models/ConversationWithEvents.js.map +1 -0
- package/dist/models/CreateConversationRequest.d.ts +23 -0
- package/dist/models/CreateConversationRequest.js +35 -0
- package/dist/models/CreateConversationRequest.js.map +1 -0
- package/dist/models/{DynamicExecutionStatusInput.d.ts → DynamicExecutionStatus.d.ts} +1 -1
- package/dist/models/DynamicExecutionStatus.js +11 -0
- package/dist/models/DynamicExecutionStatus.js.map +1 -0
- package/dist/models/ErrorBody.d.ts +66 -0
- package/dist/models/ErrorBody.js +90 -0
- package/dist/models/ErrorBody.js.map +1 -0
- package/dist/models/Event.d.ts +26 -0
- package/dist/models/Event.js +59 -0
- package/dist/models/Event.js.map +1 -0
- package/dist/models/{BaseResponseProcessDumps.d.ts → EventCONTEXTCOMPACTED.d.ts} +9 -9
- package/dist/models/EventCONTEXTCOMPACTED.js +45 -0
- package/dist/models/EventCONTEXTCOMPACTED.js.map +1 -0
- package/dist/models/{BaseResponseTTPS.d.ts → EventRUNCANCELLED.d.ts} +9 -9
- package/dist/models/EventRUNCANCELLED.js +45 -0
- package/dist/models/EventRUNCANCELLED.js.map +1 -0
- package/dist/models/{NetworkOverviewMetadata.d.ts → EventRUNERROR.d.ts} +8 -7
- package/dist/models/EventRUNERROR.js +45 -0
- package/dist/models/EventRUNERROR.js.map +1 -0
- package/dist/models/EventRUNFINISHED.d.ts +27 -0
- package/dist/models/EventRUNFINISHED.js +45 -0
- package/dist/models/EventRUNFINISHED.js.map +1 -0
- package/dist/models/EventRUNSTARTED.d.ts +27 -0
- package/dist/models/EventRUNSTARTED.js +45 -0
- package/dist/models/EventRUNSTARTED.js.map +1 -0
- package/dist/models/EventSTEPFINISHED.d.ts +27 -0
- package/dist/models/EventSTEPFINISHED.js +45 -0
- package/dist/models/EventSTEPFINISHED.js.map +1 -0
- package/dist/models/EventSTEPSTARTED.d.ts +27 -0
- package/dist/models/EventSTEPSTARTED.js +45 -0
- package/dist/models/EventSTEPSTARTED.js.map +1 -0
- package/dist/models/{BaseResponseProcessRegistry.d.ts → EventTEXTMESSAGECONTENT.d.ts} +9 -9
- package/dist/models/EventTEXTMESSAGECONTENT.js +45 -0
- package/dist/models/EventTEXTMESSAGECONTENT.js.map +1 -0
- package/dist/models/EventTEXTMESSAGEEND.d.ts +27 -0
- package/dist/models/EventTEXTMESSAGEEND.js +45 -0
- package/dist/models/EventTEXTMESSAGEEND.js.map +1 -0
- package/dist/models/{BaseResponseProcessTree.d.ts → EventTEXTMESSAGESTART.d.ts} +9 -9
- package/dist/models/EventTEXTMESSAGESTART.js +45 -0
- package/dist/models/EventTEXTMESSAGESTART.js.map +1 -0
- package/dist/models/EventTITLEUPDATED.d.ts +27 -0
- package/dist/models/EventTITLEUPDATED.js +45 -0
- package/dist/models/EventTITLEUPDATED.js.map +1 -0
- package/dist/models/EventTOOLCALLARGSDELTA.d.ts +27 -0
- package/dist/models/EventTOOLCALLARGSDELTA.js +45 -0
- package/dist/models/EventTOOLCALLARGSDELTA.js.map +1 -0
- package/dist/models/EventTOOLCALLEND.d.ts +27 -0
- package/dist/models/EventTOOLCALLEND.js +45 -0
- package/dist/models/EventTOOLCALLEND.js.map +1 -0
- package/dist/models/EventTOOLCALLRESULT.d.ts +27 -0
- package/dist/models/EventTOOLCALLRESULT.js +45 -0
- package/dist/models/EventTOOLCALLRESULT.js.map +1 -0
- package/dist/models/EventTOOLCALLSTART.d.ts +27 -0
- package/dist/models/EventTOOLCALLSTART.js +45 -0
- package/dist/models/EventTOOLCALLSTART.js.map +1 -0
- package/dist/models/{BaseResponseAnalysisStagesResponse.d.ts → EventTOOLCONFIRMATIONREQUIRED.d.ts} +9 -9
- package/dist/models/EventTOOLCONFIRMATIONREQUIRED.js +45 -0
- package/dist/models/EventTOOLCONFIRMATIONREQUIRED.js.map +1 -0
- package/dist/models/ObjectSerializer.d.ts +45 -35
- package/dist/models/ObjectSerializer.js +152 -101
- package/dist/models/ObjectSerializer.js.map +1 -1
- package/dist/models/{AppServicesDynamicExecutionSchemasDynamicExecutionStatus.d.ts → QueuePositionResponse.d.ts} +3 -2
- package/dist/models/QueuePositionResponse.js +29 -0
- package/dist/models/QueuePositionResponse.js.map +1 -0
- package/dist/models/{PipelineStatusResponse.d.ts → SendMessageRequest.d.ts} +5 -3
- package/dist/models/SendMessageRequest.js +35 -0
- package/dist/models/SendMessageRequest.js.map +1 -0
- package/dist/models/SseEventContextCompactedData.d.ts +22 -0
- package/dist/models/SseEventContextCompactedData.js +35 -0
- package/dist/models/SseEventContextCompactedData.js.map +1 -0
- package/dist/models/SseEventRunCancelledData.d.ts +22 -0
- package/dist/models/SseEventRunCancelledData.js +35 -0
- package/dist/models/SseEventRunCancelledData.js.map +1 -0
- package/dist/models/{NetworkOverviewDnsAnswer.d.ts → SseEventRunErrorData.d.ts} +3 -2
- package/dist/models/SseEventRunErrorData.js +35 -0
- package/dist/models/SseEventRunErrorData.js.map +1 -0
- package/dist/models/SseEventRunFinishedData.d.ts +22 -0
- package/dist/models/SseEventRunFinishedData.js +35 -0
- package/dist/models/SseEventRunFinishedData.js.map +1 -0
- package/dist/models/{ProcessDumpMetadata.d.ts → SseEventRunStartedData.d.ts} +3 -3
- package/dist/models/SseEventRunStartedData.js +35 -0
- package/dist/models/SseEventRunStartedData.js.map +1 -0
- package/dist/models/SseEventStepFinishedData.d.ts +22 -0
- package/dist/models/SseEventStepFinishedData.js +35 -0
- package/dist/models/SseEventStepFinishedData.js.map +1 -0
- package/dist/models/SseEventStepStartedData.d.ts +22 -0
- package/dist/models/SseEventStepStartedData.js +35 -0
- package/dist/models/SseEventStepStartedData.js.map +1 -0
- package/dist/models/{TTPS.d.ts → SseEventTextMessageContentData.d.ts} +4 -4
- package/dist/models/SseEventTextMessageContentData.js +35 -0
- package/dist/models/SseEventTextMessageContentData.js.map +1 -0
- package/dist/models/SseEventTextMessageEndData.d.ts +22 -0
- package/dist/models/SseEventTextMessageEndData.js +35 -0
- package/dist/models/SseEventTextMessageEndData.js.map +1 -0
- package/dist/models/SseEventTextMessageStartData.d.ts +22 -0
- package/dist/models/SseEventTextMessageStartData.js +35 -0
- package/dist/models/SseEventTextMessageStartData.js.map +1 -0
- package/dist/models/SseEventTitleUpdatedData.d.ts +22 -0
- package/dist/models/SseEventTitleUpdatedData.js +35 -0
- package/dist/models/SseEventTitleUpdatedData.js.map +1 -0
- package/dist/models/SseEventToolCallArgsDeltaData.d.ts +22 -0
- package/dist/models/SseEventToolCallArgsDeltaData.js +35 -0
- package/dist/models/SseEventToolCallArgsDeltaData.js.map +1 -0
- package/dist/models/SseEventToolCallEndData.d.ts +22 -0
- package/dist/models/SseEventToolCallEndData.js +35 -0
- package/dist/models/SseEventToolCallEndData.js.map +1 -0
- package/dist/models/SseEventToolCallResultData.d.ts +22 -0
- package/dist/models/SseEventToolCallResultData.js +35 -0
- package/dist/models/SseEventToolCallResultData.js.map +1 -0
- package/dist/models/SseEventToolCallStartData.d.ts +22 -0
- package/dist/models/SseEventToolCallStartData.js +35 -0
- package/dist/models/SseEventToolCallStartData.js.map +1 -0
- package/dist/models/SseEventToolConfirmationRequiredData.d.ts +22 -0
- package/dist/models/SseEventToolConfirmationRequiredData.js +35 -0
- package/dist/models/SseEventToolConfirmationRequiredData.js.map +1 -0
- package/dist/models/{AnalysisStagesResponse.d.ts → StatusResponse.d.ts} +5 -3
- package/dist/models/StatusResponse.js +41 -0
- package/dist/models/StatusResponse.js.map +1 -0
- package/dist/models/StreamEvents200ResponseInner.d.ts +23 -0
- package/dist/models/StreamEvents200ResponseInner.js +12 -0
- package/dist/models/StreamEvents200ResponseInner.js.map +1 -0
- package/dist/models/all.d.ts +45 -35
- package/dist/models/all.js +45 -35
- package/dist/models/all.js.map +1 -1
- package/dist/types/ObjectParamAPI.d.ts +62 -66
- package/dist/types/ObjectParamAPI.js +79 -83
- package/dist/types/ObjectParamAPI.js.map +1 -1
- package/dist/types/ObservableAPI.d.ts +41 -43
- package/dist/types/ObservableAPI.js +533 -561
- package/dist/types/ObservableAPI.js.map +1 -1
- package/dist/types/PromiseAPI.d.ts +37 -39
- package/dist/types/PromiseAPI.js +109 -119
- package/dist/types/PromiseAPI.js.map +1 -1
- package/package.json +1 -1
- package/dist/apis/AnalysesDynamicExecutionApi.d.ts +0 -27
- package/dist/apis/AnalysesDynamicExecutionApi.js.map +0 -1
- package/dist/apis/AnalysisStagesApi.d.ts +0 -13
- package/dist/apis/AnalysisStagesApi.js.map +0 -1
- package/dist/models/AnalysisStage.d.ts +0 -5
- package/dist/models/AnalysisStage.js +0 -10
- package/dist/models/AnalysisStage.js.map +0 -1
- package/dist/models/AnalysisStageStatus.d.ts +0 -6
- package/dist/models/AnalysisStageStatus.js +0 -11
- package/dist/models/AnalysisStageStatus.js.map +0 -1
- package/dist/models/AnalysisStagesResponse.js +0 -23
- package/dist/models/AnalysisStagesResponse.js.map +0 -1
- package/dist/models/AppApiRestV2AnalysesEnumsDynamicExecutionStatus.d.ts +0 -6
- package/dist/models/AppApiRestV2AnalysesEnumsDynamicExecutionStatus.js +0 -11
- package/dist/models/AppApiRestV2AnalysesEnumsDynamicExecutionStatus.js.map +0 -1
- package/dist/models/AppServicesDynamicExecutionSchemasDynamicExecutionStatus.js +0 -23
- package/dist/models/AppServicesDynamicExecutionSchemasDynamicExecutionStatus.js.map +0 -1
- package/dist/models/BaseResponseAnalysisStagesResponse.js +0 -47
- package/dist/models/BaseResponseAnalysisStagesResponse.js.map +0 -1
- package/dist/models/BaseResponseDynamicExecutionStatus.d.ts +0 -27
- package/dist/models/BaseResponseDynamicExecutionStatus.js +0 -47
- package/dist/models/BaseResponseDynamicExecutionStatus.js.map +0 -1
- package/dist/models/BaseResponseNetworkOverviewResponse.d.ts +0 -27
- package/dist/models/BaseResponseNetworkOverviewResponse.js +0 -47
- package/dist/models/BaseResponseNetworkOverviewResponse.js.map +0 -1
- package/dist/models/BaseResponsePipelineStatusResponse.d.ts +0 -27
- package/dist/models/BaseResponsePipelineStatusResponse.js +0 -47
- package/dist/models/BaseResponsePipelineStatusResponse.js.map +0 -1
- package/dist/models/BaseResponseProcessDumps.js +0 -47
- package/dist/models/BaseResponseProcessDumps.js.map +0 -1
- package/dist/models/BaseResponseProcessRegistry.js +0 -47
- package/dist/models/BaseResponseProcessRegistry.js.map +0 -1
- package/dist/models/BaseResponseProcessTree.js +0 -47
- package/dist/models/BaseResponseProcessTree.js.map +0 -1
- package/dist/models/BaseResponseTTPS.js +0 -47
- package/dist/models/BaseResponseTTPS.js.map +0 -1
- package/dist/models/DynamicExecutionStatusInput.js +0 -11
- package/dist/models/DynamicExecutionStatusInput.js.map +0 -1
- package/dist/models/NetworkOverviewDns.js +0 -35
- package/dist/models/NetworkOverviewDns.js.map +0 -1
- package/dist/models/NetworkOverviewDnsAnswer.js +0 -29
- package/dist/models/NetworkOverviewDnsAnswer.js.map +0 -1
- package/dist/models/NetworkOverviewMetadata.js +0 -45
- package/dist/models/NetworkOverviewMetadata.js.map +0 -1
- package/dist/models/NetworkOverviewResponse.d.ts +0 -23
- package/dist/models/NetworkOverviewResponse.js +0 -29
- package/dist/models/NetworkOverviewResponse.js.map +0 -1
- package/dist/models/PipelineStageStatus.d.ts +0 -7
- package/dist/models/PipelineStageStatus.js +0 -12
- package/dist/models/PipelineStageStatus.js.map +0 -1
- package/dist/models/PipelineStatusResponse.js +0 -23
- package/dist/models/PipelineStatusResponse.js.map +0 -1
- package/dist/models/Process.d.ts +0 -26
- package/dist/models/Process.js +0 -59
- package/dist/models/Process.js.map +0 -1
- package/dist/models/ProcessDump.d.ts +0 -24
- package/dist/models/ProcessDump.js +0 -41
- package/dist/models/ProcessDump.js.map +0 -1
- package/dist/models/ProcessDumpMetadata.js +0 -35
- package/dist/models/ProcessDumpMetadata.js.map +0 -1
- package/dist/models/ProcessDumps.d.ts +0 -22
- package/dist/models/ProcessDumps.js +0 -29
- package/dist/models/ProcessDumps.js.map +0 -1
- package/dist/models/ProcessDumpsData.d.ts +0 -22
- package/dist/models/ProcessDumpsData.js +0 -29
- package/dist/models/ProcessDumpsData.js.map +0 -1
- package/dist/models/ProcessRegistry.d.ts +0 -24
- package/dist/models/ProcessRegistry.js +0 -29
- package/dist/models/ProcessRegistry.js.map +0 -1
- package/dist/models/ProcessTree.d.ts +0 -22
- package/dist/models/ProcessTree.js +0 -29
- package/dist/models/ProcessTree.js.map +0 -1
- package/dist/models/Registry.d.ts +0 -23
- package/dist/models/Registry.js +0 -41
- package/dist/models/Registry.js.map +0 -1
- package/dist/models/StageEvent.d.ts +0 -24
- package/dist/models/StageEvent.js +0 -35
- package/dist/models/StageEvent.js.map +0 -1
- package/dist/models/StageStatus.d.ts +0 -24
- package/dist/models/StageStatus.js +0 -35
- package/dist/models/StageStatus.js.map +0 -1
- package/dist/models/TTPS.js +0 -29
- package/dist/models/TTPS.js.map +0 -1
- package/dist/models/TTPSAttack.js +0 -29
- package/dist/models/TTPSAttack.js.map +0 -1
- package/dist/models/TTPSData.d.ts +0 -22
- package/dist/models/TTPSData.js +0 -29
- package/dist/models/TTPSData.js.map +0 -1
- package/dist/models/TTPSElement.d.ts +0 -25
- package/dist/models/TTPSElement.js +0 -41
- package/dist/models/TTPSElement.js.map +0 -1
- package/dist/models/TTPSOccurance.js +0 -29
- package/dist/models/TTPSOccurance.js.map +0 -1
|
@@ -51,18 +51,18 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
53
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
|
-
exports.
|
|
54
|
+
exports.ConversationsApiResponseProcessor = exports.ConversationsApiRequestFactory = void 0;
|
|
55
55
|
var baseapi_1 = require("./baseapi");
|
|
56
56
|
var http_1 = require("../http/http");
|
|
57
57
|
var ObjectSerializer_1 = require("../models/ObjectSerializer");
|
|
58
58
|
var exception_1 = require("./exception");
|
|
59
59
|
var util_1 = require("../util");
|
|
60
|
-
var
|
|
61
|
-
__extends(
|
|
62
|
-
function
|
|
60
|
+
var ConversationsApiRequestFactory = (function (_super) {
|
|
61
|
+
__extends(ConversationsApiRequestFactory, _super);
|
|
62
|
+
function ConversationsApiRequestFactory() {
|
|
63
63
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
64
64
|
}
|
|
65
|
-
|
|
65
|
+
ConversationsApiRequestFactory.prototype.cancelRun = function (id, _options) {
|
|
66
66
|
var _a;
|
|
67
67
|
return __awaiter(this, void 0, void 0, function () {
|
|
68
68
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
@@ -70,12 +70,12 @@ var AnalysesDynamicExecutionApiRequestFactory = (function (_super) {
|
|
|
70
70
|
switch (_b.label) {
|
|
71
71
|
case 0:
|
|
72
72
|
_config = _options || this.configuration;
|
|
73
|
-
if (
|
|
74
|
-
throw new baseapi_1.RequiredError("
|
|
73
|
+
if (id === null || id === undefined) {
|
|
74
|
+
throw new baseapi_1.RequiredError("ConversationsApi", "cancelRun", "id");
|
|
75
75
|
}
|
|
76
|
-
localVarPath = '/v2/
|
|
77
|
-
.replace('{' + '
|
|
78
|
-
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.
|
|
76
|
+
localVarPath = '/v2/conversations/{id}/cancel'
|
|
77
|
+
.replace('{' + 'id' + '}', encodeURIComponent(String(id)));
|
|
78
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
79
79
|
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
80
80
|
authMethod = _config.authMethods["APIKey"];
|
|
81
81
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
@@ -95,21 +95,30 @@ var AnalysesDynamicExecutionApiRequestFactory = (function (_super) {
|
|
|
95
95
|
});
|
|
96
96
|
});
|
|
97
97
|
};
|
|
98
|
-
|
|
98
|
+
ConversationsApiRequestFactory.prototype.confirmTool = function (id, confirmToolInputBody, _options) {
|
|
99
99
|
var _a;
|
|
100
100
|
return __awaiter(this, void 0, void 0, function () {
|
|
101
|
-
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
101
|
+
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
102
102
|
return __generator(this, function (_b) {
|
|
103
103
|
switch (_b.label) {
|
|
104
104
|
case 0:
|
|
105
105
|
_config = _options || this.configuration;
|
|
106
|
-
if (
|
|
107
|
-
throw new baseapi_1.RequiredError("
|
|
106
|
+
if (id === null || id === undefined) {
|
|
107
|
+
throw new baseapi_1.RequiredError("ConversationsApi", "confirmTool", "id");
|
|
108
108
|
}
|
|
109
|
-
|
|
110
|
-
.
|
|
111
|
-
|
|
109
|
+
if (confirmToolInputBody === null || confirmToolInputBody === undefined) {
|
|
110
|
+
throw new baseapi_1.RequiredError("ConversationsApi", "confirmTool", "confirmToolInputBody");
|
|
111
|
+
}
|
|
112
|
+
localVarPath = '/v2/conversations/{id}/confirm'
|
|
113
|
+
.replace('{' + 'id' + '}', encodeURIComponent(String(id)));
|
|
114
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
112
115
|
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
116
|
+
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
117
|
+
"application/json"
|
|
118
|
+
]);
|
|
119
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
120
|
+
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(confirmToolInputBody, "ConfirmToolInputBody", ""), contentType);
|
|
121
|
+
requestContext.setBody(serializedBody);
|
|
113
122
|
authMethod = _config.authMethods["APIKey"];
|
|
114
123
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
115
124
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
@@ -128,25 +137,26 @@ var AnalysesDynamicExecutionApiRequestFactory = (function (_super) {
|
|
|
128
137
|
});
|
|
129
138
|
});
|
|
130
139
|
};
|
|
131
|
-
|
|
140
|
+
ConversationsApiRequestFactory.prototype.createConversation = function (createConversationRequest, _options) {
|
|
132
141
|
var _a;
|
|
133
142
|
return __awaiter(this, void 0, void 0, function () {
|
|
134
|
-
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
143
|
+
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
135
144
|
return __generator(this, function (_b) {
|
|
136
145
|
switch (_b.label) {
|
|
137
146
|
case 0:
|
|
138
147
|
_config = _options || this.configuration;
|
|
139
|
-
if (
|
|
140
|
-
throw new baseapi_1.RequiredError("
|
|
141
|
-
}
|
|
142
|
-
if (dumpName === null || dumpName === undefined) {
|
|
143
|
-
throw new baseapi_1.RequiredError("AnalysesDynamicExecutionApi", "getProcessDump", "dumpName");
|
|
148
|
+
if (createConversationRequest === null || createConversationRequest === undefined) {
|
|
149
|
+
throw new baseapi_1.RequiredError("ConversationsApi", "createConversation", "createConversationRequest");
|
|
144
150
|
}
|
|
145
|
-
localVarPath = '/v2/
|
|
146
|
-
|
|
147
|
-
.replace('{' + 'dump_name' + '}', encodeURIComponent(String(dumpName)));
|
|
148
|
-
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
151
|
+
localVarPath = '/v2/conversations';
|
|
152
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
149
153
|
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
154
|
+
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
155
|
+
"application/json"
|
|
156
|
+
]);
|
|
157
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
158
|
+
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(createConversationRequest, "CreateConversationRequest", ""), contentType);
|
|
159
|
+
requestContext.setBody(serializedBody);
|
|
150
160
|
authMethod = _config.authMethods["APIKey"];
|
|
151
161
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
152
162
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
@@ -165,7 +175,7 @@ var AnalysesDynamicExecutionApiRequestFactory = (function (_super) {
|
|
|
165
175
|
});
|
|
166
176
|
});
|
|
167
177
|
};
|
|
168
|
-
|
|
178
|
+
ConversationsApiRequestFactory.prototype.getConversation = function (id, _options) {
|
|
169
179
|
var _a;
|
|
170
180
|
return __awaiter(this, void 0, void 0, function () {
|
|
171
181
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
@@ -173,11 +183,11 @@ var AnalysesDynamicExecutionApiRequestFactory = (function (_super) {
|
|
|
173
183
|
switch (_b.label) {
|
|
174
184
|
case 0:
|
|
175
185
|
_config = _options || this.configuration;
|
|
176
|
-
if (
|
|
177
|
-
throw new baseapi_1.RequiredError("
|
|
186
|
+
if (id === null || id === undefined) {
|
|
187
|
+
throw new baseapi_1.RequiredError("ConversationsApi", "getConversation", "id");
|
|
178
188
|
}
|
|
179
|
-
localVarPath = '/v2/
|
|
180
|
-
.replace('{' + '
|
|
189
|
+
localVarPath = '/v2/conversations/{id}'
|
|
190
|
+
.replace('{' + 'id' + '}', encodeURIComponent(String(id)));
|
|
181
191
|
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
182
192
|
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
183
193
|
authMethod = _config.authMethods["APIKey"];
|
|
@@ -198,7 +208,7 @@ var AnalysesDynamicExecutionApiRequestFactory = (function (_super) {
|
|
|
198
208
|
});
|
|
199
209
|
});
|
|
200
210
|
};
|
|
201
|
-
|
|
211
|
+
ConversationsApiRequestFactory.prototype.listConversations = function (_options) {
|
|
202
212
|
var _a;
|
|
203
213
|
return __awaiter(this, void 0, void 0, function () {
|
|
204
214
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
@@ -206,11 +216,7 @@ var AnalysesDynamicExecutionApiRequestFactory = (function (_super) {
|
|
|
206
216
|
switch (_b.label) {
|
|
207
217
|
case 0:
|
|
208
218
|
_config = _options || this.configuration;
|
|
209
|
-
|
|
210
|
-
throw new baseapi_1.RequiredError("AnalysesDynamicExecutionApi", "getProcessRegistry", "analysisId");
|
|
211
|
-
}
|
|
212
|
-
localVarPath = '/v2/analyses/{analysis_id}/dynamic-execution/process-registry'
|
|
213
|
-
.replace('{' + 'analysis_id' + '}', encodeURIComponent(String(analysisId)));
|
|
219
|
+
localVarPath = '/v2/conversations';
|
|
214
220
|
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
215
221
|
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
216
222
|
authMethod = _config.authMethods["APIKey"];
|
|
@@ -231,21 +237,30 @@ var AnalysesDynamicExecutionApiRequestFactory = (function (_super) {
|
|
|
231
237
|
});
|
|
232
238
|
});
|
|
233
239
|
};
|
|
234
|
-
|
|
240
|
+
ConversationsApiRequestFactory.prototype.sendMessage = function (id, sendMessageRequest, _options) {
|
|
235
241
|
var _a;
|
|
236
242
|
return __awaiter(this, void 0, void 0, function () {
|
|
237
|
-
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
243
|
+
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
238
244
|
return __generator(this, function (_b) {
|
|
239
245
|
switch (_b.label) {
|
|
240
246
|
case 0:
|
|
241
247
|
_config = _options || this.configuration;
|
|
242
|
-
if (
|
|
243
|
-
throw new baseapi_1.RequiredError("
|
|
248
|
+
if (id === null || id === undefined) {
|
|
249
|
+
throw new baseapi_1.RequiredError("ConversationsApi", "sendMessage", "id");
|
|
244
250
|
}
|
|
245
|
-
|
|
246
|
-
.
|
|
247
|
-
|
|
251
|
+
if (sendMessageRequest === null || sendMessageRequest === undefined) {
|
|
252
|
+
throw new baseapi_1.RequiredError("ConversationsApi", "sendMessage", "sendMessageRequest");
|
|
253
|
+
}
|
|
254
|
+
localVarPath = '/v2/conversations/{id}/messages'
|
|
255
|
+
.replace('{' + 'id' + '}', encodeURIComponent(String(id)));
|
|
256
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
248
257
|
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
258
|
+
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
259
|
+
"application/json"
|
|
260
|
+
]);
|
|
261
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
262
|
+
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(sendMessageRequest, "SendMessageRequest", ""), contentType);
|
|
263
|
+
requestContext.setBody(serializedBody);
|
|
249
264
|
authMethod = _config.authMethods["APIKey"];
|
|
250
265
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
251
266
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
@@ -264,7 +279,7 @@ var AnalysesDynamicExecutionApiRequestFactory = (function (_super) {
|
|
|
264
279
|
});
|
|
265
280
|
});
|
|
266
281
|
};
|
|
267
|
-
|
|
282
|
+
ConversationsApiRequestFactory.prototype.streamEvents = function (id, lastEventId, _options) {
|
|
268
283
|
var _a;
|
|
269
284
|
return __awaiter(this, void 0, void 0, function () {
|
|
270
285
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
@@ -272,13 +287,16 @@ var AnalysesDynamicExecutionApiRequestFactory = (function (_super) {
|
|
|
272
287
|
switch (_b.label) {
|
|
273
288
|
case 0:
|
|
274
289
|
_config = _options || this.configuration;
|
|
275
|
-
if (
|
|
276
|
-
throw new baseapi_1.RequiredError("
|
|
290
|
+
if (id === null || id === undefined) {
|
|
291
|
+
throw new baseapi_1.RequiredError("ConversationsApi", "streamEvents", "id");
|
|
277
292
|
}
|
|
278
|
-
localVarPath = '/v2/
|
|
279
|
-
.replace('{' + '
|
|
293
|
+
localVarPath = '/v2/conversations/{id}/events'
|
|
294
|
+
.replace('{' + 'id' + '}', encodeURIComponent(String(id)));
|
|
280
295
|
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
281
296
|
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
297
|
+
if (lastEventId !== undefined) {
|
|
298
|
+
requestContext.setQueryParam("last_event_id", ObjectSerializer_1.ObjectSerializer.serialize(lastEventId, "number", "int64"));
|
|
299
|
+
}
|
|
282
300
|
authMethod = _config.authMethods["APIKey"];
|
|
283
301
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
284
302
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
@@ -297,17 +315,17 @@ var AnalysesDynamicExecutionApiRequestFactory = (function (_super) {
|
|
|
297
315
|
});
|
|
298
316
|
});
|
|
299
317
|
};
|
|
300
|
-
return
|
|
318
|
+
return ConversationsApiRequestFactory;
|
|
301
319
|
}(baseapi_1.BaseAPIRequestFactory));
|
|
302
|
-
exports.
|
|
303
|
-
var
|
|
304
|
-
function
|
|
320
|
+
exports.ConversationsApiRequestFactory = ConversationsApiRequestFactory;
|
|
321
|
+
var ConversationsApiResponseProcessor = (function () {
|
|
322
|
+
function ConversationsApiResponseProcessor() {
|
|
305
323
|
}
|
|
306
|
-
|
|
324
|
+
ConversationsApiResponseProcessor.prototype.cancelRunWithHttpInfo = function (response) {
|
|
307
325
|
return __awaiter(this, void 0, void 0, function () {
|
|
308
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
309
|
-
return __generator(this, function (
|
|
310
|
-
switch (
|
|
326
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, body, _w, _x, _y, _z, _0, _1;
|
|
327
|
+
return __generator(this, function (_2) {
|
|
328
|
+
switch (_2.label) {
|
|
311
329
|
case 0:
|
|
312
330
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
313
331
|
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
@@ -315,41 +333,68 @@ var AnalysesDynamicExecutionApiResponseProcessor = (function () {
|
|
|
315
333
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
316
334
|
return [4, response.body.text()];
|
|
317
335
|
case 1:
|
|
318
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
319
|
-
"
|
|
336
|
+
body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
|
|
337
|
+
"StatusResponse", ""]);
|
|
320
338
|
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
321
339
|
case 2:
|
|
322
|
-
if (!(0, util_1.isCodeInRange)("
|
|
340
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
|
|
323
341
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
324
342
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
325
343
|
return [4, response.body.text()];
|
|
326
344
|
case 3:
|
|
327
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
328
|
-
"
|
|
329
|
-
throw new exception_1.ApiException(response.httpStatusCode, "
|
|
345
|
+
body = _f.apply(_e, [_h.apply(_g, [_2.sent(), contentType]),
|
|
346
|
+
"APIError", ""]);
|
|
347
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", body, response.headers);
|
|
330
348
|
case 4:
|
|
331
|
-
if (!(
|
|
349
|
+
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
|
|
332
350
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
333
351
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
334
352
|
return [4, response.body.text()];
|
|
335
353
|
case 5:
|
|
336
|
-
body = _k.apply(_j, [_m.apply(_l, [
|
|
337
|
-
"
|
|
338
|
-
|
|
354
|
+
body = _k.apply(_j, [_m.apply(_l, [_2.sent(), contentType]),
|
|
355
|
+
"APIError", ""]);
|
|
356
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Not Found", body, response.headers);
|
|
339
357
|
case 6:
|
|
340
|
-
|
|
341
|
-
_p =
|
|
358
|
+
if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 8];
|
|
359
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
360
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
361
|
+
return [4, response.body.text()];
|
|
362
|
+
case 7:
|
|
363
|
+
body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
|
|
364
|
+
"APIError", ""]);
|
|
365
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unprocessable Entity", body, response.headers);
|
|
366
|
+
case 8:
|
|
367
|
+
if (!(0, util_1.isCodeInRange)("500", response.httpStatusCode)) return [3, 10];
|
|
368
|
+
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
369
|
+
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
370
|
+
return [4, response.body.text()];
|
|
371
|
+
case 9:
|
|
372
|
+
body = _t.apply(_s, [_v.apply(_u, [_2.sent(), contentType]),
|
|
373
|
+
"APIError", ""]);
|
|
374
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
|
|
375
|
+
case 10:
|
|
376
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 12];
|
|
377
|
+
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
378
|
+
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
379
|
+
return [4, response.body.text()];
|
|
380
|
+
case 11:
|
|
381
|
+
body = _x.apply(_w, [_z.apply(_y, [_2.sent(), contentType]),
|
|
382
|
+
"StatusResponse", ""]);
|
|
383
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
384
|
+
case 12:
|
|
385
|
+
_0 = exception_1.ApiException.bind;
|
|
386
|
+
_1 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
342
387
|
return [4, response.getBodyAsAny()];
|
|
343
|
-
case
|
|
388
|
+
case 13: throw new (_0.apply(exception_1.ApiException, _1.concat([_2.sent(), response.headers])))();
|
|
344
389
|
}
|
|
345
390
|
});
|
|
346
391
|
});
|
|
347
392
|
};
|
|
348
|
-
|
|
393
|
+
ConversationsApiResponseProcessor.prototype.confirmToolWithHttpInfo = function (response) {
|
|
349
394
|
return __awaiter(this, void 0, void 0, function () {
|
|
350
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
351
|
-
return __generator(this, function (
|
|
352
|
-
switch (
|
|
395
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, body, _w, _x, _y, _z, _0, _1;
|
|
396
|
+
return __generator(this, function (_2) {
|
|
397
|
+
switch (_2.label) {
|
|
353
398
|
case 0:
|
|
354
399
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
355
400
|
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
@@ -357,83 +402,128 @@ var AnalysesDynamicExecutionApiResponseProcessor = (function () {
|
|
|
357
402
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
358
403
|
return [4, response.body.text()];
|
|
359
404
|
case 1:
|
|
360
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
361
|
-
"
|
|
405
|
+
body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
|
|
406
|
+
"StatusResponse", ""]);
|
|
362
407
|
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
363
408
|
case 2:
|
|
364
|
-
if (!(0, util_1.isCodeInRange)("
|
|
409
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
|
|
365
410
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
366
411
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
367
412
|
return [4, response.body.text()];
|
|
368
413
|
case 3:
|
|
369
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
370
|
-
"
|
|
371
|
-
throw new exception_1.ApiException(response.httpStatusCode, "
|
|
414
|
+
body = _f.apply(_e, [_h.apply(_g, [_2.sent(), contentType]),
|
|
415
|
+
"APIError", ""]);
|
|
416
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", body, response.headers);
|
|
372
417
|
case 4:
|
|
373
|
-
if (!(
|
|
418
|
+
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
|
|
374
419
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
375
420
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
376
421
|
return [4, response.body.text()];
|
|
377
422
|
case 5:
|
|
378
|
-
body = _k.apply(_j, [_m.apply(_l, [
|
|
379
|
-
"
|
|
380
|
-
|
|
423
|
+
body = _k.apply(_j, [_m.apply(_l, [_2.sent(), contentType]),
|
|
424
|
+
"APIError", ""]);
|
|
425
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Not Found", body, response.headers);
|
|
381
426
|
case 6:
|
|
382
|
-
|
|
383
|
-
_p =
|
|
427
|
+
if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 8];
|
|
428
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
429
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
430
|
+
return [4, response.body.text()];
|
|
431
|
+
case 7:
|
|
432
|
+
body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
|
|
433
|
+
"APIError", ""]);
|
|
434
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unprocessable Entity", body, response.headers);
|
|
435
|
+
case 8:
|
|
436
|
+
if (!(0, util_1.isCodeInRange)("500", response.httpStatusCode)) return [3, 10];
|
|
437
|
+
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
438
|
+
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
439
|
+
return [4, response.body.text()];
|
|
440
|
+
case 9:
|
|
441
|
+
body = _t.apply(_s, [_v.apply(_u, [_2.sent(), contentType]),
|
|
442
|
+
"APIError", ""]);
|
|
443
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
|
|
444
|
+
case 10:
|
|
445
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 12];
|
|
446
|
+
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
447
|
+
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
448
|
+
return [4, response.body.text()];
|
|
449
|
+
case 11:
|
|
450
|
+
body = _x.apply(_w, [_z.apply(_y, [_2.sent(), contentType]),
|
|
451
|
+
"StatusResponse", ""]);
|
|
452
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
453
|
+
case 12:
|
|
454
|
+
_0 = exception_1.ApiException.bind;
|
|
455
|
+
_1 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
384
456
|
return [4, response.getBodyAsAny()];
|
|
385
|
-
case
|
|
457
|
+
case 13: throw new (_0.apply(exception_1.ApiException, _1.concat([_2.sent(), response.headers])))();
|
|
386
458
|
}
|
|
387
459
|
});
|
|
388
460
|
});
|
|
389
461
|
};
|
|
390
|
-
|
|
462
|
+
ConversationsApiResponseProcessor.prototype.createConversationWithHttpInfo = function (response) {
|
|
391
463
|
return __awaiter(this, void 0, void 0, function () {
|
|
392
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
393
|
-
return __generator(this, function (
|
|
394
|
-
switch (
|
|
464
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, _w, _x;
|
|
465
|
+
return __generator(this, function (_y) {
|
|
466
|
+
switch (_y.label) {
|
|
395
467
|
case 0:
|
|
396
468
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
397
|
-
if (!(0, util_1.isCodeInRange)("
|
|
469
|
+
if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 2];
|
|
398
470
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
399
471
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
400
472
|
return [4, response.body.text()];
|
|
401
473
|
case 1:
|
|
402
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
403
|
-
"
|
|
474
|
+
body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
|
|
475
|
+
"Conversation", ""]);
|
|
404
476
|
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
405
477
|
case 2:
|
|
406
|
-
if (!(0, util_1.isCodeInRange)("
|
|
478
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
|
|
407
479
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
408
480
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
409
481
|
return [4, response.body.text()];
|
|
410
482
|
case 3:
|
|
411
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
412
|
-
"
|
|
413
|
-
throw new exception_1.ApiException(response.httpStatusCode, "
|
|
483
|
+
body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
|
|
484
|
+
"APIError", ""]);
|
|
485
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", body, response.headers);
|
|
414
486
|
case 4:
|
|
415
|
-
if (!(
|
|
487
|
+
if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 6];
|
|
416
488
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
417
489
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
418
490
|
return [4, response.body.text()];
|
|
419
491
|
case 5:
|
|
420
|
-
body = _k.apply(_j, [_m.apply(_l, [
|
|
421
|
-
"
|
|
422
|
-
|
|
492
|
+
body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
|
|
493
|
+
"APIError", ""]);
|
|
494
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unprocessable Entity", body, response.headers);
|
|
423
495
|
case 6:
|
|
424
|
-
|
|
425
|
-
_p =
|
|
496
|
+
if (!(0, util_1.isCodeInRange)("500", response.httpStatusCode)) return [3, 8];
|
|
497
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
498
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
499
|
+
return [4, response.body.text()];
|
|
500
|
+
case 7:
|
|
501
|
+
body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
|
|
502
|
+
"APIError", ""]);
|
|
503
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
|
|
504
|
+
case 8:
|
|
505
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
|
|
506
|
+
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
507
|
+
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
508
|
+
return [4, response.body.text()];
|
|
509
|
+
case 9:
|
|
510
|
+
body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
|
|
511
|
+
"Conversation", ""]);
|
|
512
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
513
|
+
case 10:
|
|
514
|
+
_w = exception_1.ApiException.bind;
|
|
515
|
+
_x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
426
516
|
return [4, response.getBodyAsAny()];
|
|
427
|
-
case
|
|
517
|
+
case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
|
|
428
518
|
}
|
|
429
519
|
});
|
|
430
520
|
});
|
|
431
521
|
};
|
|
432
|
-
|
|
522
|
+
ConversationsApiResponseProcessor.prototype.getConversationWithHttpInfo = function (response) {
|
|
433
523
|
return __awaiter(this, void 0, void 0, function () {
|
|
434
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
435
|
-
return __generator(this, function (
|
|
436
|
-
switch (
|
|
524
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, body, _w, _x, _y, _z, _0, _1;
|
|
525
|
+
return __generator(this, function (_2) {
|
|
526
|
+
switch (_2.label) {
|
|
437
527
|
case 0:
|
|
438
528
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
439
529
|
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
@@ -441,37 +531,64 @@ var AnalysesDynamicExecutionApiResponseProcessor = (function () {
|
|
|
441
531
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
442
532
|
return [4, response.body.text()];
|
|
443
533
|
case 1:
|
|
444
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
445
|
-
"
|
|
534
|
+
body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
|
|
535
|
+
"ConversationWithEvents", ""]);
|
|
446
536
|
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
447
537
|
case 2:
|
|
448
|
-
if (!(0, util_1.isCodeInRange)("
|
|
538
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
|
|
449
539
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
450
540
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
451
541
|
return [4, response.body.text()];
|
|
452
542
|
case 3:
|
|
453
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
454
|
-
"
|
|
455
|
-
throw new exception_1.ApiException(response.httpStatusCode, "
|
|
543
|
+
body = _f.apply(_e, [_h.apply(_g, [_2.sent(), contentType]),
|
|
544
|
+
"APIError", ""]);
|
|
545
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", body, response.headers);
|
|
456
546
|
case 4:
|
|
457
|
-
if (!(
|
|
547
|
+
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
|
|
458
548
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
459
549
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
460
550
|
return [4, response.body.text()];
|
|
461
551
|
case 5:
|
|
462
|
-
body = _k.apply(_j, [_m.apply(_l, [
|
|
463
|
-
"
|
|
464
|
-
|
|
552
|
+
body = _k.apply(_j, [_m.apply(_l, [_2.sent(), contentType]),
|
|
553
|
+
"APIError", ""]);
|
|
554
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Not Found", body, response.headers);
|
|
465
555
|
case 6:
|
|
466
|
-
|
|
467
|
-
_p =
|
|
556
|
+
if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 8];
|
|
557
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
558
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
559
|
+
return [4, response.body.text()];
|
|
560
|
+
case 7:
|
|
561
|
+
body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
|
|
562
|
+
"APIError", ""]);
|
|
563
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unprocessable Entity", body, response.headers);
|
|
564
|
+
case 8:
|
|
565
|
+
if (!(0, util_1.isCodeInRange)("500", response.httpStatusCode)) return [3, 10];
|
|
566
|
+
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
567
|
+
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
568
|
+
return [4, response.body.text()];
|
|
569
|
+
case 9:
|
|
570
|
+
body = _t.apply(_s, [_v.apply(_u, [_2.sent(), contentType]),
|
|
571
|
+
"APIError", ""]);
|
|
572
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
|
|
573
|
+
case 10:
|
|
574
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 12];
|
|
575
|
+
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
576
|
+
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
577
|
+
return [4, response.body.text()];
|
|
578
|
+
case 11:
|
|
579
|
+
body = _x.apply(_w, [_z.apply(_y, [_2.sent(), contentType]),
|
|
580
|
+
"ConversationWithEvents", ""]);
|
|
581
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
582
|
+
case 12:
|
|
583
|
+
_0 = exception_1.ApiException.bind;
|
|
584
|
+
_1 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
468
585
|
return [4, response.getBodyAsAny()];
|
|
469
|
-
case
|
|
586
|
+
case 13: throw new (_0.apply(exception_1.ApiException, _1.concat([_2.sent(), response.headers])))();
|
|
470
587
|
}
|
|
471
588
|
});
|
|
472
589
|
});
|
|
473
590
|
};
|
|
474
|
-
|
|
591
|
+
ConversationsApiResponseProcessor.prototype.listConversationsWithHttpInfo = function (response) {
|
|
475
592
|
return __awaiter(this, void 0, void 0, function () {
|
|
476
593
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
477
594
|
return __generator(this, function (_q) {
|
|
@@ -484,17 +601,17 @@ var AnalysesDynamicExecutionApiResponseProcessor = (function () {
|
|
|
484
601
|
return [4, response.body.text()];
|
|
485
602
|
case 1:
|
|
486
603
|
body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
|
|
487
|
-
"
|
|
604
|
+
"Array<Conversation>", ""]);
|
|
488
605
|
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
489
606
|
case 2:
|
|
490
|
-
if (!(0, util_1.isCodeInRange)("
|
|
607
|
+
if (!(0, util_1.isCodeInRange)("0", response.httpStatusCode)) return [3, 4];
|
|
491
608
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
492
609
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
493
610
|
return [4, response.body.text()];
|
|
494
611
|
case 3:
|
|
495
612
|
body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
|
|
496
|
-
"
|
|
497
|
-
throw new exception_1.ApiException(response.httpStatusCode, "
|
|
613
|
+
"APIError", ""]);
|
|
614
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Error", body, response.headers);
|
|
498
615
|
case 4:
|
|
499
616
|
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
|
|
500
617
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
@@ -502,7 +619,7 @@ var AnalysesDynamicExecutionApiResponseProcessor = (function () {
|
|
|
502
619
|
return [4, response.body.text()];
|
|
503
620
|
case 5:
|
|
504
621
|
body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
|
|
505
|
-
"
|
|
622
|
+
"Array<Conversation>", ""]);
|
|
506
623
|
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
507
624
|
case 6:
|
|
508
625
|
_o = exception_1.ApiException.bind;
|
|
@@ -513,49 +630,103 @@ var AnalysesDynamicExecutionApiResponseProcessor = (function () {
|
|
|
513
630
|
});
|
|
514
631
|
});
|
|
515
632
|
};
|
|
516
|
-
|
|
633
|
+
ConversationsApiResponseProcessor.prototype.sendMessageWithHttpInfo = function (response) {
|
|
517
634
|
return __awaiter(this, void 0, void 0, function () {
|
|
518
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
519
|
-
return __generator(this, function (
|
|
520
|
-
switch (
|
|
635
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, body, _w, _x, _y, _z, body, _0, _1, _2, _3, body, _4, _5, _6, _7, body, _8, _9, _10, _11, _12, _13;
|
|
636
|
+
return __generator(this, function (_14) {
|
|
637
|
+
switch (_14.label) {
|
|
521
638
|
case 0:
|
|
522
639
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
523
|
-
if (!(0, util_1.isCodeInRange)("
|
|
640
|
+
if (!(0, util_1.isCodeInRange)("202", response.httpStatusCode)) return [3, 2];
|
|
524
641
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
525
642
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
526
643
|
return [4, response.body.text()];
|
|
527
644
|
case 1:
|
|
528
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
529
|
-
"
|
|
645
|
+
body = _b.apply(_a, [_d.apply(_c, [_14.sent(), contentType]),
|
|
646
|
+
"StatusResponse", ""]);
|
|
530
647
|
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
531
648
|
case 2:
|
|
532
|
-
if (!(0, util_1.isCodeInRange)("
|
|
649
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
|
|
533
650
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
534
651
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
535
652
|
return [4, response.body.text()];
|
|
536
653
|
case 3:
|
|
537
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
538
|
-
"
|
|
539
|
-
throw new exception_1.ApiException(response.httpStatusCode, "
|
|
654
|
+
body = _f.apply(_e, [_h.apply(_g, [_14.sent(), contentType]),
|
|
655
|
+
"APIError", ""]);
|
|
656
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", body, response.headers);
|
|
540
657
|
case 4:
|
|
541
|
-
if (!(
|
|
658
|
+
if (!(0, util_1.isCodeInRange)("402", response.httpStatusCode)) return [3, 6];
|
|
542
659
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
543
660
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
544
661
|
return [4, response.body.text()];
|
|
545
662
|
case 5:
|
|
546
|
-
body = _k.apply(_j, [_m.apply(_l, [
|
|
547
|
-
"
|
|
548
|
-
|
|
663
|
+
body = _k.apply(_j, [_m.apply(_l, [_14.sent(), contentType]),
|
|
664
|
+
"APIError", ""]);
|
|
665
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Payment Required", body, response.headers);
|
|
549
666
|
case 6:
|
|
550
|
-
|
|
551
|
-
_p =
|
|
667
|
+
if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 8];
|
|
668
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
669
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
670
|
+
return [4, response.body.text()];
|
|
671
|
+
case 7:
|
|
672
|
+
body = _p.apply(_o, [_r.apply(_q, [_14.sent(), contentType]),
|
|
673
|
+
"APIError", ""]);
|
|
674
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Forbidden", body, response.headers);
|
|
675
|
+
case 8:
|
|
676
|
+
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 10];
|
|
677
|
+
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
678
|
+
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
679
|
+
return [4, response.body.text()];
|
|
680
|
+
case 9:
|
|
681
|
+
body = _t.apply(_s, [_v.apply(_u, [_14.sent(), contentType]),
|
|
682
|
+
"APIError", ""]);
|
|
683
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Not Found", body, response.headers);
|
|
684
|
+
case 10:
|
|
685
|
+
if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 12];
|
|
686
|
+
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
687
|
+
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
688
|
+
return [4, response.body.text()];
|
|
689
|
+
case 11:
|
|
690
|
+
body = _x.apply(_w, [_z.apply(_y, [_14.sent(), contentType]),
|
|
691
|
+
"APIError", ""]);
|
|
692
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Conflict", body, response.headers);
|
|
693
|
+
case 12:
|
|
694
|
+
if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 14];
|
|
695
|
+
_1 = (_0 = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
696
|
+
_3 = (_2 = ObjectSerializer_1.ObjectSerializer).parse;
|
|
697
|
+
return [4, response.body.text()];
|
|
698
|
+
case 13:
|
|
699
|
+
body = _1.apply(_0, [_3.apply(_2, [_14.sent(), contentType]),
|
|
700
|
+
"APIError", ""]);
|
|
701
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unprocessable Entity", body, response.headers);
|
|
702
|
+
case 14:
|
|
703
|
+
if (!(0, util_1.isCodeInRange)("500", response.httpStatusCode)) return [3, 16];
|
|
704
|
+
_5 = (_4 = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
705
|
+
_7 = (_6 = ObjectSerializer_1.ObjectSerializer).parse;
|
|
706
|
+
return [4, response.body.text()];
|
|
707
|
+
case 15:
|
|
708
|
+
body = _5.apply(_4, [_7.apply(_6, [_14.sent(), contentType]),
|
|
709
|
+
"APIError", ""]);
|
|
710
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
|
|
711
|
+
case 16:
|
|
712
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 18];
|
|
713
|
+
_9 = (_8 = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
714
|
+
_11 = (_10 = ObjectSerializer_1.ObjectSerializer).parse;
|
|
715
|
+
return [4, response.body.text()];
|
|
716
|
+
case 17:
|
|
717
|
+
body = _9.apply(_8, [_11.apply(_10, [_14.sent(), contentType]),
|
|
718
|
+
"StatusResponse", ""]);
|
|
719
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
720
|
+
case 18:
|
|
721
|
+
_12 = exception_1.ApiException.bind;
|
|
722
|
+
_13 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
552
723
|
return [4, response.getBodyAsAny()];
|
|
553
|
-
case
|
|
724
|
+
case 19: throw new (_12.apply(exception_1.ApiException, _13.concat([_14.sent(), response.headers])))();
|
|
554
725
|
}
|
|
555
726
|
});
|
|
556
727
|
});
|
|
557
728
|
};
|
|
558
|
-
|
|
729
|
+
ConversationsApiResponseProcessor.prototype.streamEventsWithHttpInfo = function (response) {
|
|
559
730
|
return __awaiter(this, void 0, void 0, function () {
|
|
560
731
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
561
732
|
return __generator(this, function (_q) {
|
|
@@ -568,17 +739,17 @@ var AnalysesDynamicExecutionApiResponseProcessor = (function () {
|
|
|
568
739
|
return [4, response.body.text()];
|
|
569
740
|
case 1:
|
|
570
741
|
body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
|
|
571
|
-
"
|
|
742
|
+
"Array<StreamEvents200ResponseInner>", ""]);
|
|
572
743
|
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
573
744
|
case 2:
|
|
574
|
-
if (!(0, util_1.isCodeInRange)("
|
|
745
|
+
if (!(0, util_1.isCodeInRange)("0", response.httpStatusCode)) return [3, 4];
|
|
575
746
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
576
747
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
577
748
|
return [4, response.body.text()];
|
|
578
749
|
case 3:
|
|
579
750
|
body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
|
|
580
|
-
"
|
|
581
|
-
throw new exception_1.ApiException(response.httpStatusCode, "
|
|
751
|
+
"APIError", ""]);
|
|
752
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Error", body, response.headers);
|
|
582
753
|
case 4:
|
|
583
754
|
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
|
|
584
755
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
@@ -586,7 +757,7 @@ var AnalysesDynamicExecutionApiResponseProcessor = (function () {
|
|
|
586
757
|
return [4, response.body.text()];
|
|
587
758
|
case 5:
|
|
588
759
|
body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
|
|
589
|
-
"
|
|
760
|
+
"Array<StreamEvents200ResponseInner>", ""]);
|
|
590
761
|
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
591
762
|
case 6:
|
|
592
763
|
_o = exception_1.ApiException.bind;
|
|
@@ -597,7 +768,7 @@ var AnalysesDynamicExecutionApiResponseProcessor = (function () {
|
|
|
597
768
|
});
|
|
598
769
|
});
|
|
599
770
|
};
|
|
600
|
-
return
|
|
771
|
+
return ConversationsApiResponseProcessor;
|
|
601
772
|
}());
|
|
602
|
-
exports.
|
|
603
|
-
//# sourceMappingURL=
|
|
773
|
+
exports.ConversationsApiResponseProcessor = ConversationsApiResponseProcessor;
|
|
774
|
+
//# sourceMappingURL=ConversationsApi.js.map
|