vellum-ai 0.12.14 → 0.12.16
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 +48 -4
- package/.mock/definition/adHoc.yml +1 -4
- package/.mock/definition/api.yml +1 -1
- package/.mock/definition/containerImages.yml +0 -6
- package/.mock/definition/folderEntities.yml +1 -1
- package/.mock/definition/metricDefinitions.yml +1 -4
- package/.mock/definition/workflows.yml +3 -6
- package/.mock/openapi/openapi.yml +99 -14
- package/Client.d.ts +3 -5
- package/Client.js +12 -14
- package/api/resources/adHoc/client/Client.d.ts +3 -6
- package/api/resources/adHoc/client/Client.js +3 -6
- package/api/resources/containerImages/client/Client.d.ts +3 -7
- package/api/resources/containerImages/client/Client.js +5 -9
- package/api/resources/deployments/client/Client.d.ts +3 -3
- package/api/resources/deployments/client/Client.js +8 -8
- package/api/resources/documentIndexes/client/Client.d.ts +3 -3
- package/api/resources/documentIndexes/client/Client.js +9 -9
- package/api/resources/documents/client/Client.d.ts +3 -3
- package/api/resources/documents/client/Client.js +6 -6
- package/api/resources/folderEntities/client/Client.d.ts +3 -3
- package/api/resources/folderEntities/client/Client.js +3 -3
- package/api/resources/metricDefinitions/client/Client.d.ts +3 -5
- package/api/resources/metricDefinitions/client/Client.js +4 -6
- package/api/resources/mlModels/client/Client.d.ts +3 -3
- package/api/resources/mlModels/client/Client.js +2 -2
- package/api/resources/sandboxes/client/Client.d.ts +3 -3
- package/api/resources/sandboxes/client/Client.js +4 -4
- package/api/resources/testSuiteRuns/client/Client.d.ts +3 -3
- package/api/resources/testSuiteRuns/client/Client.js +4 -4
- package/api/resources/testSuites/client/Client.d.ts +3 -3
- package/api/resources/testSuites/client/Client.js +5 -5
- package/api/resources/workflowDeployments/client/Client.d.ts +3 -3
- package/api/resources/workflowDeployments/client/Client.js +7 -7
- package/api/resources/workflowSandboxes/client/Client.d.ts +3 -3
- package/api/resources/workflowSandboxes/client/Client.js +2 -2
- package/api/resources/workflows/client/Client.d.ts +3 -6
- package/api/resources/workflows/client/Client.js +6 -6
- package/api/resources/workflows/client/requests/WorkflowPushRequest.d.ts +1 -0
- package/api/resources/workspaceSecrets/client/Client.d.ts +3 -3
- package/api/resources/workspaceSecrets/client/Client.js +3 -3
- package/api/types/AudioPromptBlock.d.ts +14 -0
- package/api/types/AudioPromptBlock.js +5 -0
- package/api/types/FunctionCallPromptBlock.d.ts +15 -0
- package/api/types/FunctionCallPromptBlock.js +5 -0
- package/api/types/ImagePromptBlock.d.ts +14 -0
- package/api/types/ImagePromptBlock.js +5 -0
- package/api/types/PromptBlock.d.ts +1 -1
- package/api/types/WorkflowPushResponse.d.ts +1 -0
- package/api/types/index.d.ts +3 -0
- package/api/types/index.js +3 -0
- package/dist/Client.d.ts +3 -5
- package/dist/Client.js +12 -14
- package/dist/api/resources/adHoc/client/Client.d.ts +3 -6
- package/dist/api/resources/adHoc/client/Client.js +3 -6
- package/dist/api/resources/containerImages/client/Client.d.ts +3 -7
- package/dist/api/resources/containerImages/client/Client.js +5 -9
- package/dist/api/resources/deployments/client/Client.d.ts +3 -3
- package/dist/api/resources/deployments/client/Client.js +8 -8
- package/dist/api/resources/documentIndexes/client/Client.d.ts +3 -3
- package/dist/api/resources/documentIndexes/client/Client.js +9 -9
- package/dist/api/resources/documents/client/Client.d.ts +3 -3
- package/dist/api/resources/documents/client/Client.js +6 -6
- package/dist/api/resources/folderEntities/client/Client.d.ts +3 -3
- package/dist/api/resources/folderEntities/client/Client.js +3 -3
- package/dist/api/resources/metricDefinitions/client/Client.d.ts +3 -5
- package/dist/api/resources/metricDefinitions/client/Client.js +4 -6
- package/dist/api/resources/mlModels/client/Client.d.ts +3 -3
- package/dist/api/resources/mlModels/client/Client.js +2 -2
- package/dist/api/resources/sandboxes/client/Client.d.ts +3 -3
- package/dist/api/resources/sandboxes/client/Client.js +4 -4
- package/dist/api/resources/testSuiteRuns/client/Client.d.ts +3 -3
- package/dist/api/resources/testSuiteRuns/client/Client.js +4 -4
- package/dist/api/resources/testSuites/client/Client.d.ts +3 -3
- package/dist/api/resources/testSuites/client/Client.js +5 -5
- package/dist/api/resources/workflowDeployments/client/Client.d.ts +3 -3
- package/dist/api/resources/workflowDeployments/client/Client.js +7 -7
- package/dist/api/resources/workflowSandboxes/client/Client.d.ts +3 -3
- package/dist/api/resources/workflowSandboxes/client/Client.js +2 -2
- package/dist/api/resources/workflows/client/Client.d.ts +3 -6
- package/dist/api/resources/workflows/client/Client.js +6 -6
- package/dist/api/resources/workflows/client/requests/WorkflowPushRequest.d.ts +1 -0
- package/dist/api/resources/workspaceSecrets/client/Client.d.ts +3 -3
- package/dist/api/resources/workspaceSecrets/client/Client.js +3 -3
- package/dist/api/types/AudioPromptBlock.d.ts +14 -0
- package/dist/api/types/AudioPromptBlock.js +5 -0
- package/dist/api/types/FunctionCallPromptBlock.d.ts +15 -0
- package/dist/api/types/FunctionCallPromptBlock.js +5 -0
- package/dist/api/types/ImagePromptBlock.d.ts +14 -0
- package/dist/api/types/ImagePromptBlock.js +5 -0
- package/dist/api/types/PromptBlock.d.ts +1 -1
- package/dist/api/types/WorkflowPushResponse.d.ts +1 -0
- package/dist/api/types/index.d.ts +3 -0
- package/dist/api/types/index.js +3 -0
- package/dist/environments.d.ts +2 -2
- package/dist/environments.js +1 -1
- package/dist/serialization/types/AudioPromptBlock.d.ts +18 -0
- package/dist/serialization/types/AudioPromptBlock.js +39 -0
- package/dist/serialization/types/FunctionCallPromptBlock.d.ts +19 -0
- package/dist/serialization/types/FunctionCallPromptBlock.js +40 -0
- package/dist/serialization/types/ImagePromptBlock.d.ts +18 -0
- package/dist/serialization/types/ImagePromptBlock.js +39 -0
- package/dist/serialization/types/PromptBlock.d.ts +4 -1
- package/dist/serialization/types/PromptBlock.js +6 -0
- package/dist/serialization/types/WorkflowPushResponse.d.ts +1 -0
- package/dist/serialization/types/WorkflowPushResponse.js +1 -0
- package/dist/serialization/types/index.d.ts +3 -0
- package/dist/serialization/types/index.js +3 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/environments.d.ts +2 -2
- package/environments.js +1 -1
- package/package.json +1 -1
- package/reference.md +0 -75
- package/serialization/types/AudioPromptBlock.d.ts +18 -0
- package/serialization/types/AudioPromptBlock.js +39 -0
- package/serialization/types/FunctionCallPromptBlock.d.ts +19 -0
- package/serialization/types/FunctionCallPromptBlock.js +40 -0
- package/serialization/types/ImagePromptBlock.d.ts +18 -0
- package/serialization/types/ImagePromptBlock.js +39 -0
- package/serialization/types/PromptBlock.d.ts +4 -1
- package/serialization/types/PromptBlock.js +6 -0
- package/serialization/types/WorkflowPushResponse.d.ts +1 -0
- package/serialization/types/WorkflowPushResponse.js +1 -0
- package/serialization/types/index.d.ts +3 -0
- package/serialization/types/index.js +3 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -7,7 +7,7 @@ import * as Vellum from "../../../index";
|
|
|
7
7
|
export declare namespace WorkspaceSecrets {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
|
|
10
|
-
apiKey
|
|
10
|
+
apiKey: core.Supplier<string>;
|
|
11
11
|
}
|
|
12
12
|
interface RequestOptions {
|
|
13
13
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -20,7 +20,7 @@ export declare namespace WorkspaceSecrets {
|
|
|
20
20
|
}
|
|
21
21
|
export declare class WorkspaceSecrets {
|
|
22
22
|
protected readonly _options: WorkspaceSecrets.Options;
|
|
23
|
-
constructor(_options
|
|
23
|
+
constructor(_options: WorkspaceSecrets.Options);
|
|
24
24
|
/**
|
|
25
25
|
* Used to retrieve a Workspace Secret given its ID or name.
|
|
26
26
|
*
|
|
@@ -43,6 +43,6 @@ export declare class WorkspaceSecrets {
|
|
|
43
43
|
*/
|
|
44
44
|
partialUpdate(id: string, request?: Vellum.PatchedWorkspaceSecretUpdateRequest, requestOptions?: WorkspaceSecrets.RequestOptions): Promise<Vellum.WorkspaceSecretRead>;
|
|
45
45
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
46
|
-
X_API_KEY: string
|
|
46
|
+
X_API_KEY: string;
|
|
47
47
|
}>;
|
|
48
48
|
}
|
|
@@ -45,7 +45,7 @@ const url_join_1 = __importDefault(require("url-join"));
|
|
|
45
45
|
const serializers = __importStar(require("../../../../serialization/index"));
|
|
46
46
|
const errors = __importStar(require("../../../../errors/index"));
|
|
47
47
|
class WorkspaceSecrets {
|
|
48
|
-
constructor(_options
|
|
48
|
+
constructor(_options) {
|
|
49
49
|
this._options = _options;
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
@@ -64,7 +64,7 @@ class WorkspaceSecrets {
|
|
|
64
64
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
65
65
|
.default, `v1/workspace-secrets/${encodeURIComponent(id)}`),
|
|
66
66
|
method: "GET",
|
|
67
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.
|
|
67
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.16", "User-Agent": "vellum-ai/0.12.16", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
68
68
|
contentType: "application/json",
|
|
69
69
|
requestType: "json",
|
|
70
70
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -117,7 +117,7 @@ class WorkspaceSecrets {
|
|
|
117
117
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
118
118
|
.default, `v1/workspace-secrets/${encodeURIComponent(id)}`),
|
|
119
119
|
method: "PATCH",
|
|
120
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.
|
|
120
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.16", "User-Agent": "vellum-ai/0.12.16", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
121
121
|
contentType: "application/json",
|
|
122
122
|
requestType: "json",
|
|
123
123
|
body: serializers.PatchedWorkspaceSecretUpdateRequest.jsonOrThrow(request, {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "../index";
|
|
5
|
+
/**
|
|
6
|
+
* A block that represents an audio file in a prompt template.
|
|
7
|
+
*/
|
|
8
|
+
export interface AudioPromptBlock {
|
|
9
|
+
blockType: "AUDIO";
|
|
10
|
+
state?: Vellum.PromptBlockState;
|
|
11
|
+
cacheConfig?: Vellum.EphemeralPromptCacheConfig;
|
|
12
|
+
src: string;
|
|
13
|
+
metadata?: Record<string, unknown>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "../index";
|
|
5
|
+
/**
|
|
6
|
+
* A block that represents a function call in a prompt template.
|
|
7
|
+
*/
|
|
8
|
+
export interface FunctionCallPromptBlock {
|
|
9
|
+
blockType: "FUNCTION_CALL";
|
|
10
|
+
state?: Vellum.PromptBlockState;
|
|
11
|
+
cacheConfig?: Vellum.EphemeralPromptCacheConfig;
|
|
12
|
+
id?: string;
|
|
13
|
+
name: string;
|
|
14
|
+
arguments: Record<string, unknown>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "../index";
|
|
5
|
+
/**
|
|
6
|
+
* A block that represents an image in a prompt template.
|
|
7
|
+
*/
|
|
8
|
+
export interface ImagePromptBlock {
|
|
9
|
+
blockType: "IMAGE";
|
|
10
|
+
state?: Vellum.PromptBlockState;
|
|
11
|
+
cacheConfig?: Vellum.EphemeralPromptCacheConfig;
|
|
12
|
+
src: string;
|
|
13
|
+
metadata?: Record<string, unknown>;
|
|
14
|
+
}
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Vellum from "../index";
|
|
5
|
-
export declare type PromptBlock = Vellum.JinjaPromptBlock | Vellum.ChatMessagePromptBlock | Vellum.VariablePromptBlock | Vellum.RichTextPromptBlock;
|
|
5
|
+
export declare type PromptBlock = Vellum.JinjaPromptBlock | Vellum.ChatMessagePromptBlock | Vellum.VariablePromptBlock | Vellum.RichTextPromptBlock | Vellum.AudioPromptBlock | Vellum.FunctionCallPromptBlock | Vellum.ImagePromptBlock;
|
|
@@ -18,6 +18,7 @@ export * from "./ArrayVellumValue";
|
|
|
18
18
|
export * from "./ArrayVellumValueRequest";
|
|
19
19
|
export * from "./AudioChatMessageContent";
|
|
20
20
|
export * from "./AudioChatMessageContentRequest";
|
|
21
|
+
export * from "./AudioPromptBlock";
|
|
21
22
|
export * from "./AudioVariableValue";
|
|
22
23
|
export * from "./AudioVellumValue";
|
|
23
24
|
export * from "./AudioVellumValueRequest";
|
|
@@ -126,6 +127,7 @@ export * from "./FunctionCallChatMessageContentRequest";
|
|
|
126
127
|
export * from "./FunctionCallChatMessageContentValue";
|
|
127
128
|
export * from "./FunctionCallChatMessageContentValueRequest";
|
|
128
129
|
export * from "./FunctionCallInput";
|
|
130
|
+
export * from "./FunctionCallPromptBlock";
|
|
129
131
|
export * from "./FunctionCallRequest";
|
|
130
132
|
export * from "./FunctionCallVariableValue";
|
|
131
133
|
export * from "./FunctionCallVellumValue";
|
|
@@ -150,6 +152,7 @@ export * from "./HkunlpInstructorXlVectorizer";
|
|
|
150
152
|
export * from "./HkunlpInstructorXlVectorizerRequest";
|
|
151
153
|
export * from "./ImageChatMessageContent";
|
|
152
154
|
export * from "./ImageChatMessageContentRequest";
|
|
155
|
+
export * from "./ImagePromptBlock";
|
|
153
156
|
export * from "./ImageVariableValue";
|
|
154
157
|
export * from "./ImageVellumValue";
|
|
155
158
|
export * from "./ImageVellumValueRequest";
|
package/dist/api/types/index.js
CHANGED
|
@@ -34,6 +34,7 @@ __exportStar(require("./ArrayVellumValue"), exports);
|
|
|
34
34
|
__exportStar(require("./ArrayVellumValueRequest"), exports);
|
|
35
35
|
__exportStar(require("./AudioChatMessageContent"), exports);
|
|
36
36
|
__exportStar(require("./AudioChatMessageContentRequest"), exports);
|
|
37
|
+
__exportStar(require("./AudioPromptBlock"), exports);
|
|
37
38
|
__exportStar(require("./AudioVariableValue"), exports);
|
|
38
39
|
__exportStar(require("./AudioVellumValue"), exports);
|
|
39
40
|
__exportStar(require("./AudioVellumValueRequest"), exports);
|
|
@@ -142,6 +143,7 @@ __exportStar(require("./FunctionCallChatMessageContentRequest"), exports);
|
|
|
142
143
|
__exportStar(require("./FunctionCallChatMessageContentValue"), exports);
|
|
143
144
|
__exportStar(require("./FunctionCallChatMessageContentValueRequest"), exports);
|
|
144
145
|
__exportStar(require("./FunctionCallInput"), exports);
|
|
146
|
+
__exportStar(require("./FunctionCallPromptBlock"), exports);
|
|
145
147
|
__exportStar(require("./FunctionCallRequest"), exports);
|
|
146
148
|
__exportStar(require("./FunctionCallVariableValue"), exports);
|
|
147
149
|
__exportStar(require("./FunctionCallVellumValue"), exports);
|
|
@@ -166,6 +168,7 @@ __exportStar(require("./HkunlpInstructorXlVectorizer"), exports);
|
|
|
166
168
|
__exportStar(require("./HkunlpInstructorXlVectorizerRequest"), exports);
|
|
167
169
|
__exportStar(require("./ImageChatMessageContent"), exports);
|
|
168
170
|
__exportStar(require("./ImageChatMessageContentRequest"), exports);
|
|
171
|
+
__exportStar(require("./ImagePromptBlock"), exports);
|
|
169
172
|
__exportStar(require("./ImageVariableValue"), exports);
|
|
170
173
|
__exportStar(require("./ImageVellumValue"), exports);
|
|
171
174
|
__exportStar(require("./ImageVellumValueRequest"), exports);
|
package/dist/environments.d.ts
CHANGED
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export interface VellumEnvironmentUrls {
|
|
5
5
|
default: string;
|
|
6
|
-
documents: string;
|
|
7
6
|
predict: string;
|
|
7
|
+
documents: string;
|
|
8
8
|
}
|
|
9
9
|
export declare const VellumEnvironment: {
|
|
10
10
|
readonly Production: {
|
|
11
11
|
readonly default: "https://api.vellum.ai";
|
|
12
|
-
readonly documents: "https://documents.vellum.ai";
|
|
13
12
|
readonly predict: "https://predict.vellum.ai";
|
|
13
|
+
readonly documents: "https://documents.vellum.ai";
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
16
|
export declare type VellumEnvironment = typeof VellumEnvironment.Production;
|
package/dist/environments.js
CHANGED
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
import { PromptBlockState } from "./PromptBlockState";
|
|
8
|
+
import { EphemeralPromptCacheConfig } from "./EphemeralPromptCacheConfig";
|
|
9
|
+
export declare const AudioPromptBlock: core.serialization.ObjectSchema<serializers.AudioPromptBlock.Raw, Vellum.AudioPromptBlock>;
|
|
10
|
+
export declare namespace AudioPromptBlock {
|
|
11
|
+
interface Raw {
|
|
12
|
+
block_type: "AUDIO";
|
|
13
|
+
state?: PromptBlockState.Raw | null;
|
|
14
|
+
cache_config?: EphemeralPromptCacheConfig.Raw | null;
|
|
15
|
+
src: string;
|
|
16
|
+
metadata?: Record<string, unknown> | null;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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.AudioPromptBlock = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
const PromptBlockState_1 = require("./PromptBlockState");
|
|
32
|
+
const EphemeralPromptCacheConfig_1 = require("./EphemeralPromptCacheConfig");
|
|
33
|
+
exports.AudioPromptBlock = core.serialization.object({
|
|
34
|
+
blockType: core.serialization.property("block_type", core.serialization.stringLiteral("AUDIO")),
|
|
35
|
+
state: PromptBlockState_1.PromptBlockState.optional(),
|
|
36
|
+
cacheConfig: core.serialization.property("cache_config", EphemeralPromptCacheConfig_1.EphemeralPromptCacheConfig.optional()),
|
|
37
|
+
src: core.serialization.string(),
|
|
38
|
+
metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
|
|
39
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
import { PromptBlockState } from "./PromptBlockState";
|
|
8
|
+
import { EphemeralPromptCacheConfig } from "./EphemeralPromptCacheConfig";
|
|
9
|
+
export declare const FunctionCallPromptBlock: core.serialization.ObjectSchema<serializers.FunctionCallPromptBlock.Raw, Vellum.FunctionCallPromptBlock>;
|
|
10
|
+
export declare namespace FunctionCallPromptBlock {
|
|
11
|
+
interface Raw {
|
|
12
|
+
block_type: "FUNCTION_CALL";
|
|
13
|
+
state?: PromptBlockState.Raw | null;
|
|
14
|
+
cache_config?: EphemeralPromptCacheConfig.Raw | null;
|
|
15
|
+
id?: string | null;
|
|
16
|
+
name: string;
|
|
17
|
+
arguments: Record<string, unknown>;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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.FunctionCallPromptBlock = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
const PromptBlockState_1 = require("./PromptBlockState");
|
|
32
|
+
const EphemeralPromptCacheConfig_1 = require("./EphemeralPromptCacheConfig");
|
|
33
|
+
exports.FunctionCallPromptBlock = core.serialization.object({
|
|
34
|
+
blockType: core.serialization.property("block_type", core.serialization.stringLiteral("FUNCTION_CALL")),
|
|
35
|
+
state: PromptBlockState_1.PromptBlockState.optional(),
|
|
36
|
+
cacheConfig: core.serialization.property("cache_config", EphemeralPromptCacheConfig_1.EphemeralPromptCacheConfig.optional()),
|
|
37
|
+
id: core.serialization.string().optional(),
|
|
38
|
+
name: core.serialization.string(),
|
|
39
|
+
arguments: core.serialization.record(core.serialization.string(), core.serialization.unknown()),
|
|
40
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
import { PromptBlockState } from "./PromptBlockState";
|
|
8
|
+
import { EphemeralPromptCacheConfig } from "./EphemeralPromptCacheConfig";
|
|
9
|
+
export declare const ImagePromptBlock: core.serialization.ObjectSchema<serializers.ImagePromptBlock.Raw, Vellum.ImagePromptBlock>;
|
|
10
|
+
export declare namespace ImagePromptBlock {
|
|
11
|
+
interface Raw {
|
|
12
|
+
block_type: "IMAGE";
|
|
13
|
+
state?: PromptBlockState.Raw | null;
|
|
14
|
+
cache_config?: EphemeralPromptCacheConfig.Raw | null;
|
|
15
|
+
src: string;
|
|
16
|
+
metadata?: Record<string, unknown> | null;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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.ImagePromptBlock = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
const PromptBlockState_1 = require("./PromptBlockState");
|
|
32
|
+
const EphemeralPromptCacheConfig_1 = require("./EphemeralPromptCacheConfig");
|
|
33
|
+
exports.ImagePromptBlock = core.serialization.object({
|
|
34
|
+
blockType: core.serialization.property("block_type", core.serialization.stringLiteral("IMAGE")),
|
|
35
|
+
state: PromptBlockState_1.PromptBlockState.optional(),
|
|
36
|
+
cacheConfig: core.serialization.property("cache_config", EphemeralPromptCacheConfig_1.EphemeralPromptCacheConfig.optional()),
|
|
37
|
+
src: core.serialization.string(),
|
|
38
|
+
metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
|
|
39
|
+
});
|
|
@@ -7,7 +7,10 @@ import * as core from "../../core";
|
|
|
7
7
|
import { JinjaPromptBlock } from "./JinjaPromptBlock";
|
|
8
8
|
import { VariablePromptBlock } from "./VariablePromptBlock";
|
|
9
9
|
import { RichTextPromptBlock } from "./RichTextPromptBlock";
|
|
10
|
+
import { AudioPromptBlock } from "./AudioPromptBlock";
|
|
11
|
+
import { FunctionCallPromptBlock } from "./FunctionCallPromptBlock";
|
|
12
|
+
import { ImagePromptBlock } from "./ImagePromptBlock";
|
|
10
13
|
export declare const PromptBlock: core.serialization.Schema<serializers.PromptBlock.Raw, Vellum.PromptBlock>;
|
|
11
14
|
export declare namespace PromptBlock {
|
|
12
|
-
type Raw = JinjaPromptBlock.Raw | serializers.ChatMessagePromptBlock.Raw | VariablePromptBlock.Raw | RichTextPromptBlock.Raw;
|
|
15
|
+
type Raw = JinjaPromptBlock.Raw | serializers.ChatMessagePromptBlock.Raw | VariablePromptBlock.Raw | RichTextPromptBlock.Raw | AudioPromptBlock.Raw | FunctionCallPromptBlock.Raw | ImagePromptBlock.Raw;
|
|
13
16
|
}
|
|
@@ -32,9 +32,15 @@ const core = __importStar(require("../../core"));
|
|
|
32
32
|
const JinjaPromptBlock_1 = require("./JinjaPromptBlock");
|
|
33
33
|
const VariablePromptBlock_1 = require("./VariablePromptBlock");
|
|
34
34
|
const RichTextPromptBlock_1 = require("./RichTextPromptBlock");
|
|
35
|
+
const AudioPromptBlock_1 = require("./AudioPromptBlock");
|
|
36
|
+
const FunctionCallPromptBlock_1 = require("./FunctionCallPromptBlock");
|
|
37
|
+
const ImagePromptBlock_1 = require("./ImagePromptBlock");
|
|
35
38
|
exports.PromptBlock = core.serialization.undiscriminatedUnion([
|
|
36
39
|
JinjaPromptBlock_1.JinjaPromptBlock,
|
|
37
40
|
core.serialization.lazyObject(() => serializers.ChatMessagePromptBlock),
|
|
38
41
|
VariablePromptBlock_1.VariablePromptBlock,
|
|
39
42
|
RichTextPromptBlock_1.RichTextPromptBlock,
|
|
43
|
+
AudioPromptBlock_1.AudioPromptBlock,
|
|
44
|
+
FunctionCallPromptBlock_1.FunctionCallPromptBlock,
|
|
45
|
+
ImagePromptBlock_1.ImagePromptBlock,
|
|
40
46
|
]);
|
|
@@ -31,4 +31,5 @@ const core = __importStar(require("../../core"));
|
|
|
31
31
|
exports.WorkflowPushResponse = core.serialization.object({
|
|
32
32
|
workflowSandboxId: core.serialization.property("workflow_sandbox_id", core.serialization.string()),
|
|
33
33
|
workflowDeploymentId: core.serialization.property("workflow_deployment_id", core.serialization.string().optional()),
|
|
34
|
+
proposedDiffs: core.serialization.property("proposed_diffs", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
|
|
34
35
|
});
|
|
@@ -18,6 +18,7 @@ export * from "./ArrayVellumValue";
|
|
|
18
18
|
export * from "./ArrayVellumValueRequest";
|
|
19
19
|
export * from "./AudioChatMessageContent";
|
|
20
20
|
export * from "./AudioChatMessageContentRequest";
|
|
21
|
+
export * from "./AudioPromptBlock";
|
|
21
22
|
export * from "./AudioVariableValue";
|
|
22
23
|
export * from "./AudioVellumValue";
|
|
23
24
|
export * from "./AudioVellumValueRequest";
|
|
@@ -126,6 +127,7 @@ export * from "./FunctionCallChatMessageContentRequest";
|
|
|
126
127
|
export * from "./FunctionCallChatMessageContentValue";
|
|
127
128
|
export * from "./FunctionCallChatMessageContentValueRequest";
|
|
128
129
|
export * from "./FunctionCallInput";
|
|
130
|
+
export * from "./FunctionCallPromptBlock";
|
|
129
131
|
export * from "./FunctionCallRequest";
|
|
130
132
|
export * from "./FunctionCallVariableValue";
|
|
131
133
|
export * from "./FunctionCallVellumValue";
|
|
@@ -150,6 +152,7 @@ export * from "./HkunlpInstructorXlVectorizer";
|
|
|
150
152
|
export * from "./HkunlpInstructorXlVectorizerRequest";
|
|
151
153
|
export * from "./ImageChatMessageContent";
|
|
152
154
|
export * from "./ImageChatMessageContentRequest";
|
|
155
|
+
export * from "./ImagePromptBlock";
|
|
153
156
|
export * from "./ImageVariableValue";
|
|
154
157
|
export * from "./ImageVellumValue";
|
|
155
158
|
export * from "./ImageVellumValueRequest";
|
|
@@ -34,6 +34,7 @@ __exportStar(require("./ArrayVellumValue"), exports);
|
|
|
34
34
|
__exportStar(require("./ArrayVellumValueRequest"), exports);
|
|
35
35
|
__exportStar(require("./AudioChatMessageContent"), exports);
|
|
36
36
|
__exportStar(require("./AudioChatMessageContentRequest"), exports);
|
|
37
|
+
__exportStar(require("./AudioPromptBlock"), exports);
|
|
37
38
|
__exportStar(require("./AudioVariableValue"), exports);
|
|
38
39
|
__exportStar(require("./AudioVellumValue"), exports);
|
|
39
40
|
__exportStar(require("./AudioVellumValueRequest"), exports);
|
|
@@ -142,6 +143,7 @@ __exportStar(require("./FunctionCallChatMessageContentRequest"), exports);
|
|
|
142
143
|
__exportStar(require("./FunctionCallChatMessageContentValue"), exports);
|
|
143
144
|
__exportStar(require("./FunctionCallChatMessageContentValueRequest"), exports);
|
|
144
145
|
__exportStar(require("./FunctionCallInput"), exports);
|
|
146
|
+
__exportStar(require("./FunctionCallPromptBlock"), exports);
|
|
145
147
|
__exportStar(require("./FunctionCallRequest"), exports);
|
|
146
148
|
__exportStar(require("./FunctionCallVariableValue"), exports);
|
|
147
149
|
__exportStar(require("./FunctionCallVellumValue"), exports);
|
|
@@ -166,6 +168,7 @@ __exportStar(require("./HkunlpInstructorXlVectorizer"), exports);
|
|
|
166
168
|
__exportStar(require("./HkunlpInstructorXlVectorizerRequest"), exports);
|
|
167
169
|
__exportStar(require("./ImageChatMessageContent"), exports);
|
|
168
170
|
__exportStar(require("./ImageChatMessageContentRequest"), exports);
|
|
171
|
+
__exportStar(require("./ImagePromptBlock"), exports);
|
|
169
172
|
__exportStar(require("./ImageVariableValue"), exports);
|
|
170
173
|
__exportStar(require("./ImageVellumValue"), exports);
|
|
171
174
|
__exportStar(require("./ImageVellumValueRequest"), exports);
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.12.
|
|
1
|
+
export declare const SDK_VERSION = "0.12.16";
|
package/dist/version.js
CHANGED
package/environments.d.ts
CHANGED
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export interface VellumEnvironmentUrls {
|
|
5
5
|
default: string;
|
|
6
|
-
documents: string;
|
|
7
6
|
predict: string;
|
|
7
|
+
documents: string;
|
|
8
8
|
}
|
|
9
9
|
export declare const VellumEnvironment: {
|
|
10
10
|
readonly Production: {
|
|
11
11
|
readonly default: "https://api.vellum.ai";
|
|
12
|
-
readonly documents: "https://documents.vellum.ai";
|
|
13
12
|
readonly predict: "https://predict.vellum.ai";
|
|
13
|
+
readonly documents: "https://documents.vellum.ai";
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
16
|
export declare type VellumEnvironment = typeof VellumEnvironment.Production;
|
package/environments.js
CHANGED
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -79,21 +79,6 @@ await client.submitWorkflowExecutionActuals({
|
|
|
79
79
|
<dl>
|
|
80
80
|
<dd>
|
|
81
81
|
|
|
82
|
-
#### 📝 Description
|
|
83
|
-
|
|
84
|
-
<dl>
|
|
85
|
-
<dd>
|
|
86
|
-
|
|
87
|
-
<dl>
|
|
88
|
-
<dd>
|
|
89
|
-
|
|
90
|
-
An internal-only endpoint that's subject to breaking changes without notice. Not intended for public use.
|
|
91
|
-
|
|
92
|
-
</dd>
|
|
93
|
-
</dl>
|
|
94
|
-
</dd>
|
|
95
|
-
</dl>
|
|
96
|
-
|
|
97
82
|
#### 🔌 Usage
|
|
98
83
|
|
|
99
84
|
<dl>
|
|
@@ -293,21 +278,6 @@ await client.containerImages.retrieve("id");
|
|
|
293
278
|
<dl>
|
|
294
279
|
<dd>
|
|
295
280
|
|
|
296
|
-
#### 📝 Description
|
|
297
|
-
|
|
298
|
-
<dl>
|
|
299
|
-
<dd>
|
|
300
|
-
|
|
301
|
-
<dl>
|
|
302
|
-
<dd>
|
|
303
|
-
|
|
304
|
-
An internal-only endpoint that's subject to breaking changes without notice. Not intended for public use.
|
|
305
|
-
|
|
306
|
-
</dd>
|
|
307
|
-
</dl>
|
|
308
|
-
</dd>
|
|
309
|
-
</dl>
|
|
310
|
-
|
|
311
281
|
#### 🔌 Usage
|
|
312
282
|
|
|
313
283
|
<dl>
|
|
@@ -348,21 +318,6 @@ await client.containerImages.dockerServiceToken();
|
|
|
348
318
|
<dl>
|
|
349
319
|
<dd>
|
|
350
320
|
|
|
351
|
-
#### 📝 Description
|
|
352
|
-
|
|
353
|
-
<dl>
|
|
354
|
-
<dd>
|
|
355
|
-
|
|
356
|
-
<dl>
|
|
357
|
-
<dd>
|
|
358
|
-
|
|
359
|
-
An internal-only endpoint that's subject to breaking changes without notice. Not intended for public use.
|
|
360
|
-
|
|
361
|
-
</dd>
|
|
362
|
-
</dl>
|
|
363
|
-
</dd>
|
|
364
|
-
</dl>
|
|
365
|
-
|
|
366
321
|
#### 🔌 Usage
|
|
367
322
|
|
|
368
323
|
<dl>
|
|
@@ -1971,21 +1926,6 @@ directory. Supported root directories include:
|
|
|
1971
1926
|
<dl>
|
|
1972
1927
|
<dd>
|
|
1973
1928
|
|
|
1974
|
-
#### 📝 Description
|
|
1975
|
-
|
|
1976
|
-
<dl>
|
|
1977
|
-
<dd>
|
|
1978
|
-
|
|
1979
|
-
<dl>
|
|
1980
|
-
<dd>
|
|
1981
|
-
|
|
1982
|
-
An internal-only endpoint that's subject to breaking changes without notice. Not intended for public use.
|
|
1983
|
-
|
|
1984
|
-
</dd>
|
|
1985
|
-
</dl>
|
|
1986
|
-
</dd>
|
|
1987
|
-
</dl>
|
|
1988
|
-
|
|
1989
1929
|
#### 🔌 Usage
|
|
1990
1930
|
|
|
1991
1931
|
<dl>
|
|
@@ -3402,21 +3342,6 @@ await client.workflowSandboxes.deployWorkflow("id", "workflow_id");
|
|
|
3402
3342
|
<dl>
|
|
3403
3343
|
<dd>
|
|
3404
3344
|
|
|
3405
|
-
#### 📝 Description
|
|
3406
|
-
|
|
3407
|
-
<dl>
|
|
3408
|
-
<dd>
|
|
3409
|
-
|
|
3410
|
-
<dl>
|
|
3411
|
-
<dd>
|
|
3412
|
-
|
|
3413
|
-
An internal-only endpoint that's subject to breaking changes without notice. Not intended for public use.
|
|
3414
|
-
|
|
3415
|
-
</dd>
|
|
3416
|
-
</dl>
|
|
3417
|
-
</dd>
|
|
3418
|
-
</dl>
|
|
3419
|
-
|
|
3420
3345
|
#### 🔌 Usage
|
|
3421
3346
|
|
|
3422
3347
|
<dl>
|