@revengai/sdk 3.86.4 → 3.88.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 +30 -2
- package/dist/apis/AnalysesCoreApi.d.ts +14 -0
- package/dist/apis/AnalysesCoreApi.js +435 -0
- package/dist/apis/AnalysesCoreApi.js.map +1 -1
- package/dist/apis/BinariesApi.d.ts +6 -0
- package/dist/apis/BinariesApi.js +204 -0
- package/dist/apis/BinariesApi.js.map +1 -1
- package/dist/apis/FunctionsCoreApi.d.ts +13 -0
- package/dist/apis/FunctionsCoreApi.js +342 -0
- package/dist/apis/FunctionsCoreApi.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/dist/models/AddCalleeInputBody.d.ts +24 -0
- package/dist/models/AddCalleeInputBody.js +47 -0
- package/dist/models/AddCalleeInputBody.js.map +1 -0
- package/dist/models/AnalysisBasicInfoOutputBody.d.ts +43 -0
- package/dist/models/AnalysisBasicInfoOutputBody.js +132 -0
- package/dist/models/AnalysisBasicInfoOutputBody.js.map +1 -0
- package/dist/models/AnalysisLogMessage.d.ts +21 -0
- package/dist/models/AnalysisLogMessage.js +29 -0
- package/dist/models/AnalysisLogMessage.js.map +1 -0
- package/dist/models/AnalysisLogs.d.ts +22 -0
- package/dist/models/AnalysisLogs.js +29 -0
- package/dist/models/AnalysisLogs.js.map +1 -0
- package/dist/models/AnalysisStringFunction.d.ts +21 -0
- package/dist/models/AnalysisStringFunction.js +29 -0
- package/dist/models/AnalysisStringFunction.js.map +1 -0
- package/dist/models/AnalysisStringItem.d.ts +23 -0
- package/dist/models/AnalysisStringItem.js +35 -0
- package/dist/models/AnalysisStringItem.js.map +1 -0
- package/dist/models/CreateCheckoutSessionInputBody.d.ts +22 -0
- package/dist/models/CreateCheckoutSessionInputBody.js +35 -0
- package/dist/models/CreateCheckoutSessionInputBody.js.map +1 -0
- package/dist/models/CreatePortalSessionInputBody.d.ts +20 -0
- package/dist/models/CreatePortalSessionInputBody.js +23 -0
- package/dist/models/CreatePortalSessionInputBody.js.map +1 -0
- package/dist/models/DynamicExecutionStatusResponse.d.ts +2 -0
- package/dist/models/DynamicExecutionStatusResponse.js +6 -0
- package/dist/models/DynamicExecutionStatusResponse.js.map +1 -1
- package/dist/models/ErrorBody.d.ts +8 -0
- package/dist/models/ErrorBody.js +8 -0
- package/dist/models/ErrorBody.js.map +1 -1
- package/dist/models/FunctionStringItem.d.ts +22 -0
- package/dist/models/FunctionStringItem.js +35 -0
- package/dist/models/FunctionStringItem.js.map +1 -0
- package/dist/models/GetAdditionalDetailsOutputBody.d.ts +21 -0
- package/dist/models/GetAdditionalDetailsOutputBody.js +29 -0
- package/dist/models/GetAdditionalDetailsOutputBody.js.map +1 -0
- package/dist/models/GetAdditionalDetailsStatusOutputBody.d.ts +20 -0
- package/dist/models/GetAdditionalDetailsStatusOutputBody.js +23 -0
- package/dist/models/GetAdditionalDetailsStatusOutputBody.js.map +1 -0
- package/dist/models/GetAnalysisStringsStatusOutputBody.d.ts +20 -0
- package/dist/models/GetAnalysisStringsStatusOutputBody.js +23 -0
- package/dist/models/GetAnalysisStringsStatusOutputBody.js.map +1 -0
- package/dist/models/GetProductsOutputBody.d.ts +21 -0
- package/dist/models/GetProductsOutputBody.js +23 -0
- package/dist/models/GetProductsOutputBody.js.map +1 -0
- package/dist/models/GetSubscriptionOutputBody.d.ts +42 -0
- package/dist/models/GetSubscriptionOutputBody.js +70 -0
- package/dist/models/GetSubscriptionOutputBody.js.map +1 -0
- package/dist/models/ListAnalysisStringsOutputBody.d.ts +22 -0
- package/dist/models/ListAnalysisStringsOutputBody.js +29 -0
- package/dist/models/ListAnalysisStringsOutputBody.js.map +1 -0
- package/dist/models/ListFunctionStringsOutputBody.d.ts +22 -0
- package/dist/models/ListFunctionStringsOutputBody.js +29 -0
- package/dist/models/ListFunctionStringsOutputBody.js.map +1 -0
- package/dist/models/ObjectSerializer.d.ts +21 -0
- package/dist/models/ObjectSerializer.js +68 -0
- package/dist/models/ObjectSerializer.js.map +1 -1
- package/dist/models/PriceOutput.d.ts +28 -0
- package/dist/models/PriceOutput.js +47 -0
- package/dist/models/PriceOutput.js.map +1 -0
- package/dist/models/PriceSummary.d.ts +27 -0
- package/dist/models/PriceSummary.js +41 -0
- package/dist/models/PriceSummary.js.map +1 -0
- package/dist/models/ProductOutput.d.ts +27 -0
- package/dist/models/ProductOutput.js +59 -0
- package/dist/models/ProductOutput.js.map +1 -0
- package/dist/models/ProductSummary.d.ts +20 -0
- package/dist/models/ProductSummary.js +23 -0
- package/dist/models/ProductSummary.js.map +1 -0
- package/dist/models/SessionOutputBody.d.ts +20 -0
- package/dist/models/SessionOutputBody.js +23 -0
- package/dist/models/SessionOutputBody.js.map +1 -0
- package/dist/models/SseEventContextCompactedData.d.ts +1 -0
- package/dist/models/SseEventContextCompactedData.js +6 -0
- package/dist/models/SseEventContextCompactedData.js.map +1 -1
- package/dist/models/SseEventRunCancelledData.d.ts +1 -0
- package/dist/models/SseEventRunCancelledData.js +6 -0
- package/dist/models/SseEventRunCancelledData.js.map +1 -1
- package/dist/models/SseEventRunErrorData.d.ts +1 -0
- package/dist/models/SseEventRunErrorData.js +6 -0
- package/dist/models/SseEventRunErrorData.js.map +1 -1
- package/dist/models/SseEventRunFinishedData.d.ts +1 -0
- package/dist/models/SseEventRunFinishedData.js +6 -0
- package/dist/models/SseEventRunFinishedData.js.map +1 -1
- package/dist/models/SseEventRunStartedData.d.ts +1 -0
- package/dist/models/SseEventRunStartedData.js +6 -0
- package/dist/models/SseEventRunStartedData.js.map +1 -1
- package/dist/models/SseEventStepFinishedData.d.ts +1 -0
- package/dist/models/SseEventStepFinishedData.js +6 -0
- package/dist/models/SseEventStepFinishedData.js.map +1 -1
- package/dist/models/SseEventStepStartedData.d.ts +1 -0
- package/dist/models/SseEventStepStartedData.js +6 -0
- package/dist/models/SseEventStepStartedData.js.map +1 -1
- package/dist/models/SseEventTextMessageContentData.d.ts +1 -0
- package/dist/models/SseEventTextMessageContentData.js +6 -0
- package/dist/models/SseEventTextMessageContentData.js.map +1 -1
- package/dist/models/SseEventTextMessageEndData.d.ts +1 -0
- package/dist/models/SseEventTextMessageEndData.js +6 -0
- package/dist/models/SseEventTextMessageEndData.js.map +1 -1
- package/dist/models/SseEventTextMessageStartData.d.ts +1 -0
- package/dist/models/SseEventTextMessageStartData.js +6 -0
- package/dist/models/SseEventTextMessageStartData.js.map +1 -1
- package/dist/models/SseEventTitleUpdatedData.d.ts +1 -0
- package/dist/models/SseEventTitleUpdatedData.js +6 -0
- package/dist/models/SseEventTitleUpdatedData.js.map +1 -1
- package/dist/models/SseEventToolCallArgsDeltaData.d.ts +1 -0
- package/dist/models/SseEventToolCallArgsDeltaData.js +6 -0
- package/dist/models/SseEventToolCallArgsDeltaData.js.map +1 -1
- package/dist/models/SseEventToolCallEndData.d.ts +1 -0
- package/dist/models/SseEventToolCallEndData.js +6 -0
- package/dist/models/SseEventToolCallEndData.js.map +1 -1
- package/dist/models/SseEventToolCallResultData.d.ts +1 -0
- package/dist/models/SseEventToolCallResultData.js +6 -0
- package/dist/models/SseEventToolCallResultData.js.map +1 -1
- package/dist/models/SseEventToolCallStartData.d.ts +1 -0
- package/dist/models/SseEventToolCallStartData.js +6 -0
- package/dist/models/SseEventToolCallStartData.js.map +1 -1
- package/dist/models/SseEventToolConfirmationRequiredData.d.ts +1 -0
- package/dist/models/SseEventToolConfirmationRequiredData.js +6 -0
- package/dist/models/SseEventToolConfirmationRequiredData.js.map +1 -1
- package/dist/models/all.d.ts +21 -0
- package/dist/models/all.js +21 -0
- package/dist/models/all.js.map +1 -1
- package/dist/types/ObjectParamAPI.d.ts +76 -25
- package/dist/types/ObjectParamAPI.js +55 -21
- package/dist/types/ObjectParamAPI.js.map +1 -1
- package/dist/types/ObservableAPI.d.ts +37 -19
- package/dist/types/ObservableAPI.js +707 -521
- package/dist/types/ObservableAPI.js.map +1 -1
- package/dist/types/PromiseAPI.d.ts +37 -17
- package/dist/types/PromiseAPI.js +91 -29
- package/dist/types/PromiseAPI.js.map +1 -1
- package/package.json +1 -1
- package/dist/apis/StringsApi.d.ts +0 -17
- package/dist/apis/StringsApi.js +0 -296
- package/dist/apis/StringsApi.js.map +0 -1
|
@@ -62,6 +62,48 @@ var AnalysesCoreApiRequestFactory = (function (_super) {
|
|
|
62
62
|
function AnalysesCoreApiRequestFactory() {
|
|
63
63
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
64
64
|
}
|
|
65
|
+
AnalysesCoreApiRequestFactory.prototype.addUserStringToAnalysis = function (analysisId, addUserStringInputBody, _options) {
|
|
66
|
+
var _a;
|
|
67
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
68
|
+
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
69
|
+
return __generator(this, function (_b) {
|
|
70
|
+
switch (_b.label) {
|
|
71
|
+
case 0:
|
|
72
|
+
_config = _options || this.configuration;
|
|
73
|
+
if (analysisId === null || analysisId === undefined) {
|
|
74
|
+
throw new baseapi_1.RequiredError("AnalysesCoreApi", "addUserStringToAnalysis", "analysisId");
|
|
75
|
+
}
|
|
76
|
+
if (addUserStringInputBody === null || addUserStringInputBody === undefined) {
|
|
77
|
+
throw new baseapi_1.RequiredError("AnalysesCoreApi", "addUserStringToAnalysis", "addUserStringInputBody");
|
|
78
|
+
}
|
|
79
|
+
localVarPath = '/v3/analyses/{analysis_id}/user-provided-strings'
|
|
80
|
+
.replace('{' + 'analysis_id' + '}', encodeURIComponent(String(analysisId)));
|
|
81
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
82
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
83
|
+
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
84
|
+
"application/json"
|
|
85
|
+
]);
|
|
86
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
87
|
+
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(addUserStringInputBody, "AddUserStringInputBody", ""), contentType);
|
|
88
|
+
requestContext.setBody(serializedBody);
|
|
89
|
+
authMethod = _config.authMethods["APIKey"];
|
|
90
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
91
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
92
|
+
case 1:
|
|
93
|
+
_b.sent();
|
|
94
|
+
_b.label = 2;
|
|
95
|
+
case 2:
|
|
96
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
97
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
98
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
99
|
+
case 3:
|
|
100
|
+
_b.sent();
|
|
101
|
+
_b.label = 4;
|
|
102
|
+
case 4: return [2, requestContext];
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
};
|
|
65
107
|
AnalysesCoreApiRequestFactory.prototype.createAnalysis = function (analysisCreateRequest, xRevEngApplication, _options) {
|
|
66
108
|
var _a;
|
|
67
109
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -167,6 +209,39 @@ var AnalysesCoreApiRequestFactory = (function (_super) {
|
|
|
167
209
|
});
|
|
168
210
|
});
|
|
169
211
|
};
|
|
212
|
+
AnalysesCoreApiRequestFactory.prototype.getAnalysisBasicInfo_1 = function (analysisId, _options) {
|
|
213
|
+
var _a;
|
|
214
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
215
|
+
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
216
|
+
return __generator(this, function (_b) {
|
|
217
|
+
switch (_b.label) {
|
|
218
|
+
case 0:
|
|
219
|
+
_config = _options || this.configuration;
|
|
220
|
+
if (analysisId === null || analysisId === undefined) {
|
|
221
|
+
throw new baseapi_1.RequiredError("AnalysesCoreApi", "getAnalysisBasicInfo_1", "analysisId");
|
|
222
|
+
}
|
|
223
|
+
localVarPath = '/v3/analyses/{analysis_id}/basic'
|
|
224
|
+
.replace('{' + 'analysis_id' + '}', encodeURIComponent(String(analysisId)));
|
|
225
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
226
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
227
|
+
authMethod = _config.authMethods["APIKey"];
|
|
228
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
229
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
230
|
+
case 1:
|
|
231
|
+
_b.sent();
|
|
232
|
+
_b.label = 2;
|
|
233
|
+
case 2:
|
|
234
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
235
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
236
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
237
|
+
case 3:
|
|
238
|
+
_b.sent();
|
|
239
|
+
_b.label = 4;
|
|
240
|
+
case 4: return [2, requestContext];
|
|
241
|
+
}
|
|
242
|
+
});
|
|
243
|
+
});
|
|
244
|
+
};
|
|
170
245
|
AnalysesCoreApiRequestFactory.prototype.getAnalysisBytes = function (analysisId, page, _options) {
|
|
171
246
|
var _a;
|
|
172
247
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -368,6 +443,90 @@ var AnalysesCoreApiRequestFactory = (function (_super) {
|
|
|
368
443
|
});
|
|
369
444
|
});
|
|
370
445
|
};
|
|
446
|
+
AnalysesCoreApiRequestFactory.prototype.getAnalysisStrings = function (analysisId, page, pageSize, search, functionSearch, orderBy, sortOrder, _options) {
|
|
447
|
+
var _a;
|
|
448
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
449
|
+
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
450
|
+
return __generator(this, function (_b) {
|
|
451
|
+
switch (_b.label) {
|
|
452
|
+
case 0:
|
|
453
|
+
_config = _options || this.configuration;
|
|
454
|
+
if (analysisId === null || analysisId === undefined) {
|
|
455
|
+
throw new baseapi_1.RequiredError("AnalysesCoreApi", "getAnalysisStrings", "analysisId");
|
|
456
|
+
}
|
|
457
|
+
localVarPath = '/v3/analyses/{analysis_id}/functions/strings'
|
|
458
|
+
.replace('{' + 'analysis_id' + '}', encodeURIComponent(String(analysisId)));
|
|
459
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
460
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
461
|
+
if (page !== undefined) {
|
|
462
|
+
requestContext.setQueryParam("page", ObjectSerializer_1.ObjectSerializer.serialize(page, "number", "int64"));
|
|
463
|
+
}
|
|
464
|
+
if (pageSize !== undefined) {
|
|
465
|
+
requestContext.setQueryParam("page_size", ObjectSerializer_1.ObjectSerializer.serialize(pageSize, "number", "int64"));
|
|
466
|
+
}
|
|
467
|
+
if (search !== undefined) {
|
|
468
|
+
requestContext.setQueryParam("search", ObjectSerializer_1.ObjectSerializer.serialize(search, "string", ""));
|
|
469
|
+
}
|
|
470
|
+
if (functionSearch !== undefined) {
|
|
471
|
+
requestContext.setQueryParam("function_search", ObjectSerializer_1.ObjectSerializer.serialize(functionSearch, "string", ""));
|
|
472
|
+
}
|
|
473
|
+
if (orderBy !== undefined) {
|
|
474
|
+
requestContext.setQueryParam("order_by", ObjectSerializer_1.ObjectSerializer.serialize(orderBy, "'value' | 'length'", ""));
|
|
475
|
+
}
|
|
476
|
+
if (sortOrder !== undefined) {
|
|
477
|
+
requestContext.setQueryParam("sort_order", ObjectSerializer_1.ObjectSerializer.serialize(sortOrder, "'ASC' | 'DESC'", ""));
|
|
478
|
+
}
|
|
479
|
+
authMethod = _config.authMethods["APIKey"];
|
|
480
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
481
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
482
|
+
case 1:
|
|
483
|
+
_b.sent();
|
|
484
|
+
_b.label = 2;
|
|
485
|
+
case 2:
|
|
486
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
487
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
488
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
489
|
+
case 3:
|
|
490
|
+
_b.sent();
|
|
491
|
+
_b.label = 4;
|
|
492
|
+
case 4: return [2, requestContext];
|
|
493
|
+
}
|
|
494
|
+
});
|
|
495
|
+
});
|
|
496
|
+
};
|
|
497
|
+
AnalysesCoreApiRequestFactory.prototype.getAnalysisStringsStatus = function (analysisId, _options) {
|
|
498
|
+
var _a;
|
|
499
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
500
|
+
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
501
|
+
return __generator(this, function (_b) {
|
|
502
|
+
switch (_b.label) {
|
|
503
|
+
case 0:
|
|
504
|
+
_config = _options || this.configuration;
|
|
505
|
+
if (analysisId === null || analysisId === undefined) {
|
|
506
|
+
throw new baseapi_1.RequiredError("AnalysesCoreApi", "getAnalysisStringsStatus", "analysisId");
|
|
507
|
+
}
|
|
508
|
+
localVarPath = '/v3/analyses/{analysis_id}/functions/strings/status'
|
|
509
|
+
.replace('{' + 'analysis_id' + '}', encodeURIComponent(String(analysisId)));
|
|
510
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
511
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
512
|
+
authMethod = _config.authMethods["APIKey"];
|
|
513
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
514
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
515
|
+
case 1:
|
|
516
|
+
_b.sent();
|
|
517
|
+
_b.label = 2;
|
|
518
|
+
case 2:
|
|
519
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
520
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
521
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
522
|
+
case 3:
|
|
523
|
+
_b.sent();
|
|
524
|
+
_b.label = 4;
|
|
525
|
+
case 4: return [2, requestContext];
|
|
526
|
+
}
|
|
527
|
+
});
|
|
528
|
+
});
|
|
529
|
+
};
|
|
371
530
|
AnalysesCoreApiRequestFactory.prototype.insertAnalysisLog = function (analysisId, insertAnalysisLogRequest, _options) {
|
|
372
531
|
var _a;
|
|
373
532
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -761,6 +920,75 @@ exports.AnalysesCoreApiRequestFactory = AnalysesCoreApiRequestFactory;
|
|
|
761
920
|
var AnalysesCoreApiResponseProcessor = (function () {
|
|
762
921
|
function AnalysesCoreApiResponseProcessor() {
|
|
763
922
|
}
|
|
923
|
+
AnalysesCoreApiResponseProcessor.prototype.addUserStringToAnalysisWithHttpInfo = function (response) {
|
|
924
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
925
|
+
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;
|
|
926
|
+
return __generator(this, function (_2) {
|
|
927
|
+
switch (_2.label) {
|
|
928
|
+
case 0:
|
|
929
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
930
|
+
if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 2];
|
|
931
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
932
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
933
|
+
return [4, response.body.text()];
|
|
934
|
+
case 1:
|
|
935
|
+
body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
|
|
936
|
+
"{ [key: string]: any; }", ""]);
|
|
937
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
938
|
+
case 2:
|
|
939
|
+
if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 4];
|
|
940
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
941
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
942
|
+
return [4, response.body.text()];
|
|
943
|
+
case 3:
|
|
944
|
+
body = _f.apply(_e, [_h.apply(_g, [_2.sent(), contentType]),
|
|
945
|
+
"APIError", ""]);
|
|
946
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Forbidden", body, response.headers);
|
|
947
|
+
case 4:
|
|
948
|
+
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
|
|
949
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
950
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
951
|
+
return [4, response.body.text()];
|
|
952
|
+
case 5:
|
|
953
|
+
body = _k.apply(_j, [_m.apply(_l, [_2.sent(), contentType]),
|
|
954
|
+
"APIError", ""]);
|
|
955
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Not Found", body, response.headers);
|
|
956
|
+
case 6:
|
|
957
|
+
if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 8];
|
|
958
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
959
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
960
|
+
return [4, response.body.text()];
|
|
961
|
+
case 7:
|
|
962
|
+
body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
|
|
963
|
+
"APIError", ""]);
|
|
964
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unprocessable Entity", body, response.headers);
|
|
965
|
+
case 8:
|
|
966
|
+
if (!(0, util_1.isCodeInRange)("500", response.httpStatusCode)) return [3, 10];
|
|
967
|
+
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
968
|
+
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
969
|
+
return [4, response.body.text()];
|
|
970
|
+
case 9:
|
|
971
|
+
body = _t.apply(_s, [_v.apply(_u, [_2.sent(), contentType]),
|
|
972
|
+
"APIError", ""]);
|
|
973
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
|
|
974
|
+
case 10:
|
|
975
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 12];
|
|
976
|
+
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
977
|
+
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
978
|
+
return [4, response.body.text()];
|
|
979
|
+
case 11:
|
|
980
|
+
body = _x.apply(_w, [_z.apply(_y, [_2.sent(), contentType]),
|
|
981
|
+
"{ [key: string]: any; }", ""]);
|
|
982
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
983
|
+
case 12:
|
|
984
|
+
_0 = exception_1.ApiException.bind;
|
|
985
|
+
_1 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
986
|
+
return [4, response.getBodyAsAny()];
|
|
987
|
+
case 13: throw new (_0.apply(exception_1.ApiException, _1.concat([_2.sent(), response.headers])))();
|
|
988
|
+
}
|
|
989
|
+
});
|
|
990
|
+
});
|
|
991
|
+
};
|
|
764
992
|
AnalysesCoreApiResponseProcessor.prototype.createAnalysisWithHttpInfo = function (response) {
|
|
765
993
|
return __awaiter(this, void 0, void 0, function () {
|
|
766
994
|
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;
|
|
@@ -923,6 +1151,75 @@ var AnalysesCoreApiResponseProcessor = (function () {
|
|
|
923
1151
|
});
|
|
924
1152
|
});
|
|
925
1153
|
};
|
|
1154
|
+
AnalysesCoreApiResponseProcessor.prototype.getAnalysisBasicInfo_1WithHttpInfo = function (response) {
|
|
1155
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1156
|
+
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;
|
|
1157
|
+
return __generator(this, function (_2) {
|
|
1158
|
+
switch (_2.label) {
|
|
1159
|
+
case 0:
|
|
1160
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1161
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
1162
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1163
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1164
|
+
return [4, response.body.text()];
|
|
1165
|
+
case 1:
|
|
1166
|
+
body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
|
|
1167
|
+
"AnalysisBasicInfoOutputBody", ""]);
|
|
1168
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
1169
|
+
case 2:
|
|
1170
|
+
if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 4];
|
|
1171
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1172
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1173
|
+
return [4, response.body.text()];
|
|
1174
|
+
case 3:
|
|
1175
|
+
body = _f.apply(_e, [_h.apply(_g, [_2.sent(), contentType]),
|
|
1176
|
+
"APIError", ""]);
|
|
1177
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Forbidden", body, response.headers);
|
|
1178
|
+
case 4:
|
|
1179
|
+
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
|
|
1180
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1181
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1182
|
+
return [4, response.body.text()];
|
|
1183
|
+
case 5:
|
|
1184
|
+
body = _k.apply(_j, [_m.apply(_l, [_2.sent(), contentType]),
|
|
1185
|
+
"APIError", ""]);
|
|
1186
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Not Found", body, response.headers);
|
|
1187
|
+
case 6:
|
|
1188
|
+
if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 8];
|
|
1189
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1190
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1191
|
+
return [4, response.body.text()];
|
|
1192
|
+
case 7:
|
|
1193
|
+
body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
|
|
1194
|
+
"APIError", ""]);
|
|
1195
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unprocessable Entity", body, response.headers);
|
|
1196
|
+
case 8:
|
|
1197
|
+
if (!(0, util_1.isCodeInRange)("500", response.httpStatusCode)) return [3, 10];
|
|
1198
|
+
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1199
|
+
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1200
|
+
return [4, response.body.text()];
|
|
1201
|
+
case 9:
|
|
1202
|
+
body = _t.apply(_s, [_v.apply(_u, [_2.sent(), contentType]),
|
|
1203
|
+
"APIError", ""]);
|
|
1204
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
|
|
1205
|
+
case 10:
|
|
1206
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 12];
|
|
1207
|
+
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1208
|
+
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1209
|
+
return [4, response.body.text()];
|
|
1210
|
+
case 11:
|
|
1211
|
+
body = _x.apply(_w, [_z.apply(_y, [_2.sent(), contentType]),
|
|
1212
|
+
"AnalysisBasicInfoOutputBody", ""]);
|
|
1213
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
1214
|
+
case 12:
|
|
1215
|
+
_0 = exception_1.ApiException.bind;
|
|
1216
|
+
_1 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1217
|
+
return [4, response.getBodyAsAny()];
|
|
1218
|
+
case 13: throw new (_0.apply(exception_1.ApiException, _1.concat([_2.sent(), response.headers])))();
|
|
1219
|
+
}
|
|
1220
|
+
});
|
|
1221
|
+
});
|
|
1222
|
+
};
|
|
926
1223
|
AnalysesCoreApiResponseProcessor.prototype.getAnalysisBytesWithHttpInfo = function (response) {
|
|
927
1224
|
return __awaiter(this, void 0, void 0, function () {
|
|
928
1225
|
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;
|
|
@@ -1232,6 +1529,144 @@ var AnalysesCoreApiResponseProcessor = (function () {
|
|
|
1232
1529
|
});
|
|
1233
1530
|
});
|
|
1234
1531
|
};
|
|
1532
|
+
AnalysesCoreApiResponseProcessor.prototype.getAnalysisStringsWithHttpInfo = function (response) {
|
|
1533
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1534
|
+
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;
|
|
1535
|
+
return __generator(this, function (_2) {
|
|
1536
|
+
switch (_2.label) {
|
|
1537
|
+
case 0:
|
|
1538
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1539
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
1540
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1541
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1542
|
+
return [4, response.body.text()];
|
|
1543
|
+
case 1:
|
|
1544
|
+
body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
|
|
1545
|
+
"ListAnalysisStringsOutputBody", ""]);
|
|
1546
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
1547
|
+
case 2:
|
|
1548
|
+
if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 4];
|
|
1549
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1550
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1551
|
+
return [4, response.body.text()];
|
|
1552
|
+
case 3:
|
|
1553
|
+
body = _f.apply(_e, [_h.apply(_g, [_2.sent(), contentType]),
|
|
1554
|
+
"APIError", ""]);
|
|
1555
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Forbidden", body, response.headers);
|
|
1556
|
+
case 4:
|
|
1557
|
+
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
|
|
1558
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1559
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1560
|
+
return [4, response.body.text()];
|
|
1561
|
+
case 5:
|
|
1562
|
+
body = _k.apply(_j, [_m.apply(_l, [_2.sent(), contentType]),
|
|
1563
|
+
"APIError", ""]);
|
|
1564
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Not Found", body, response.headers);
|
|
1565
|
+
case 6:
|
|
1566
|
+
if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 8];
|
|
1567
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1568
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1569
|
+
return [4, response.body.text()];
|
|
1570
|
+
case 7:
|
|
1571
|
+
body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
|
|
1572
|
+
"APIError", ""]);
|
|
1573
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unprocessable Entity", body, response.headers);
|
|
1574
|
+
case 8:
|
|
1575
|
+
if (!(0, util_1.isCodeInRange)("500", response.httpStatusCode)) return [3, 10];
|
|
1576
|
+
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1577
|
+
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1578
|
+
return [4, response.body.text()];
|
|
1579
|
+
case 9:
|
|
1580
|
+
body = _t.apply(_s, [_v.apply(_u, [_2.sent(), contentType]),
|
|
1581
|
+
"APIError", ""]);
|
|
1582
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
|
|
1583
|
+
case 10:
|
|
1584
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 12];
|
|
1585
|
+
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1586
|
+
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1587
|
+
return [4, response.body.text()];
|
|
1588
|
+
case 11:
|
|
1589
|
+
body = _x.apply(_w, [_z.apply(_y, [_2.sent(), contentType]),
|
|
1590
|
+
"ListAnalysisStringsOutputBody", ""]);
|
|
1591
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
1592
|
+
case 12:
|
|
1593
|
+
_0 = exception_1.ApiException.bind;
|
|
1594
|
+
_1 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1595
|
+
return [4, response.getBodyAsAny()];
|
|
1596
|
+
case 13: throw new (_0.apply(exception_1.ApiException, _1.concat([_2.sent(), response.headers])))();
|
|
1597
|
+
}
|
|
1598
|
+
});
|
|
1599
|
+
});
|
|
1600
|
+
};
|
|
1601
|
+
AnalysesCoreApiResponseProcessor.prototype.getAnalysisStringsStatusWithHttpInfo = function (response) {
|
|
1602
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1603
|
+
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;
|
|
1604
|
+
return __generator(this, function (_2) {
|
|
1605
|
+
switch (_2.label) {
|
|
1606
|
+
case 0:
|
|
1607
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1608
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
1609
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1610
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1611
|
+
return [4, response.body.text()];
|
|
1612
|
+
case 1:
|
|
1613
|
+
body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
|
|
1614
|
+
"GetAnalysisStringsStatusOutputBody", ""]);
|
|
1615
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
1616
|
+
case 2:
|
|
1617
|
+
if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 4];
|
|
1618
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1619
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1620
|
+
return [4, response.body.text()];
|
|
1621
|
+
case 3:
|
|
1622
|
+
body = _f.apply(_e, [_h.apply(_g, [_2.sent(), contentType]),
|
|
1623
|
+
"APIError", ""]);
|
|
1624
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Forbidden", body, response.headers);
|
|
1625
|
+
case 4:
|
|
1626
|
+
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
|
|
1627
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1628
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1629
|
+
return [4, response.body.text()];
|
|
1630
|
+
case 5:
|
|
1631
|
+
body = _k.apply(_j, [_m.apply(_l, [_2.sent(), contentType]),
|
|
1632
|
+
"APIError", ""]);
|
|
1633
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Not Found", body, response.headers);
|
|
1634
|
+
case 6:
|
|
1635
|
+
if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 8];
|
|
1636
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1637
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1638
|
+
return [4, response.body.text()];
|
|
1639
|
+
case 7:
|
|
1640
|
+
body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
|
|
1641
|
+
"APIError", ""]);
|
|
1642
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unprocessable Entity", body, response.headers);
|
|
1643
|
+
case 8:
|
|
1644
|
+
if (!(0, util_1.isCodeInRange)("500", response.httpStatusCode)) return [3, 10];
|
|
1645
|
+
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1646
|
+
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1647
|
+
return [4, response.body.text()];
|
|
1648
|
+
case 9:
|
|
1649
|
+
body = _t.apply(_s, [_v.apply(_u, [_2.sent(), contentType]),
|
|
1650
|
+
"APIError", ""]);
|
|
1651
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
|
|
1652
|
+
case 10:
|
|
1653
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 12];
|
|
1654
|
+
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1655
|
+
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1656
|
+
return [4, response.body.text()];
|
|
1657
|
+
case 11:
|
|
1658
|
+
body = _x.apply(_w, [_z.apply(_y, [_2.sent(), contentType]),
|
|
1659
|
+
"GetAnalysisStringsStatusOutputBody", ""]);
|
|
1660
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
1661
|
+
case 12:
|
|
1662
|
+
_0 = exception_1.ApiException.bind;
|
|
1663
|
+
_1 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1664
|
+
return [4, response.getBodyAsAny()];
|
|
1665
|
+
case 13: throw new (_0.apply(exception_1.ApiException, _1.concat([_2.sent(), response.headers])))();
|
|
1666
|
+
}
|
|
1667
|
+
});
|
|
1668
|
+
});
|
|
1669
|
+
};
|
|
1235
1670
|
AnalysesCoreApiResponseProcessor.prototype.insertAnalysisLogWithHttpInfo = function (response) {
|
|
1236
1671
|
return __awaiter(this, void 0, void 0, function () {
|
|
1237
1672
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|