vellum-ai 0.12.4 → 0.12.5
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 +27 -10
- package/.mock/definition/workflows.yml +4 -0
- package/.mock/openapi/openapi.yml +37 -11
- package/Client.js +10 -10
- package/api/resources/adHoc/client/Client.js +1 -1
- package/api/resources/containerImages/client/Client.js +4 -4
- package/api/resources/deployments/client/Client.js +7 -7
- 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 +2 -2
- package/api/resources/metricDefinitions/client/Client.js +2 -2
- package/api/resources/mlModels/client/Client.js +1 -1
- package/api/resources/sandboxes/client/Client.js +3 -3
- package/api/resources/testSuiteRuns/client/Client.js +3 -3
- package/api/resources/testSuites/client/Client.js +4 -4
- package/api/resources/workflowDeployments/client/Client.js +6 -6
- package/api/resources/workflowSandboxes/client/Client.js +1 -1
- package/api/resources/workflows/client/Client.js +15 -3
- package/api/resources/workflows/client/requests/WorkflowsPullRequest.d.ts +4 -0
- package/api/resources/workspaceSecrets/client/Client.js +2 -2
- package/api/types/ChatMessagePromptBlock.d.ts +1 -1
- package/api/types/FunctionDefinition.d.ts +6 -1
- package/api/types/JinjaPromptBlock.d.ts +1 -1
- package/api/types/PlainTextPromptBlock.d.ts +1 -1
- package/api/types/RichTextPromptBlock.d.ts +1 -1
- package/api/types/VariablePromptBlock.d.ts +1 -1
- package/dist/Client.js +10 -10
- package/dist/api/resources/adHoc/client/Client.js +1 -1
- package/dist/api/resources/containerImages/client/Client.js +4 -4
- package/dist/api/resources/deployments/client/Client.js +7 -7
- 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 +2 -2
- package/dist/api/resources/metricDefinitions/client/Client.js +2 -2
- package/dist/api/resources/mlModels/client/Client.js +1 -1
- package/dist/api/resources/sandboxes/client/Client.js +3 -3
- package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
- package/dist/api/resources/testSuites/client/Client.js +4 -4
- package/dist/api/resources/workflowDeployments/client/Client.js +6 -6
- package/dist/api/resources/workflowSandboxes/client/Client.js +1 -1
- package/dist/api/resources/workflows/client/Client.js +15 -3
- package/dist/api/resources/workflows/client/requests/WorkflowsPullRequest.d.ts +4 -0
- package/dist/api/resources/workspaceSecrets/client/Client.js +2 -2
- package/dist/api/types/ChatMessagePromptBlock.d.ts +1 -1
- package/dist/api/types/FunctionDefinition.d.ts +6 -1
- package/dist/api/types/JinjaPromptBlock.d.ts +1 -1
- package/dist/api/types/PlainTextPromptBlock.d.ts +1 -1
- package/dist/api/types/RichTextPromptBlock.d.ts +1 -1
- package/dist/api/types/VariablePromptBlock.d.ts +1 -1
- package/dist/serialization/types/ChatMessagePromptBlock.d.ts +1 -1
- package/dist/serialization/types/ChatMessagePromptBlock.js +1 -1
- package/dist/serialization/types/JinjaPromptBlock.d.ts +1 -1
- package/dist/serialization/types/JinjaPromptBlock.js +1 -1
- package/dist/serialization/types/PlainTextPromptBlock.d.ts +1 -1
- package/dist/serialization/types/PlainTextPromptBlock.js +1 -1
- package/dist/serialization/types/RichTextPromptBlock.d.ts +1 -1
- package/dist/serialization/types/RichTextPromptBlock.js +1 -1
- package/dist/serialization/types/VariablePromptBlock.d.ts +1 -1
- package/dist/serialization/types/VariablePromptBlock.js +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/serialization/types/ChatMessagePromptBlock.d.ts +1 -1
- package/serialization/types/ChatMessagePromptBlock.js +1 -1
- package/serialization/types/JinjaPromptBlock.d.ts +1 -1
- package/serialization/types/JinjaPromptBlock.js +1 -1
- package/serialization/types/PlainTextPromptBlock.d.ts +1 -1
- package/serialization/types/PlainTextPromptBlock.js +1 -1
- package/serialization/types/RichTextPromptBlock.d.ts +1 -1
- package/serialization/types/RichTextPromptBlock.js +1 -1
- package/serialization/types/VariablePromptBlock.d.ts +1 -1
- package/serialization/types/VariablePromptBlock.js +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -10,9 +10,9 @@ import { ChatMessageRole } from "./ChatMessageRole";
|
|
|
10
10
|
export declare const ChatMessagePromptBlock: core.serialization.ObjectSchema<serializers.ChatMessagePromptBlock.Raw, Vellum.ChatMessagePromptBlock>;
|
|
11
11
|
export declare namespace ChatMessagePromptBlock {
|
|
12
12
|
interface Raw {
|
|
13
|
+
block_type: "CHAT_MESSAGE";
|
|
13
14
|
state?: PromptBlockState.Raw | null;
|
|
14
15
|
cache_config?: EphemeralPromptCacheConfig.Raw | null;
|
|
15
|
-
block_type: "CHAT_MESSAGE";
|
|
16
16
|
chat_role: ChatMessageRole.Raw;
|
|
17
17
|
chat_source?: string | null;
|
|
18
18
|
chat_message_unterminated?: boolean | null;
|
|
@@ -33,9 +33,9 @@ const PromptBlockState_1 = require("./PromptBlockState");
|
|
|
33
33
|
const EphemeralPromptCacheConfig_1 = require("./EphemeralPromptCacheConfig");
|
|
34
34
|
const ChatMessageRole_1 = require("./ChatMessageRole");
|
|
35
35
|
exports.ChatMessagePromptBlock = core.serialization.object({
|
|
36
|
+
blockType: core.serialization.property("block_type", core.serialization.stringLiteral("CHAT_MESSAGE")),
|
|
36
37
|
state: PromptBlockState_1.PromptBlockState.optional(),
|
|
37
38
|
cacheConfig: core.serialization.property("cache_config", EphemeralPromptCacheConfig_1.EphemeralPromptCacheConfig.optional()),
|
|
38
|
-
blockType: core.serialization.property("block_type", core.serialization.stringLiteral("CHAT_MESSAGE")),
|
|
39
39
|
chatRole: core.serialization.property("chat_role", ChatMessageRole_1.ChatMessageRole),
|
|
40
40
|
chatSource: core.serialization.property("chat_source", core.serialization.string().optional()),
|
|
41
41
|
chatMessageUnterminated: core.serialization.property("chat_message_unterminated", core.serialization.boolean().optional()),
|
|
@@ -9,9 +9,9 @@ import { EphemeralPromptCacheConfig } from "./EphemeralPromptCacheConfig";
|
|
|
9
9
|
export declare const JinjaPromptBlock: core.serialization.ObjectSchema<serializers.JinjaPromptBlock.Raw, Vellum.JinjaPromptBlock>;
|
|
10
10
|
export declare namespace JinjaPromptBlock {
|
|
11
11
|
interface Raw {
|
|
12
|
+
block_type: "JINJA";
|
|
12
13
|
state?: PromptBlockState.Raw | null;
|
|
13
14
|
cache_config?: EphemeralPromptCacheConfig.Raw | null;
|
|
14
|
-
block_type: "JINJA";
|
|
15
15
|
template: string;
|
|
16
16
|
}
|
|
17
17
|
}
|
|
@@ -31,8 +31,8 @@ const core = __importStar(require("../../core"));
|
|
|
31
31
|
const PromptBlockState_1 = require("./PromptBlockState");
|
|
32
32
|
const EphemeralPromptCacheConfig_1 = require("./EphemeralPromptCacheConfig");
|
|
33
33
|
exports.JinjaPromptBlock = core.serialization.object({
|
|
34
|
+
blockType: core.serialization.property("block_type", core.serialization.stringLiteral("JINJA")),
|
|
34
35
|
state: PromptBlockState_1.PromptBlockState.optional(),
|
|
35
36
|
cacheConfig: core.serialization.property("cache_config", EphemeralPromptCacheConfig_1.EphemeralPromptCacheConfig.optional()),
|
|
36
|
-
blockType: core.serialization.property("block_type", core.serialization.stringLiteral("JINJA")),
|
|
37
37
|
template: core.serialization.string(),
|
|
38
38
|
});
|
|
@@ -9,9 +9,9 @@ import { EphemeralPromptCacheConfig } from "./EphemeralPromptCacheConfig";
|
|
|
9
9
|
export declare const PlainTextPromptBlock: core.serialization.ObjectSchema<serializers.PlainTextPromptBlock.Raw, Vellum.PlainTextPromptBlock>;
|
|
10
10
|
export declare namespace PlainTextPromptBlock {
|
|
11
11
|
interface Raw {
|
|
12
|
+
block_type: "PLAIN_TEXT";
|
|
12
13
|
state?: PromptBlockState.Raw | null;
|
|
13
14
|
cache_config?: EphemeralPromptCacheConfig.Raw | null;
|
|
14
|
-
block_type: "PLAIN_TEXT";
|
|
15
15
|
text: string;
|
|
16
16
|
}
|
|
17
17
|
}
|
|
@@ -31,8 +31,8 @@ const core = __importStar(require("../../core"));
|
|
|
31
31
|
const PromptBlockState_1 = require("./PromptBlockState");
|
|
32
32
|
const EphemeralPromptCacheConfig_1 = require("./EphemeralPromptCacheConfig");
|
|
33
33
|
exports.PlainTextPromptBlock = core.serialization.object({
|
|
34
|
+
blockType: core.serialization.property("block_type", core.serialization.stringLiteral("PLAIN_TEXT")),
|
|
34
35
|
state: PromptBlockState_1.PromptBlockState.optional(),
|
|
35
36
|
cacheConfig: core.serialization.property("cache_config", EphemeralPromptCacheConfig_1.EphemeralPromptCacheConfig.optional()),
|
|
36
|
-
blockType: core.serialization.property("block_type", core.serialization.stringLiteral("PLAIN_TEXT")),
|
|
37
37
|
text: core.serialization.string(),
|
|
38
38
|
});
|
|
@@ -10,9 +10,9 @@ import { RichTextChildBlock } from "./RichTextChildBlock";
|
|
|
10
10
|
export declare const RichTextPromptBlock: core.serialization.ObjectSchema<serializers.RichTextPromptBlock.Raw, Vellum.RichTextPromptBlock>;
|
|
11
11
|
export declare namespace RichTextPromptBlock {
|
|
12
12
|
interface Raw {
|
|
13
|
+
block_type: "RICH_TEXT";
|
|
13
14
|
state?: PromptBlockState.Raw | null;
|
|
14
15
|
cache_config?: EphemeralPromptCacheConfig.Raw | null;
|
|
15
|
-
block_type: "RICH_TEXT";
|
|
16
16
|
blocks: RichTextChildBlock.Raw[];
|
|
17
17
|
}
|
|
18
18
|
}
|
|
@@ -32,8 +32,8 @@ const PromptBlockState_1 = require("./PromptBlockState");
|
|
|
32
32
|
const EphemeralPromptCacheConfig_1 = require("./EphemeralPromptCacheConfig");
|
|
33
33
|
const RichTextChildBlock_1 = require("./RichTextChildBlock");
|
|
34
34
|
exports.RichTextPromptBlock = core.serialization.object({
|
|
35
|
+
blockType: core.serialization.property("block_type", core.serialization.stringLiteral("RICH_TEXT")),
|
|
35
36
|
state: PromptBlockState_1.PromptBlockState.optional(),
|
|
36
37
|
cacheConfig: core.serialization.property("cache_config", EphemeralPromptCacheConfig_1.EphemeralPromptCacheConfig.optional()),
|
|
37
|
-
blockType: core.serialization.property("block_type", core.serialization.stringLiteral("RICH_TEXT")),
|
|
38
38
|
blocks: core.serialization.list(RichTextChildBlock_1.RichTextChildBlock),
|
|
39
39
|
});
|
|
@@ -9,9 +9,9 @@ import { EphemeralPromptCacheConfig } from "./EphemeralPromptCacheConfig";
|
|
|
9
9
|
export declare const VariablePromptBlock: core.serialization.ObjectSchema<serializers.VariablePromptBlock.Raw, Vellum.VariablePromptBlock>;
|
|
10
10
|
export declare namespace VariablePromptBlock {
|
|
11
11
|
interface Raw {
|
|
12
|
+
block_type: "VARIABLE";
|
|
12
13
|
state?: PromptBlockState.Raw | null;
|
|
13
14
|
cache_config?: EphemeralPromptCacheConfig.Raw | null;
|
|
14
|
-
block_type: "VARIABLE";
|
|
15
15
|
input_variable: string;
|
|
16
16
|
}
|
|
17
17
|
}
|
|
@@ -31,8 +31,8 @@ const core = __importStar(require("../../core"));
|
|
|
31
31
|
const PromptBlockState_1 = require("./PromptBlockState");
|
|
32
32
|
const EphemeralPromptCacheConfig_1 = require("./EphemeralPromptCacheConfig");
|
|
33
33
|
exports.VariablePromptBlock = core.serialization.object({
|
|
34
|
+
blockType: core.serialization.property("block_type", core.serialization.stringLiteral("VARIABLE")),
|
|
34
35
|
state: PromptBlockState_1.PromptBlockState.optional(),
|
|
35
36
|
cacheConfig: core.serialization.property("cache_config", EphemeralPromptCacheConfig_1.EphemeralPromptCacheConfig.optional()),
|
|
36
|
-
blockType: core.serialization.property("block_type", core.serialization.stringLiteral("VARIABLE")),
|
|
37
37
|
inputVariable: core.serialization.property("input_variable", core.serialization.string()),
|
|
38
38
|
});
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.12.
|
|
1
|
+
export declare const SDK_VERSION = "0.12.5";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -10,9 +10,9 @@ import { ChatMessageRole } from "./ChatMessageRole";
|
|
|
10
10
|
export declare const ChatMessagePromptBlock: core.serialization.ObjectSchema<serializers.ChatMessagePromptBlock.Raw, Vellum.ChatMessagePromptBlock>;
|
|
11
11
|
export declare namespace ChatMessagePromptBlock {
|
|
12
12
|
interface Raw {
|
|
13
|
+
block_type: "CHAT_MESSAGE";
|
|
13
14
|
state?: PromptBlockState.Raw | null;
|
|
14
15
|
cache_config?: EphemeralPromptCacheConfig.Raw | null;
|
|
15
|
-
block_type: "CHAT_MESSAGE";
|
|
16
16
|
chat_role: ChatMessageRole.Raw;
|
|
17
17
|
chat_source?: string | null;
|
|
18
18
|
chat_message_unterminated?: boolean | null;
|
|
@@ -33,9 +33,9 @@ const PromptBlockState_1 = require("./PromptBlockState");
|
|
|
33
33
|
const EphemeralPromptCacheConfig_1 = require("./EphemeralPromptCacheConfig");
|
|
34
34
|
const ChatMessageRole_1 = require("./ChatMessageRole");
|
|
35
35
|
exports.ChatMessagePromptBlock = core.serialization.object({
|
|
36
|
+
blockType: core.serialization.property("block_type", core.serialization.stringLiteral("CHAT_MESSAGE")),
|
|
36
37
|
state: PromptBlockState_1.PromptBlockState.optional(),
|
|
37
38
|
cacheConfig: core.serialization.property("cache_config", EphemeralPromptCacheConfig_1.EphemeralPromptCacheConfig.optional()),
|
|
38
|
-
blockType: core.serialization.property("block_type", core.serialization.stringLiteral("CHAT_MESSAGE")),
|
|
39
39
|
chatRole: core.serialization.property("chat_role", ChatMessageRole_1.ChatMessageRole),
|
|
40
40
|
chatSource: core.serialization.property("chat_source", core.serialization.string().optional()),
|
|
41
41
|
chatMessageUnterminated: core.serialization.property("chat_message_unterminated", core.serialization.boolean().optional()),
|
|
@@ -9,9 +9,9 @@ import { EphemeralPromptCacheConfig } from "./EphemeralPromptCacheConfig";
|
|
|
9
9
|
export declare const JinjaPromptBlock: core.serialization.ObjectSchema<serializers.JinjaPromptBlock.Raw, Vellum.JinjaPromptBlock>;
|
|
10
10
|
export declare namespace JinjaPromptBlock {
|
|
11
11
|
interface Raw {
|
|
12
|
+
block_type: "JINJA";
|
|
12
13
|
state?: PromptBlockState.Raw | null;
|
|
13
14
|
cache_config?: EphemeralPromptCacheConfig.Raw | null;
|
|
14
|
-
block_type: "JINJA";
|
|
15
15
|
template: string;
|
|
16
16
|
}
|
|
17
17
|
}
|
|
@@ -31,8 +31,8 @@ const core = __importStar(require("../../core"));
|
|
|
31
31
|
const PromptBlockState_1 = require("./PromptBlockState");
|
|
32
32
|
const EphemeralPromptCacheConfig_1 = require("./EphemeralPromptCacheConfig");
|
|
33
33
|
exports.JinjaPromptBlock = core.serialization.object({
|
|
34
|
+
blockType: core.serialization.property("block_type", core.serialization.stringLiteral("JINJA")),
|
|
34
35
|
state: PromptBlockState_1.PromptBlockState.optional(),
|
|
35
36
|
cacheConfig: core.serialization.property("cache_config", EphemeralPromptCacheConfig_1.EphemeralPromptCacheConfig.optional()),
|
|
36
|
-
blockType: core.serialization.property("block_type", core.serialization.stringLiteral("JINJA")),
|
|
37
37
|
template: core.serialization.string(),
|
|
38
38
|
});
|
|
@@ -9,9 +9,9 @@ import { EphemeralPromptCacheConfig } from "./EphemeralPromptCacheConfig";
|
|
|
9
9
|
export declare const PlainTextPromptBlock: core.serialization.ObjectSchema<serializers.PlainTextPromptBlock.Raw, Vellum.PlainTextPromptBlock>;
|
|
10
10
|
export declare namespace PlainTextPromptBlock {
|
|
11
11
|
interface Raw {
|
|
12
|
+
block_type: "PLAIN_TEXT";
|
|
12
13
|
state?: PromptBlockState.Raw | null;
|
|
13
14
|
cache_config?: EphemeralPromptCacheConfig.Raw | null;
|
|
14
|
-
block_type: "PLAIN_TEXT";
|
|
15
15
|
text: string;
|
|
16
16
|
}
|
|
17
17
|
}
|
|
@@ -31,8 +31,8 @@ const core = __importStar(require("../../core"));
|
|
|
31
31
|
const PromptBlockState_1 = require("./PromptBlockState");
|
|
32
32
|
const EphemeralPromptCacheConfig_1 = require("./EphemeralPromptCacheConfig");
|
|
33
33
|
exports.PlainTextPromptBlock = core.serialization.object({
|
|
34
|
+
blockType: core.serialization.property("block_type", core.serialization.stringLiteral("PLAIN_TEXT")),
|
|
34
35
|
state: PromptBlockState_1.PromptBlockState.optional(),
|
|
35
36
|
cacheConfig: core.serialization.property("cache_config", EphemeralPromptCacheConfig_1.EphemeralPromptCacheConfig.optional()),
|
|
36
|
-
blockType: core.serialization.property("block_type", core.serialization.stringLiteral("PLAIN_TEXT")),
|
|
37
37
|
text: core.serialization.string(),
|
|
38
38
|
});
|
|
@@ -10,9 +10,9 @@ import { RichTextChildBlock } from "./RichTextChildBlock";
|
|
|
10
10
|
export declare const RichTextPromptBlock: core.serialization.ObjectSchema<serializers.RichTextPromptBlock.Raw, Vellum.RichTextPromptBlock>;
|
|
11
11
|
export declare namespace RichTextPromptBlock {
|
|
12
12
|
interface Raw {
|
|
13
|
+
block_type: "RICH_TEXT";
|
|
13
14
|
state?: PromptBlockState.Raw | null;
|
|
14
15
|
cache_config?: EphemeralPromptCacheConfig.Raw | null;
|
|
15
|
-
block_type: "RICH_TEXT";
|
|
16
16
|
blocks: RichTextChildBlock.Raw[];
|
|
17
17
|
}
|
|
18
18
|
}
|
|
@@ -32,8 +32,8 @@ const PromptBlockState_1 = require("./PromptBlockState");
|
|
|
32
32
|
const EphemeralPromptCacheConfig_1 = require("./EphemeralPromptCacheConfig");
|
|
33
33
|
const RichTextChildBlock_1 = require("./RichTextChildBlock");
|
|
34
34
|
exports.RichTextPromptBlock = core.serialization.object({
|
|
35
|
+
blockType: core.serialization.property("block_type", core.serialization.stringLiteral("RICH_TEXT")),
|
|
35
36
|
state: PromptBlockState_1.PromptBlockState.optional(),
|
|
36
37
|
cacheConfig: core.serialization.property("cache_config", EphemeralPromptCacheConfig_1.EphemeralPromptCacheConfig.optional()),
|
|
37
|
-
blockType: core.serialization.property("block_type", core.serialization.stringLiteral("RICH_TEXT")),
|
|
38
38
|
blocks: core.serialization.list(RichTextChildBlock_1.RichTextChildBlock),
|
|
39
39
|
});
|
|
@@ -9,9 +9,9 @@ import { EphemeralPromptCacheConfig } from "./EphemeralPromptCacheConfig";
|
|
|
9
9
|
export declare const VariablePromptBlock: core.serialization.ObjectSchema<serializers.VariablePromptBlock.Raw, Vellum.VariablePromptBlock>;
|
|
10
10
|
export declare namespace VariablePromptBlock {
|
|
11
11
|
interface Raw {
|
|
12
|
+
block_type: "VARIABLE";
|
|
12
13
|
state?: PromptBlockState.Raw | null;
|
|
13
14
|
cache_config?: EphemeralPromptCacheConfig.Raw | null;
|
|
14
|
-
block_type: "VARIABLE";
|
|
15
15
|
input_variable: string;
|
|
16
16
|
}
|
|
17
17
|
}
|
|
@@ -31,8 +31,8 @@ const core = __importStar(require("../../core"));
|
|
|
31
31
|
const PromptBlockState_1 = require("./PromptBlockState");
|
|
32
32
|
const EphemeralPromptCacheConfig_1 = require("./EphemeralPromptCacheConfig");
|
|
33
33
|
exports.VariablePromptBlock = core.serialization.object({
|
|
34
|
+
blockType: core.serialization.property("block_type", core.serialization.stringLiteral("VARIABLE")),
|
|
34
35
|
state: PromptBlockState_1.PromptBlockState.optional(),
|
|
35
36
|
cacheConfig: core.serialization.property("cache_config", EphemeralPromptCacheConfig_1.EphemeralPromptCacheConfig.optional()),
|
|
36
|
-
blockType: core.serialization.property("block_type", core.serialization.stringLiteral("VARIABLE")),
|
|
37
37
|
inputVariable: core.serialization.property("input_variable", core.serialization.string()),
|
|
38
38
|
});
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.12.
|
|
1
|
+
export declare const SDK_VERSION = "0.12.5";
|
package/version.js
CHANGED