vellum-ai 0.8.19 → 0.8.22
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/.mock/definition/__package__.yml +21 -0
- package/.mock/definition/deployments.yml +3 -0
- package/.mock/definition/sandboxes.yml +3 -0
- package/.mock/definition/testSuiteRuns.yml +10 -1
- package/.mock/definition/workflowDeployments.yml +6 -0
- package/.mock/definition/workflowSandboxes.yml +6 -0
- package/.mock/openapi/openapi.yml +44 -1
- package/Client.d.ts +2 -2
- package/Client.js +12 -12
- package/api/client/requests/CodeExecutorRequest.d.ts +2 -2
- package/api/client/requests/ExecuteWorkflowStreamRequest.d.ts +1 -1
- package/api/client/requests/GenerateStreamBodyRequest.d.ts +2 -2
- package/api/resources/adHoc/client/Client.js +1 -1
- package/api/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.d.ts +11 -3
- package/api/resources/deployments/client/Client.js +5 -5
- package/api/resources/documentIndexes/client/Client.js +8 -8
- package/api/resources/documents/client/Client.js +5 -5
- package/api/resources/folderEntities/client/Client.js +1 -1
- package/api/resources/metricDefinitions/client/Client.js +1 -1
- package/api/resources/sandboxes/client/Client.d.ts +2 -2
- package/api/resources/sandboxes/client/Client.js +5 -5
- package/api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequest.d.ts +2 -2
- package/api/resources/testSuiteRuns/client/Client.js +3 -3
- package/api/resources/testSuiteRuns/client/requests/TestSuiteRunCreateRequest.d.ts +3 -1
- package/api/resources/testSuites/client/Client.js +4 -4
- package/api/resources/workflowDeployments/client/Client.js +4 -4
- package/api/resources/workflowSandboxes/client/Client.js +1 -1
- package/api/types/VellumVariable.d.ts +3 -0
- package/api/types/VellumVariableExtensions.d.ts +9 -0
- package/api/types/VellumVariableExtensions.js +5 -0
- package/api/types/VellumVariableExtensionsRequest.d.ts +9 -0
- package/api/types/VellumVariableExtensionsRequest.js +5 -0
- package/api/types/VellumVariableRequest.d.ts +3 -0
- package/api/types/index.d.ts +2 -0
- package/api/types/index.js +2 -0
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +1 -2
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +4 -2
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +1 -1
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +1 -1
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +4 -2
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +1 -1
- package/core/form-data-utils/FormDataWrapper.d.ts +2 -2
- package/core/form-data-utils/FormDataWrapper.js +7 -7
- package/core/schemas/Schema.d.ts +1 -0
- package/core/schemas/Schema.js +1 -0
- package/core/schemas/builders/bigint/bigint.d.ts +2 -0
- package/core/schemas/builders/bigint/bigint.js +50 -0
- package/core/schemas/builders/bigint/index.d.ts +1 -0
- package/core/schemas/builders/bigint/index.js +5 -0
- package/core/schemas/builders/index.d.ts +1 -0
- package/core/schemas/builders/index.js +1 -0
- package/core/schemas/utils/getErrorMessageForIncorrectType.js +4 -0
- package/dist/Client.d.ts +2 -2
- package/dist/Client.js +12 -12
- package/dist/api/client/requests/CodeExecutorRequest.d.ts +2 -2
- package/dist/api/client/requests/ExecuteWorkflowStreamRequest.d.ts +1 -1
- package/dist/api/client/requests/GenerateStreamBodyRequest.d.ts +2 -2
- package/dist/api/resources/adHoc/client/Client.js +1 -1
- package/dist/api/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.d.ts +11 -3
- package/dist/api/resources/deployments/client/Client.js +5 -5
- package/dist/api/resources/documentIndexes/client/Client.js +8 -8
- package/dist/api/resources/documents/client/Client.js +5 -5
- package/dist/api/resources/folderEntities/client/Client.js +1 -1
- package/dist/api/resources/metricDefinitions/client/Client.js +1 -1
- package/dist/api/resources/sandboxes/client/Client.d.ts +2 -2
- package/dist/api/resources/sandboxes/client/Client.js +5 -5
- package/dist/api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequest.d.ts +2 -2
- package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
- package/dist/api/resources/testSuiteRuns/client/requests/TestSuiteRunCreateRequest.d.ts +3 -1
- package/dist/api/resources/testSuites/client/Client.js +4 -4
- package/dist/api/resources/workflowDeployments/client/Client.js +4 -4
- package/dist/api/resources/workflowSandboxes/client/Client.js +1 -1
- package/dist/api/types/VellumVariable.d.ts +3 -0
- package/dist/api/types/VellumVariableExtensions.d.ts +9 -0
- package/dist/api/types/VellumVariableExtensions.js +5 -0
- package/dist/api/types/VellumVariableExtensionsRequest.d.ts +9 -0
- package/dist/api/types/VellumVariableExtensionsRequest.js +5 -0
- package/dist/api/types/VellumVariableRequest.d.ts +3 -0
- package/dist/api/types/index.d.ts +2 -0
- package/dist/api/types/index.js +2 -0
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +1 -2
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +4 -2
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +1 -1
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +1 -1
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +4 -2
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +1 -1
- package/dist/core/form-data-utils/FormDataWrapper.d.ts +2 -2
- package/dist/core/form-data-utils/FormDataWrapper.js +7 -7
- package/dist/core/schemas/Schema.d.ts +1 -0
- package/dist/core/schemas/Schema.js +1 -0
- package/dist/core/schemas/builders/bigint/bigint.d.ts +2 -0
- package/dist/core/schemas/builders/bigint/bigint.js +50 -0
- package/dist/core/schemas/builders/bigint/index.d.ts +1 -0
- package/dist/core/schemas/builders/bigint/index.js +5 -0
- package/dist/core/schemas/builders/index.d.ts +1 -0
- package/dist/core/schemas/builders/index.js +1 -0
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +4 -0
- package/dist/serialization/resources/testSuiteRuns/client/requests/TestSuiteRunCreateRequest.d.ts +1 -0
- package/dist/serialization/resources/testSuiteRuns/client/requests/TestSuiteRunCreateRequest.js +1 -0
- package/dist/serialization/types/VellumVariable.d.ts +5 -0
- package/dist/serialization/types/VellumVariable.js +5 -0
- package/dist/serialization/types/VellumVariableExtensions.d.ts +12 -0
- package/dist/serialization/types/VellumVariableExtensions.js +33 -0
- package/dist/serialization/types/VellumVariableExtensionsRequest.d.ts +12 -0
- package/dist/serialization/types/VellumVariableExtensionsRequest.js +33 -0
- package/dist/serialization/types/VellumVariableRequest.d.ts +5 -0
- package/dist/serialization/types/VellumVariableRequest.js +5 -0
- package/dist/serialization/types/index.d.ts +2 -0
- package/dist/serialization/types/index.js +2 -0
- package/dist/version.d.ts +1 -0
- package/dist/version.js +4 -0
- package/package.json +6 -2
- package/reference.md +11 -3
- package/serialization/resources/testSuiteRuns/client/requests/TestSuiteRunCreateRequest.d.ts +1 -0
- package/serialization/resources/testSuiteRuns/client/requests/TestSuiteRunCreateRequest.js +1 -0
- package/serialization/types/VellumVariable.d.ts +5 -0
- package/serialization/types/VellumVariable.js +5 -0
- package/serialization/types/VellumVariableExtensions.d.ts +12 -0
- package/serialization/types/VellumVariableExtensions.js +33 -0
- package/serialization/types/VellumVariableExtensionsRequest.d.ts +12 -0
- package/serialization/types/VellumVariableExtensionsRequest.js +33 -0
- package/serialization/types/VellumVariableRequest.d.ts +5 -0
- package/serialization/types/VellumVariableRequest.js +5 -0
- package/serialization/types/index.d.ts +2 -0
- package/serialization/types/index.js +2 -0
- package/version.d.ts +1 -0
- package/version.js +4 -0
package/reference.md
CHANGED
|
@@ -116,7 +116,15 @@ await client.adHoc.adhocExecutePromptStream({
|
|
|
116
116
|
{
|
|
117
117
|
id: "string",
|
|
118
118
|
key: "string",
|
|
119
|
-
type:
|
|
119
|
+
type: "STRING",
|
|
120
|
+
required: true,
|
|
121
|
+
default: {
|
|
122
|
+
type: "STRING",
|
|
123
|
+
value: "string",
|
|
124
|
+
},
|
|
125
|
+
extensions: {
|
|
126
|
+
color: "string",
|
|
127
|
+
},
|
|
120
128
|
},
|
|
121
129
|
],
|
|
122
130
|
parameters: {
|
|
@@ -143,10 +151,10 @@ await client.adHoc.adhocExecutePromptStream({
|
|
|
143
151
|
blockType: "JINJA",
|
|
144
152
|
properties: {
|
|
145
153
|
template: "string",
|
|
146
|
-
templateType:
|
|
154
|
+
templateType: "STRING",
|
|
147
155
|
},
|
|
148
156
|
id: "string",
|
|
149
|
-
state:
|
|
157
|
+
state: "ENABLED",
|
|
150
158
|
cacheConfig: {
|
|
151
159
|
type: {
|
|
152
160
|
key: "value",
|
package/serialization/resources/testSuiteRuns/client/requests/TestSuiteRunCreateRequest.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export declare const TestSuiteRunCreateRequest: core.serialization.Schema<serial
|
|
|
9
9
|
export declare namespace TestSuiteRunCreateRequest {
|
|
10
10
|
interface Raw {
|
|
11
11
|
test_suite_id: string;
|
|
12
|
+
test_suite_name?: string | null;
|
|
12
13
|
exec_config: TestSuiteRunExecConfigRequest.Raw;
|
|
13
14
|
}
|
|
14
15
|
}
|
|
@@ -31,5 +31,6 @@ const core = __importStar(require("../../../../../core"));
|
|
|
31
31
|
const TestSuiteRunExecConfigRequest_1 = require("../../../../types/TestSuiteRunExecConfigRequest");
|
|
32
32
|
exports.TestSuiteRunCreateRequest = core.serialization.object({
|
|
33
33
|
testSuiteId: core.serialization.property("test_suite_id", core.serialization.string()),
|
|
34
|
+
testSuiteName: core.serialization.property("test_suite_name", core.serialization.string().optional()),
|
|
34
35
|
execConfig: core.serialization.property("exec_config", TestSuiteRunExecConfigRequest_1.TestSuiteRunExecConfigRequest),
|
|
35
36
|
});
|
|
@@ -5,11 +5,16 @@ import * as serializers from "../index";
|
|
|
5
5
|
import * as Vellum from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
import { VellumVariableType } from "./VellumVariableType";
|
|
8
|
+
import { VellumValue } from "./VellumValue";
|
|
9
|
+
import { VellumVariableExtensions } from "./VellumVariableExtensions";
|
|
8
10
|
export declare const VellumVariable: core.serialization.ObjectSchema<serializers.VellumVariable.Raw, Vellum.VellumVariable>;
|
|
9
11
|
export declare namespace VellumVariable {
|
|
10
12
|
interface Raw {
|
|
11
13
|
id: string;
|
|
12
14
|
key: string;
|
|
13
15
|
type: VellumVariableType.Raw;
|
|
16
|
+
required?: boolean | null;
|
|
17
|
+
default?: VellumValue.Raw | null;
|
|
18
|
+
extensions?: VellumVariableExtensions.Raw | null;
|
|
14
19
|
}
|
|
15
20
|
}
|
|
@@ -29,8 +29,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.VellumVariable = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
const VellumVariableType_1 = require("./VellumVariableType");
|
|
32
|
+
const VellumValue_1 = require("./VellumValue");
|
|
33
|
+
const VellumVariableExtensions_1 = require("./VellumVariableExtensions");
|
|
32
34
|
exports.VellumVariable = core.serialization.object({
|
|
33
35
|
id: core.serialization.string(),
|
|
34
36
|
key: core.serialization.string(),
|
|
35
37
|
type: VellumVariableType_1.VellumVariableType,
|
|
38
|
+
required: core.serialization.boolean().optional(),
|
|
39
|
+
default: VellumValue_1.VellumValue.optional(),
|
|
40
|
+
extensions: VellumVariableExtensions_1.VellumVariableExtensions.optional(),
|
|
36
41
|
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Vellum from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const VellumVariableExtensions: core.serialization.ObjectSchema<serializers.VellumVariableExtensions.Raw, Vellum.VellumVariableExtensions>;
|
|
8
|
+
export declare namespace VellumVariableExtensions {
|
|
9
|
+
interface Raw {
|
|
10
|
+
color?: string | null;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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.VellumVariableExtensions = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.VellumVariableExtensions = core.serialization.object({
|
|
32
|
+
color: core.serialization.string().optional(),
|
|
33
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Vellum from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const VellumVariableExtensionsRequest: core.serialization.ObjectSchema<serializers.VellumVariableExtensionsRequest.Raw, Vellum.VellumVariableExtensionsRequest>;
|
|
8
|
+
export declare namespace VellumVariableExtensionsRequest {
|
|
9
|
+
interface Raw {
|
|
10
|
+
color?: string | null;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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.VellumVariableExtensionsRequest = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.VellumVariableExtensionsRequest = core.serialization.object({
|
|
32
|
+
color: core.serialization.string().optional(),
|
|
33
|
+
});
|
|
@@ -5,11 +5,16 @@ import * as serializers from "../index";
|
|
|
5
5
|
import * as Vellum from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
import { VellumVariableType } from "./VellumVariableType";
|
|
8
|
+
import { VellumValueRequest } from "./VellumValueRequest";
|
|
9
|
+
import { VellumVariableExtensionsRequest } from "./VellumVariableExtensionsRequest";
|
|
8
10
|
export declare const VellumVariableRequest: core.serialization.ObjectSchema<serializers.VellumVariableRequest.Raw, Vellum.VellumVariableRequest>;
|
|
9
11
|
export declare namespace VellumVariableRequest {
|
|
10
12
|
interface Raw {
|
|
11
13
|
id: string;
|
|
12
14
|
key: string;
|
|
13
15
|
type: VellumVariableType.Raw;
|
|
16
|
+
required?: boolean | null;
|
|
17
|
+
default?: VellumValueRequest.Raw | null;
|
|
18
|
+
extensions?: VellumVariableExtensionsRequest.Raw | null;
|
|
14
19
|
}
|
|
15
20
|
}
|
|
@@ -29,8 +29,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.VellumVariableRequest = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
const VellumVariableType_1 = require("./VellumVariableType");
|
|
32
|
+
const VellumValueRequest_1 = require("./VellumValueRequest");
|
|
33
|
+
const VellumVariableExtensionsRequest_1 = require("./VellumVariableExtensionsRequest");
|
|
32
34
|
exports.VellumVariableRequest = core.serialization.object({
|
|
33
35
|
id: core.serialization.string(),
|
|
34
36
|
key: core.serialization.string(),
|
|
35
37
|
type: VellumVariableType_1.VellumVariableType,
|
|
38
|
+
required: core.serialization.boolean().optional(),
|
|
39
|
+
default: VellumValueRequest_1.VellumValueRequest.optional(),
|
|
40
|
+
extensions: VellumVariableExtensionsRequest_1.VellumVariableExtensionsRequest.optional(),
|
|
36
41
|
});
|
|
@@ -404,6 +404,8 @@ export * from "./VellumValueLogicalConditionRequest";
|
|
|
404
404
|
export * from "./VellumValueLogicalExpressionRequest";
|
|
405
405
|
export * from "./VellumValueRequest";
|
|
406
406
|
export * from "./VellumVariable";
|
|
407
|
+
export * from "./VellumVariableExtensions";
|
|
408
|
+
export * from "./VellumVariableExtensionsRequest";
|
|
407
409
|
export * from "./VellumVariableRequest";
|
|
408
410
|
export * from "./VellumVariableType";
|
|
409
411
|
export * from "./WorkflowDeploymentRead";
|
|
@@ -420,6 +420,8 @@ __exportStar(require("./VellumValueLogicalConditionRequest"), exports);
|
|
|
420
420
|
__exportStar(require("./VellumValueLogicalExpressionRequest"), exports);
|
|
421
421
|
__exportStar(require("./VellumValueRequest"), exports);
|
|
422
422
|
__exportStar(require("./VellumVariable"), exports);
|
|
423
|
+
__exportStar(require("./VellumVariableExtensions"), exports);
|
|
424
|
+
__exportStar(require("./VellumVariableExtensionsRequest"), exports);
|
|
423
425
|
__exportStar(require("./VellumVariableRequest"), exports);
|
|
424
426
|
__exportStar(require("./VellumVariableType"), exports);
|
|
425
427
|
__exportStar(require("./WorkflowDeploymentRead"), exports);
|
package/version.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SDK_VERSION = "0.8.22";
|
package/version.js
ADDED