vellum-ai 0.8.25 → 0.8.26
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 +34 -1
- package/.mock/definition/adHoc.yml +1 -0
- package/.mock/definition/workspaceSecrets.yml +34 -0
- package/.mock/openapi/openapi.yml +74 -4
- package/Client.d.ts +3 -0
- package/Client.js +15 -10
- package/api/resources/adHoc/client/Client.js +1 -1
- package/api/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.d.ts +4 -0
- package/api/resources/deployments/client/Client.js +5 -5
- package/api/resources/documentIndexes/client/Client.js +8 -8
- package/api/resources/documents/client/Client.js +5 -5
- package/api/resources/folderEntities/client/Client.js +2 -2
- package/api/resources/index.d.ts +1 -0
- package/api/resources/index.js +2 -1
- 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 +4 -4
- package/api/resources/workflowSandboxes/client/Client.js +1 -1
- package/api/resources/workspaceSecrets/client/Client.d.ts +37 -0
- package/api/resources/workspaceSecrets/client/Client.js +110 -0
- package/api/resources/workspaceSecrets/client/index.d.ts +1 -0
- package/api/resources/workspaceSecrets/client/index.js +2 -0
- package/api/resources/workspaceSecrets/index.d.ts +1 -0
- package/api/resources/workspaceSecrets/index.js +17 -0
- package/api/types/ApiNodeResultData.d.ts +1 -1
- package/api/types/PromptSettingsRequest.d.ts +6 -0
- package/api/types/PromptSettingsRequest.js +5 -0
- package/api/types/SecretTypeEnum.d.ts +14 -0
- package/api/types/SecretTypeEnum.js +11 -0
- package/api/types/VellumErrorCodeEnum.d.ts +3 -1
- package/api/types/VellumErrorCodeEnum.js +1 -0
- package/api/types/WorkspaceSecretRead.d.ts +11 -0
- package/api/types/WorkspaceSecretRead.js +5 -0
- package/api/types/index.d.ts +3 -0
- package/api/types/index.js +3 -0
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +15 -10
- package/dist/api/resources/adHoc/client/Client.js +1 -1
- package/dist/api/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.d.ts +4 -0
- package/dist/api/resources/deployments/client/Client.js +5 -5
- package/dist/api/resources/documentIndexes/client/Client.js +8 -8
- package/dist/api/resources/documents/client/Client.js +5 -5
- package/dist/api/resources/folderEntities/client/Client.js +2 -2
- package/dist/api/resources/index.d.ts +1 -0
- package/dist/api/resources/index.js +2 -1
- 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 +4 -4
- package/dist/api/resources/workflowSandboxes/client/Client.js +1 -1
- package/dist/api/resources/workspaceSecrets/client/Client.d.ts +37 -0
- package/dist/api/resources/workspaceSecrets/client/Client.js +110 -0
- package/dist/api/resources/workspaceSecrets/client/index.d.ts +1 -0
- package/dist/api/resources/workspaceSecrets/client/index.js +2 -0
- package/dist/api/resources/workspaceSecrets/index.d.ts +1 -0
- package/dist/api/resources/workspaceSecrets/index.js +17 -0
- package/dist/api/types/ApiNodeResultData.d.ts +1 -1
- package/dist/api/types/PromptSettingsRequest.d.ts +6 -0
- package/dist/api/types/PromptSettingsRequest.js +5 -0
- package/dist/api/types/SecretTypeEnum.d.ts +14 -0
- package/dist/api/types/SecretTypeEnum.js +11 -0
- package/dist/api/types/VellumErrorCodeEnum.d.ts +3 -1
- package/dist/api/types/VellumErrorCodeEnum.js +1 -0
- package/dist/api/types/WorkspaceSecretRead.d.ts +11 -0
- package/dist/api/types/WorkspaceSecretRead.js +5 -0
- package/dist/api/types/index.d.ts +3 -0
- package/dist/api/types/index.js +3 -0
- package/dist/serialization/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.d.ts +2 -0
- package/dist/serialization/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.js +2 -0
- package/dist/serialization/types/ApiNodeResultData.d.ts +1 -1
- package/dist/serialization/types/ApiNodeResultData.js +1 -1
- package/dist/serialization/types/PromptSettingsRequest.d.ts +12 -0
- package/dist/serialization/types/PromptSettingsRequest.js +33 -0
- package/dist/serialization/types/SecretTypeEnum.d.ts +10 -0
- package/dist/serialization/types/SecretTypeEnum.js +31 -0
- package/dist/serialization/types/VellumErrorCodeEnum.d.ts +1 -1
- package/dist/serialization/types/VellumErrorCodeEnum.js +7 -1
- package/dist/serialization/types/WorkspaceSecretRead.d.ts +17 -0
- package/dist/serialization/types/WorkspaceSecretRead.js +38 -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/package.json +1 -1
- package/reference.md +68 -0
- package/serialization/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.d.ts +2 -0
- package/serialization/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.js +2 -0
- package/serialization/types/ApiNodeResultData.d.ts +1 -1
- package/serialization/types/ApiNodeResultData.js +1 -1
- package/serialization/types/PromptSettingsRequest.d.ts +12 -0
- package/serialization/types/PromptSettingsRequest.js +33 -0
- package/serialization/types/SecretTypeEnum.d.ts +10 -0
- package/serialization/types/SecretTypeEnum.js +31 -0
- package/serialization/types/VellumErrorCodeEnum.d.ts +1 -1
- package/serialization/types/VellumErrorCodeEnum.js +7 -1
- package/serialization/types/WorkspaceSecretRead.d.ts +17 -0
- package/serialization/types/WorkspaceSecretRead.js +38 -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
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
38
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
39
|
+
};
|
|
40
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
|
+
exports.WorkspaceSecrets = void 0;
|
|
42
|
+
const environments = __importStar(require("../../../../environments"));
|
|
43
|
+
const core = __importStar(require("../../../../core"));
|
|
44
|
+
const url_join_1 = __importDefault(require("url-join"));
|
|
45
|
+
const serializers = __importStar(require("../../../../serialization/index"));
|
|
46
|
+
const errors = __importStar(require("../../../../errors/index"));
|
|
47
|
+
class WorkspaceSecrets {
|
|
48
|
+
constructor(_options = {}) {
|
|
49
|
+
this._options = _options;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Used to retrieve a Workspace Secret given its ID or name.
|
|
53
|
+
*
|
|
54
|
+
* @param {string} id - Either the Workspace Secret's ID or its unique name
|
|
55
|
+
* @param {WorkspaceSecrets.RequestOptions} requestOptions - Request-specific configuration.
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* await client.workspaceSecrets.retrieve("id")
|
|
59
|
+
*/
|
|
60
|
+
retrieve(id, requestOptions) {
|
|
61
|
+
var _a;
|
|
62
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
63
|
+
const _response = yield core.fetcher({
|
|
64
|
+
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
65
|
+
.default, `v1/workspace-secrets/${encodeURIComponent(id)}`),
|
|
66
|
+
method: "GET",
|
|
67
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.26", "User-Agent": "vellum-ai/0.8.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
68
|
+
contentType: "application/json",
|
|
69
|
+
requestType: "json",
|
|
70
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
71
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
72
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
73
|
+
});
|
|
74
|
+
if (_response.ok) {
|
|
75
|
+
return serializers.WorkspaceSecretRead.parseOrThrow(_response.body, {
|
|
76
|
+
unrecognizedObjectKeys: "passthrough",
|
|
77
|
+
allowUnrecognizedUnionMembers: true,
|
|
78
|
+
allowUnrecognizedEnumValues: true,
|
|
79
|
+
breadcrumbsPrefix: ["response"],
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
if (_response.error.reason === "status-code") {
|
|
83
|
+
throw new errors.VellumError({
|
|
84
|
+
statusCode: _response.error.statusCode,
|
|
85
|
+
body: _response.error.body,
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
switch (_response.error.reason) {
|
|
89
|
+
case "non-json":
|
|
90
|
+
throw new errors.VellumError({
|
|
91
|
+
statusCode: _response.error.statusCode,
|
|
92
|
+
body: _response.error.rawBody,
|
|
93
|
+
});
|
|
94
|
+
case "timeout":
|
|
95
|
+
throw new errors.VellumTimeoutError();
|
|
96
|
+
case "unknown":
|
|
97
|
+
throw new errors.VellumError({
|
|
98
|
+
message: _response.error.errorMessage,
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
_getCustomAuthorizationHeaders() {
|
|
104
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
105
|
+
const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
|
|
106
|
+
return { X_API_KEY: apiKeyValue };
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
exports.WorkspaceSecrets = WorkspaceSecrets;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client"), exports);
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
export interface ApiNodeResultData {
|
|
5
|
+
json?: Record<string, unknown>;
|
|
5
6
|
textOutputId: string;
|
|
6
7
|
text?: string;
|
|
7
8
|
jsonOutputId: string;
|
|
8
|
-
json?: Record<string, unknown>;
|
|
9
9
|
statusCodeOutputId: string;
|
|
10
10
|
statusCode: number;
|
|
11
11
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* - `USER_DEFINED` - User Defined
|
|
6
|
+
* - `HMAC` - Hmac
|
|
7
|
+
* - `INTERNAL_API_KEY` - Internal Api Key
|
|
8
|
+
*/
|
|
9
|
+
export declare type SecretTypeEnum = "USER_DEFINED" | "HMAC" | "INTERNAL_API_KEY";
|
|
10
|
+
export declare const SecretTypeEnum: {
|
|
11
|
+
readonly UserDefined: "USER_DEFINED";
|
|
12
|
+
readonly Hmac: "HMAC";
|
|
13
|
+
readonly InternalApiKey: "INTERNAL_API_KEY";
|
|
14
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.SecretTypeEnum = void 0;
|
|
7
|
+
exports.SecretTypeEnum = {
|
|
8
|
+
UserDefined: "USER_DEFINED",
|
|
9
|
+
Hmac: "HMAC",
|
|
10
|
+
InternalApiKey: "INTERNAL_API_KEY",
|
|
11
|
+
};
|
|
@@ -4,13 +4,15 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* - `INVALID_REQUEST` - INVALID_REQUEST
|
|
6
6
|
* - `PROVIDER_ERROR` - PROVIDER_ERROR
|
|
7
|
+
* - `REQUEST_TIMEOUT` - REQUEST_TIMEOUT
|
|
7
8
|
* - `INTERNAL_SERVER_ERROR` - INTERNAL_SERVER_ERROR
|
|
8
9
|
* - `USER_DEFINED_ERROR` - USER_DEFINED_ERROR
|
|
9
10
|
*/
|
|
10
|
-
export declare type VellumErrorCodeEnum = "INVALID_REQUEST" | "PROVIDER_ERROR" | "INTERNAL_SERVER_ERROR" | "USER_DEFINED_ERROR";
|
|
11
|
+
export declare type VellumErrorCodeEnum = "INVALID_REQUEST" | "PROVIDER_ERROR" | "REQUEST_TIMEOUT" | "INTERNAL_SERVER_ERROR" | "USER_DEFINED_ERROR";
|
|
11
12
|
export declare const VellumErrorCodeEnum: {
|
|
12
13
|
readonly InvalidRequest: "INVALID_REQUEST";
|
|
13
14
|
readonly ProviderError: "PROVIDER_ERROR";
|
|
15
|
+
readonly RequestTimeout: "REQUEST_TIMEOUT";
|
|
14
16
|
readonly InternalServerError: "INTERNAL_SERVER_ERROR";
|
|
15
17
|
readonly UserDefinedError: "USER_DEFINED_ERROR";
|
|
16
18
|
};
|
|
@@ -7,6 +7,7 @@ exports.VellumErrorCodeEnum = void 0;
|
|
|
7
7
|
exports.VellumErrorCodeEnum = {
|
|
8
8
|
InvalidRequest: "INVALID_REQUEST",
|
|
9
9
|
ProviderError: "PROVIDER_ERROR",
|
|
10
|
+
RequestTimeout: "REQUEST_TIMEOUT",
|
|
10
11
|
InternalServerError: "INTERNAL_SERVER_ERROR",
|
|
11
12
|
UserDefinedError: "USER_DEFINED_ERROR",
|
|
12
13
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "../index";
|
|
5
|
+
export interface WorkspaceSecretRead {
|
|
6
|
+
id: string;
|
|
7
|
+
modified: Date;
|
|
8
|
+
name: string;
|
|
9
|
+
label: string;
|
|
10
|
+
secretType: Vellum.SecretTypeEnum;
|
|
11
|
+
}
|
|
@@ -257,6 +257,7 @@ export * from "./PromptRequestChatHistoryInputRequest";
|
|
|
257
257
|
export * from "./PromptRequestInputRequest";
|
|
258
258
|
export * from "./PromptRequestJsonInputRequest";
|
|
259
259
|
export * from "./PromptRequestStringInputRequest";
|
|
260
|
+
export * from "./PromptSettingsRequest";
|
|
260
261
|
export * from "./RawPromptExecutionOverridesRequest";
|
|
261
262
|
export * from "./ReductoChunkerConfig";
|
|
262
263
|
export * from "./ReductoChunkerConfigRequest";
|
|
@@ -296,6 +297,7 @@ export * from "./SearchResultsVariableValue";
|
|
|
296
297
|
export * from "./SearchResultsVellumValue";
|
|
297
298
|
export * from "./SearchResultsVellumValueRequest";
|
|
298
299
|
export * from "./SearchWeightsRequest";
|
|
300
|
+
export * from "./SecretTypeEnum";
|
|
299
301
|
export * from "./SentenceChunkerConfig";
|
|
300
302
|
export * from "./SentenceChunkerConfigRequest";
|
|
301
303
|
export * from "./SentenceChunking";
|
|
@@ -461,3 +463,4 @@ export * from "./WorkflowResultEventOutputDataNumber";
|
|
|
461
463
|
export * from "./WorkflowResultEventOutputDataSearchResults";
|
|
462
464
|
export * from "./WorkflowResultEventOutputDataString";
|
|
463
465
|
export * from "./WorkflowStreamEvent";
|
|
466
|
+
export * from "./WorkspaceSecretRead";
|
package/dist/api/types/index.js
CHANGED
|
@@ -273,6 +273,7 @@ __exportStar(require("./PromptRequestChatHistoryInputRequest"), exports);
|
|
|
273
273
|
__exportStar(require("./PromptRequestInputRequest"), exports);
|
|
274
274
|
__exportStar(require("./PromptRequestJsonInputRequest"), exports);
|
|
275
275
|
__exportStar(require("./PromptRequestStringInputRequest"), exports);
|
|
276
|
+
__exportStar(require("./PromptSettingsRequest"), exports);
|
|
276
277
|
__exportStar(require("./RawPromptExecutionOverridesRequest"), exports);
|
|
277
278
|
__exportStar(require("./ReductoChunkerConfig"), exports);
|
|
278
279
|
__exportStar(require("./ReductoChunkerConfigRequest"), exports);
|
|
@@ -312,6 +313,7 @@ __exportStar(require("./SearchResultsVariableValue"), exports);
|
|
|
312
313
|
__exportStar(require("./SearchResultsVellumValue"), exports);
|
|
313
314
|
__exportStar(require("./SearchResultsVellumValueRequest"), exports);
|
|
314
315
|
__exportStar(require("./SearchWeightsRequest"), exports);
|
|
316
|
+
__exportStar(require("./SecretTypeEnum"), exports);
|
|
315
317
|
__exportStar(require("./SentenceChunkerConfig"), exports);
|
|
316
318
|
__exportStar(require("./SentenceChunkerConfigRequest"), exports);
|
|
317
319
|
__exportStar(require("./SentenceChunking"), exports);
|
|
@@ -477,3 +479,4 @@ __exportStar(require("./WorkflowResultEventOutputDataNumber"), exports);
|
|
|
477
479
|
__exportStar(require("./WorkflowResultEventOutputDataSearchResults"), exports);
|
|
478
480
|
__exportStar(require("./WorkflowResultEventOutputDataString"), exports);
|
|
479
481
|
__exportStar(require("./WorkflowStreamEvent"), exports);
|
|
482
|
+
__exportStar(require("./WorkspaceSecretRead"), exports);
|
package/dist/serialization/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import * as core from "../../../../../core";
|
|
|
7
7
|
import { PromptRequestInputRequest } from "../../../../types/PromptRequestInputRequest";
|
|
8
8
|
import { VellumVariableRequest } from "../../../../types/VellumVariableRequest";
|
|
9
9
|
import { PromptParametersRequest } from "../../../../types/PromptParametersRequest";
|
|
10
|
+
import { PromptSettingsRequest } from "../../../../types/PromptSettingsRequest";
|
|
10
11
|
import { AdHocExpandMetaRequest } from "../../../../types/AdHocExpandMetaRequest";
|
|
11
12
|
export declare const AdHocExecutePromptStreamRequest: core.serialization.Schema<serializers.AdHocExecutePromptStreamRequest.Raw, Vellum.AdHocExecutePromptStreamRequest>;
|
|
12
13
|
export declare namespace AdHocExecutePromptStreamRequest {
|
|
@@ -15,6 +16,7 @@ export declare namespace AdHocExecutePromptStreamRequest {
|
|
|
15
16
|
input_values: PromptRequestInputRequest.Raw[];
|
|
16
17
|
input_variables: VellumVariableRequest.Raw[];
|
|
17
18
|
parameters: PromptParametersRequest.Raw;
|
|
19
|
+
settings?: PromptSettingsRequest.Raw | null;
|
|
18
20
|
blocks: serializers.PromptBlockRequest.Raw[];
|
|
19
21
|
expand_meta?: AdHocExpandMetaRequest.Raw | null;
|
|
20
22
|
}
|
package/dist/serialization/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.js
CHANGED
|
@@ -32,12 +32,14 @@ const core = __importStar(require("../../../../../core"));
|
|
|
32
32
|
const PromptRequestInputRequest_1 = require("../../../../types/PromptRequestInputRequest");
|
|
33
33
|
const VellumVariableRequest_1 = require("../../../../types/VellumVariableRequest");
|
|
34
34
|
const PromptParametersRequest_1 = require("../../../../types/PromptParametersRequest");
|
|
35
|
+
const PromptSettingsRequest_1 = require("../../../../types/PromptSettingsRequest");
|
|
35
36
|
const AdHocExpandMetaRequest_1 = require("../../../../types/AdHocExpandMetaRequest");
|
|
36
37
|
exports.AdHocExecutePromptStreamRequest = core.serialization.object({
|
|
37
38
|
mlModel: core.serialization.property("ml_model", core.serialization.string()),
|
|
38
39
|
inputValues: core.serialization.property("input_values", core.serialization.list(PromptRequestInputRequest_1.PromptRequestInputRequest)),
|
|
39
40
|
inputVariables: core.serialization.property("input_variables", core.serialization.list(VellumVariableRequest_1.VellumVariableRequest)),
|
|
40
41
|
parameters: PromptParametersRequest_1.PromptParametersRequest,
|
|
42
|
+
settings: PromptSettingsRequest_1.PromptSettingsRequest.optional(),
|
|
41
43
|
blocks: core.serialization.list(core.serialization.lazy(() => serializers.PromptBlockRequest)),
|
|
42
44
|
expandMeta: core.serialization.property("expand_meta", AdHocExpandMetaRequest_1.AdHocExpandMetaRequest.optional()),
|
|
43
45
|
});
|
|
@@ -7,10 +7,10 @@ import * as core from "../../core";
|
|
|
7
7
|
export declare const ApiNodeResultData: core.serialization.ObjectSchema<serializers.ApiNodeResultData.Raw, Vellum.ApiNodeResultData>;
|
|
8
8
|
export declare namespace ApiNodeResultData {
|
|
9
9
|
interface Raw {
|
|
10
|
+
json?: Record<string, unknown> | null;
|
|
10
11
|
text_output_id: string;
|
|
11
12
|
text?: string | null;
|
|
12
13
|
json_output_id: string;
|
|
13
|
-
json?: Record<string, unknown> | null;
|
|
14
14
|
status_code_output_id: string;
|
|
15
15
|
status_code: number;
|
|
16
16
|
}
|
|
@@ -29,10 +29,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.ApiNodeResultData = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
exports.ApiNodeResultData = core.serialization.object({
|
|
32
|
+
json: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
|
|
32
33
|
textOutputId: core.serialization.property("text_output_id", core.serialization.string()),
|
|
33
34
|
text: core.serialization.string().optional(),
|
|
34
35
|
jsonOutputId: core.serialization.property("json_output_id", core.serialization.string()),
|
|
35
|
-
json: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
|
|
36
36
|
statusCodeOutputId: core.serialization.property("status_code_output_id", core.serialization.string()),
|
|
37
37
|
statusCode: core.serialization.property("status_code", core.serialization.number()),
|
|
38
38
|
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Vellum from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const PromptSettingsRequest: core.serialization.ObjectSchema<serializers.PromptSettingsRequest.Raw, Vellum.PromptSettingsRequest>;
|
|
8
|
+
export declare namespace PromptSettingsRequest {
|
|
9
|
+
interface Raw {
|
|
10
|
+
timeout?: number | null;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.PromptSettingsRequest = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.PromptSettingsRequest = core.serialization.object({
|
|
32
|
+
timeout: core.serialization.number().optional(),
|
|
33
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
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 SecretTypeEnum: core.serialization.Schema<serializers.SecretTypeEnum.Raw, Vellum.SecretTypeEnum>;
|
|
8
|
+
export declare namespace SecretTypeEnum {
|
|
9
|
+
type Raw = "USER_DEFINED" | "HMAC" | "INTERNAL_API_KEY";
|
|
10
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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.SecretTypeEnum = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.SecretTypeEnum = core.serialization.enum_(["USER_DEFINED", "HMAC", "INTERNAL_API_KEY"]);
|
|
@@ -6,5 +6,5 @@ import * as Vellum from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const VellumErrorCodeEnum: core.serialization.Schema<serializers.VellumErrorCodeEnum.Raw, Vellum.VellumErrorCodeEnum>;
|
|
8
8
|
export declare namespace VellumErrorCodeEnum {
|
|
9
|
-
type Raw = "INVALID_REQUEST" | "PROVIDER_ERROR" | "INTERNAL_SERVER_ERROR" | "USER_DEFINED_ERROR";
|
|
9
|
+
type Raw = "INVALID_REQUEST" | "PROVIDER_ERROR" | "REQUEST_TIMEOUT" | "INTERNAL_SERVER_ERROR" | "USER_DEFINED_ERROR";
|
|
10
10
|
}
|
|
@@ -28,4 +28,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.VellumErrorCodeEnum = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
exports.VellumErrorCodeEnum = core.serialization.enum_([
|
|
31
|
+
exports.VellumErrorCodeEnum = core.serialization.enum_([
|
|
32
|
+
"INVALID_REQUEST",
|
|
33
|
+
"PROVIDER_ERROR",
|
|
34
|
+
"REQUEST_TIMEOUT",
|
|
35
|
+
"INTERNAL_SERVER_ERROR",
|
|
36
|
+
"USER_DEFINED_ERROR",
|
|
37
|
+
]);
|
|
@@ -0,0 +1,17 @@
|
|
|
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 { SecretTypeEnum } from "./SecretTypeEnum";
|
|
8
|
+
export declare const WorkspaceSecretRead: core.serialization.ObjectSchema<serializers.WorkspaceSecretRead.Raw, Vellum.WorkspaceSecretRead>;
|
|
9
|
+
export declare namespace WorkspaceSecretRead {
|
|
10
|
+
interface Raw {
|
|
11
|
+
id: string;
|
|
12
|
+
modified: string;
|
|
13
|
+
name: string;
|
|
14
|
+
label: string;
|
|
15
|
+
secret_type: SecretTypeEnum.Raw;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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.WorkspaceSecretRead = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
const SecretTypeEnum_1 = require("./SecretTypeEnum");
|
|
32
|
+
exports.WorkspaceSecretRead = core.serialization.object({
|
|
33
|
+
id: core.serialization.string(),
|
|
34
|
+
modified: core.serialization.date(),
|
|
35
|
+
name: core.serialization.string(),
|
|
36
|
+
label: core.serialization.string(),
|
|
37
|
+
secretType: core.serialization.property("secret_type", SecretTypeEnum_1.SecretTypeEnum),
|
|
38
|
+
});
|
|
@@ -257,6 +257,7 @@ export * from "./PromptRequestChatHistoryInputRequest";
|
|
|
257
257
|
export * from "./PromptRequestInputRequest";
|
|
258
258
|
export * from "./PromptRequestJsonInputRequest";
|
|
259
259
|
export * from "./PromptRequestStringInputRequest";
|
|
260
|
+
export * from "./PromptSettingsRequest";
|
|
260
261
|
export * from "./RawPromptExecutionOverridesRequest";
|
|
261
262
|
export * from "./ReductoChunkerConfig";
|
|
262
263
|
export * from "./ReductoChunkerConfigRequest";
|
|
@@ -296,6 +297,7 @@ export * from "./SearchResultsVariableValue";
|
|
|
296
297
|
export * from "./SearchResultsVellumValue";
|
|
297
298
|
export * from "./SearchResultsVellumValueRequest";
|
|
298
299
|
export * from "./SearchWeightsRequest";
|
|
300
|
+
export * from "./SecretTypeEnum";
|
|
299
301
|
export * from "./SentenceChunkerConfig";
|
|
300
302
|
export * from "./SentenceChunkerConfigRequest";
|
|
301
303
|
export * from "./SentenceChunking";
|
|
@@ -461,3 +463,4 @@ export * from "./WorkflowResultEventOutputDataNumber";
|
|
|
461
463
|
export * from "./WorkflowResultEventOutputDataSearchResults";
|
|
462
464
|
export * from "./WorkflowResultEventOutputDataString";
|
|
463
465
|
export * from "./WorkflowStreamEvent";
|
|
466
|
+
export * from "./WorkspaceSecretRead";
|
|
@@ -273,6 +273,7 @@ __exportStar(require("./PromptRequestChatHistoryInputRequest"), exports);
|
|
|
273
273
|
__exportStar(require("./PromptRequestInputRequest"), exports);
|
|
274
274
|
__exportStar(require("./PromptRequestJsonInputRequest"), exports);
|
|
275
275
|
__exportStar(require("./PromptRequestStringInputRequest"), exports);
|
|
276
|
+
__exportStar(require("./PromptSettingsRequest"), exports);
|
|
276
277
|
__exportStar(require("./RawPromptExecutionOverridesRequest"), exports);
|
|
277
278
|
__exportStar(require("./ReductoChunkerConfig"), exports);
|
|
278
279
|
__exportStar(require("./ReductoChunkerConfigRequest"), exports);
|
|
@@ -312,6 +313,7 @@ __exportStar(require("./SearchResultsVariableValue"), exports);
|
|
|
312
313
|
__exportStar(require("./SearchResultsVellumValue"), exports);
|
|
313
314
|
__exportStar(require("./SearchResultsVellumValueRequest"), exports);
|
|
314
315
|
__exportStar(require("./SearchWeightsRequest"), exports);
|
|
316
|
+
__exportStar(require("./SecretTypeEnum"), exports);
|
|
315
317
|
__exportStar(require("./SentenceChunkerConfig"), exports);
|
|
316
318
|
__exportStar(require("./SentenceChunkerConfigRequest"), exports);
|
|
317
319
|
__exportStar(require("./SentenceChunking"), exports);
|
|
@@ -477,3 +479,4 @@ __exportStar(require("./WorkflowResultEventOutputDataNumber"), exports);
|
|
|
477
479
|
__exportStar(require("./WorkflowResultEventOutputDataSearchResults"), exports);
|
|
478
480
|
__exportStar(require("./WorkflowResultEventOutputDataString"), exports);
|
|
479
481
|
__exportStar(require("./WorkflowStreamEvent"), exports);
|
|
482
|
+
__exportStar(require("./WorkspaceSecretRead"), exports);
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.8.
|
|
1
|
+
export declare const SDK_VERSION = "0.8.26";
|
package/dist/version.js
CHANGED