vellum-ai 0.9.6 → 0.9.7
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 +90 -88
- package/.mock/definition/adHoc.yml +7 -7
- package/.mock/openapi/openapi.yml +111 -136
- package/Client.js +10 -10
- package/api/resources/adHoc/client/Client.d.ts +1 -1
- package/api/resources/adHoc/client/Client.js +2 -2
- package/api/resources/adHoc/client/requests/{AdHocExecutePromptStreamRequest.d.ts → AdHocExecutePromptStream.d.ts} +14 -20
- package/api/resources/adHoc/client/requests/index.d.ts +1 -1
- package/api/resources/containerImages/client/Client.js +4 -4
- package/api/resources/deployments/client/Client.js +6 -6
- 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 +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 +5 -5
- package/api/resources/workflowSandboxes/client/Client.js +1 -1
- package/api/resources/workflows/client/Client.js +2 -2
- package/api/resources/workspaceSecrets/client/Client.js +2 -2
- package/{dist/api/types/AdHocExpandMetaRequest.d.ts → api/types/AdHocExpandMeta.d.ts} +1 -1
- package/api/types/{PromptParametersRequest.d.ts → PromptParameters.d.ts} +1 -1
- package/api/types/{PromptRequestChatHistoryInputRequest.d.ts → PromptRequestChatHistoryInput.d.ts} +2 -2
- package/api/types/PromptRequestInput.d.ts +5 -0
- package/{dist/api/types/PromptRequestJsonInputRequest.d.ts → api/types/PromptRequestJsonInput.d.ts} +1 -1
- package/api/types/{PromptRequestStringInputRequest.d.ts → PromptRequestStringInput.d.ts} +1 -1
- package/api/types/{PromptSettingsRequest.d.ts → PromptSettings.d.ts} +1 -1
- package/api/types/index.d.ts +7 -23
- package/api/types/index.js +7 -23
- package/dist/Client.js +10 -10
- package/dist/api/resources/adHoc/client/Client.d.ts +1 -1
- package/dist/api/resources/adHoc/client/Client.js +2 -2
- package/dist/api/resources/adHoc/client/requests/{AdHocExecutePromptStreamRequest.d.ts → AdHocExecutePromptStream.d.ts} +14 -20
- package/dist/api/resources/adHoc/client/requests/index.d.ts +1 -1
- package/dist/api/resources/containerImages/client/Client.js +4 -4
- package/dist/api/resources/deployments/client/Client.js +6 -6
- 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 +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 +5 -5
- package/dist/api/resources/workflowSandboxes/client/Client.js +1 -1
- package/dist/api/resources/workflows/client/Client.js +2 -2
- package/dist/api/resources/workspaceSecrets/client/Client.js +2 -2
- package/{api/types/AdHocExpandMetaRequest.d.ts → dist/api/types/AdHocExpandMeta.d.ts} +1 -1
- package/dist/api/types/{PromptParametersRequest.d.ts → PromptParameters.d.ts} +1 -1
- package/dist/api/types/{PromptRequestChatHistoryInputRequest.d.ts → PromptRequestChatHistoryInput.d.ts} +2 -2
- package/dist/api/types/PromptRequestInput.d.ts +5 -0
- package/{api/types/PromptRequestJsonInputRequest.d.ts → dist/api/types/PromptRequestJsonInput.d.ts} +1 -1
- package/dist/api/types/{PromptRequestStringInputRequest.d.ts → PromptRequestStringInput.d.ts} +1 -1
- package/dist/api/types/{PromptSettingsRequest.d.ts → PromptSettings.d.ts} +1 -1
- package/dist/api/types/index.d.ts +7 -23
- package/dist/api/types/index.js +7 -23
- package/dist/serialization/resources/adHoc/client/requests/AdHocExecutePromptStream.d.ts +23 -0
- package/{serialization/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.js → dist/serialization/resources/adHoc/client/requests/AdHocExecutePromptStream.js} +13 -14
- package/dist/serialization/resources/adHoc/client/requests/index.d.ts +1 -1
- package/dist/serialization/resources/adHoc/client/requests/index.js +3 -3
- package/dist/serialization/types/{AdHocExpandMetaRequest.d.ts → AdHocExpandMeta.d.ts} +2 -2
- package/dist/serialization/types/{AdHocExpandMetaRequest.js → AdHocExpandMeta.js} +2 -2
- package/dist/serialization/types/{PromptParametersRequest.d.ts → PromptParameters.d.ts} +2 -2
- package/dist/serialization/types/{PromptParametersRequest.js → PromptParameters.js} +2 -2
- package/dist/serialization/types/PromptRequestChatHistoryInput.d.ts +15 -0
- package/dist/serialization/types/{PromptRequestChatHistoryInputRequest.js → PromptRequestChatHistoryInput.js} +4 -4
- package/dist/serialization/types/PromptRequestInput.d.ts +13 -0
- package/dist/serialization/types/{JinjaPromptBlockPropertiesRequest.js → PromptRequestInput.js} +9 -6
- package/{serialization/types/PromptRequestJsonInputRequest.d.ts → dist/serialization/types/PromptRequestJsonInput.d.ts} +2 -2
- package/{serialization/types/PromptRequestJsonInputRequest.js → dist/serialization/types/PromptRequestJsonInput.js} +2 -2
- package/dist/serialization/types/{PromptRequestStringInputRequest.d.ts → PromptRequestStringInput.d.ts} +2 -2
- package/{serialization/types/PromptRequestStringInputRequest.js → dist/serialization/types/PromptRequestStringInput.js} +2 -2
- package/dist/serialization/types/{PromptSettingsRequest.d.ts → PromptSettings.d.ts} +2 -2
- package/dist/serialization/types/{PromptSettingsRequest.js → PromptSettings.js} +2 -2
- package/dist/serialization/types/index.d.ts +7 -23
- package/dist/serialization/types/index.js +7 -23
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +8 -14
- package/serialization/resources/adHoc/client/requests/AdHocExecutePromptStream.d.ts +23 -0
- package/{dist/serialization/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.js → serialization/resources/adHoc/client/requests/AdHocExecutePromptStream.js} +13 -14
- package/serialization/resources/adHoc/client/requests/index.d.ts +1 -1
- package/serialization/resources/adHoc/client/requests/index.js +3 -3
- package/serialization/types/{AdHocExpandMetaRequest.d.ts → AdHocExpandMeta.d.ts} +2 -2
- package/serialization/types/{AdHocExpandMetaRequest.js → AdHocExpandMeta.js} +2 -2
- package/serialization/types/{PromptParametersRequest.d.ts → PromptParameters.d.ts} +2 -2
- package/serialization/types/{PromptParametersRequest.js → PromptParameters.js} +2 -2
- package/serialization/types/PromptRequestChatHistoryInput.d.ts +15 -0
- package/serialization/types/{PromptRequestChatHistoryInputRequest.js → PromptRequestChatHistoryInput.js} +4 -4
- package/serialization/types/PromptRequestInput.d.ts +13 -0
- package/{dist/serialization/types/EphemeralPromptCacheConfigTypeEnum.js → serialization/types/PromptRequestInput.js} +9 -2
- package/{dist/serialization/types/PromptRequestJsonInputRequest.d.ts → serialization/types/PromptRequestJsonInput.d.ts} +2 -2
- package/{dist/serialization/types/PromptRequestJsonInputRequest.js → serialization/types/PromptRequestJsonInput.js} +2 -2
- package/serialization/types/{PromptRequestStringInputRequest.d.ts → PromptRequestStringInput.d.ts} +2 -2
- package/{dist/serialization/types/PromptRequestStringInputRequest.js → serialization/types/PromptRequestStringInput.js} +2 -2
- package/serialization/types/{PromptSettingsRequest.d.ts → PromptSettings.d.ts} +2 -2
- package/serialization/types/{PromptSettingsRequest.js → PromptSettings.js} +2 -2
- package/serialization/types/index.d.ts +7 -23
- package/serialization/types/index.js +7 -23
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/types/ChatMessagePromptBlockPropertiesRequest.d.ts +0 -13
- package/api/types/ChatMessagePromptBlockRequest.d.ts +0 -13
- package/api/types/EphemeralPromptCacheConfigRequest.d.ts +0 -7
- package/api/types/EphemeralPromptCacheConfigTypeEnum.d.ts +0 -7
- package/api/types/FunctionDefinitionPromptBlockPropertiesRequest.d.ts +0 -15
- package/api/types/FunctionDefinitionPromptBlockRequest.d.ts +0 -13
- package/api/types/JinjaPromptBlockPropertiesRequest.d.ts +0 -8
- package/api/types/JinjaPromptBlockRequest.d.ts +0 -13
- package/api/types/PlainTextPromptBlockRequest.d.ts +0 -13
- package/api/types/PromptBlockRequest.d.ts +0 -5
- package/api/types/PromptBlockState.d.ts +0 -12
- package/api/types/PromptBlockState.js +0 -10
- package/api/types/PromptRequestInputRequest.d.ts +0 -5
- package/api/types/PromptRequestStringInputRequest.js +0 -5
- package/api/types/PromptSettingsRequest.js +0 -5
- package/api/types/RichTextChildBlockRequest.d.ts +0 -5
- package/api/types/RichTextChildBlockRequest.js +0 -5
- package/api/types/RichTextPromptBlockRequest.d.ts +0 -14
- package/api/types/RichTextPromptBlockRequest.js +0 -5
- package/api/types/VariablePromptBlockRequest.d.ts +0 -13
- package/api/types/VariablePromptBlockRequest.js +0 -5
- package/api/types/VellumVariableExtensionsRequest.d.ts +0 -9
- package/api/types/VellumVariableExtensionsRequest.js +0 -5
- package/api/types/VellumVariableRequest.d.ts +0 -12
- package/api/types/VellumVariableRequest.js +0 -5
- package/dist/api/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.js +0 -5
- package/dist/api/types/AdHocExpandMetaRequest.js +0 -5
- package/dist/api/types/ChatMessagePromptBlockPropertiesRequest.d.ts +0 -13
- package/dist/api/types/ChatMessagePromptBlockPropertiesRequest.js +0 -5
- package/dist/api/types/ChatMessagePromptBlockRequest.d.ts +0 -13
- package/dist/api/types/ChatMessagePromptBlockRequest.js +0 -5
- package/dist/api/types/EphemeralPromptCacheConfigRequest.d.ts +0 -7
- package/dist/api/types/EphemeralPromptCacheConfigRequest.js +0 -5
- package/dist/api/types/EphemeralPromptCacheConfigTypeEnum.d.ts +0 -7
- package/dist/api/types/EphemeralPromptCacheConfigTypeEnum.js +0 -5
- package/dist/api/types/FunctionDefinitionPromptBlockPropertiesRequest.d.ts +0 -15
- package/dist/api/types/FunctionDefinitionPromptBlockPropertiesRequest.js +0 -5
- package/dist/api/types/FunctionDefinitionPromptBlockRequest.d.ts +0 -13
- package/dist/api/types/FunctionDefinitionPromptBlockRequest.js +0 -5
- package/dist/api/types/JinjaPromptBlockPropertiesRequest.d.ts +0 -8
- package/dist/api/types/JinjaPromptBlockPropertiesRequest.js +0 -5
- package/dist/api/types/JinjaPromptBlockRequest.d.ts +0 -13
- package/dist/api/types/JinjaPromptBlockRequest.js +0 -5
- package/dist/api/types/PlainTextPromptBlockRequest.d.ts +0 -13
- package/dist/api/types/PlainTextPromptBlockRequest.js +0 -5
- package/dist/api/types/PromptBlockRequest.d.ts +0 -5
- package/dist/api/types/PromptBlockRequest.js +0 -5
- package/dist/api/types/PromptBlockState.d.ts +0 -12
- package/dist/api/types/PromptBlockState.js +0 -10
- package/dist/api/types/PromptParametersRequest.js +0 -5
- package/dist/api/types/PromptRequestChatHistoryInputRequest.js +0 -5
- package/dist/api/types/PromptRequestInputRequest.d.ts +0 -5
- package/dist/api/types/PromptRequestInputRequest.js +0 -5
- package/dist/api/types/PromptRequestJsonInputRequest.js +0 -5
- package/dist/api/types/PromptRequestStringInputRequest.js +0 -5
- package/dist/api/types/PromptSettingsRequest.js +0 -5
- package/dist/api/types/RichTextChildBlockRequest.d.ts +0 -5
- package/dist/api/types/RichTextChildBlockRequest.js +0 -5
- package/dist/api/types/RichTextPromptBlockRequest.d.ts +0 -14
- package/dist/api/types/RichTextPromptBlockRequest.js +0 -5
- package/dist/api/types/VariablePromptBlockRequest.d.ts +0 -13
- package/dist/api/types/VariablePromptBlockRequest.js +0 -5
- package/dist/api/types/VellumVariableExtensionsRequest.d.ts +0 -9
- package/dist/api/types/VellumVariableExtensionsRequest.js +0 -5
- package/dist/api/types/VellumVariableRequest.d.ts +0 -12
- package/dist/api/types/VellumVariableRequest.js +0 -5
- package/dist/serialization/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.d.ts +0 -23
- package/dist/serialization/types/ChatMessagePromptBlockPropertiesRequest.d.ts +0 -16
- package/dist/serialization/types/ChatMessagePromptBlockPropertiesRequest.js +0 -38
- package/dist/serialization/types/ChatMessagePromptBlockRequest.d.ts +0 -17
- package/dist/serialization/types/ChatMessagePromptBlockRequest.js +0 -39
- package/dist/serialization/types/EphemeralPromptCacheConfigRequest.d.ts +0 -13
- package/dist/serialization/types/EphemeralPromptCacheConfigRequest.js +0 -34
- package/dist/serialization/types/EphemeralPromptCacheConfigTypeEnum.d.ts +0 -10
- package/dist/serialization/types/FunctionDefinitionPromptBlockPropertiesRequest.d.ts +0 -16
- package/dist/serialization/types/FunctionDefinitionPromptBlockPropertiesRequest.js +0 -37
- package/dist/serialization/types/FunctionDefinitionPromptBlockRequest.d.ts +0 -18
- package/dist/serialization/types/FunctionDefinitionPromptBlockRequest.js +0 -39
- package/dist/serialization/types/JinjaPromptBlockPropertiesRequest.d.ts +0 -14
- package/dist/serialization/types/JinjaPromptBlockRequest.d.ts +0 -18
- package/dist/serialization/types/JinjaPromptBlockRequest.js +0 -39
- package/dist/serialization/types/PlainTextPromptBlockRequest.d.ts +0 -17
- package/dist/serialization/types/PlainTextPromptBlockRequest.js +0 -38
- package/dist/serialization/types/PromptBlockRequest.d.ts +0 -14
- package/dist/serialization/types/PromptBlockRequest.js +0 -42
- package/dist/serialization/types/PromptBlockState.d.ts +0 -10
- package/dist/serialization/types/PromptBlockState.js +0 -31
- package/dist/serialization/types/PromptRequestChatHistoryInputRequest.d.ts +0 -15
- package/dist/serialization/types/PromptRequestInputRequest.d.ts +0 -13
- package/dist/serialization/types/PromptRequestInputRequest.js +0 -38
- package/dist/serialization/types/RichTextChildBlockRequest.d.ts +0 -12
- package/dist/serialization/types/RichTextChildBlockRequest.js +0 -33
- package/dist/serialization/types/RichTextPromptBlockRequest.d.ts +0 -19
- package/dist/serialization/types/RichTextPromptBlockRequest.js +0 -40
- package/dist/serialization/types/VariablePromptBlockRequest.d.ts +0 -17
- package/dist/serialization/types/VariablePromptBlockRequest.js +0 -38
- package/dist/serialization/types/VellumVariableExtensionsRequest.d.ts +0 -12
- package/dist/serialization/types/VellumVariableExtensionsRequest.js +0 -33
- package/dist/serialization/types/VellumVariableRequest.d.ts +0 -19
- package/dist/serialization/types/VellumVariableRequest.js +0 -41
- package/serialization/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.d.ts +0 -23
- package/serialization/types/ChatMessagePromptBlockPropertiesRequest.d.ts +0 -16
- package/serialization/types/ChatMessagePromptBlockPropertiesRequest.js +0 -38
- package/serialization/types/ChatMessagePromptBlockRequest.d.ts +0 -17
- package/serialization/types/ChatMessagePromptBlockRequest.js +0 -39
- package/serialization/types/EphemeralPromptCacheConfigRequest.d.ts +0 -13
- package/serialization/types/EphemeralPromptCacheConfigRequest.js +0 -34
- package/serialization/types/EphemeralPromptCacheConfigTypeEnum.d.ts +0 -10
- package/serialization/types/EphemeralPromptCacheConfigTypeEnum.js +0 -31
- package/serialization/types/FunctionDefinitionPromptBlockPropertiesRequest.d.ts +0 -16
- package/serialization/types/FunctionDefinitionPromptBlockPropertiesRequest.js +0 -37
- package/serialization/types/FunctionDefinitionPromptBlockRequest.d.ts +0 -18
- package/serialization/types/FunctionDefinitionPromptBlockRequest.js +0 -39
- package/serialization/types/JinjaPromptBlockPropertiesRequest.d.ts +0 -14
- package/serialization/types/JinjaPromptBlockPropertiesRequest.js +0 -35
- package/serialization/types/JinjaPromptBlockRequest.d.ts +0 -18
- package/serialization/types/JinjaPromptBlockRequest.js +0 -39
- package/serialization/types/PlainTextPromptBlockRequest.d.ts +0 -17
- package/serialization/types/PlainTextPromptBlockRequest.js +0 -38
- package/serialization/types/PromptBlockRequest.d.ts +0 -14
- package/serialization/types/PromptBlockRequest.js +0 -42
- package/serialization/types/PromptBlockState.d.ts +0 -10
- package/serialization/types/PromptBlockState.js +0 -31
- package/serialization/types/PromptRequestChatHistoryInputRequest.d.ts +0 -15
- package/serialization/types/PromptRequestInputRequest.d.ts +0 -13
- package/serialization/types/PromptRequestInputRequest.js +0 -38
- package/serialization/types/RichTextChildBlockRequest.d.ts +0 -12
- package/serialization/types/RichTextChildBlockRequest.js +0 -33
- package/serialization/types/RichTextPromptBlockRequest.d.ts +0 -19
- package/serialization/types/RichTextPromptBlockRequest.js +0 -40
- package/serialization/types/VariablePromptBlockRequest.d.ts +0 -17
- package/serialization/types/VariablePromptBlockRequest.js +0 -38
- package/serialization/types/VellumVariableExtensionsRequest.d.ts +0 -12
- package/serialization/types/VellumVariableExtensionsRequest.js +0 -33
- package/serialization/types/VellumVariableRequest.d.ts +0 -19
- package/serialization/types/VellumVariableRequest.js +0 -41
- /package/api/resources/adHoc/client/requests/{AdHocExecutePromptStreamRequest.js → AdHocExecutePromptStream.js} +0 -0
- /package/api/types/{AdHocExpandMetaRequest.js → AdHocExpandMeta.js} +0 -0
- /package/api/types/{ChatMessagePromptBlockPropertiesRequest.js → PromptParameters.js} +0 -0
- /package/api/types/{ChatMessagePromptBlockRequest.js → PromptRequestChatHistoryInput.js} +0 -0
- /package/api/types/{EphemeralPromptCacheConfigRequest.js → PromptRequestInput.js} +0 -0
- /package/api/types/{EphemeralPromptCacheConfigTypeEnum.js → PromptRequestJsonInput.js} +0 -0
- /package/api/types/{FunctionDefinitionPromptBlockPropertiesRequest.js → PromptRequestStringInput.js} +0 -0
- /package/api/types/{FunctionDefinitionPromptBlockRequest.js → PromptSettings.js} +0 -0
- /package/{api/types/JinjaPromptBlockPropertiesRequest.js → dist/api/resources/adHoc/client/requests/AdHocExecutePromptStream.js} +0 -0
- /package/{api/types/JinjaPromptBlockRequest.js → dist/api/types/AdHocExpandMeta.js} +0 -0
- /package/{api/types/PlainTextPromptBlockRequest.js → dist/api/types/PromptParameters.js} +0 -0
- /package/{api/types/PromptBlockRequest.js → dist/api/types/PromptRequestChatHistoryInput.js} +0 -0
- /package/{api/types/PromptParametersRequest.js → dist/api/types/PromptRequestInput.js} +0 -0
- /package/{api/types/PromptRequestChatHistoryInputRequest.js → dist/api/types/PromptRequestJsonInput.js} +0 -0
- /package/{api/types/PromptRequestInputRequest.js → dist/api/types/PromptRequestStringInput.js} +0 -0
- /package/{api/types/PromptRequestJsonInputRequest.js → dist/api/types/PromptSettings.js} +0 -0
|
@@ -1,37 +0,0 @@
|
|
|
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.FunctionDefinitionPromptBlockPropertiesRequest = void 0;
|
|
30
|
-
const core = __importStar(require("../../core"));
|
|
31
|
-
exports.FunctionDefinitionPromptBlockPropertiesRequest = core.serialization.object({
|
|
32
|
-
functionName: core.serialization.property("function_name", core.serialization.string().optional()),
|
|
33
|
-
functionDescription: core.serialization.property("function_description", core.serialization.string().optional()),
|
|
34
|
-
functionParameters: core.serialization.property("function_parameters", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
|
|
35
|
-
functionForced: core.serialization.property("function_forced", core.serialization.boolean().optional()),
|
|
36
|
-
functionStrict: core.serialization.property("function_strict", core.serialization.boolean().optional()),
|
|
37
|
-
});
|
|
@@ -1,18 +0,0 @@
|
|
|
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 { EphemeralPromptCacheConfigRequest } from "./EphemeralPromptCacheConfigRequest";
|
|
9
|
-
import { FunctionDefinitionPromptBlockPropertiesRequest } from "./FunctionDefinitionPromptBlockPropertiesRequest";
|
|
10
|
-
export declare const FunctionDefinitionPromptBlockRequest: core.serialization.ObjectSchema<serializers.FunctionDefinitionPromptBlockRequest.Raw, Vellum.FunctionDefinitionPromptBlockRequest>;
|
|
11
|
-
export declare namespace FunctionDefinitionPromptBlockRequest {
|
|
12
|
-
interface Raw {
|
|
13
|
-
state?: PromptBlockState.Raw | null;
|
|
14
|
-
cache_config?: EphemeralPromptCacheConfigRequest.Raw | null;
|
|
15
|
-
block_type: "FUNCTION_DEFINITION";
|
|
16
|
-
properties: FunctionDefinitionPromptBlockPropertiesRequest.Raw;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
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.FunctionDefinitionPromptBlockRequest = void 0;
|
|
30
|
-
const core = __importStar(require("../../core"));
|
|
31
|
-
const PromptBlockState_1 = require("./PromptBlockState");
|
|
32
|
-
const EphemeralPromptCacheConfigRequest_1 = require("./EphemeralPromptCacheConfigRequest");
|
|
33
|
-
const FunctionDefinitionPromptBlockPropertiesRequest_1 = require("./FunctionDefinitionPromptBlockPropertiesRequest");
|
|
34
|
-
exports.FunctionDefinitionPromptBlockRequest = core.serialization.object({
|
|
35
|
-
state: PromptBlockState_1.PromptBlockState.optional(),
|
|
36
|
-
cacheConfig: core.serialization.property("cache_config", EphemeralPromptCacheConfigRequest_1.EphemeralPromptCacheConfigRequest.optional()),
|
|
37
|
-
blockType: core.serialization.property("block_type", core.serialization.stringLiteral("FUNCTION_DEFINITION")),
|
|
38
|
-
properties: FunctionDefinitionPromptBlockPropertiesRequest_1.FunctionDefinitionPromptBlockPropertiesRequest,
|
|
39
|
-
});
|
|
@@ -1,14 +0,0 @@
|
|
|
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 { VellumVariableType } from "./VellumVariableType";
|
|
8
|
-
export declare const JinjaPromptBlockPropertiesRequest: core.serialization.ObjectSchema<serializers.JinjaPromptBlockPropertiesRequest.Raw, Vellum.JinjaPromptBlockPropertiesRequest>;
|
|
9
|
-
export declare namespace JinjaPromptBlockPropertiesRequest {
|
|
10
|
-
interface Raw {
|
|
11
|
-
template?: string | null;
|
|
12
|
-
template_type?: VellumVariableType.Raw | null;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
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 { EphemeralPromptCacheConfigRequest } from "./EphemeralPromptCacheConfigRequest";
|
|
9
|
-
import { JinjaPromptBlockPropertiesRequest } from "./JinjaPromptBlockPropertiesRequest";
|
|
10
|
-
export declare const JinjaPromptBlockRequest: core.serialization.ObjectSchema<serializers.JinjaPromptBlockRequest.Raw, Vellum.JinjaPromptBlockRequest>;
|
|
11
|
-
export declare namespace JinjaPromptBlockRequest {
|
|
12
|
-
interface Raw {
|
|
13
|
-
state?: PromptBlockState.Raw | null;
|
|
14
|
-
cache_config?: EphemeralPromptCacheConfigRequest.Raw | null;
|
|
15
|
-
block_type: "JINJA";
|
|
16
|
-
properties: JinjaPromptBlockPropertiesRequest.Raw;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
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.JinjaPromptBlockRequest = void 0;
|
|
30
|
-
const core = __importStar(require("../../core"));
|
|
31
|
-
const PromptBlockState_1 = require("./PromptBlockState");
|
|
32
|
-
const EphemeralPromptCacheConfigRequest_1 = require("./EphemeralPromptCacheConfigRequest");
|
|
33
|
-
const JinjaPromptBlockPropertiesRequest_1 = require("./JinjaPromptBlockPropertiesRequest");
|
|
34
|
-
exports.JinjaPromptBlockRequest = core.serialization.object({
|
|
35
|
-
state: PromptBlockState_1.PromptBlockState.optional(),
|
|
36
|
-
cacheConfig: core.serialization.property("cache_config", EphemeralPromptCacheConfigRequest_1.EphemeralPromptCacheConfigRequest.optional()),
|
|
37
|
-
blockType: core.serialization.property("block_type", core.serialization.stringLiteral("JINJA")),
|
|
38
|
-
properties: JinjaPromptBlockPropertiesRequest_1.JinjaPromptBlockPropertiesRequest,
|
|
39
|
-
});
|
|
@@ -1,17 +0,0 @@
|
|
|
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 { EphemeralPromptCacheConfigRequest } from "./EphemeralPromptCacheConfigRequest";
|
|
9
|
-
export declare const PlainTextPromptBlockRequest: core.serialization.ObjectSchema<serializers.PlainTextPromptBlockRequest.Raw, Vellum.PlainTextPromptBlockRequest>;
|
|
10
|
-
export declare namespace PlainTextPromptBlockRequest {
|
|
11
|
-
interface Raw {
|
|
12
|
-
state?: PromptBlockState.Raw | null;
|
|
13
|
-
cache_config?: EphemeralPromptCacheConfigRequest.Raw | null;
|
|
14
|
-
block_type: "PLAIN_TEXT";
|
|
15
|
-
text: string;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
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.PlainTextPromptBlockRequest = void 0;
|
|
30
|
-
const core = __importStar(require("../../core"));
|
|
31
|
-
const PromptBlockState_1 = require("./PromptBlockState");
|
|
32
|
-
const EphemeralPromptCacheConfigRequest_1 = require("./EphemeralPromptCacheConfigRequest");
|
|
33
|
-
exports.PlainTextPromptBlockRequest = core.serialization.object({
|
|
34
|
-
state: PromptBlockState_1.PromptBlockState.optional(),
|
|
35
|
-
cacheConfig: core.serialization.property("cache_config", EphemeralPromptCacheConfigRequest_1.EphemeralPromptCacheConfigRequest.optional()),
|
|
36
|
-
blockType: core.serialization.property("block_type", core.serialization.stringLiteral("PLAIN_TEXT")),
|
|
37
|
-
text: core.serialization.string(),
|
|
38
|
-
});
|
|
@@ -1,14 +0,0 @@
|
|
|
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 { JinjaPromptBlockRequest } from "./JinjaPromptBlockRequest";
|
|
8
|
-
import { FunctionDefinitionPromptBlockRequest } from "./FunctionDefinitionPromptBlockRequest";
|
|
9
|
-
import { VariablePromptBlockRequest } from "./VariablePromptBlockRequest";
|
|
10
|
-
import { RichTextPromptBlockRequest } from "./RichTextPromptBlockRequest";
|
|
11
|
-
export declare const PromptBlockRequest: core.serialization.Schema<serializers.PromptBlockRequest.Raw, Vellum.PromptBlockRequest>;
|
|
12
|
-
export declare namespace PromptBlockRequest {
|
|
13
|
-
type Raw = JinjaPromptBlockRequest.Raw | serializers.ChatMessagePromptBlockRequest.Raw | FunctionDefinitionPromptBlockRequest.Raw | VariablePromptBlockRequest.Raw | RichTextPromptBlockRequest.Raw;
|
|
14
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
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.PromptBlockRequest = void 0;
|
|
30
|
-
const serializers = __importStar(require("../index"));
|
|
31
|
-
const core = __importStar(require("../../core"));
|
|
32
|
-
const JinjaPromptBlockRequest_1 = require("./JinjaPromptBlockRequest");
|
|
33
|
-
const FunctionDefinitionPromptBlockRequest_1 = require("./FunctionDefinitionPromptBlockRequest");
|
|
34
|
-
const VariablePromptBlockRequest_1 = require("./VariablePromptBlockRequest");
|
|
35
|
-
const RichTextPromptBlockRequest_1 = require("./RichTextPromptBlockRequest");
|
|
36
|
-
exports.PromptBlockRequest = core.serialization.undiscriminatedUnion([
|
|
37
|
-
JinjaPromptBlockRequest_1.JinjaPromptBlockRequest,
|
|
38
|
-
core.serialization.lazyObject(() => serializers.ChatMessagePromptBlockRequest),
|
|
39
|
-
FunctionDefinitionPromptBlockRequest_1.FunctionDefinitionPromptBlockRequest,
|
|
40
|
-
VariablePromptBlockRequest_1.VariablePromptBlockRequest,
|
|
41
|
-
RichTextPromptBlockRequest_1.RichTextPromptBlockRequest,
|
|
42
|
-
]);
|
|
@@ -1,10 +0,0 @@
|
|
|
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 PromptBlockState: core.serialization.Schema<serializers.PromptBlockState.Raw, Vellum.PromptBlockState>;
|
|
8
|
-
export declare namespace PromptBlockState {
|
|
9
|
-
type Raw = "ENABLED" | "DISABLED";
|
|
10
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
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.PromptBlockState = void 0;
|
|
30
|
-
const core = __importStar(require("../../core"));
|
|
31
|
-
exports.PromptBlockState = core.serialization.enum_(["ENABLED", "DISABLED"]);
|
|
@@ -1,15 +0,0 @@
|
|
|
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 { ChatMessageRequest } from "./ChatMessageRequest";
|
|
8
|
-
export declare const PromptRequestChatHistoryInputRequest: core.serialization.ObjectSchema<serializers.PromptRequestChatHistoryInputRequest.Raw, Vellum.PromptRequestChatHistoryInputRequest>;
|
|
9
|
-
export declare namespace PromptRequestChatHistoryInputRequest {
|
|
10
|
-
interface Raw {
|
|
11
|
-
key: string;
|
|
12
|
-
type: "CHAT_HISTORY";
|
|
13
|
-
value: ChatMessageRequest.Raw[];
|
|
14
|
-
}
|
|
15
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
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 { PromptRequestStringInputRequest } from "./PromptRequestStringInputRequest";
|
|
8
|
-
import { PromptRequestJsonInputRequest } from "./PromptRequestJsonInputRequest";
|
|
9
|
-
import { PromptRequestChatHistoryInputRequest } from "./PromptRequestChatHistoryInputRequest";
|
|
10
|
-
export declare const PromptRequestInputRequest: core.serialization.Schema<serializers.PromptRequestInputRequest.Raw, Vellum.PromptRequestInputRequest>;
|
|
11
|
-
export declare namespace PromptRequestInputRequest {
|
|
12
|
-
type Raw = PromptRequestStringInputRequest.Raw | PromptRequestJsonInputRequest.Raw | PromptRequestChatHistoryInputRequest.Raw;
|
|
13
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
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.PromptRequestInputRequest = void 0;
|
|
30
|
-
const core = __importStar(require("../../core"));
|
|
31
|
-
const PromptRequestStringInputRequest_1 = require("./PromptRequestStringInputRequest");
|
|
32
|
-
const PromptRequestJsonInputRequest_1 = require("./PromptRequestJsonInputRequest");
|
|
33
|
-
const PromptRequestChatHistoryInputRequest_1 = require("./PromptRequestChatHistoryInputRequest");
|
|
34
|
-
exports.PromptRequestInputRequest = core.serialization.undiscriminatedUnion([
|
|
35
|
-
PromptRequestStringInputRequest_1.PromptRequestStringInputRequest,
|
|
36
|
-
PromptRequestJsonInputRequest_1.PromptRequestJsonInputRequest,
|
|
37
|
-
PromptRequestChatHistoryInputRequest_1.PromptRequestChatHistoryInputRequest,
|
|
38
|
-
]);
|
|
@@ -1,12 +0,0 @@
|
|
|
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 { VariablePromptBlockRequest } from "./VariablePromptBlockRequest";
|
|
8
|
-
import { PlainTextPromptBlockRequest } from "./PlainTextPromptBlockRequest";
|
|
9
|
-
export declare const RichTextChildBlockRequest: core.serialization.Schema<serializers.RichTextChildBlockRequest.Raw, Vellum.RichTextChildBlockRequest>;
|
|
10
|
-
export declare namespace RichTextChildBlockRequest {
|
|
11
|
-
type Raw = VariablePromptBlockRequest.Raw | PlainTextPromptBlockRequest.Raw;
|
|
12
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
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.RichTextChildBlockRequest = void 0;
|
|
30
|
-
const core = __importStar(require("../../core"));
|
|
31
|
-
const VariablePromptBlockRequest_1 = require("./VariablePromptBlockRequest");
|
|
32
|
-
const PlainTextPromptBlockRequest_1 = require("./PlainTextPromptBlockRequest");
|
|
33
|
-
exports.RichTextChildBlockRequest = core.serialization.undiscriminatedUnion([VariablePromptBlockRequest_1.VariablePromptBlockRequest, PlainTextPromptBlockRequest_1.PlainTextPromptBlockRequest]);
|
|
@@ -1,19 +0,0 @@
|
|
|
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 { RichTextChildBlockRequest } from "./RichTextChildBlockRequest";
|
|
8
|
-
import { PromptBlockState } from "./PromptBlockState";
|
|
9
|
-
import { EphemeralPromptCacheConfigRequest } from "./EphemeralPromptCacheConfigRequest";
|
|
10
|
-
export declare const RichTextPromptBlockRequest: core.serialization.ObjectSchema<serializers.RichTextPromptBlockRequest.Raw, Vellum.RichTextPromptBlockRequest>;
|
|
11
|
-
export declare namespace RichTextPromptBlockRequest {
|
|
12
|
-
interface Raw {
|
|
13
|
-
block_type: "RICH_TEXT";
|
|
14
|
-
blocks: RichTextChildBlockRequest.Raw[];
|
|
15
|
-
id: string;
|
|
16
|
-
state?: PromptBlockState.Raw | null;
|
|
17
|
-
cache_config?: EphemeralPromptCacheConfigRequest.Raw | null;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
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.RichTextPromptBlockRequest = void 0;
|
|
30
|
-
const core = __importStar(require("../../core"));
|
|
31
|
-
const RichTextChildBlockRequest_1 = require("./RichTextChildBlockRequest");
|
|
32
|
-
const PromptBlockState_1 = require("./PromptBlockState");
|
|
33
|
-
const EphemeralPromptCacheConfigRequest_1 = require("./EphemeralPromptCacheConfigRequest");
|
|
34
|
-
exports.RichTextPromptBlockRequest = core.serialization.object({
|
|
35
|
-
blockType: core.serialization.property("block_type", core.serialization.stringLiteral("RICH_TEXT")),
|
|
36
|
-
blocks: core.serialization.list(RichTextChildBlockRequest_1.RichTextChildBlockRequest),
|
|
37
|
-
id: core.serialization.string(),
|
|
38
|
-
state: PromptBlockState_1.PromptBlockState.optional(),
|
|
39
|
-
cacheConfig: core.serialization.property("cache_config", EphemeralPromptCacheConfigRequest_1.EphemeralPromptCacheConfigRequest.optional()),
|
|
40
|
-
});
|
|
@@ -1,17 +0,0 @@
|
|
|
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 { EphemeralPromptCacheConfigRequest } from "./EphemeralPromptCacheConfigRequest";
|
|
9
|
-
export declare const VariablePromptBlockRequest: core.serialization.ObjectSchema<serializers.VariablePromptBlockRequest.Raw, Vellum.VariablePromptBlockRequest>;
|
|
10
|
-
export declare namespace VariablePromptBlockRequest {
|
|
11
|
-
interface Raw {
|
|
12
|
-
state?: PromptBlockState.Raw | null;
|
|
13
|
-
cache_config?: EphemeralPromptCacheConfigRequest.Raw | null;
|
|
14
|
-
block_type: "VARIABLE";
|
|
15
|
-
input_variable_id: string;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
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.VariablePromptBlockRequest = void 0;
|
|
30
|
-
const core = __importStar(require("../../core"));
|
|
31
|
-
const PromptBlockState_1 = require("./PromptBlockState");
|
|
32
|
-
const EphemeralPromptCacheConfigRequest_1 = require("./EphemeralPromptCacheConfigRequest");
|
|
33
|
-
exports.VariablePromptBlockRequest = core.serialization.object({
|
|
34
|
-
state: PromptBlockState_1.PromptBlockState.optional(),
|
|
35
|
-
cacheConfig: core.serialization.property("cache_config", EphemeralPromptCacheConfigRequest_1.EphemeralPromptCacheConfigRequest.optional()),
|
|
36
|
-
blockType: core.serialization.property("block_type", core.serialization.stringLiteral("VARIABLE")),
|
|
37
|
-
inputVariableId: core.serialization.property("input_variable_id", core.serialization.string()),
|
|
38
|
-
});
|
|
@@ -1,12 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
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
|
-
});
|
|
@@ -1,19 +0,0 @@
|
|
|
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 { VellumVariableType } from "./VellumVariableType";
|
|
8
|
-
import { VellumVariableExtensionsRequest } from "./VellumVariableExtensionsRequest";
|
|
9
|
-
export declare const VellumVariableRequest: core.serialization.ObjectSchema<serializers.VellumVariableRequest.Raw, Vellum.VellumVariableRequest>;
|
|
10
|
-
export declare namespace VellumVariableRequest {
|
|
11
|
-
interface Raw {
|
|
12
|
-
id: string;
|
|
13
|
-
key: string;
|
|
14
|
-
type: VellumVariableType.Raw;
|
|
15
|
-
required?: boolean | null;
|
|
16
|
-
default?: serializers.VellumValueRequest.Raw | null;
|
|
17
|
-
extensions?: VellumVariableExtensionsRequest.Raw | null;
|
|
18
|
-
}
|
|
19
|
-
}
|