honeyhive 1.0.19 → 1.0.21

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 (220) hide show
  1. package/dist/index.d.ts +1 -0
  2. package/dist/index.js +20 -0
  3. package/dist/internal/utils/contenttype.d.ts +1 -0
  4. package/dist/internal/utils/contenttype.js +33 -0
  5. package/dist/internal/utils/headers.d.ts +4 -0
  6. package/dist/internal/utils/headers.js +92 -0
  7. package/dist/internal/utils/index.d.ts +8 -0
  8. package/dist/internal/utils/index.js +27 -0
  9. package/dist/internal/utils/pathparams.d.ts +2 -0
  10. package/dist/internal/utils/pathparams.js +53 -0
  11. package/dist/internal/utils/queryparams.d.ts +2 -0
  12. package/dist/internal/utils/queryparams.js +182 -0
  13. package/dist/internal/utils/requestbody.d.ts +2 -0
  14. package/dist/internal/utils/requestbody.js +328 -0
  15. package/dist/internal/utils/retries.d.ts +20 -0
  16. package/dist/internal/utils/retries.js +250 -0
  17. package/dist/internal/utils/security.d.ts +5 -0
  18. package/dist/internal/utils/security.js +196 -0
  19. package/dist/internal/utils/utils.d.ts +37 -0
  20. package/dist/internal/utils/utils.js +368 -0
  21. package/dist/models/components/configuration.d.ts +44 -0
  22. package/dist/models/components/configuration.js +94 -0
  23. package/dist/models/components/createdatapointrequest.d.ts +31 -0
  24. package/dist/models/components/createdatapointrequest.js +75 -0
  25. package/dist/models/components/createdatasetrequest.d.ts +50 -0
  26. package/dist/models/components/createdatasetrequest.js +101 -0
  27. package/dist/models/components/createeventrequest.d.ts +87 -0
  28. package/dist/models/components/createeventrequest.js +144 -0
  29. package/dist/models/components/createmodelevent.d.ts +71 -0
  30. package/dist/models/components/createmodelevent.js +125 -0
  31. package/dist/models/components/createprojectrequest.d.ts +5 -0
  32. package/dist/models/components/createprojectrequest.js +50 -0
  33. package/dist/models/components/createrunrequest.d.ts +42 -0
  34. package/dist/models/components/createrunrequest.js +88 -0
  35. package/dist/models/components/createrunresponse.d.ts +6 -0
  36. package/dist/models/components/createrunresponse.js +52 -0
  37. package/dist/models/components/createtoolrequest.d.ts +18 -0
  38. package/dist/models/components/createtoolrequest.js +70 -0
  39. package/dist/models/components/datapoint.d.ts +41 -0
  40. package/dist/models/components/datapoint.js +118 -0
  41. package/dist/models/components/dataset.d.ts +58 -0
  42. package/dist/models/components/dataset.js +119 -0
  43. package/dist/models/components/datasetupdate.d.ts +27 -0
  44. package/dist/models/components/datasetupdate.js +70 -0
  45. package/dist/models/components/deleterunresponse.d.ts +5 -0
  46. package/dist/models/components/deleterunresponse.js +50 -0
  47. package/dist/models/components/evaluationrun.d.ts +50 -0
  48. package/dist/models/components/evaluationrun.js +116 -0
  49. package/dist/models/components/event.d.ts +88 -0
  50. package/dist/models/components/event.js +145 -0
  51. package/dist/models/components/eventfilter.d.ts +38 -0
  52. package/dist/models/components/eventfilter.js +81 -0
  53. package/dist/models/components/getrunresponse.d.ts +5 -0
  54. package/dist/models/components/getrunresponse.js +47 -0
  55. package/dist/models/components/getrunsresponse.d.ts +5 -0
  56. package/dist/models/components/getrunsresponse.js +47 -0
  57. package/dist/models/components/index.d.ts +31 -0
  58. package/dist/models/components/index.js +50 -0
  59. package/dist/models/components/metric.d.ts +86 -0
  60. package/dist/models/components/metric.js +155 -0
  61. package/dist/models/components/metricedit.d.ts +91 -0
  62. package/dist/models/components/metricedit.js +160 -0
  63. package/dist/models/components/postconfigurationrequest.d.ts +29 -0
  64. package/dist/models/components/postconfigurationrequest.js +76 -0
  65. package/dist/models/components/project.d.ts +6 -0
  66. package/dist/models/components/project.js +55 -0
  67. package/dist/models/components/putconfigurationrequest.d.ts +40 -0
  68. package/dist/models/components/putconfigurationrequest.js +89 -0
  69. package/dist/models/components/security.d.ts +4 -0
  70. package/dist/models/components/security.js +45 -0
  71. package/dist/models/components/sessionstartrequest.d.ts +67 -0
  72. package/dist/models/components/sessionstartrequest.js +120 -0
  73. package/dist/models/components/tool.d.ts +19 -0
  74. package/dist/models/components/tool.js +75 -0
  75. package/dist/models/components/updatedatapointrequest.d.ts +27 -0
  76. package/dist/models/components/updatedatapointrequest.js +70 -0
  77. package/dist/models/components/updateprojectrequest.d.ts +6 -0
  78. package/dist/models/components/updateprojectrequest.js +55 -0
  79. package/dist/models/components/updaterunrequest.d.ts +32 -0
  80. package/dist/models/components/updaterunrequest.js +80 -0
  81. package/dist/models/components/updaterunresponse.d.ts +11 -0
  82. package/dist/models/components/updaterunresponse.js +50 -0
  83. package/dist/models/components/updatetoolrequest.d.ts +7 -0
  84. package/dist/models/components/updatetoolrequest.js +60 -0
  85. package/dist/models/errors/createeventbatch.d.ts +14 -0
  86. package/dist/models/errors/createeventbatch.js +70 -0
  87. package/dist/models/errors/createmodeleventbatch.d.ts +14 -0
  88. package/dist/models/errors/createmodeleventbatch.js +70 -0
  89. package/dist/models/errors/index.d.ts +3 -0
  90. package/dist/models/errors/index.js +22 -0
  91. package/dist/models/errors/sdkerror.d.ts +7 -0
  92. package/dist/models/errors/sdkerror.js +40 -0
  93. package/dist/models/operations/adddatapoints.d.ts +68 -0
  94. package/dist/models/operations/adddatapoints.js +143 -0
  95. package/dist/models/operations/createconfiguration.d.ts +16 -0
  96. package/dist/models/operations/createconfiguration.js +51 -0
  97. package/dist/models/operations/createdatapoint.d.ts +29 -0
  98. package/dist/models/operations/createdatapoint.js +86 -0
  99. package/dist/models/operations/createdataset.d.ts +33 -0
  100. package/dist/models/operations/createdataset.js +91 -0
  101. package/dist/models/operations/createevent.d.ts +31 -0
  102. package/dist/models/operations/createevent.js +115 -0
  103. package/dist/models/operations/createeventbatch.d.ts +36 -0
  104. package/dist/models/operations/createeventbatch.js +125 -0
  105. package/dist/models/operations/createmetric.d.ts +16 -0
  106. package/dist/models/operations/createmetric.js +51 -0
  107. package/dist/models/operations/createmodelevent.d.ts +31 -0
  108. package/dist/models/operations/createmodelevent.js +115 -0
  109. package/dist/models/operations/createmodeleventbatch.d.ts +31 -0
  110. package/dist/models/operations/createmodeleventbatch.js +115 -0
  111. package/dist/models/operations/createproject.d.ts +21 -0
  112. package/dist/models/operations/createproject.js +79 -0
  113. package/dist/models/operations/createrun.d.ts +21 -0
  114. package/dist/models/operations/createrun.js +79 -0
  115. package/dist/models/operations/createtool.d.ts +29 -0
  116. package/dist/models/operations/createtool.js +86 -0
  117. package/dist/models/operations/deleteconfiguration.d.ts +22 -0
  118. package/dist/models/operations/deleteconfiguration.js +63 -0
  119. package/dist/models/operations/deletedatapoint.d.ts +32 -0
  120. package/dist/models/operations/deletedatapoint.js +84 -0
  121. package/dist/models/operations/deletedataset.d.ts +22 -0
  122. package/dist/models/operations/deletedataset.js +63 -0
  123. package/dist/models/operations/deletemetric.d.ts +19 -0
  124. package/dist/models/operations/deletemetric.js +63 -0
  125. package/dist/models/operations/deleteproject.d.ts +19 -0
  126. package/dist/models/operations/deleteproject.js +63 -0
  127. package/dist/models/operations/deleterun.d.ts +24 -0
  128. package/dist/models/operations/deleterun.js +91 -0
  129. package/dist/models/operations/deletetool.d.ts +19 -0
  130. package/dist/models/operations/deletetool.js +63 -0
  131. package/dist/models/operations/getconfigurations.d.ts +43 -0
  132. package/dist/models/operations/getconfigurations.js +108 -0
  133. package/dist/models/operations/getdatapoint.d.ts +33 -0
  134. package/dist/models/operations/getdatapoint.js +109 -0
  135. package/dist/models/operations/getdatapoints.d.ts +41 -0
  136. package/dist/models/operations/getdatapoints.js +117 -0
  137. package/dist/models/operations/getdatasets.d.ts +48 -0
  138. package/dist/models/operations/getdatasets.js +125 -0
  139. package/dist/models/operations/getevents.d.ts +57 -0
  140. package/dist/models/operations/getevents.js +155 -0
  141. package/dist/models/operations/getmetrics.d.ts +27 -0
  142. package/dist/models/operations/getmetrics.js +91 -0
  143. package/dist/models/operations/getprojects.d.ts +24 -0
  144. package/dist/models/operations/getprojects.js +91 -0
  145. package/dist/models/operations/getrun.d.ts +24 -0
  146. package/dist/models/operations/getrun.js +91 -0
  147. package/dist/models/operations/getruns.d.ts +24 -0
  148. package/dist/models/operations/getruns.js +91 -0
  149. package/dist/models/operations/getsession.d.ts +24 -0
  150. package/dist/models/operations/getsession.js +91 -0
  151. package/dist/models/operations/gettools.d.ts +21 -0
  152. package/dist/models/operations/gettools.js +79 -0
  153. package/dist/models/operations/index.d.ts +39 -0
  154. package/dist/models/operations/index.js +58 -0
  155. package/dist/models/operations/startsession.d.ts +30 -0
  156. package/dist/models/operations/startsession.js +110 -0
  157. package/dist/models/operations/updateconfiguration.d.ts +24 -0
  158. package/dist/models/operations/updateconfiguration.js +91 -0
  159. package/dist/models/operations/updatedatapoint.d.ts +24 -0
  160. package/dist/models/operations/updatedatapoint.js +91 -0
  161. package/dist/models/operations/updatedataset.d.ts +16 -0
  162. package/dist/models/operations/updatedataset.js +51 -0
  163. package/dist/models/operations/updateevent.d.ts +26 -0
  164. package/dist/models/operations/updateevent.js +100 -0
  165. package/dist/models/operations/updatemetric.d.ts +16 -0
  166. package/dist/models/operations/updatemetric.js +51 -0
  167. package/dist/models/operations/updateproject.d.ts +16 -0
  168. package/dist/models/operations/updateproject.js +51 -0
  169. package/dist/models/operations/updaterun.d.ts +25 -0
  170. package/dist/models/operations/updaterun.js +95 -0
  171. package/dist/models/operations/updatetool.d.ts +16 -0
  172. package/dist/models/operations/updatetool.js +51 -0
  173. package/dist/sdk/configurations.d.ts +24 -0
  174. package/dist/sdk/configurations.js +356 -0
  175. package/dist/sdk/datapoints.d.ts +28 -0
  176. package/dist/sdk/datapoints.js +430 -0
  177. package/dist/sdk/datasets.d.ts +28 -0
  178. package/dist/sdk/datasets.js +435 -0
  179. package/dist/sdk/events.d.ts +43 -0
  180. package/dist/sdk/events.js +567 -0
  181. package/dist/sdk/index.d.ts +2 -0
  182. package/dist/sdk/index.js +21 -0
  183. package/dist/sdk/metrics.d.ts +36 -0
  184. package/dist/sdk/metrics.js +366 -0
  185. package/dist/sdk/projects.d.ts +24 -0
  186. package/dist/sdk/projects.js +361 -0
  187. package/dist/sdk/runs.d.ts +28 -0
  188. package/dist/sdk/runs.js +439 -0
  189. package/dist/sdk/sdk.d.ts +64 -0
  190. package/dist/sdk/sdk.js +90 -0
  191. package/dist/sdk/session.d.ts +15 -0
  192. package/dist/sdk/session.js +237 -0
  193. package/dist/sdk/telemetry.d.ts +21 -0
  194. package/dist/sdk/telemetry.js +243 -0
  195. package/dist/sdk/tools.d.ts +24 -0
  196. package/dist/sdk/tools.js +357 -0
  197. package/dist/sdk/tracer.d.ts +26 -0
  198. package/dist/sdk/tracer.js +308 -0
  199. package/dist/types/index.d.ts +1 -0
  200. package/dist/types/index.js +20 -0
  201. package/dist/types/rfcdate.d.ts +9 -0
  202. package/dist/types/rfcdate.js +59 -0
  203. package/funcs/runsCreateRun.d.ts.map +1 -1
  204. package/funcs/runsCreateRun.js +2 -1
  205. package/funcs/runsCreateRun.js.map +1 -1
  206. package/funcs/runsUpdateRun.d.ts +1 -1
  207. package/funcs/runsUpdateRun.d.ts.map +1 -1
  208. package/funcs/runsUpdateRun.js +2 -2
  209. package/funcs/runsUpdateRun.js.map +1 -1
  210. package/package.json +4 -3
  211. package/sdk/evaluation.d.ts +7 -1
  212. package/sdk/evaluation.d.ts.map +1 -1
  213. package/sdk/evaluation.js +52 -5
  214. package/sdk/evaluation.js.map +1 -1
  215. package/sdk/runs.d.ts +1 -1
  216. package/sdk/runs.d.ts.map +1 -1
  217. package/sdk/runs.js +2 -2
  218. package/sdk/runs.js.map +1 -1
  219. package/src/sdk/evaluation.ts +38 -8
  220. package/tests/openai_test.ts +72 -0
@@ -0,0 +1,567 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
4
+ */
5
+ var __assign = (this && this.__assign) || function () {
6
+ __assign = Object.assign || function(t) {
7
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
8
+ s = arguments[i];
9
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
10
+ t[p] = s[p];
11
+ }
12
+ return t;
13
+ };
14
+ return __assign.apply(this, arguments);
15
+ };
16
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
17
+ if (k2 === undefined) k2 = k;
18
+ var desc = Object.getOwnPropertyDescriptor(m, k);
19
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
20
+ desc = { enumerable: true, get: function() { return m[k]; } };
21
+ }
22
+ Object.defineProperty(o, k2, desc);
23
+ }) : (function(o, m, k, k2) {
24
+ if (k2 === undefined) k2 = k;
25
+ o[k2] = m[k];
26
+ }));
27
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
28
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
29
+ }) : function(o, v) {
30
+ o["default"] = v;
31
+ });
32
+ var __importStar = (this && this.__importStar) || function (mod) {
33
+ if (mod && mod.__esModule) return mod;
34
+ var result = {};
35
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
36
+ __setModuleDefault(result, mod);
37
+ return result;
38
+ };
39
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
40
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
41
+ return new (P || (P = Promise))(function (resolve, reject) {
42
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
43
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
44
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
45
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
46
+ });
47
+ };
48
+ var __generator = (this && this.__generator) || function (thisArg, body) {
49
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
50
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
51
+ function verb(n) { return function (v) { return step([n, v]); }; }
52
+ function step(op) {
53
+ if (f) throw new TypeError("Generator is already executing.");
54
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
55
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
56
+ if (y = 0, t) op = [op[0] & 2, t.value];
57
+ switch (op[0]) {
58
+ case 0: case 1: t = op; break;
59
+ case 4: _.label++; return { value: op[1], done: false };
60
+ case 5: _.label++; y = op[1]; op = [0]; continue;
61
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
62
+ default:
63
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
64
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
65
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
66
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
67
+ if (t[2]) _.ops.pop();
68
+ _.trys.pop(); continue;
69
+ }
70
+ op = body.call(thisArg, _);
71
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
72
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
73
+ }
74
+ };
75
+ var __read = (this && this.__read) || function (o, n) {
76
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
77
+ if (!m) return o;
78
+ var i = m.call(o), r, ar = [], e;
79
+ try {
80
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
81
+ }
82
+ catch (error) { e = { error: error }; }
83
+ finally {
84
+ try {
85
+ if (r && !r.done && (m = i["return"])) m.call(i);
86
+ }
87
+ finally { if (e) throw e.error; }
88
+ }
89
+ return ar;
90
+ };
91
+ Object.defineProperty(exports, "__esModule", { value: true });
92
+ exports.Events = void 0;
93
+ var utils = __importStar(require("../internal/utils"));
94
+ var components = __importStar(require("../models/components"));
95
+ var errors = __importStar(require("../models/errors"));
96
+ var operations = __importStar(require("../models/operations"));
97
+ var Events = /** @class */ (function () {
98
+ function Events(sdkConfig) {
99
+ this.sdkConfiguration = sdkConfig;
100
+ }
101
+ /**
102
+ * Create a new event
103
+ *
104
+ * @remarks
105
+ * Please refer to our instrumentation guide for detailed information
106
+ */
107
+ Events.prototype.createEvent = function (req, config) {
108
+ var _a, _b;
109
+ return __awaiter(this, void 0, void 0, function () {
110
+ var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
111
+ var _d;
112
+ return __generator(this, function (_e) {
113
+ switch (_e.label) {
114
+ case 0:
115
+ if (!(req instanceof utils.SpeakeasyBase)) {
116
+ req = new operations.CreateEventRequestBody(req);
117
+ }
118
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
119
+ operationUrl = baseURL.replace(/\/$/, "") + "/events";
120
+ _c = __read([{}, null], 2), reqBodyHeaders = _c[0], reqBody = _c[1];
121
+ try {
122
+ _d = __read(utils.serializeRequestBody(req, "request", "json"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
123
+ }
124
+ catch (e) {
125
+ if (e instanceof Error) {
126
+ throw new Error("Error serializing request body, cause: ".concat(e.message));
127
+ }
128
+ }
129
+ client = this.sdkConfiguration.defaultClient;
130
+ globalSecurity = this.sdkConfiguration.security;
131
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
132
+ return [4 /*yield*/, globalSecurity()];
133
+ case 1:
134
+ globalSecurity = _e.sent();
135
+ _e.label = 2;
136
+ case 2:
137
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
138
+ globalSecurity = new components.Security(globalSecurity);
139
+ }
140
+ properties = utils.parseSecurityProperties(globalSecurity);
141
+ headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
142
+ if (reqBody == null)
143
+ throw new Error("request body is required");
144
+ headers["Accept"] = "application/json";
145
+ headers["user-agent"] = this.sdkConfiguration.userAgent;
146
+ return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "post", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
147
+ case 3:
148
+ httpRes = _e.sent();
149
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
150
+ if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
151
+ throw new Error("status code not found in response: ".concat(httpRes));
152
+ }
153
+ res = new operations.CreateEventResponse({
154
+ statusCode: httpRes.status,
155
+ contentType: responseContentType,
156
+ rawResponse: httpRes,
157
+ });
158
+ decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
159
+ switch (true) {
160
+ case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
161
+ if (utils.matchContentType(responseContentType, "application/json")) {
162
+ res.object = utils.objectToClass(JSON.parse(decodedRes), operations.CreateEventResponseBody);
163
+ }
164
+ else {
165
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
166
+ }
167
+ break;
168
+ case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
169
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
170
+ throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
171
+ }
172
+ return [2 /*return*/, res];
173
+ }
174
+ });
175
+ });
176
+ };
177
+ /**
178
+ * Update an event
179
+ */
180
+ Events.prototype.updateEvent = function (req, config) {
181
+ var _a, _b;
182
+ return __awaiter(this, void 0, void 0, function () {
183
+ var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res;
184
+ var _d;
185
+ return __generator(this, function (_e) {
186
+ switch (_e.label) {
187
+ case 0:
188
+ if (!(req instanceof utils.SpeakeasyBase)) {
189
+ req = new operations.UpdateEventRequestBody(req);
190
+ }
191
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
192
+ operationUrl = baseURL.replace(/\/$/, "") + "/events";
193
+ _c = __read([{}, null], 2), reqBodyHeaders = _c[0], reqBody = _c[1];
194
+ try {
195
+ _d = __read(utils.serializeRequestBody(req, "request", "json"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
196
+ }
197
+ catch (e) {
198
+ if (e instanceof Error) {
199
+ throw new Error("Error serializing request body, cause: ".concat(e.message));
200
+ }
201
+ }
202
+ client = this.sdkConfiguration.defaultClient;
203
+ globalSecurity = this.sdkConfiguration.security;
204
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
205
+ return [4 /*yield*/, globalSecurity()];
206
+ case 1:
207
+ globalSecurity = _e.sent();
208
+ _e.label = 2;
209
+ case 2:
210
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
211
+ globalSecurity = new components.Security(globalSecurity);
212
+ }
213
+ properties = utils.parseSecurityProperties(globalSecurity);
214
+ headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
215
+ if (reqBody == null)
216
+ throw new Error("request body is required");
217
+ headers["Accept"] = "*/*";
218
+ headers["user-agent"] = this.sdkConfiguration.userAgent;
219
+ return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "put", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
220
+ case 3:
221
+ httpRes = _e.sent();
222
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
223
+ if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
224
+ throw new Error("status code not found in response: ".concat(httpRes));
225
+ }
226
+ res = new operations.UpdateEventResponse({
227
+ statusCode: httpRes.status,
228
+ contentType: responseContentType,
229
+ rawResponse: httpRes,
230
+ });
231
+ switch (true) {
232
+ case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
233
+ break;
234
+ case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 400 ||
235
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
236
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
237
+ throw new errors.SDKError("API error occurred", httpRes.status, httpRes === null || httpRes === void 0 ? void 0 : httpRes.data, httpRes);
238
+ }
239
+ return [2 /*return*/, res];
240
+ }
241
+ });
242
+ });
243
+ };
244
+ /**
245
+ * Retrieve events based on filters
246
+ */
247
+ Events.prototype.getEvents = function (req, config) {
248
+ var _a, _b;
249
+ return __awaiter(this, void 0, void 0, function () {
250
+ var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
251
+ var _d;
252
+ return __generator(this, function (_e) {
253
+ switch (_e.label) {
254
+ case 0:
255
+ if (!(req instanceof utils.SpeakeasyBase)) {
256
+ req = new operations.GetEventsRequestBody(req);
257
+ }
258
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
259
+ operationUrl = baseURL.replace(/\/$/, "") + "/events/export";
260
+ _c = __read([{}, null], 2), reqBodyHeaders = _c[0], reqBody = _c[1];
261
+ try {
262
+ _d = __read(utils.serializeRequestBody(req, "request", "json"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
263
+ }
264
+ catch (e) {
265
+ if (e instanceof Error) {
266
+ throw new Error("Error serializing request body, cause: ".concat(e.message));
267
+ }
268
+ }
269
+ client = this.sdkConfiguration.defaultClient;
270
+ globalSecurity = this.sdkConfiguration.security;
271
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
272
+ return [4 /*yield*/, globalSecurity()];
273
+ case 1:
274
+ globalSecurity = _e.sent();
275
+ _e.label = 2;
276
+ case 2:
277
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
278
+ globalSecurity = new components.Security(globalSecurity);
279
+ }
280
+ properties = utils.parseSecurityProperties(globalSecurity);
281
+ headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
282
+ if (reqBody == null)
283
+ throw new Error("request body is required");
284
+ headers["Accept"] = "application/json";
285
+ headers["user-agent"] = this.sdkConfiguration.userAgent;
286
+ return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "post", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
287
+ case 3:
288
+ httpRes = _e.sent();
289
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
290
+ if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
291
+ throw new Error("status code not found in response: ".concat(httpRes));
292
+ }
293
+ res = new operations.GetEventsResponse({
294
+ statusCode: httpRes.status,
295
+ contentType: responseContentType,
296
+ rawResponse: httpRes,
297
+ });
298
+ decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
299
+ switch (true) {
300
+ case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
301
+ if (utils.matchContentType(responseContentType, "application/json")) {
302
+ res.object = utils.objectToClass(JSON.parse(decodedRes), operations.GetEventsResponseBody);
303
+ }
304
+ else {
305
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
306
+ }
307
+ break;
308
+ case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
309
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
310
+ throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
311
+ }
312
+ return [2 /*return*/, res];
313
+ }
314
+ });
315
+ });
316
+ };
317
+ /**
318
+ * Create a new model event
319
+ *
320
+ * @remarks
321
+ * Please refer to our instrumentation guide for detailed information
322
+ */
323
+ Events.prototype.createModelEvent = function (req, config) {
324
+ var _a, _b;
325
+ return __awaiter(this, void 0, void 0, function () {
326
+ var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
327
+ var _d;
328
+ return __generator(this, function (_e) {
329
+ switch (_e.label) {
330
+ case 0:
331
+ if (!(req instanceof utils.SpeakeasyBase)) {
332
+ req = new operations.CreateModelEventRequestBody(req);
333
+ }
334
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
335
+ operationUrl = baseURL.replace(/\/$/, "") + "/events/model";
336
+ _c = __read([{}, null], 2), reqBodyHeaders = _c[0], reqBody = _c[1];
337
+ try {
338
+ _d = __read(utils.serializeRequestBody(req, "request", "json"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
339
+ }
340
+ catch (e) {
341
+ if (e instanceof Error) {
342
+ throw new Error("Error serializing request body, cause: ".concat(e.message));
343
+ }
344
+ }
345
+ client = this.sdkConfiguration.defaultClient;
346
+ globalSecurity = this.sdkConfiguration.security;
347
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
348
+ return [4 /*yield*/, globalSecurity()];
349
+ case 1:
350
+ globalSecurity = _e.sent();
351
+ _e.label = 2;
352
+ case 2:
353
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
354
+ globalSecurity = new components.Security(globalSecurity);
355
+ }
356
+ properties = utils.parseSecurityProperties(globalSecurity);
357
+ headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
358
+ if (reqBody == null)
359
+ throw new Error("request body is required");
360
+ headers["Accept"] = "application/json";
361
+ headers["user-agent"] = this.sdkConfiguration.userAgent;
362
+ return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "post", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
363
+ case 3:
364
+ httpRes = _e.sent();
365
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
366
+ if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
367
+ throw new Error("status code not found in response: ".concat(httpRes));
368
+ }
369
+ res = new operations.CreateModelEventResponse({
370
+ statusCode: httpRes.status,
371
+ contentType: responseContentType,
372
+ rawResponse: httpRes,
373
+ });
374
+ decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
375
+ switch (true) {
376
+ case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
377
+ if (utils.matchContentType(responseContentType, "application/json")) {
378
+ res.object = utils.objectToClass(JSON.parse(decodedRes), operations.CreateModelEventResponseBody);
379
+ }
380
+ else {
381
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
382
+ }
383
+ break;
384
+ case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
385
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
386
+ throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
387
+ }
388
+ return [2 /*return*/, res];
389
+ }
390
+ });
391
+ });
392
+ };
393
+ /**
394
+ * Create a batch of events
395
+ *
396
+ * @remarks
397
+ * Please refer to our instrumentation guide for detailed information
398
+ */
399
+ Events.prototype.createEventBatch = function (req, config) {
400
+ var _a, _b;
401
+ return __awaiter(this, void 0, void 0, function () {
402
+ var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes, err;
403
+ var _d;
404
+ return __generator(this, function (_e) {
405
+ switch (_e.label) {
406
+ case 0:
407
+ if (!(req instanceof utils.SpeakeasyBase)) {
408
+ req = new operations.CreateEventBatchRequestBody(req);
409
+ }
410
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
411
+ operationUrl = baseURL.replace(/\/$/, "") + "/events/batch";
412
+ _c = __read([{}, null], 2), reqBodyHeaders = _c[0], reqBody = _c[1];
413
+ try {
414
+ _d = __read(utils.serializeRequestBody(req, "request", "json"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
415
+ }
416
+ catch (e) {
417
+ if (e instanceof Error) {
418
+ throw new Error("Error serializing request body, cause: ".concat(e.message));
419
+ }
420
+ }
421
+ client = this.sdkConfiguration.defaultClient;
422
+ globalSecurity = this.sdkConfiguration.security;
423
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
424
+ return [4 /*yield*/, globalSecurity()];
425
+ case 1:
426
+ globalSecurity = _e.sent();
427
+ _e.label = 2;
428
+ case 2:
429
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
430
+ globalSecurity = new components.Security(globalSecurity);
431
+ }
432
+ properties = utils.parseSecurityProperties(globalSecurity);
433
+ headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
434
+ if (reqBody == null)
435
+ throw new Error("request body is required");
436
+ headers["Accept"] = "application/json";
437
+ headers["user-agent"] = this.sdkConfiguration.userAgent;
438
+ return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "post", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
439
+ case 3:
440
+ httpRes = _e.sent();
441
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
442
+ if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
443
+ throw new Error("status code not found in response: ".concat(httpRes));
444
+ }
445
+ res = new operations.CreateEventBatchResponse({
446
+ statusCode: httpRes.status,
447
+ contentType: responseContentType,
448
+ rawResponse: httpRes,
449
+ });
450
+ decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
451
+ switch (true) {
452
+ case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
453
+ if (utils.matchContentType(responseContentType, "application/json")) {
454
+ res.object = utils.objectToClass(JSON.parse(decodedRes), operations.CreateEventBatchResponseBody);
455
+ }
456
+ else {
457
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
458
+ }
459
+ break;
460
+ case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 500:
461
+ if (utils.matchContentType(responseContentType, "application/json")) {
462
+ err = utils.objectToClass(JSON.parse(decodedRes), errors.CreateEventBatchResponseBody);
463
+ err.rawResponse = httpRes;
464
+ throw new errors.CreateEventBatchResponseBody(err);
465
+ }
466
+ else {
467
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
468
+ }
469
+ break;
470
+ case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
471
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
472
+ throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
473
+ }
474
+ return [2 /*return*/, res];
475
+ }
476
+ });
477
+ });
478
+ };
479
+ /**
480
+ * Create a batch of model events
481
+ *
482
+ * @remarks
483
+ * Please refer to our instrumentation guide for detailed information
484
+ */
485
+ Events.prototype.createModelEventBatch = function (req, config) {
486
+ var _a, _b;
487
+ return __awaiter(this, void 0, void 0, function () {
488
+ var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes, err;
489
+ var _d;
490
+ return __generator(this, function (_e) {
491
+ switch (_e.label) {
492
+ case 0:
493
+ if (!(req instanceof utils.SpeakeasyBase)) {
494
+ req = new operations.CreateModelEventBatchRequestBody(req);
495
+ }
496
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
497
+ operationUrl = baseURL.replace(/\/$/, "") + "/events/model/batch";
498
+ _c = __read([{}, null], 2), reqBodyHeaders = _c[0], reqBody = _c[1];
499
+ try {
500
+ _d = __read(utils.serializeRequestBody(req, "request", "json"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
501
+ }
502
+ catch (e) {
503
+ if (e instanceof Error) {
504
+ throw new Error("Error serializing request body, cause: ".concat(e.message));
505
+ }
506
+ }
507
+ client = this.sdkConfiguration.defaultClient;
508
+ globalSecurity = this.sdkConfiguration.security;
509
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
510
+ return [4 /*yield*/, globalSecurity()];
511
+ case 1:
512
+ globalSecurity = _e.sent();
513
+ _e.label = 2;
514
+ case 2:
515
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
516
+ globalSecurity = new components.Security(globalSecurity);
517
+ }
518
+ properties = utils.parseSecurityProperties(globalSecurity);
519
+ headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
520
+ if (reqBody == null)
521
+ throw new Error("request body is required");
522
+ headers["Accept"] = "application/json";
523
+ headers["user-agent"] = this.sdkConfiguration.userAgent;
524
+ return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "post", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
525
+ case 3:
526
+ httpRes = _e.sent();
527
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
528
+ if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
529
+ throw new Error("status code not found in response: ".concat(httpRes));
530
+ }
531
+ res = new operations.CreateModelEventBatchResponse({
532
+ statusCode: httpRes.status,
533
+ contentType: responseContentType,
534
+ rawResponse: httpRes,
535
+ });
536
+ decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
537
+ switch (true) {
538
+ case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
539
+ if (utils.matchContentType(responseContentType, "application/json")) {
540
+ res.object = utils.objectToClass(JSON.parse(decodedRes), operations.CreateModelEventBatchResponseBody);
541
+ }
542
+ else {
543
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
544
+ }
545
+ break;
546
+ case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 500:
547
+ if (utils.matchContentType(responseContentType, "application/json")) {
548
+ err = utils.objectToClass(JSON.parse(decodedRes), errors.CreateModelEventBatchResponseBody);
549
+ err.rawResponse = httpRes;
550
+ throw new errors.CreateModelEventBatchResponseBody(err);
551
+ }
552
+ else {
553
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
554
+ }
555
+ break;
556
+ case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
557
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
558
+ throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
559
+ }
560
+ return [2 /*return*/, res];
561
+ }
562
+ });
563
+ });
564
+ };
565
+ return Events;
566
+ }());
567
+ exports.Events = Events;
@@ -0,0 +1,2 @@
1
+ export * from "./sdk";
2
+ export * from "./tracer";
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
17
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
18
+ };
19
+ Object.defineProperty(exports, "__esModule", { value: true });
20
+ __exportStar(require("./sdk"), exports);
21
+ __exportStar(require("./tracer"), exports);
@@ -0,0 +1,36 @@
1
+ import * as components from "../models/components";
2
+ import * as operations from "../models/operations";
3
+ import { SDKConfiguration } from "./sdk";
4
+ import { AxiosRequestConfig } from "axios";
5
+ export declare class Metrics {
6
+ private sdkConfiguration;
7
+ constructor(sdkConfig: SDKConfiguration);
8
+ /**
9
+ * Get all metrics
10
+ *
11
+ * @remarks
12
+ * Retrieve a list of all metrics
13
+ */
14
+ getMetrics(projectName: string, config?: AxiosRequestConfig): Promise<operations.GetMetricsResponse>;
15
+ /**
16
+ * Create a new metric
17
+ *
18
+ * @remarks
19
+ * Add a new metric
20
+ */
21
+ createMetric(req: components.Metric, config?: AxiosRequestConfig): Promise<operations.CreateMetricResponse>;
22
+ /**
23
+ * Update an existing metric
24
+ *
25
+ * @remarks
26
+ * Edit a metric
27
+ */
28
+ updateMetric(req: components.MetricEdit, config?: AxiosRequestConfig): Promise<operations.UpdateMetricResponse>;
29
+ /**
30
+ * Delete a metric
31
+ *
32
+ * @remarks
33
+ * Remove a metric
34
+ */
35
+ deleteMetric(metricId: string, config?: AxiosRequestConfig): Promise<operations.DeleteMetricResponse>;
36
+ }