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.
- package/dist/index.d.ts +1 -0
- package/dist/index.js +20 -0
- package/dist/internal/utils/contenttype.d.ts +1 -0
- package/dist/internal/utils/contenttype.js +33 -0
- package/dist/internal/utils/headers.d.ts +4 -0
- package/dist/internal/utils/headers.js +92 -0
- package/dist/internal/utils/index.d.ts +8 -0
- package/dist/internal/utils/index.js +27 -0
- package/dist/internal/utils/pathparams.d.ts +2 -0
- package/dist/internal/utils/pathparams.js +53 -0
- package/dist/internal/utils/queryparams.d.ts +2 -0
- package/dist/internal/utils/queryparams.js +182 -0
- package/dist/internal/utils/requestbody.d.ts +2 -0
- package/dist/internal/utils/requestbody.js +328 -0
- package/dist/internal/utils/retries.d.ts +20 -0
- package/dist/internal/utils/retries.js +250 -0
- package/dist/internal/utils/security.d.ts +5 -0
- package/dist/internal/utils/security.js +196 -0
- package/dist/internal/utils/utils.d.ts +37 -0
- package/dist/internal/utils/utils.js +368 -0
- package/dist/models/components/configuration.d.ts +44 -0
- package/dist/models/components/configuration.js +94 -0
- package/dist/models/components/createdatapointrequest.d.ts +31 -0
- package/dist/models/components/createdatapointrequest.js +75 -0
- package/dist/models/components/createdatasetrequest.d.ts +50 -0
- package/dist/models/components/createdatasetrequest.js +101 -0
- package/dist/models/components/createeventrequest.d.ts +87 -0
- package/dist/models/components/createeventrequest.js +144 -0
- package/dist/models/components/createmodelevent.d.ts +71 -0
- package/dist/models/components/createmodelevent.js +125 -0
- package/dist/models/components/createprojectrequest.d.ts +5 -0
- package/dist/models/components/createprojectrequest.js +50 -0
- package/dist/models/components/createrunrequest.d.ts +42 -0
- package/dist/models/components/createrunrequest.js +88 -0
- package/dist/models/components/createrunresponse.d.ts +6 -0
- package/dist/models/components/createrunresponse.js +52 -0
- package/dist/models/components/createtoolrequest.d.ts +18 -0
- package/dist/models/components/createtoolrequest.js +70 -0
- package/dist/models/components/datapoint.d.ts +41 -0
- package/dist/models/components/datapoint.js +118 -0
- package/dist/models/components/dataset.d.ts +58 -0
- package/dist/models/components/dataset.js +119 -0
- package/dist/models/components/datasetupdate.d.ts +27 -0
- package/dist/models/components/datasetupdate.js +70 -0
- package/dist/models/components/deleterunresponse.d.ts +5 -0
- package/dist/models/components/deleterunresponse.js +50 -0
- package/dist/models/components/evaluationrun.d.ts +50 -0
- package/dist/models/components/evaluationrun.js +116 -0
- package/dist/models/components/event.d.ts +88 -0
- package/dist/models/components/event.js +145 -0
- package/dist/models/components/eventfilter.d.ts +38 -0
- package/dist/models/components/eventfilter.js +81 -0
- package/dist/models/components/getrunresponse.d.ts +5 -0
- package/dist/models/components/getrunresponse.js +47 -0
- package/dist/models/components/getrunsresponse.d.ts +5 -0
- package/dist/models/components/getrunsresponse.js +47 -0
- package/dist/models/components/index.d.ts +31 -0
- package/dist/models/components/index.js +50 -0
- package/dist/models/components/metric.d.ts +86 -0
- package/dist/models/components/metric.js +155 -0
- package/dist/models/components/metricedit.d.ts +91 -0
- package/dist/models/components/metricedit.js +160 -0
- package/dist/models/components/postconfigurationrequest.d.ts +29 -0
- package/dist/models/components/postconfigurationrequest.js +76 -0
- package/dist/models/components/project.d.ts +6 -0
- package/dist/models/components/project.js +55 -0
- package/dist/models/components/putconfigurationrequest.d.ts +40 -0
- package/dist/models/components/putconfigurationrequest.js +89 -0
- package/dist/models/components/security.d.ts +4 -0
- package/dist/models/components/security.js +45 -0
- package/dist/models/components/sessionstartrequest.d.ts +67 -0
- package/dist/models/components/sessionstartrequest.js +120 -0
- package/dist/models/components/tool.d.ts +19 -0
- package/dist/models/components/tool.js +75 -0
- package/dist/models/components/updatedatapointrequest.d.ts +27 -0
- package/dist/models/components/updatedatapointrequest.js +70 -0
- package/dist/models/components/updateprojectrequest.d.ts +6 -0
- package/dist/models/components/updateprojectrequest.js +55 -0
- package/dist/models/components/updaterunrequest.d.ts +32 -0
- package/dist/models/components/updaterunrequest.js +80 -0
- package/dist/models/components/updaterunresponse.d.ts +11 -0
- package/dist/models/components/updaterunresponse.js +50 -0
- package/dist/models/components/updatetoolrequest.d.ts +7 -0
- package/dist/models/components/updatetoolrequest.js +60 -0
- package/dist/models/errors/createeventbatch.d.ts +14 -0
- package/dist/models/errors/createeventbatch.js +70 -0
- package/dist/models/errors/createmodeleventbatch.d.ts +14 -0
- package/dist/models/errors/createmodeleventbatch.js +70 -0
- package/dist/models/errors/index.d.ts +3 -0
- package/dist/models/errors/index.js +22 -0
- package/dist/models/errors/sdkerror.d.ts +7 -0
- package/dist/models/errors/sdkerror.js +40 -0
- package/dist/models/operations/adddatapoints.d.ts +68 -0
- package/dist/models/operations/adddatapoints.js +143 -0
- package/dist/models/operations/createconfiguration.d.ts +16 -0
- package/dist/models/operations/createconfiguration.js +51 -0
- package/dist/models/operations/createdatapoint.d.ts +29 -0
- package/dist/models/operations/createdatapoint.js +86 -0
- package/dist/models/operations/createdataset.d.ts +33 -0
- package/dist/models/operations/createdataset.js +91 -0
- package/dist/models/operations/createevent.d.ts +31 -0
- package/dist/models/operations/createevent.js +115 -0
- package/dist/models/operations/createeventbatch.d.ts +36 -0
- package/dist/models/operations/createeventbatch.js +125 -0
- package/dist/models/operations/createmetric.d.ts +16 -0
- package/dist/models/operations/createmetric.js +51 -0
- package/dist/models/operations/createmodelevent.d.ts +31 -0
- package/dist/models/operations/createmodelevent.js +115 -0
- package/dist/models/operations/createmodeleventbatch.d.ts +31 -0
- package/dist/models/operations/createmodeleventbatch.js +115 -0
- package/dist/models/operations/createproject.d.ts +21 -0
- package/dist/models/operations/createproject.js +79 -0
- package/dist/models/operations/createrun.d.ts +21 -0
- package/dist/models/operations/createrun.js +79 -0
- package/dist/models/operations/createtool.d.ts +29 -0
- package/dist/models/operations/createtool.js +86 -0
- package/dist/models/operations/deleteconfiguration.d.ts +22 -0
- package/dist/models/operations/deleteconfiguration.js +63 -0
- package/dist/models/operations/deletedatapoint.d.ts +32 -0
- package/dist/models/operations/deletedatapoint.js +84 -0
- package/dist/models/operations/deletedataset.d.ts +22 -0
- package/dist/models/operations/deletedataset.js +63 -0
- package/dist/models/operations/deletemetric.d.ts +19 -0
- package/dist/models/operations/deletemetric.js +63 -0
- package/dist/models/operations/deleteproject.d.ts +19 -0
- package/dist/models/operations/deleteproject.js +63 -0
- package/dist/models/operations/deleterun.d.ts +24 -0
- package/dist/models/operations/deleterun.js +91 -0
- package/dist/models/operations/deletetool.d.ts +19 -0
- package/dist/models/operations/deletetool.js +63 -0
- package/dist/models/operations/getconfigurations.d.ts +43 -0
- package/dist/models/operations/getconfigurations.js +108 -0
- package/dist/models/operations/getdatapoint.d.ts +33 -0
- package/dist/models/operations/getdatapoint.js +109 -0
- package/dist/models/operations/getdatapoints.d.ts +41 -0
- package/dist/models/operations/getdatapoints.js +117 -0
- package/dist/models/operations/getdatasets.d.ts +48 -0
- package/dist/models/operations/getdatasets.js +125 -0
- package/dist/models/operations/getevents.d.ts +57 -0
- package/dist/models/operations/getevents.js +155 -0
- package/dist/models/operations/getmetrics.d.ts +27 -0
- package/dist/models/operations/getmetrics.js +91 -0
- package/dist/models/operations/getprojects.d.ts +24 -0
- package/dist/models/operations/getprojects.js +91 -0
- package/dist/models/operations/getrun.d.ts +24 -0
- package/dist/models/operations/getrun.js +91 -0
- package/dist/models/operations/getruns.d.ts +24 -0
- package/dist/models/operations/getruns.js +91 -0
- package/dist/models/operations/getsession.d.ts +24 -0
- package/dist/models/operations/getsession.js +91 -0
- package/dist/models/operations/gettools.d.ts +21 -0
- package/dist/models/operations/gettools.js +79 -0
- package/dist/models/operations/index.d.ts +39 -0
- package/dist/models/operations/index.js +58 -0
- package/dist/models/operations/startsession.d.ts +30 -0
- package/dist/models/operations/startsession.js +110 -0
- package/dist/models/operations/updateconfiguration.d.ts +24 -0
- package/dist/models/operations/updateconfiguration.js +91 -0
- package/dist/models/operations/updatedatapoint.d.ts +24 -0
- package/dist/models/operations/updatedatapoint.js +91 -0
- package/dist/models/operations/updatedataset.d.ts +16 -0
- package/dist/models/operations/updatedataset.js +51 -0
- package/dist/models/operations/updateevent.d.ts +26 -0
- package/dist/models/operations/updateevent.js +100 -0
- package/dist/models/operations/updatemetric.d.ts +16 -0
- package/dist/models/operations/updatemetric.js +51 -0
- package/dist/models/operations/updateproject.d.ts +16 -0
- package/dist/models/operations/updateproject.js +51 -0
- package/dist/models/operations/updaterun.d.ts +25 -0
- package/dist/models/operations/updaterun.js +95 -0
- package/dist/models/operations/updatetool.d.ts +16 -0
- package/dist/models/operations/updatetool.js +51 -0
- package/dist/sdk/configurations.d.ts +24 -0
- package/dist/sdk/configurations.js +356 -0
- package/dist/sdk/datapoints.d.ts +28 -0
- package/dist/sdk/datapoints.js +430 -0
- package/dist/sdk/datasets.d.ts +28 -0
- package/dist/sdk/datasets.js +435 -0
- package/dist/sdk/events.d.ts +43 -0
- package/dist/sdk/events.js +567 -0
- package/dist/sdk/index.d.ts +2 -0
- package/dist/sdk/index.js +21 -0
- package/dist/sdk/metrics.d.ts +36 -0
- package/dist/sdk/metrics.js +366 -0
- package/dist/sdk/projects.d.ts +24 -0
- package/dist/sdk/projects.js +361 -0
- package/dist/sdk/runs.d.ts +28 -0
- package/dist/sdk/runs.js +439 -0
- package/dist/sdk/sdk.d.ts +64 -0
- package/dist/sdk/sdk.js +90 -0
- package/dist/sdk/session.d.ts +15 -0
- package/dist/sdk/session.js +237 -0
- package/dist/sdk/telemetry.d.ts +21 -0
- package/dist/sdk/telemetry.js +243 -0
- package/dist/sdk/tools.d.ts +24 -0
- package/dist/sdk/tools.js +357 -0
- package/dist/sdk/tracer.d.ts +26 -0
- package/dist/sdk/tracer.js +308 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +20 -0
- package/dist/types/rfcdate.d.ts +9 -0
- package/dist/types/rfcdate.js +59 -0
- package/funcs/runsCreateRun.d.ts.map +1 -1
- package/funcs/runsCreateRun.js +2 -1
- package/funcs/runsCreateRun.js.map +1 -1
- package/funcs/runsUpdateRun.d.ts +1 -1
- package/funcs/runsUpdateRun.d.ts.map +1 -1
- package/funcs/runsUpdateRun.js +2 -2
- package/funcs/runsUpdateRun.js.map +1 -1
- package/package.json +4 -3
- package/sdk/evaluation.d.ts +7 -1
- package/sdk/evaluation.d.ts.map +1 -1
- package/sdk/evaluation.js +52 -5
- package/sdk/evaluation.js.map +1 -1
- package/sdk/runs.d.ts +1 -1
- package/sdk/runs.d.ts.map +1 -1
- package/sdk/runs.js +2 -2
- package/sdk/runs.js.map +1 -1
- package/src/sdk/evaluation.ts +38 -8
- package/tests/openai_test.ts +72 -0
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __extends = (this && this.__extends) || (function () {
|
|
6
|
+
var extendStatics = function (d, b) {
|
|
7
|
+
extendStatics = Object.setPrototypeOf ||
|
|
8
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
9
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
10
|
+
return extendStatics(d, b);
|
|
11
|
+
};
|
|
12
|
+
return function (d, b) {
|
|
13
|
+
if (typeof b !== "function" && b !== null)
|
|
14
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
15
|
+
extendStatics(d, b);
|
|
16
|
+
function __() { this.constructor = d; }
|
|
17
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
18
|
+
};
|
|
19
|
+
})();
|
|
20
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
21
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
22
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
23
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
24
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
25
|
+
};
|
|
26
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
27
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
28
|
+
};
|
|
29
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
+
exports.PutConfigurationRequest = exports.PutConfigurationRequestType = exports.PutConfigurationRequestEnv = void 0;
|
|
31
|
+
var utils_1 = require("../../internal/utils");
|
|
32
|
+
var class_transformer_1 = require("class-transformer");
|
|
33
|
+
var PutConfigurationRequestEnv;
|
|
34
|
+
(function (PutConfigurationRequestEnv) {
|
|
35
|
+
PutConfigurationRequestEnv["Dev"] = "dev";
|
|
36
|
+
PutConfigurationRequestEnv["Staging"] = "staging";
|
|
37
|
+
PutConfigurationRequestEnv["Prod"] = "prod";
|
|
38
|
+
})(PutConfigurationRequestEnv = exports.PutConfigurationRequestEnv || (exports.PutConfigurationRequestEnv = {}));
|
|
39
|
+
/**
|
|
40
|
+
* Type of the configuration - "LLM" or "pipeline" - "LLM" by default
|
|
41
|
+
*/
|
|
42
|
+
var PutConfigurationRequestType;
|
|
43
|
+
(function (PutConfigurationRequestType) {
|
|
44
|
+
PutConfigurationRequestType["Llm"] = "LLM";
|
|
45
|
+
PutConfigurationRequestType["Pipeline"] = "pipeline";
|
|
46
|
+
})(PutConfigurationRequestType = exports.PutConfigurationRequestType || (exports.PutConfigurationRequestType = {}));
|
|
47
|
+
var PutConfigurationRequest = /** @class */ (function (_super) {
|
|
48
|
+
__extends(PutConfigurationRequest, _super);
|
|
49
|
+
function PutConfigurationRequest() {
|
|
50
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
51
|
+
}
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
54
|
+
(0, class_transformer_1.Expose)({ name: "project" }),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], PutConfigurationRequest.prototype, "project", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
59
|
+
(0, class_transformer_1.Expose)({ name: "name" }),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], PutConfigurationRequest.prototype, "name", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
64
|
+
(0, class_transformer_1.Expose)({ name: "provider" }),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], PutConfigurationRequest.prototype, "provider", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
69
|
+
(0, class_transformer_1.Expose)({ name: "parameters" }),
|
|
70
|
+
__metadata("design:type", Object)
|
|
71
|
+
], PutConfigurationRequest.prototype, "parameters", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
74
|
+
(0, class_transformer_1.Expose)({ name: "env" }),
|
|
75
|
+
__metadata("design:type", Array)
|
|
76
|
+
], PutConfigurationRequest.prototype, "env", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
79
|
+
(0, class_transformer_1.Expose)({ name: "type" }),
|
|
80
|
+
__metadata("design:type", String)
|
|
81
|
+
], PutConfigurationRequest.prototype, "type", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
84
|
+
(0, class_transformer_1.Expose)({ name: "user_properties" }),
|
|
85
|
+
__metadata("design:type", Object)
|
|
86
|
+
], PutConfigurationRequest.prototype, "userProperties", void 0);
|
|
87
|
+
return PutConfigurationRequest;
|
|
88
|
+
}(utils_1.SpeakeasyBase));
|
|
89
|
+
exports.PutConfigurationRequest = PutConfigurationRequest;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __extends = (this && this.__extends) || (function () {
|
|
6
|
+
var extendStatics = function (d, b) {
|
|
7
|
+
extendStatics = Object.setPrototypeOf ||
|
|
8
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
9
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
10
|
+
return extendStatics(d, b);
|
|
11
|
+
};
|
|
12
|
+
return function (d, b) {
|
|
13
|
+
if (typeof b !== "function" && b !== null)
|
|
14
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
15
|
+
extendStatics(d, b);
|
|
16
|
+
function __() { this.constructor = d; }
|
|
17
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
18
|
+
};
|
|
19
|
+
})();
|
|
20
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
21
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
22
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
23
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
24
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
25
|
+
};
|
|
26
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
27
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
28
|
+
};
|
|
29
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
+
exports.Security = void 0;
|
|
31
|
+
var utils_1 = require("../../internal/utils");
|
|
32
|
+
var Security = /** @class */ (function (_super) {
|
|
33
|
+
__extends(Security, _super);
|
|
34
|
+
function Security() {
|
|
35
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
36
|
+
}
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, utils_1.SpeakeasyMetadata)({
|
|
39
|
+
data: "security, scheme=true;type=http;subtype=bearer;name=Authorization",
|
|
40
|
+
}),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], Security.prototype, "bearerAuth", void 0);
|
|
43
|
+
return Security;
|
|
44
|
+
}(utils_1.SpeakeasyBase));
|
|
45
|
+
exports.Security = Security;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { SpeakeasyBase } from "../../internal/utils";
|
|
2
|
+
export declare class SessionStartRequest extends SpeakeasyBase {
|
|
3
|
+
/**
|
|
4
|
+
* Project name associated with the session
|
|
5
|
+
*/
|
|
6
|
+
project: string;
|
|
7
|
+
/**
|
|
8
|
+
* Name of the session
|
|
9
|
+
*/
|
|
10
|
+
sessionName: string;
|
|
11
|
+
/**
|
|
12
|
+
* Source of the session - production, staging, etc
|
|
13
|
+
*/
|
|
14
|
+
source: string;
|
|
15
|
+
/**
|
|
16
|
+
* Unique id of the session, if not set, it will be auto-generated
|
|
17
|
+
*/
|
|
18
|
+
sessionId?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Id of events that are nested within the session
|
|
21
|
+
*/
|
|
22
|
+
childrenIds?: string[];
|
|
23
|
+
/**
|
|
24
|
+
* Associated configuration for the session
|
|
25
|
+
*/
|
|
26
|
+
config?: Record<string, any>;
|
|
27
|
+
/**
|
|
28
|
+
* Input object passed to the session - user query, text blob, etc
|
|
29
|
+
*/
|
|
30
|
+
inputs?: Record<string, any>;
|
|
31
|
+
/**
|
|
32
|
+
* Final output of the session - completion, chunks, etc
|
|
33
|
+
*/
|
|
34
|
+
outputs?: Record<string, any>;
|
|
35
|
+
/**
|
|
36
|
+
* Any error description if session failed
|
|
37
|
+
*/
|
|
38
|
+
error?: string;
|
|
39
|
+
/**
|
|
40
|
+
* How long the session took in milliseconds
|
|
41
|
+
*/
|
|
42
|
+
duration?: number;
|
|
43
|
+
/**
|
|
44
|
+
* Any user properties associated with the session
|
|
45
|
+
*/
|
|
46
|
+
userProperties?: Record<string, any>;
|
|
47
|
+
/**
|
|
48
|
+
* Any values computed over the output of the session
|
|
49
|
+
*/
|
|
50
|
+
metrics?: Record<string, any>;
|
|
51
|
+
/**
|
|
52
|
+
* Any user feedback provided for the session output
|
|
53
|
+
*/
|
|
54
|
+
feedback?: Record<string, any>;
|
|
55
|
+
/**
|
|
56
|
+
* Any system or application metadata associated with the session
|
|
57
|
+
*/
|
|
58
|
+
metadata?: Record<string, any>;
|
|
59
|
+
/**
|
|
60
|
+
* UTC timestamp (in milliseconds) for the session start
|
|
61
|
+
*/
|
|
62
|
+
startTime?: number;
|
|
63
|
+
/**
|
|
64
|
+
* UTC timestamp (in milliseconds) for the session end
|
|
65
|
+
*/
|
|
66
|
+
endTime?: number;
|
|
67
|
+
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __extends = (this && this.__extends) || (function () {
|
|
6
|
+
var extendStatics = function (d, b) {
|
|
7
|
+
extendStatics = Object.setPrototypeOf ||
|
|
8
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
9
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
10
|
+
return extendStatics(d, b);
|
|
11
|
+
};
|
|
12
|
+
return function (d, b) {
|
|
13
|
+
if (typeof b !== "function" && b !== null)
|
|
14
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
15
|
+
extendStatics(d, b);
|
|
16
|
+
function __() { this.constructor = d; }
|
|
17
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
18
|
+
};
|
|
19
|
+
})();
|
|
20
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
21
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
22
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
23
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
24
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
25
|
+
};
|
|
26
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
27
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
28
|
+
};
|
|
29
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
+
exports.SessionStartRequest = void 0;
|
|
31
|
+
var utils_1 = require("../../internal/utils");
|
|
32
|
+
var class_transformer_1 = require("class-transformer");
|
|
33
|
+
var SessionStartRequest = /** @class */ (function (_super) {
|
|
34
|
+
__extends(SessionStartRequest, _super);
|
|
35
|
+
function SessionStartRequest() {
|
|
36
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
37
|
+
}
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
40
|
+
(0, class_transformer_1.Expose)({ name: "project" }),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], SessionStartRequest.prototype, "project", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
45
|
+
(0, class_transformer_1.Expose)({ name: "session_name" }),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], SessionStartRequest.prototype, "sessionName", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
50
|
+
(0, class_transformer_1.Expose)({ name: "source" }),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], SessionStartRequest.prototype, "source", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
55
|
+
(0, class_transformer_1.Expose)({ name: "session_id" }),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], SessionStartRequest.prototype, "sessionId", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
60
|
+
(0, class_transformer_1.Expose)({ name: "children_ids" }),
|
|
61
|
+
__metadata("design:type", Array)
|
|
62
|
+
], SessionStartRequest.prototype, "childrenIds", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
65
|
+
(0, class_transformer_1.Expose)({ name: "config" }),
|
|
66
|
+
__metadata("design:type", Object)
|
|
67
|
+
], SessionStartRequest.prototype, "config", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
70
|
+
(0, class_transformer_1.Expose)({ name: "inputs" }),
|
|
71
|
+
__metadata("design:type", Object)
|
|
72
|
+
], SessionStartRequest.prototype, "inputs", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
75
|
+
(0, class_transformer_1.Expose)({ name: "outputs" }),
|
|
76
|
+
__metadata("design:type", Object)
|
|
77
|
+
], SessionStartRequest.prototype, "outputs", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
80
|
+
(0, class_transformer_1.Expose)({ name: "error" }),
|
|
81
|
+
__metadata("design:type", String)
|
|
82
|
+
], SessionStartRequest.prototype, "error", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
85
|
+
(0, class_transformer_1.Expose)({ name: "duration" }),
|
|
86
|
+
__metadata("design:type", Number)
|
|
87
|
+
], SessionStartRequest.prototype, "duration", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
90
|
+
(0, class_transformer_1.Expose)({ name: "user_properties" }),
|
|
91
|
+
__metadata("design:type", Object)
|
|
92
|
+
], SessionStartRequest.prototype, "userProperties", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
95
|
+
(0, class_transformer_1.Expose)({ name: "metrics" }),
|
|
96
|
+
__metadata("design:type", Object)
|
|
97
|
+
], SessionStartRequest.prototype, "metrics", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
100
|
+
(0, class_transformer_1.Expose)({ name: "feedback" }),
|
|
101
|
+
__metadata("design:type", Object)
|
|
102
|
+
], SessionStartRequest.prototype, "feedback", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
105
|
+
(0, class_transformer_1.Expose)({ name: "metadata" }),
|
|
106
|
+
__metadata("design:type", Object)
|
|
107
|
+
], SessionStartRequest.prototype, "metadata", void 0);
|
|
108
|
+
__decorate([
|
|
109
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
110
|
+
(0, class_transformer_1.Expose)({ name: "start_time" }),
|
|
111
|
+
__metadata("design:type", Number)
|
|
112
|
+
], SessionStartRequest.prototype, "startTime", void 0);
|
|
113
|
+
__decorate([
|
|
114
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
115
|
+
(0, class_transformer_1.Expose)({ name: "end_time" }),
|
|
116
|
+
__metadata("design:type", Number)
|
|
117
|
+
], SessionStartRequest.prototype, "endTime", void 0);
|
|
118
|
+
return SessionStartRequest;
|
|
119
|
+
}(utils_1.SpeakeasyBase));
|
|
120
|
+
exports.SessionStartRequest = SessionStartRequest;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SpeakeasyBase } from "../../internal/utils";
|
|
2
|
+
export declare enum ToolType {
|
|
3
|
+
Function = "function",
|
|
4
|
+
Tool = "tool"
|
|
5
|
+
}
|
|
6
|
+
export declare class Tool extends SpeakeasyBase {
|
|
7
|
+
id?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Name of the project associated with this tool
|
|
10
|
+
*/
|
|
11
|
+
task: string;
|
|
12
|
+
name: string;
|
|
13
|
+
description?: string;
|
|
14
|
+
/**
|
|
15
|
+
* These can be function call params or plugin call params
|
|
16
|
+
*/
|
|
17
|
+
parameters: Record<string, any>;
|
|
18
|
+
toolType: ToolType;
|
|
19
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __extends = (this && this.__extends) || (function () {
|
|
6
|
+
var extendStatics = function (d, b) {
|
|
7
|
+
extendStatics = Object.setPrototypeOf ||
|
|
8
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
9
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
10
|
+
return extendStatics(d, b);
|
|
11
|
+
};
|
|
12
|
+
return function (d, b) {
|
|
13
|
+
if (typeof b !== "function" && b !== null)
|
|
14
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
15
|
+
extendStatics(d, b);
|
|
16
|
+
function __() { this.constructor = d; }
|
|
17
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
18
|
+
};
|
|
19
|
+
})();
|
|
20
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
21
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
22
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
23
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
24
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
25
|
+
};
|
|
26
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
27
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
28
|
+
};
|
|
29
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
+
exports.Tool = exports.ToolType = void 0;
|
|
31
|
+
var utils_1 = require("../../internal/utils");
|
|
32
|
+
var class_transformer_1 = require("class-transformer");
|
|
33
|
+
var ToolType;
|
|
34
|
+
(function (ToolType) {
|
|
35
|
+
ToolType["Function"] = "function";
|
|
36
|
+
ToolType["Tool"] = "tool";
|
|
37
|
+
})(ToolType = exports.ToolType || (exports.ToolType = {}));
|
|
38
|
+
var Tool = /** @class */ (function (_super) {
|
|
39
|
+
__extends(Tool, _super);
|
|
40
|
+
function Tool() {
|
|
41
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
42
|
+
}
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
45
|
+
(0, class_transformer_1.Expose)({ name: "_id" }),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], Tool.prototype, "id", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
50
|
+
(0, class_transformer_1.Expose)({ name: "task" }),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], Tool.prototype, "task", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
55
|
+
(0, class_transformer_1.Expose)({ name: "name" }),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], Tool.prototype, "name", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
60
|
+
(0, class_transformer_1.Expose)({ name: "description" }),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], Tool.prototype, "description", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
65
|
+
(0, class_transformer_1.Expose)({ name: "parameters" }),
|
|
66
|
+
__metadata("design:type", Object)
|
|
67
|
+
], Tool.prototype, "parameters", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
70
|
+
(0, class_transformer_1.Expose)({ name: "tool_type" }),
|
|
71
|
+
__metadata("design:type", String)
|
|
72
|
+
], Tool.prototype, "toolType", void 0);
|
|
73
|
+
return Tool;
|
|
74
|
+
}(utils_1.SpeakeasyBase));
|
|
75
|
+
exports.Tool = Tool;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { SpeakeasyBase } from "../../internal/utils";
|
|
2
|
+
export declare class UpdateDatapointRequest extends SpeakeasyBase {
|
|
3
|
+
/**
|
|
4
|
+
* Arbitrary JSON object containing the inputs for the datapoint
|
|
5
|
+
*/
|
|
6
|
+
inputs?: Record<string, any>;
|
|
7
|
+
/**
|
|
8
|
+
* Conversation history associated with the datapoint
|
|
9
|
+
*/
|
|
10
|
+
history?: Record<string, any>[];
|
|
11
|
+
/**
|
|
12
|
+
* Expected output JSON object for the datapoint
|
|
13
|
+
*/
|
|
14
|
+
groundTruth?: Record<string, any>;
|
|
15
|
+
/**
|
|
16
|
+
* Ids of evaluations where the datapoint is included
|
|
17
|
+
*/
|
|
18
|
+
linkedEvals?: string[];
|
|
19
|
+
/**
|
|
20
|
+
* Ids of all datasets that include the datapoint
|
|
21
|
+
*/
|
|
22
|
+
linkedDatasets?: string[];
|
|
23
|
+
/**
|
|
24
|
+
* Any additional metadata for the datapoint
|
|
25
|
+
*/
|
|
26
|
+
metadata?: Record<string, any>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __extends = (this && this.__extends) || (function () {
|
|
6
|
+
var extendStatics = function (d, b) {
|
|
7
|
+
extendStatics = Object.setPrototypeOf ||
|
|
8
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
9
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
10
|
+
return extendStatics(d, b);
|
|
11
|
+
};
|
|
12
|
+
return function (d, b) {
|
|
13
|
+
if (typeof b !== "function" && b !== null)
|
|
14
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
15
|
+
extendStatics(d, b);
|
|
16
|
+
function __() { this.constructor = d; }
|
|
17
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
18
|
+
};
|
|
19
|
+
})();
|
|
20
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
21
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
22
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
23
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
24
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
25
|
+
};
|
|
26
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
27
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
28
|
+
};
|
|
29
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
+
exports.UpdateDatapointRequest = void 0;
|
|
31
|
+
var utils_1 = require("../../internal/utils");
|
|
32
|
+
var class_transformer_1 = require("class-transformer");
|
|
33
|
+
var UpdateDatapointRequest = /** @class */ (function (_super) {
|
|
34
|
+
__extends(UpdateDatapointRequest, _super);
|
|
35
|
+
function UpdateDatapointRequest() {
|
|
36
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
37
|
+
}
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
40
|
+
(0, class_transformer_1.Expose)({ name: "inputs" }),
|
|
41
|
+
__metadata("design:type", Object)
|
|
42
|
+
], UpdateDatapointRequest.prototype, "inputs", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
45
|
+
(0, class_transformer_1.Expose)({ name: "history" }),
|
|
46
|
+
__metadata("design:type", Array)
|
|
47
|
+
], UpdateDatapointRequest.prototype, "history", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
50
|
+
(0, class_transformer_1.Expose)({ name: "ground_truth" }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], UpdateDatapointRequest.prototype, "groundTruth", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
55
|
+
(0, class_transformer_1.Expose)({ name: "linked_evals" }),
|
|
56
|
+
__metadata("design:type", Array)
|
|
57
|
+
], UpdateDatapointRequest.prototype, "linkedEvals", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
60
|
+
(0, class_transformer_1.Expose)({ name: "linked_datasets" }),
|
|
61
|
+
__metadata("design:type", Array)
|
|
62
|
+
], UpdateDatapointRequest.prototype, "linkedDatasets", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
65
|
+
(0, class_transformer_1.Expose)({ name: "metadata" }),
|
|
66
|
+
__metadata("design:type", Object)
|
|
67
|
+
], UpdateDatapointRequest.prototype, "metadata", void 0);
|
|
68
|
+
return UpdateDatapointRequest;
|
|
69
|
+
}(utils_1.SpeakeasyBase));
|
|
70
|
+
exports.UpdateDatapointRequest = UpdateDatapointRequest;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __extends = (this && this.__extends) || (function () {
|
|
6
|
+
var extendStatics = function (d, b) {
|
|
7
|
+
extendStatics = Object.setPrototypeOf ||
|
|
8
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
9
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
10
|
+
return extendStatics(d, b);
|
|
11
|
+
};
|
|
12
|
+
return function (d, b) {
|
|
13
|
+
if (typeof b !== "function" && b !== null)
|
|
14
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
15
|
+
extendStatics(d, b);
|
|
16
|
+
function __() { this.constructor = d; }
|
|
17
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
18
|
+
};
|
|
19
|
+
})();
|
|
20
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
21
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
22
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
23
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
24
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
25
|
+
};
|
|
26
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
27
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
28
|
+
};
|
|
29
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
+
exports.UpdateProjectRequest = void 0;
|
|
31
|
+
var utils_1 = require("../../internal/utils");
|
|
32
|
+
var class_transformer_1 = require("class-transformer");
|
|
33
|
+
var UpdateProjectRequest = /** @class */ (function (_super) {
|
|
34
|
+
__extends(UpdateProjectRequest, _super);
|
|
35
|
+
function UpdateProjectRequest() {
|
|
36
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
37
|
+
}
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
40
|
+
(0, class_transformer_1.Expose)({ name: "project_id" }),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], UpdateProjectRequest.prototype, "projectId", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
45
|
+
(0, class_transformer_1.Expose)({ name: "name" }),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], UpdateProjectRequest.prototype, "name", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
50
|
+
(0, class_transformer_1.Expose)({ name: "description" }),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], UpdateProjectRequest.prototype, "description", void 0);
|
|
53
|
+
return UpdateProjectRequest;
|
|
54
|
+
}(utils_1.SpeakeasyBase));
|
|
55
|
+
exports.UpdateProjectRequest = UpdateProjectRequest;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { SpeakeasyBase } from "../../internal/utils";
|
|
2
|
+
export declare enum UpdateRunRequestStatus {
|
|
3
|
+
Pending = "pending",
|
|
4
|
+
Completed = "completed"
|
|
5
|
+
}
|
|
6
|
+
export declare class UpdateRunRequest extends SpeakeasyBase {
|
|
7
|
+
/**
|
|
8
|
+
* Additional sessions/events to associate with this run
|
|
9
|
+
*/
|
|
10
|
+
eventIds?: string[];
|
|
11
|
+
/**
|
|
12
|
+
* The UUID of the dataset this run is associated with
|
|
13
|
+
*/
|
|
14
|
+
datasetId?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Additional datapoints to associate with this run
|
|
17
|
+
*/
|
|
18
|
+
datapointIds?: string[];
|
|
19
|
+
/**
|
|
20
|
+
* The configuration being used for this run
|
|
21
|
+
*/
|
|
22
|
+
configuration?: Record<string, any>;
|
|
23
|
+
/**
|
|
24
|
+
* Additional metadata for the run
|
|
25
|
+
*/
|
|
26
|
+
metadata?: Record<string, any>;
|
|
27
|
+
/**
|
|
28
|
+
* The name of the run to be displayed
|
|
29
|
+
*/
|
|
30
|
+
name?: string;
|
|
31
|
+
status?: UpdateRunRequestStatus;
|
|
32
|
+
}
|