vellum-ai 0.1.2 → 0.1.4
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/Client.js +6 -6
- package/api/client/requests/ExecuteWorkflowStreamRequest.d.ts +1 -0
- package/api/resources/deployments/client/Client.js +1 -1
- package/api/resources/documentIndexes/client/Client.js +2 -2
- package/api/resources/documents/client/Client.js +4 -4
- package/api/resources/modelVersions/client/Client.js +1 -1
- package/api/resources/registeredPrompts/client/Client.js +1 -1
- package/api/resources/sandboxes/client/Client.js +2 -2
- package/api/resources/testSuites/client/Client.js +2 -2
- package/api/resources/testSuites/client/requests/TestSuiteTestCaseRequest.d.ts +3 -7
- package/api/types/SearchResultDocumentRequest.d.ts +11 -0
- package/api/types/SearchResultDocumentRequest.js +5 -0
- package/api/types/SearchResultRequest.d.ts +13 -0
- package/api/types/SearchResultRequest.js +5 -0
- package/api/types/TestCaseChatHistoryVariableValue.d.ts +8 -0
- package/api/types/TestCaseChatHistoryVariableValue.js +5 -0
- package/api/types/TestCaseChatHistoryVariableValueRequest.d.ts +8 -0
- package/api/types/TestCaseChatHistoryVariableValueRequest.js +5 -0
- package/api/types/TestCaseErrorVariableValue.d.ts +8 -0
- package/api/types/TestCaseErrorVariableValue.js +5 -0
- package/api/types/TestCaseErrorVariableValueRequest.d.ts +8 -0
- package/api/types/TestCaseErrorVariableValueRequest.js +5 -0
- package/api/types/TestCaseJsonVariableValue.d.ts +7 -0
- package/api/types/TestCaseJsonVariableValue.js +5 -0
- package/api/types/TestCaseJsonVariableValueRequest.d.ts +7 -0
- package/api/types/TestCaseJsonVariableValueRequest.js +5 -0
- package/api/types/TestCaseNumberVariableValue.d.ts +7 -0
- package/api/types/TestCaseNumberVariableValue.js +5 -0
- package/api/types/TestCaseNumberVariableValueRequest.d.ts +7 -0
- package/api/types/TestCaseNumberVariableValueRequest.js +5 -0
- package/api/types/TestCaseSearchResultsVariableValue.d.ts +8 -0
- package/api/types/TestCaseSearchResultsVariableValue.js +5 -0
- package/api/types/TestCaseSearchResultsVariableValueRequest.d.ts +8 -0
- package/api/types/TestCaseSearchResultsVariableValueRequest.js +5 -0
- package/api/types/TestCaseStringVariableValue.d.ts +7 -0
- package/api/types/TestCaseStringVariableValue.js +5 -0
- package/api/types/TestCaseStringVariableValueRequest.d.ts +7 -0
- package/api/types/TestCaseStringVariableValueRequest.js +5 -0
- package/api/types/TestCaseVariableValue.d.ts +25 -0
- package/api/types/TestCaseVariableValue.js +5 -0
- package/api/types/TestCaseVariableValueRequest.d.ts +25 -0
- package/api/types/TestCaseVariableValueRequest.js +5 -0
- package/api/types/TestSuiteTestCase.d.ts +3 -7
- package/api/types/VellumErrorRequest.d.ts +8 -0
- package/api/types/VellumErrorRequest.js +5 -0
- package/api/types/index.d.ts +17 -0
- package/api/types/index.js +17 -0
- package/dist/Client.js +6 -6
- package/dist/api/client/requests/ExecuteWorkflowStreamRequest.d.ts +1 -0
- package/dist/api/resources/deployments/client/Client.js +1 -1
- package/dist/api/resources/documentIndexes/client/Client.js +2 -2
- package/dist/api/resources/documents/client/Client.js +4 -4
- package/dist/api/resources/modelVersions/client/Client.js +1 -1
- package/dist/api/resources/registeredPrompts/client/Client.js +1 -1
- package/dist/api/resources/sandboxes/client/Client.js +2 -2
- package/dist/api/resources/testSuites/client/Client.js +2 -2
- package/dist/api/resources/testSuites/client/requests/TestSuiteTestCaseRequest.d.ts +3 -7
- package/dist/api/types/SearchResultDocumentRequest.d.ts +11 -0
- package/dist/api/types/SearchResultDocumentRequest.js +5 -0
- package/dist/api/types/SearchResultRequest.d.ts +13 -0
- package/dist/api/types/SearchResultRequest.js +5 -0
- package/dist/api/types/TestCaseChatHistoryVariableValue.d.ts +8 -0
- package/dist/api/types/TestCaseChatHistoryVariableValue.js +5 -0
- package/dist/api/types/TestCaseChatHistoryVariableValueRequest.d.ts +8 -0
- package/dist/api/types/TestCaseChatHistoryVariableValueRequest.js +5 -0
- package/dist/api/types/TestCaseErrorVariableValue.d.ts +8 -0
- package/dist/api/types/TestCaseErrorVariableValue.js +5 -0
- package/dist/api/types/TestCaseErrorVariableValueRequest.d.ts +8 -0
- package/dist/api/types/TestCaseErrorVariableValueRequest.js +5 -0
- package/dist/api/types/TestCaseJsonVariableValue.d.ts +7 -0
- package/dist/api/types/TestCaseJsonVariableValue.js +5 -0
- package/dist/api/types/TestCaseJsonVariableValueRequest.d.ts +7 -0
- package/dist/api/types/TestCaseJsonVariableValueRequest.js +5 -0
- package/dist/api/types/TestCaseNumberVariableValue.d.ts +7 -0
- package/dist/api/types/TestCaseNumberVariableValue.js +5 -0
- package/dist/api/types/TestCaseNumberVariableValueRequest.d.ts +7 -0
- package/dist/api/types/TestCaseNumberVariableValueRequest.js +5 -0
- package/dist/api/types/TestCaseSearchResultsVariableValue.d.ts +8 -0
- package/dist/api/types/TestCaseSearchResultsVariableValue.js +5 -0
- package/dist/api/types/TestCaseSearchResultsVariableValueRequest.d.ts +8 -0
- package/dist/api/types/TestCaseSearchResultsVariableValueRequest.js +5 -0
- package/dist/api/types/TestCaseStringVariableValue.d.ts +7 -0
- package/dist/api/types/TestCaseStringVariableValue.js +5 -0
- package/dist/api/types/TestCaseStringVariableValueRequest.d.ts +7 -0
- package/dist/api/types/TestCaseStringVariableValueRequest.js +5 -0
- package/dist/api/types/TestCaseVariableValue.d.ts +25 -0
- package/dist/api/types/TestCaseVariableValue.js +5 -0
- package/dist/api/types/TestCaseVariableValueRequest.d.ts +25 -0
- package/dist/api/types/TestCaseVariableValueRequest.js +5 -0
- package/dist/api/types/TestSuiteTestCase.d.ts +3 -7
- package/dist/api/types/VellumErrorRequest.d.ts +8 -0
- package/dist/api/types/VellumErrorRequest.js +5 -0
- package/dist/api/types/index.d.ts +17 -0
- package/dist/api/types/index.js +17 -0
- package/dist/serialization/resources/testSuites/client/requests/TestSuiteTestCaseRequest.d.ts +3 -3
- package/dist/serialization/resources/testSuites/client/requests/TestSuiteTestCaseRequest.js +3 -3
- package/dist/serialization/types/SearchResultDocumentRequest.d.ts +14 -0
- package/dist/serialization/types/SearchResultDocumentRequest.js +35 -0
- package/dist/serialization/types/SearchResultRequest.d.ts +15 -0
- package/dist/serialization/types/SearchResultRequest.js +45 -0
- package/dist/serialization/types/TestCaseChatHistoryVariableValue.d.ts +13 -0
- package/dist/serialization/types/TestCaseChatHistoryVariableValue.js +45 -0
- package/dist/serialization/types/TestCaseChatHistoryVariableValueRequest.d.ts +13 -0
- package/dist/serialization/types/TestCaseChatHistoryVariableValueRequest.js +45 -0
- package/dist/serialization/types/TestCaseErrorVariableValue.d.ts +13 -0
- package/dist/serialization/types/TestCaseErrorVariableValue.js +43 -0
- package/dist/serialization/types/TestCaseErrorVariableValueRequest.d.ts +13 -0
- package/dist/serialization/types/TestCaseErrorVariableValueRequest.js +43 -0
- package/dist/serialization/types/TestCaseJsonVariableValue.d.ts +13 -0
- package/dist/serialization/types/TestCaseJsonVariableValue.js +34 -0
- package/dist/serialization/types/TestCaseJsonVariableValueRequest.d.ts +13 -0
- package/dist/serialization/types/TestCaseJsonVariableValueRequest.js +34 -0
- package/dist/serialization/types/TestCaseNumberVariableValue.d.ts +13 -0
- package/dist/serialization/types/TestCaseNumberVariableValue.js +34 -0
- package/dist/serialization/types/TestCaseNumberVariableValueRequest.d.ts +13 -0
- package/dist/serialization/types/TestCaseNumberVariableValueRequest.js +34 -0
- package/dist/serialization/types/TestCaseSearchResultsVariableValue.d.ts +13 -0
- package/dist/serialization/types/TestCaseSearchResultsVariableValue.js +45 -0
- package/dist/serialization/types/TestCaseSearchResultsVariableValueRequest.d.ts +13 -0
- package/dist/serialization/types/TestCaseSearchResultsVariableValueRequest.js +45 -0
- package/dist/serialization/types/TestCaseStringVariableValue.d.ts +13 -0
- package/dist/serialization/types/TestCaseStringVariableValue.js +34 -0
- package/dist/serialization/types/TestCaseStringVariableValueRequest.d.ts +13 -0
- package/dist/serialization/types/TestCaseStringVariableValueRequest.js +34 -0
- package/dist/serialization/types/TestCaseVariableValue.d.ts +28 -0
- package/dist/serialization/types/TestCaseVariableValue.js +52 -0
- package/dist/serialization/types/TestCaseVariableValueRequest.d.ts +28 -0
- package/dist/serialization/types/TestCaseVariableValueRequest.js +52 -0
- package/dist/serialization/types/TestSuiteTestCase.d.ts +3 -3
- package/dist/serialization/types/TestSuiteTestCase.js +3 -3
- package/dist/serialization/types/VellumErrorRequest.d.ts +13 -0
- package/dist/serialization/types/VellumErrorRequest.js +43 -0
- package/dist/serialization/types/index.d.ts +17 -0
- package/dist/serialization/types/index.js +17 -0
- package/package.json +1 -1
- package/serialization/resources/testSuites/client/requests/TestSuiteTestCaseRequest.d.ts +3 -3
- package/serialization/resources/testSuites/client/requests/TestSuiteTestCaseRequest.js +3 -3
- package/serialization/types/SearchResultDocumentRequest.d.ts +14 -0
- package/serialization/types/SearchResultDocumentRequest.js +35 -0
- package/serialization/types/SearchResultRequest.d.ts +15 -0
- package/serialization/types/SearchResultRequest.js +45 -0
- package/serialization/types/TestCaseChatHistoryVariableValue.d.ts +13 -0
- package/serialization/types/TestCaseChatHistoryVariableValue.js +45 -0
- package/serialization/types/TestCaseChatHistoryVariableValueRequest.d.ts +13 -0
- package/serialization/types/TestCaseChatHistoryVariableValueRequest.js +45 -0
- package/serialization/types/TestCaseErrorVariableValue.d.ts +13 -0
- package/serialization/types/TestCaseErrorVariableValue.js +43 -0
- package/serialization/types/TestCaseErrorVariableValueRequest.d.ts +13 -0
- package/serialization/types/TestCaseErrorVariableValueRequest.js +43 -0
- package/serialization/types/TestCaseJsonVariableValue.d.ts +13 -0
- package/serialization/types/TestCaseJsonVariableValue.js +34 -0
- package/serialization/types/TestCaseJsonVariableValueRequest.d.ts +13 -0
- package/serialization/types/TestCaseJsonVariableValueRequest.js +34 -0
- package/serialization/types/TestCaseNumberVariableValue.d.ts +13 -0
- package/serialization/types/TestCaseNumberVariableValue.js +34 -0
- package/serialization/types/TestCaseNumberVariableValueRequest.d.ts +13 -0
- package/serialization/types/TestCaseNumberVariableValueRequest.js +34 -0
- package/serialization/types/TestCaseSearchResultsVariableValue.d.ts +13 -0
- package/serialization/types/TestCaseSearchResultsVariableValue.js +45 -0
- package/serialization/types/TestCaseSearchResultsVariableValueRequest.d.ts +13 -0
- package/serialization/types/TestCaseSearchResultsVariableValueRequest.js +45 -0
- package/serialization/types/TestCaseStringVariableValue.d.ts +13 -0
- package/serialization/types/TestCaseStringVariableValue.js +34 -0
- package/serialization/types/TestCaseStringVariableValueRequest.d.ts +13 -0
- package/serialization/types/TestCaseStringVariableValueRequest.js +34 -0
- package/serialization/types/TestCaseVariableValue.d.ts +28 -0
- package/serialization/types/TestCaseVariableValue.js +52 -0
- package/serialization/types/TestCaseVariableValueRequest.d.ts +28 -0
- package/serialization/types/TestCaseVariableValueRequest.js +52 -0
- package/serialization/types/TestSuiteTestCase.d.ts +3 -3
- package/serialization/types/TestSuiteTestCase.js +3 -3
- package/serialization/types/VellumErrorRequest.d.ts +13 -0
- package/serialization/types/VellumErrorRequest.js +43 -0
- package/serialization/types/index.d.ts +17 -0
- package/serialization/types/index.js +17 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "..";
|
|
5
|
+
import * as Vellum from "../../api";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const TestCaseSearchResultsVariableValueRequest: core.serialization.ObjectSchema<serializers.TestCaseSearchResultsVariableValueRequest.Raw, Vellum.TestCaseSearchResultsVariableValueRequest>;
|
|
8
|
+
export declare namespace TestCaseSearchResultsVariableValueRequest {
|
|
9
|
+
interface Raw {
|
|
10
|
+
variable_id: string;
|
|
11
|
+
value?: serializers.SearchResultRequest.Raw[] | null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
+
exports.TestCaseSearchResultsVariableValueRequest = void 0;
|
|
39
|
+
const core = __importStar(require("../../core"));
|
|
40
|
+
exports.TestCaseSearchResultsVariableValueRequest = core.serialization.object({
|
|
41
|
+
variableId: core.serialization.property("variable_id", core.serialization.string()),
|
|
42
|
+
value: core.serialization
|
|
43
|
+
.list(core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).SearchResultRequest; })))
|
|
44
|
+
.optional(),
|
|
45
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "..";
|
|
5
|
+
import * as Vellum from "../../api";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const TestCaseStringVariableValue: core.serialization.ObjectSchema<serializers.TestCaseStringVariableValue.Raw, Vellum.TestCaseStringVariableValue>;
|
|
8
|
+
export declare namespace TestCaseStringVariableValue {
|
|
9
|
+
interface Raw {
|
|
10
|
+
variable_id: string;
|
|
11
|
+
value?: string | null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.TestCaseStringVariableValue = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.TestCaseStringVariableValue = core.serialization.object({
|
|
32
|
+
variableId: core.serialization.property("variable_id", core.serialization.string()),
|
|
33
|
+
value: core.serialization.string().optional(),
|
|
34
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "..";
|
|
5
|
+
import * as Vellum from "../../api";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const TestCaseStringVariableValueRequest: core.serialization.ObjectSchema<serializers.TestCaseStringVariableValueRequest.Raw, Vellum.TestCaseStringVariableValueRequest>;
|
|
8
|
+
export declare namespace TestCaseStringVariableValueRequest {
|
|
9
|
+
interface Raw {
|
|
10
|
+
variable_id: string;
|
|
11
|
+
value?: string | null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.TestCaseStringVariableValueRequest = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.TestCaseStringVariableValueRequest = core.serialization.object({
|
|
32
|
+
variableId: core.serialization.property("variable_id", core.serialization.string()),
|
|
33
|
+
value: core.serialization.string().optional(),
|
|
34
|
+
});
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "..";
|
|
5
|
+
import * as Vellum from "../../api";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const TestCaseVariableValue: core.serialization.Schema<serializers.TestCaseVariableValue.Raw, Vellum.TestCaseVariableValue>;
|
|
8
|
+
export declare namespace TestCaseVariableValue {
|
|
9
|
+
type Raw = TestCaseVariableValue.String | TestCaseVariableValue.Number | TestCaseVariableValue.Json | TestCaseVariableValue.ChatHistory | TestCaseVariableValue.SearchResults | TestCaseVariableValue.Error;
|
|
10
|
+
interface String extends serializers.TestCaseStringVariableValue.Raw {
|
|
11
|
+
type: "STRING";
|
|
12
|
+
}
|
|
13
|
+
interface Number extends serializers.TestCaseNumberVariableValue.Raw {
|
|
14
|
+
type: "NUMBER";
|
|
15
|
+
}
|
|
16
|
+
interface Json extends serializers.TestCaseJsonVariableValue.Raw {
|
|
17
|
+
type: "JSON";
|
|
18
|
+
}
|
|
19
|
+
interface ChatHistory extends serializers.TestCaseChatHistoryVariableValue.Raw {
|
|
20
|
+
type: "CHAT_HISTORY";
|
|
21
|
+
}
|
|
22
|
+
interface SearchResults extends serializers.TestCaseSearchResultsVariableValue.Raw {
|
|
23
|
+
type: "SEARCH_RESULTS";
|
|
24
|
+
}
|
|
25
|
+
interface Error extends serializers.TestCaseErrorVariableValue.Raw {
|
|
26
|
+
type: "ERROR";
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
+
exports.TestCaseVariableValue = void 0;
|
|
39
|
+
const core = __importStar(require("../../core"));
|
|
40
|
+
exports.TestCaseVariableValue = core.serialization
|
|
41
|
+
.union("type", {
|
|
42
|
+
STRING: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).TestCaseStringVariableValue; })),
|
|
43
|
+
NUMBER: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).TestCaseNumberVariableValue; })),
|
|
44
|
+
JSON: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).TestCaseJsonVariableValue; })),
|
|
45
|
+
CHAT_HISTORY: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).TestCaseChatHistoryVariableValue; })),
|
|
46
|
+
SEARCH_RESULTS: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).TestCaseSearchResultsVariableValue; })),
|
|
47
|
+
ERROR: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).TestCaseErrorVariableValue; })),
|
|
48
|
+
})
|
|
49
|
+
.transform({
|
|
50
|
+
transform: (value) => value,
|
|
51
|
+
untransform: (value) => value,
|
|
52
|
+
});
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "..";
|
|
5
|
+
import * as Vellum from "../../api";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const TestCaseVariableValueRequest: core.serialization.Schema<serializers.TestCaseVariableValueRequest.Raw, Vellum.TestCaseVariableValueRequest>;
|
|
8
|
+
export declare namespace TestCaseVariableValueRequest {
|
|
9
|
+
type Raw = TestCaseVariableValueRequest.String | TestCaseVariableValueRequest.Number | TestCaseVariableValueRequest.Json | TestCaseVariableValueRequest.ChatHistory | TestCaseVariableValueRequest.SearchResults | TestCaseVariableValueRequest.Error;
|
|
10
|
+
interface String extends serializers.TestCaseStringVariableValueRequest.Raw {
|
|
11
|
+
type: "STRING";
|
|
12
|
+
}
|
|
13
|
+
interface Number extends serializers.TestCaseNumberVariableValueRequest.Raw {
|
|
14
|
+
type: "NUMBER";
|
|
15
|
+
}
|
|
16
|
+
interface Json extends serializers.TestCaseJsonVariableValueRequest.Raw {
|
|
17
|
+
type: "JSON";
|
|
18
|
+
}
|
|
19
|
+
interface ChatHistory extends serializers.TestCaseChatHistoryVariableValueRequest.Raw {
|
|
20
|
+
type: "CHAT_HISTORY";
|
|
21
|
+
}
|
|
22
|
+
interface SearchResults extends serializers.TestCaseSearchResultsVariableValueRequest.Raw {
|
|
23
|
+
type: "SEARCH_RESULTS";
|
|
24
|
+
}
|
|
25
|
+
interface Error extends serializers.TestCaseErrorVariableValueRequest.Raw {
|
|
26
|
+
type: "ERROR";
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
+
exports.TestCaseVariableValueRequest = void 0;
|
|
39
|
+
const core = __importStar(require("../../core"));
|
|
40
|
+
exports.TestCaseVariableValueRequest = core.serialization
|
|
41
|
+
.union("type", {
|
|
42
|
+
STRING: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).TestCaseStringVariableValueRequest; })),
|
|
43
|
+
NUMBER: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).TestCaseNumberVariableValueRequest; })),
|
|
44
|
+
JSON: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).TestCaseJsonVariableValueRequest; })),
|
|
45
|
+
CHAT_HISTORY: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).TestCaseChatHistoryVariableValueRequest; })),
|
|
46
|
+
SEARCH_RESULTS: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).TestCaseSearchResultsVariableValueRequest; })),
|
|
47
|
+
ERROR: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).TestCaseErrorVariableValueRequest; })),
|
|
48
|
+
})
|
|
49
|
+
.transform({
|
|
50
|
+
transform: (value) => value,
|
|
51
|
+
untransform: (value) => value,
|
|
52
|
+
});
|
|
@@ -7,9 +7,9 @@ import * as core from "../../core";
|
|
|
7
7
|
export declare const TestSuiteTestCase: core.serialization.ObjectSchema<serializers.TestSuiteTestCase.Raw, Vellum.TestSuiteTestCase>;
|
|
8
8
|
export declare namespace TestSuiteTestCase {
|
|
9
9
|
interface Raw {
|
|
10
|
-
|
|
10
|
+
id?: string | null;
|
|
11
11
|
label?: string | null;
|
|
12
|
-
input_values:
|
|
13
|
-
|
|
12
|
+
input_values: serializers.TestCaseVariableValue.Raw[];
|
|
13
|
+
evaluation_values: serializers.TestCaseVariableValue.Raw[];
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -38,8 +38,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
38
38
|
exports.TestSuiteTestCase = void 0;
|
|
39
39
|
const core = __importStar(require("../../core"));
|
|
40
40
|
exports.TestSuiteTestCase = core.serialization.object({
|
|
41
|
-
|
|
41
|
+
id: core.serialization.string().optional(),
|
|
42
42
|
label: core.serialization.string().optional(),
|
|
43
|
-
inputValues: core.serialization.property("input_values", core.serialization.
|
|
44
|
-
|
|
43
|
+
inputValues: core.serialization.property("input_values", core.serialization.list(core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).TestCaseVariableValue; })))),
|
|
44
|
+
evaluationValues: core.serialization.property("evaluation_values", core.serialization.list(core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).TestCaseVariableValue; })))),
|
|
45
45
|
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "..";
|
|
5
|
+
import * as Vellum from "../../api";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const VellumErrorRequest: core.serialization.ObjectSchema<serializers.VellumErrorRequest.Raw, Vellum.VellumErrorRequest>;
|
|
8
|
+
export declare namespace VellumErrorRequest {
|
|
9
|
+
interface Raw {
|
|
10
|
+
message: string;
|
|
11
|
+
code: serializers.VellumErrorCodeEnum.Raw;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
+
exports.VellumErrorRequest = void 0;
|
|
39
|
+
const core = __importStar(require("../../core"));
|
|
40
|
+
exports.VellumErrorRequest = core.serialization.object({
|
|
41
|
+
message: core.serialization.string(),
|
|
42
|
+
code: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).VellumErrorCodeEnum; })),
|
|
43
|
+
});
|
|
@@ -86,7 +86,9 @@ export * from "./SearchRequestOptionsRequest";
|
|
|
86
86
|
export * from "./SearchResponse";
|
|
87
87
|
export * from "./SearchResult";
|
|
88
88
|
export * from "./SearchResultDocument";
|
|
89
|
+
export * from "./SearchResultDocumentRequest";
|
|
89
90
|
export * from "./SearchResultMergingRequest";
|
|
91
|
+
export * from "./SearchResultRequest";
|
|
90
92
|
export * from "./SearchWeightsRequest";
|
|
91
93
|
export * from "./SlimDocument";
|
|
92
94
|
export * from "./SubmitCompletionActualRequest";
|
|
@@ -110,11 +112,26 @@ export * from "./TerminalNodeResultData";
|
|
|
110
112
|
export * from "./TerminalNodeResultOutput";
|
|
111
113
|
export * from "./TerminalNodeSearchResultsResult";
|
|
112
114
|
export * from "./TerminalNodeStringResult";
|
|
115
|
+
export * from "./TestCaseChatHistoryVariableValue";
|
|
116
|
+
export * from "./TestCaseChatHistoryVariableValueRequest";
|
|
117
|
+
export * from "./TestCaseErrorVariableValue";
|
|
118
|
+
export * from "./TestCaseErrorVariableValueRequest";
|
|
119
|
+
export * from "./TestCaseJsonVariableValue";
|
|
120
|
+
export * from "./TestCaseJsonVariableValueRequest";
|
|
121
|
+
export * from "./TestCaseNumberVariableValue";
|
|
122
|
+
export * from "./TestCaseNumberVariableValueRequest";
|
|
123
|
+
export * from "./TestCaseSearchResultsVariableValue";
|
|
124
|
+
export * from "./TestCaseSearchResultsVariableValueRequest";
|
|
125
|
+
export * from "./TestCaseStringVariableValue";
|
|
126
|
+
export * from "./TestCaseStringVariableValueRequest";
|
|
127
|
+
export * from "./TestCaseVariableValue";
|
|
128
|
+
export * from "./TestCaseVariableValueRequest";
|
|
113
129
|
export * from "./TestSuiteTestCase";
|
|
114
130
|
export * from "./UploadDocumentErrorResponse";
|
|
115
131
|
export * from "./UploadDocumentResponse";
|
|
116
132
|
export * from "./VellumError";
|
|
117
133
|
export * from "./VellumErrorCodeEnum";
|
|
134
|
+
export * from "./VellumErrorRequest";
|
|
118
135
|
export * from "./VellumVariable";
|
|
119
136
|
export * from "./VellumVariableType";
|
|
120
137
|
export * from "./WorkflowEventError";
|
|
@@ -102,7 +102,9 @@ __exportStar(require("./SearchRequestOptionsRequest"), exports);
|
|
|
102
102
|
__exportStar(require("./SearchResponse"), exports);
|
|
103
103
|
__exportStar(require("./SearchResult"), exports);
|
|
104
104
|
__exportStar(require("./SearchResultDocument"), exports);
|
|
105
|
+
__exportStar(require("./SearchResultDocumentRequest"), exports);
|
|
105
106
|
__exportStar(require("./SearchResultMergingRequest"), exports);
|
|
107
|
+
__exportStar(require("./SearchResultRequest"), exports);
|
|
106
108
|
__exportStar(require("./SearchWeightsRequest"), exports);
|
|
107
109
|
__exportStar(require("./SlimDocument"), exports);
|
|
108
110
|
__exportStar(require("./SubmitCompletionActualRequest"), exports);
|
|
@@ -126,11 +128,26 @@ __exportStar(require("./TerminalNodeResultData"), exports);
|
|
|
126
128
|
__exportStar(require("./TerminalNodeResultOutput"), exports);
|
|
127
129
|
__exportStar(require("./TerminalNodeSearchResultsResult"), exports);
|
|
128
130
|
__exportStar(require("./TerminalNodeStringResult"), exports);
|
|
131
|
+
__exportStar(require("./TestCaseChatHistoryVariableValue"), exports);
|
|
132
|
+
__exportStar(require("./TestCaseChatHistoryVariableValueRequest"), exports);
|
|
133
|
+
__exportStar(require("./TestCaseErrorVariableValue"), exports);
|
|
134
|
+
__exportStar(require("./TestCaseErrorVariableValueRequest"), exports);
|
|
135
|
+
__exportStar(require("./TestCaseJsonVariableValue"), exports);
|
|
136
|
+
__exportStar(require("./TestCaseJsonVariableValueRequest"), exports);
|
|
137
|
+
__exportStar(require("./TestCaseNumberVariableValue"), exports);
|
|
138
|
+
__exportStar(require("./TestCaseNumberVariableValueRequest"), exports);
|
|
139
|
+
__exportStar(require("./TestCaseSearchResultsVariableValue"), exports);
|
|
140
|
+
__exportStar(require("./TestCaseSearchResultsVariableValueRequest"), exports);
|
|
141
|
+
__exportStar(require("./TestCaseStringVariableValue"), exports);
|
|
142
|
+
__exportStar(require("./TestCaseStringVariableValueRequest"), exports);
|
|
143
|
+
__exportStar(require("./TestCaseVariableValue"), exports);
|
|
144
|
+
__exportStar(require("./TestCaseVariableValueRequest"), exports);
|
|
129
145
|
__exportStar(require("./TestSuiteTestCase"), exports);
|
|
130
146
|
__exportStar(require("./UploadDocumentErrorResponse"), exports);
|
|
131
147
|
__exportStar(require("./UploadDocumentResponse"), exports);
|
|
132
148
|
__exportStar(require("./VellumError"), exports);
|
|
133
149
|
__exportStar(require("./VellumErrorCodeEnum"), exports);
|
|
150
|
+
__exportStar(require("./VellumErrorRequest"), exports);
|
|
134
151
|
__exportStar(require("./VellumVariable"), exports);
|
|
135
152
|
__exportStar(require("./VellumVariableType"), exports);
|
|
136
153
|
__exportStar(require("./WorkflowEventError"), exports);
|
package/package.json
CHANGED
|
@@ -7,9 +7,9 @@ import * as core from "../../../../../core";
|
|
|
7
7
|
export declare const TestSuiteTestCaseRequest: core.serialization.Schema<serializers.TestSuiteTestCaseRequest.Raw, Vellum.TestSuiteTestCaseRequest>;
|
|
8
8
|
export declare namespace TestSuiteTestCaseRequest {
|
|
9
9
|
interface Raw {
|
|
10
|
-
|
|
10
|
+
id?: string | null;
|
|
11
11
|
label?: string | null;
|
|
12
|
-
input_values:
|
|
13
|
-
|
|
12
|
+
input_values: serializers.TestCaseVariableValueRequest.Raw[];
|
|
13
|
+
evaluation_values: serializers.TestCaseVariableValueRequest.Raw[];
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -38,8 +38,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
38
38
|
exports.TestSuiteTestCaseRequest = void 0;
|
|
39
39
|
const core = __importStar(require("../../../../../core"));
|
|
40
40
|
exports.TestSuiteTestCaseRequest = core.serialization.object({
|
|
41
|
-
|
|
41
|
+
testSuiteTestCaseRequestId: core.serialization.property("id", core.serialization.string().optional()),
|
|
42
42
|
label: core.serialization.string().optional(),
|
|
43
|
-
inputValues: core.serialization.property("input_values", core.serialization.
|
|
44
|
-
|
|
43
|
+
inputValues: core.serialization.property("input_values", core.serialization.list(core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../..")))).TestCaseVariableValueRequest; })))),
|
|
44
|
+
evaluationValues: core.serialization.property("evaluation_values", core.serialization.list(core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../..")))).TestCaseVariableValueRequest; })))),
|
|
45
45
|
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "..";
|
|
5
|
+
import * as Vellum from "../../api";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const SearchResultDocumentRequest: core.serialization.ObjectSchema<serializers.SearchResultDocumentRequest.Raw, Vellum.SearchResultDocumentRequest>;
|
|
8
|
+
export declare namespace SearchResultDocumentRequest {
|
|
9
|
+
interface Raw {
|
|
10
|
+
label: string;
|
|
11
|
+
external_id?: string | null;
|
|
12
|
+
metadata?: Record<string, unknown> | null;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.SearchResultDocumentRequest = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.SearchResultDocumentRequest = core.serialization.object({
|
|
32
|
+
label: core.serialization.string(),
|
|
33
|
+
externalId: core.serialization.property("external_id", core.serialization.string().optional()),
|
|
34
|
+
metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
|
|
35
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "..";
|
|
5
|
+
import * as Vellum from "../../api";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const SearchResultRequest: core.serialization.ObjectSchema<serializers.SearchResultRequest.Raw, Vellum.SearchResultRequest>;
|
|
8
|
+
export declare namespace SearchResultRequest {
|
|
9
|
+
interface Raw {
|
|
10
|
+
text: string;
|
|
11
|
+
score: number;
|
|
12
|
+
keywords: string[];
|
|
13
|
+
document: serializers.SearchResultDocumentRequest.Raw;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
+
exports.SearchResultRequest = void 0;
|
|
39
|
+
const core = __importStar(require("../../core"));
|
|
40
|
+
exports.SearchResultRequest = core.serialization.object({
|
|
41
|
+
text: core.serialization.string(),
|
|
42
|
+
score: core.serialization.number(),
|
|
43
|
+
keywords: core.serialization.list(core.serialization.string()),
|
|
44
|
+
document: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).SearchResultDocumentRequest; })),
|
|
45
|
+
});
|