@revengai/sdk 3.110.0 → 3.114.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/README.md +15 -0
  2. package/dist/apis/AnalysesCoreApi.d.ts +6 -0
  3. package/dist/apis/AnalysesCoreApi.js +243 -0
  4. package/dist/apis/AnalysesCoreApi.js.map +1 -1
  5. package/dist/apis/FunctionsCoreApi.d.ts +7 -0
  6. package/dist/apis/FunctionsCoreApi.js +223 -0
  7. package/dist/apis/FunctionsCoreApi.js.map +1 -1
  8. package/dist/models/AnalysisRecordBody.d.ts +41 -0
  9. package/dist/models/AnalysisRecordBody.js +114 -0
  10. package/dist/models/AnalysisRecordBody.js.map +1 -0
  11. package/dist/models/AnalysisTagBody.d.ts +22 -0
  12. package/dist/models/AnalysisTagBody.js +35 -0
  13. package/dist/models/AnalysisTagBody.js.map +1 -0
  14. package/dist/models/AutoUnstripStatusOutputBody.d.ts +28 -0
  15. package/dist/models/AutoUnstripStatusOutputBody.js +32 -0
  16. package/dist/models/AutoUnstripStatusOutputBody.js.map +1 -0
  17. package/dist/models/CanonicalName.d.ts +21 -0
  18. package/dist/models/CanonicalName.js +29 -0
  19. package/dist/models/CanonicalName.js.map +1 -0
  20. package/dist/models/CanonicalizeNamesInputBody.d.ts +20 -0
  21. package/dist/models/CanonicalizeNamesInputBody.js +23 -0
  22. package/dist/models/CanonicalizeNamesInputBody.js.map +1 -0
  23. package/dist/models/CanonicalizeNamesOutputBody.d.ts +21 -0
  24. package/dist/models/CanonicalizeNamesOutputBody.js +23 -0
  25. package/dist/models/CanonicalizeNamesOutputBody.js.map +1 -0
  26. package/dist/models/EventTOOLCALLPROGRESS.d.ts +28 -0
  27. package/dist/models/EventTOOLCALLPROGRESS.js +46 -0
  28. package/dist/models/EventTOOLCALLPROGRESS.js.map +1 -0
  29. package/dist/models/IndirectCallSite.d.ts +24 -0
  30. package/dist/models/IndirectCallSite.js +47 -0
  31. package/dist/models/IndirectCallSite.js.map +1 -0
  32. package/dist/models/IndirectCallSitesOutputBody.d.ts +22 -0
  33. package/dist/models/IndirectCallSitesOutputBody.js +29 -0
  34. package/dist/models/IndirectCallSitesOutputBody.js.map +1 -0
  35. package/dist/models/ListAnalysesOutputBody.d.ts +23 -0
  36. package/dist/models/ListAnalysesOutputBody.js +35 -0
  37. package/dist/models/ListAnalysesOutputBody.js.map +1 -0
  38. package/dist/models/ObjectSerializer.d.ts +11 -0
  39. package/dist/models/ObjectSerializer.js +36 -0
  40. package/dist/models/ObjectSerializer.js.map +1 -1
  41. package/dist/models/SseEventToolCallProgressData.d.ts +23 -0
  42. package/dist/models/SseEventToolCallProgressData.js +41 -0
  43. package/dist/models/SseEventToolCallProgressData.js.map +1 -0
  44. package/dist/models/StreamEvents200ResponseInner.d.ts +2 -1
  45. package/dist/models/StreamEvents200ResponseInner.js.map +1 -1
  46. package/dist/models/all.d.ts +11 -0
  47. package/dist/models/all.js +11 -0
  48. package/dist/models/all.js.map +1 -1
  49. package/dist/types/ObjectParamAPI.d.ts +34 -0
  50. package/dist/types/ObjectParamAPI.js +26 -0
  51. package/dist/types/ObjectParamAPI.js.map +1 -1
  52. package/dist/types/ObservableAPI.d.ts +13 -0
  53. package/dist/types/ObservableAPI.js +594 -482
  54. package/dist/types/ObservableAPI.js.map +1 -1
  55. package/dist/types/PromiseAPI.d.ts +13 -0
  56. package/dist/types/PromiseAPI.js +40 -0
  57. package/dist/types/PromiseAPI.js.map +1 -1
  58. package/package.json +1 -1
@@ -896,6 +896,46 @@ var FunctionsCoreApiRequestFactory = (function (_super) {
896
896
  });
897
897
  });
898
898
  };
899
+ FunctionsCoreApiRequestFactory.prototype.getFunctionIndirectCallSites = function (functionId, _options) {
900
+ var _a;
901
+ return __awaiter(this, void 0, void 0, function () {
902
+ var _config, localVarPath, requestContext, authMethod, defaultAuth;
903
+ return __generator(this, function (_b) {
904
+ switch (_b.label) {
905
+ case 0:
906
+ _config = _options || this.configuration;
907
+ if (functionId === null || functionId === undefined) {
908
+ throw new baseapi_1.RequiredError("FunctionsCoreApi", "getFunctionIndirectCallSites", "functionId");
909
+ }
910
+ localVarPath = '/v3/functions/{function_id}/indirect-call-sites'
911
+ .replace('{' + 'function_id' + '}', encodeURIComponent(String(functionId)));
912
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
913
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
914
+ authMethod = _config.authMethods["APIKey"];
915
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
916
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
917
+ case 1:
918
+ _b.sent();
919
+ _b.label = 2;
920
+ case 2:
921
+ authMethod = _config.authMethods["bearerAuth"];
922
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 4];
923
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
924
+ case 3:
925
+ _b.sent();
926
+ _b.label = 4;
927
+ case 4:
928
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
929
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 6];
930
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
931
+ case 5:
932
+ _b.sent();
933
+ _b.label = 6;
934
+ case 6: return [2, requestContext];
935
+ }
936
+ });
937
+ });
938
+ };
899
939
  FunctionsCoreApiRequestFactory.prototype.getFunctionStrings = function (functionId, page, pageSize, search, _options) {
900
940
  var _a;
901
941
  return __awaiter(this, void 0, void 0, function () {
@@ -1301,6 +1341,51 @@ var FunctionsCoreApiRequestFactory = (function (_super) {
1301
1341
  });
1302
1342
  });
1303
1343
  };
1344
+ FunctionsCoreApiRequestFactory.prototype.v3CanonicalizeFunctionNames = function (canonicalizeNamesInputBody, _options) {
1345
+ var _a;
1346
+ return __awaiter(this, void 0, void 0, function () {
1347
+ var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
1348
+ return __generator(this, function (_b) {
1349
+ switch (_b.label) {
1350
+ case 0:
1351
+ _config = _options || this.configuration;
1352
+ if (canonicalizeNamesInputBody === null || canonicalizeNamesInputBody === undefined) {
1353
+ throw new baseapi_1.RequiredError("FunctionsCoreApi", "v3CanonicalizeFunctionNames", "canonicalizeNamesInputBody");
1354
+ }
1355
+ localVarPath = '/v3/functions/canonical-names';
1356
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
1357
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1358
+ contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
1359
+ "application/json"
1360
+ ]);
1361
+ requestContext.setHeaderParam("Content-Type", contentType);
1362
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(canonicalizeNamesInputBody, "CanonicalizeNamesInputBody", ""), contentType);
1363
+ requestContext.setBody(serializedBody);
1364
+ authMethod = _config.authMethods["APIKey"];
1365
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1366
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1367
+ case 1:
1368
+ _b.sent();
1369
+ _b.label = 2;
1370
+ case 2:
1371
+ authMethod = _config.authMethods["bearerAuth"];
1372
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 4];
1373
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1374
+ case 3:
1375
+ _b.sent();
1376
+ _b.label = 4;
1377
+ case 4:
1378
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
1379
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 6];
1380
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
1381
+ case 5:
1382
+ _b.sent();
1383
+ _b.label = 6;
1384
+ case 6: return [2, requestContext];
1385
+ }
1386
+ });
1387
+ });
1388
+ };
1304
1389
  return FunctionsCoreApiRequestFactory;
1305
1390
  }(baseapi_1.BaseAPIRequestFactory));
1306
1391
  exports.FunctionsCoreApiRequestFactory = FunctionsCoreApiRequestFactory;
@@ -2294,6 +2379,75 @@ var FunctionsCoreApiResponseProcessor = (function () {
2294
2379
  });
2295
2380
  });
2296
2381
  };
2382
+ FunctionsCoreApiResponseProcessor.prototype.getFunctionIndirectCallSitesWithHttpInfo = function (response) {
2383
+ return __awaiter(this, void 0, void 0, function () {
2384
+ 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;
2385
+ return __generator(this, function (_2) {
2386
+ switch (_2.label) {
2387
+ case 0:
2388
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2389
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
2390
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
2391
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2392
+ return [4, response.body.text()];
2393
+ case 1:
2394
+ body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
2395
+ "IndirectCallSitesOutputBody", ""]);
2396
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
2397
+ case 2:
2398
+ if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 4];
2399
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2400
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2401
+ return [4, response.body.text()];
2402
+ case 3:
2403
+ body = _f.apply(_e, [_h.apply(_g, [_2.sent(), contentType]),
2404
+ "APIError", ""]);
2405
+ throw new exception_1.ApiException(response.httpStatusCode, "Forbidden", body, response.headers);
2406
+ case 4:
2407
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
2408
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2409
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2410
+ return [4, response.body.text()];
2411
+ case 5:
2412
+ body = _k.apply(_j, [_m.apply(_l, [_2.sent(), contentType]),
2413
+ "APIError", ""]);
2414
+ throw new exception_1.ApiException(response.httpStatusCode, "Not Found", body, response.headers);
2415
+ case 6:
2416
+ if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 8];
2417
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
2418
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
2419
+ return [4, response.body.text()];
2420
+ case 7:
2421
+ body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
2422
+ "APIError", ""]);
2423
+ throw new exception_1.ApiException(response.httpStatusCode, "Unprocessable Entity", body, response.headers);
2424
+ case 8:
2425
+ if (!(0, util_1.isCodeInRange)("500", response.httpStatusCode)) return [3, 10];
2426
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
2427
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
2428
+ return [4, response.body.text()];
2429
+ case 9:
2430
+ body = _t.apply(_s, [_v.apply(_u, [_2.sent(), contentType]),
2431
+ "APIError", ""]);
2432
+ throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
2433
+ case 10:
2434
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 12];
2435
+ _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
2436
+ _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
2437
+ return [4, response.body.text()];
2438
+ case 11:
2439
+ body = _x.apply(_w, [_z.apply(_y, [_2.sent(), contentType]),
2440
+ "IndirectCallSitesOutputBody", ""]);
2441
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
2442
+ case 12:
2443
+ _0 = exception_1.ApiException.bind;
2444
+ _1 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2445
+ return [4, response.getBodyAsAny()];
2446
+ case 13: throw new (_0.apply(exception_1.ApiException, _1.concat([_2.sent(), response.headers])))();
2447
+ }
2448
+ });
2449
+ });
2450
+ };
2297
2451
  FunctionsCoreApiResponseProcessor.prototype.getFunctionStringsWithHttpInfo = function (response) {
2298
2452
  return __awaiter(this, void 0, void 0, function () {
2299
2453
  var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
@@ -2924,6 +3078,75 @@ var FunctionsCoreApiResponseProcessor = (function () {
2924
3078
  });
2925
3079
  });
2926
3080
  };
3081
+ FunctionsCoreApiResponseProcessor.prototype.v3CanonicalizeFunctionNamesWithHttpInfo = function (response) {
3082
+ return __awaiter(this, void 0, void 0, function () {
3083
+ 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;
3084
+ return __generator(this, function (_2) {
3085
+ switch (_2.label) {
3086
+ case 0:
3087
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
3088
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
3089
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
3090
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
3091
+ return [4, response.body.text()];
3092
+ case 1:
3093
+ body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
3094
+ "CanonicalizeNamesOutputBody", ""]);
3095
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
3096
+ case 2:
3097
+ if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
3098
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
3099
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
3100
+ return [4, response.body.text()];
3101
+ case 3:
3102
+ body = _f.apply(_e, [_h.apply(_g, [_2.sent(), contentType]),
3103
+ "APIError", ""]);
3104
+ throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", body, response.headers);
3105
+ case 4:
3106
+ if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 6];
3107
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
3108
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
3109
+ return [4, response.body.text()];
3110
+ case 5:
3111
+ body = _k.apply(_j, [_m.apply(_l, [_2.sent(), contentType]),
3112
+ "APIError", ""]);
3113
+ throw new exception_1.ApiException(response.httpStatusCode, "Unprocessable Entity", body, response.headers);
3114
+ case 6:
3115
+ if (!(0, util_1.isCodeInRange)("500", response.httpStatusCode)) return [3, 8];
3116
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
3117
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
3118
+ return [4, response.body.text()];
3119
+ case 7:
3120
+ body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
3121
+ "APIError", ""]);
3122
+ throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
3123
+ case 8:
3124
+ if (!(0, util_1.isCodeInRange)("503", response.httpStatusCode)) return [3, 10];
3125
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
3126
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
3127
+ return [4, response.body.text()];
3128
+ case 9:
3129
+ body = _t.apply(_s, [_v.apply(_u, [_2.sent(), contentType]),
3130
+ "APIError", ""]);
3131
+ throw new exception_1.ApiException(response.httpStatusCode, "Service Unavailable", body, response.headers);
3132
+ case 10:
3133
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 12];
3134
+ _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
3135
+ _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
3136
+ return [4, response.body.text()];
3137
+ case 11:
3138
+ body = _x.apply(_w, [_z.apply(_y, [_2.sent(), contentType]),
3139
+ "CanonicalizeNamesOutputBody", ""]);
3140
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
3141
+ case 12:
3142
+ _0 = exception_1.ApiException.bind;
3143
+ _1 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
3144
+ return [4, response.getBodyAsAny()];
3145
+ case 13: throw new (_0.apply(exception_1.ApiException, _1.concat([_2.sent(), response.headers])))();
3146
+ }
3147
+ });
3148
+ });
3149
+ };
2927
3150
  return FunctionsCoreApiResponseProcessor;
2928
3151
  }());
2929
3152
  exports.FunctionsCoreApiResponseProcessor = FunctionsCoreApiResponseProcessor;