vellum-ai 0.0.14 → 0.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.d.ts +6 -0
- package/Client.js +18 -8
- package/api/errors/ConflictError.d.ts +8 -0
- package/api/errors/ConflictError.js +41 -0
- package/api/errors/index.d.ts +1 -0
- package/api/errors/index.js +1 -0
- package/api/resources/documentIndexes/client/Client.d.ts +22 -0
- package/api/resources/documentIndexes/client/Client.js +88 -0
- package/api/resources/documentIndexes/client/index.d.ts +1 -0
- package/api/resources/documentIndexes/client/index.js +17 -0
- package/api/resources/documentIndexes/client/requests/DocumentIndexCreateRequest.d.ts +15 -0
- package/api/resources/documentIndexes/client/requests/DocumentIndexCreateRequest.js +5 -0
- package/api/resources/documentIndexes/client/requests/index.d.ts +1 -0
- package/api/resources/documentIndexes/client/requests/index.js +2 -0
- package/api/resources/documentIndexes/index.d.ts +1 -0
- package/api/resources/documentIndexes/index.js +17 -0
- package/api/resources/index.d.ts +4 -0
- package/api/resources/index.js +5 -1
- package/api/resources/registeredPrompts/client/Client.d.ts +26 -0
- package/api/resources/registeredPrompts/client/Client.js +102 -0
- package/api/resources/registeredPrompts/client/index.d.ts +1 -0
- package/api/resources/registeredPrompts/client/index.js +17 -0
- package/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +20 -0
- package/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.js +5 -0
- package/api/resources/registeredPrompts/client/requests/index.d.ts +1 -0
- package/api/resources/registeredPrompts/client/requests/index.js +2 -0
- package/api/resources/registeredPrompts/index.d.ts +1 -0
- package/api/resources/registeredPrompts/index.js +17 -0
- package/api/types/DocumentIndexRead.d.ts +16 -0
- package/api/types/DocumentIndexRead.js +5 -0
- package/api/types/DocumentIndexStatus.d.ts +8 -0
- package/api/types/DocumentIndexStatus.js +10 -0
- package/api/types/PromptTemplateBlockDataRequest.d.ts +8 -0
- package/api/types/PromptTemplateBlockDataRequest.js +5 -0
- package/api/types/PromptTemplateBlockPropertiesRequest.d.ts +10 -0
- package/api/types/PromptTemplateBlockPropertiesRequest.js +5 -0
- package/api/types/PromptTemplateBlockRequest.d.ts +9 -0
- package/api/types/PromptTemplateBlockRequest.js +5 -0
- package/api/types/PromptTemplateInputVariableRequest.d.ts +7 -0
- package/api/types/PromptTemplateInputVariableRequest.js +5 -0
- package/api/types/RegisterPromptErrorResponse.d.ts +7 -0
- package/api/types/RegisterPromptErrorResponse.js +5 -0
- package/api/types/RegisterPromptModelParametersRequest.d.ts +13 -0
- package/api/types/RegisterPromptModelParametersRequest.js +5 -0
- package/api/types/RegisterPromptPrompt.d.ts +9 -0
- package/api/types/RegisterPromptPrompt.js +5 -0
- package/api/types/RegisterPromptPromptInfoRequest.d.ts +10 -0
- package/api/types/RegisterPromptPromptInfoRequest.js +5 -0
- package/api/types/RegisterPromptResponse.d.ts +16 -0
- package/api/types/RegisterPromptResponse.js +5 -0
- package/api/types/RegisteredPromptDeployment.d.ts +11 -0
- package/api/types/RegisteredPromptDeployment.js +5 -0
- package/api/types/RegisteredPromptModelVersion.d.ts +9 -0
- package/api/types/RegisteredPromptModelVersion.js +5 -0
- package/api/types/RegisteredPromptSandbox.d.ts +9 -0
- package/api/types/RegisteredPromptSandbox.js +5 -0
- package/api/types/RegisteredPromptSandboxSnapshot.d.ts +7 -0
- package/api/types/RegisteredPromptSandboxSnapshot.js +5 -0
- package/api/types/index.d.ts +15 -0
- package/api/types/index.js +15 -0
- package/dist/Client.d.ts +6 -0
- package/dist/Client.js +18 -8
- package/dist/api/errors/ConflictError.d.ts +8 -0
- package/dist/api/errors/ConflictError.js +41 -0
- package/dist/api/errors/index.d.ts +1 -0
- package/dist/api/errors/index.js +1 -0
- package/dist/api/resources/documentIndexes/client/Client.d.ts +22 -0
- package/dist/api/resources/documentIndexes/client/Client.js +88 -0
- package/dist/api/resources/documentIndexes/client/index.d.ts +1 -0
- package/dist/api/resources/documentIndexes/client/index.js +17 -0
- package/dist/api/resources/documentIndexes/client/requests/DocumentIndexCreateRequest.d.ts +15 -0
- package/dist/api/resources/documentIndexes/client/requests/DocumentIndexCreateRequest.js +5 -0
- package/dist/api/resources/documentIndexes/client/requests/index.d.ts +1 -0
- package/dist/api/resources/documentIndexes/client/requests/index.js +2 -0
- package/dist/api/resources/documentIndexes/index.d.ts +1 -0
- package/dist/api/resources/documentIndexes/index.js +17 -0
- package/dist/api/resources/index.d.ts +4 -0
- package/dist/api/resources/index.js +5 -1
- package/dist/api/resources/registeredPrompts/client/Client.d.ts +26 -0
- package/dist/api/resources/registeredPrompts/client/Client.js +102 -0
- package/dist/api/resources/registeredPrompts/client/index.d.ts +1 -0
- package/dist/api/resources/registeredPrompts/client/index.js +17 -0
- package/dist/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +20 -0
- package/dist/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.js +5 -0
- package/dist/api/resources/registeredPrompts/client/requests/index.d.ts +1 -0
- package/dist/api/resources/registeredPrompts/client/requests/index.js +2 -0
- package/dist/api/resources/registeredPrompts/index.d.ts +1 -0
- package/dist/api/resources/registeredPrompts/index.js +17 -0
- package/dist/api/types/DocumentIndexRead.d.ts +16 -0
- package/dist/api/types/DocumentIndexRead.js +5 -0
- package/dist/api/types/DocumentIndexStatus.d.ts +8 -0
- package/dist/api/types/DocumentIndexStatus.js +10 -0
- package/dist/api/types/PromptTemplateBlockDataRequest.d.ts +8 -0
- package/dist/api/types/PromptTemplateBlockDataRequest.js +5 -0
- package/dist/api/types/PromptTemplateBlockPropertiesRequest.d.ts +10 -0
- package/dist/api/types/PromptTemplateBlockPropertiesRequest.js +5 -0
- package/dist/api/types/PromptTemplateBlockRequest.d.ts +9 -0
- package/dist/api/types/PromptTemplateBlockRequest.js +5 -0
- package/dist/api/types/PromptTemplateInputVariableRequest.d.ts +7 -0
- package/dist/api/types/PromptTemplateInputVariableRequest.js +5 -0
- package/dist/api/types/RegisterPromptErrorResponse.d.ts +7 -0
- package/dist/api/types/RegisterPromptErrorResponse.js +5 -0
- package/dist/api/types/RegisterPromptModelParametersRequest.d.ts +13 -0
- package/dist/api/types/RegisterPromptModelParametersRequest.js +5 -0
- package/dist/api/types/RegisterPromptPrompt.d.ts +9 -0
- package/dist/api/types/RegisterPromptPrompt.js +5 -0
- package/dist/api/types/RegisterPromptPromptInfoRequest.d.ts +10 -0
- package/dist/api/types/RegisterPromptPromptInfoRequest.js +5 -0
- package/dist/api/types/RegisterPromptResponse.d.ts +16 -0
- package/dist/api/types/RegisterPromptResponse.js +5 -0
- package/dist/api/types/RegisteredPromptDeployment.d.ts +11 -0
- package/dist/api/types/RegisteredPromptDeployment.js +5 -0
- package/dist/api/types/RegisteredPromptModelVersion.d.ts +9 -0
- package/dist/api/types/RegisteredPromptModelVersion.js +5 -0
- package/dist/api/types/RegisteredPromptSandbox.d.ts +9 -0
- package/dist/api/types/RegisteredPromptSandbox.js +5 -0
- package/dist/api/types/RegisteredPromptSandboxSnapshot.d.ts +7 -0
- package/dist/api/types/RegisteredPromptSandboxSnapshot.js +5 -0
- package/dist/api/types/index.d.ts +15 -0
- package/dist/api/types/index.js +15 -0
- package/dist/serialization/resources/documentIndexes/client/index.d.ts +1 -0
- package/dist/serialization/resources/documentIndexes/client/index.js +17 -0
- package/dist/serialization/resources/documentIndexes/client/requests/DocumentIndexCreateRequest.d.ts +16 -0
- package/dist/serialization/resources/documentIndexes/client/requests/DocumentIndexCreateRequest.js +37 -0
- package/dist/serialization/resources/documentIndexes/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/documentIndexes/client/requests/index.js +5 -0
- package/dist/serialization/resources/documentIndexes/index.d.ts +1 -0
- package/dist/serialization/resources/documentIndexes/index.js +17 -0
- package/dist/serialization/resources/index.d.ts +4 -0
- package/dist/serialization/resources/index.js +5 -1
- package/dist/serialization/resources/registeredPrompts/client/index.d.ts +1 -0
- package/dist/serialization/resources/registeredPrompts/client/index.js +17 -0
- package/dist/serialization/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +18 -0
- package/dist/serialization/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.js +39 -0
- package/dist/serialization/resources/registeredPrompts/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/registeredPrompts/client/requests/index.js +5 -0
- package/dist/serialization/resources/registeredPrompts/index.d.ts +1 -0
- package/dist/serialization/resources/registeredPrompts/index.js +17 -0
- package/dist/serialization/types/DocumentIndexRead.d.ts +17 -0
- package/dist/serialization/types/DocumentIndexRead.js +38 -0
- package/dist/serialization/types/DocumentIndexStatus.d.ts +10 -0
- package/dist/serialization/types/DocumentIndexStatus.js +31 -0
- package/dist/serialization/types/PromptTemplateBlockDataRequest.d.ts +13 -0
- package/dist/serialization/types/PromptTemplateBlockDataRequest.js +34 -0
- package/dist/serialization/types/PromptTemplateBlockPropertiesRequest.d.ts +15 -0
- package/dist/serialization/types/PromptTemplateBlockPropertiesRequest.js +38 -0
- package/dist/serialization/types/PromptTemplateBlockRequest.d.ts +14 -0
- package/dist/serialization/types/PromptTemplateBlockRequest.js +35 -0
- package/dist/serialization/types/PromptTemplateInputVariableRequest.d.ts +12 -0
- package/dist/serialization/types/PromptTemplateInputVariableRequest.js +33 -0
- package/dist/serialization/types/RegisterPromptErrorResponse.d.ts +12 -0
- package/dist/serialization/types/RegisterPromptErrorResponse.js +33 -0
- package/dist/serialization/types/RegisterPromptModelParametersRequest.d.ts +19 -0
- package/dist/serialization/types/RegisterPromptModelParametersRequest.js +40 -0
- package/dist/serialization/types/RegisterPromptPrompt.d.ts +13 -0
- package/dist/serialization/types/RegisterPromptPrompt.js +34 -0
- package/dist/serialization/types/RegisterPromptPromptInfoRequest.d.ts +14 -0
- package/dist/serialization/types/RegisterPromptPromptInfoRequest.js +37 -0
- package/dist/serialization/types/RegisterPromptResponse.d.ts +16 -0
- package/dist/serialization/types/RegisterPromptResponse.js +37 -0
- package/dist/serialization/types/RegisteredPromptDeployment.d.ts +14 -0
- package/dist/serialization/types/RegisteredPromptDeployment.js +35 -0
- package/dist/serialization/types/RegisteredPromptModelVersion.d.ts +13 -0
- package/dist/serialization/types/RegisteredPromptModelVersion.js +34 -0
- package/dist/serialization/types/RegisteredPromptSandbox.d.ts +13 -0
- package/dist/serialization/types/RegisteredPromptSandbox.js +34 -0
- package/dist/serialization/types/RegisteredPromptSandboxSnapshot.d.ts +12 -0
- package/dist/serialization/types/RegisteredPromptSandboxSnapshot.js +33 -0
- package/dist/serialization/types/index.d.ts +15 -0
- package/dist/serialization/types/index.js +15 -0
- package/package.json +1 -1
- package/serialization/resources/documentIndexes/client/index.d.ts +1 -0
- package/serialization/resources/documentIndexes/client/index.js +17 -0
- package/serialization/resources/documentIndexes/client/requests/DocumentIndexCreateRequest.d.ts +16 -0
- package/serialization/resources/documentIndexes/client/requests/DocumentIndexCreateRequest.js +37 -0
- package/serialization/resources/documentIndexes/client/requests/index.d.ts +1 -0
- package/serialization/resources/documentIndexes/client/requests/index.js +5 -0
- package/serialization/resources/documentIndexes/index.d.ts +1 -0
- package/serialization/resources/documentIndexes/index.js +17 -0
- package/serialization/resources/index.d.ts +4 -0
- package/serialization/resources/index.js +5 -1
- package/serialization/resources/registeredPrompts/client/index.d.ts +1 -0
- package/serialization/resources/registeredPrompts/client/index.js +17 -0
- package/serialization/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +18 -0
- package/serialization/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.js +39 -0
- package/serialization/resources/registeredPrompts/client/requests/index.d.ts +1 -0
- package/serialization/resources/registeredPrompts/client/requests/index.js +5 -0
- package/serialization/resources/registeredPrompts/index.d.ts +1 -0
- package/serialization/resources/registeredPrompts/index.js +17 -0
- package/serialization/types/DocumentIndexRead.d.ts +17 -0
- package/serialization/types/DocumentIndexRead.js +38 -0
- package/serialization/types/DocumentIndexStatus.d.ts +10 -0
- package/serialization/types/DocumentIndexStatus.js +31 -0
- package/serialization/types/PromptTemplateBlockDataRequest.d.ts +13 -0
- package/serialization/types/PromptTemplateBlockDataRequest.js +34 -0
- package/serialization/types/PromptTemplateBlockPropertiesRequest.d.ts +15 -0
- package/serialization/types/PromptTemplateBlockPropertiesRequest.js +38 -0
- package/serialization/types/PromptTemplateBlockRequest.d.ts +14 -0
- package/serialization/types/PromptTemplateBlockRequest.js +35 -0
- package/serialization/types/PromptTemplateInputVariableRequest.d.ts +12 -0
- package/serialization/types/PromptTemplateInputVariableRequest.js +33 -0
- package/serialization/types/RegisterPromptErrorResponse.d.ts +12 -0
- package/serialization/types/RegisterPromptErrorResponse.js +33 -0
- package/serialization/types/RegisterPromptModelParametersRequest.d.ts +19 -0
- package/serialization/types/RegisterPromptModelParametersRequest.js +40 -0
- package/serialization/types/RegisterPromptPrompt.d.ts +13 -0
- package/serialization/types/RegisterPromptPrompt.js +34 -0
- package/serialization/types/RegisterPromptPromptInfoRequest.d.ts +14 -0
- package/serialization/types/RegisterPromptPromptInfoRequest.js +37 -0
- package/serialization/types/RegisterPromptResponse.d.ts +16 -0
- package/serialization/types/RegisterPromptResponse.js +37 -0
- package/serialization/types/RegisteredPromptDeployment.d.ts +14 -0
- package/serialization/types/RegisteredPromptDeployment.js +35 -0
- package/serialization/types/RegisteredPromptModelVersion.d.ts +13 -0
- package/serialization/types/RegisteredPromptModelVersion.js +34 -0
- package/serialization/types/RegisteredPromptSandbox.d.ts +13 -0
- package/serialization/types/RegisteredPromptSandbox.js +34 -0
- package/serialization/types/RegisteredPromptSandboxSnapshot.d.ts +12 -0
- package/serialization/types/RegisteredPromptSandboxSnapshot.js +33 -0
- package/serialization/types/index.d.ts +15 -0
- package/serialization/types/index.js +15 -0
package/Client.d.ts
CHANGED
|
@@ -5,8 +5,10 @@ import * as environments from "./environments";
|
|
|
5
5
|
import * as core from "./core";
|
|
6
6
|
import * as Vellum from "./api";
|
|
7
7
|
import { Deployments } from "./api/resources/deployments/client/Client";
|
|
8
|
+
import { DocumentIndexes } from "./api/resources/documentIndexes/client/Client";
|
|
8
9
|
import { Documents } from "./api/resources/documents/client/Client";
|
|
9
10
|
import { ModelVersions } from "./api/resources/modelVersions/client/Client";
|
|
11
|
+
import { RegisteredPrompts } from "./api/resources/registeredPrompts/client/Client";
|
|
10
12
|
import { Sandboxes } from "./api/resources/sandboxes/client/Client";
|
|
11
13
|
import { TestSuites } from "./api/resources/testSuites/client/Client";
|
|
12
14
|
export declare namespace VellumClient {
|
|
@@ -64,10 +66,14 @@ export declare class VellumClient {
|
|
|
64
66
|
submitCompletionActuals(request: Vellum.SubmitCompletionActualsRequest): Promise<void>;
|
|
65
67
|
protected _deployments: Deployments | undefined;
|
|
66
68
|
get deployments(): Deployments;
|
|
69
|
+
protected _documentIndexes: DocumentIndexes | undefined;
|
|
70
|
+
get documentIndexes(): DocumentIndexes;
|
|
67
71
|
protected _documents: Documents | undefined;
|
|
68
72
|
get documents(): Documents;
|
|
69
73
|
protected _modelVersions: ModelVersions | undefined;
|
|
70
74
|
get modelVersions(): ModelVersions;
|
|
75
|
+
protected _registeredPrompts: RegisteredPrompts | undefined;
|
|
76
|
+
get registeredPrompts(): RegisteredPrompts;
|
|
71
77
|
protected _sandboxes: Sandboxes | undefined;
|
|
72
78
|
get sandboxes(): Sandboxes;
|
|
73
79
|
protected _testSuites: TestSuites | undefined;
|
package/Client.js
CHANGED
|
@@ -37,10 +37,12 @@ const url_join_1 = __importDefault(require("url-join"));
|
|
|
37
37
|
const serializers = __importStar(require("./serialization"));
|
|
38
38
|
const errors = __importStar(require("./errors"));
|
|
39
39
|
const Client_1 = require("./api/resources/deployments/client/Client");
|
|
40
|
-
const Client_2 = require("./api/resources/
|
|
41
|
-
const Client_3 = require("./api/resources/
|
|
42
|
-
const Client_4 = require("./api/resources/
|
|
43
|
-
const Client_5 = require("./api/resources/
|
|
40
|
+
const Client_2 = require("./api/resources/documentIndexes/client/Client");
|
|
41
|
+
const Client_3 = require("./api/resources/documents/client/Client");
|
|
42
|
+
const Client_4 = require("./api/resources/modelVersions/client/Client");
|
|
43
|
+
const Client_5 = require("./api/resources/registeredPrompts/client/Client");
|
|
44
|
+
const Client_6 = require("./api/resources/sandboxes/client/Client");
|
|
45
|
+
const Client_7 = require("./api/resources/testSuites/client/Client");
|
|
44
46
|
class VellumClient {
|
|
45
47
|
options;
|
|
46
48
|
constructor(options) {
|
|
@@ -253,21 +255,29 @@ class VellumClient {
|
|
|
253
255
|
get deployments() {
|
|
254
256
|
return (this._deployments ??= new Client_1.Deployments(this.options));
|
|
255
257
|
}
|
|
258
|
+
_documentIndexes;
|
|
259
|
+
get documentIndexes() {
|
|
260
|
+
return (this._documentIndexes ??= new Client_2.DocumentIndexes(this.options));
|
|
261
|
+
}
|
|
256
262
|
_documents;
|
|
257
263
|
get documents() {
|
|
258
|
-
return (this._documents ??= new
|
|
264
|
+
return (this._documents ??= new Client_3.Documents(this.options));
|
|
259
265
|
}
|
|
260
266
|
_modelVersions;
|
|
261
267
|
get modelVersions() {
|
|
262
|
-
return (this._modelVersions ??= new
|
|
268
|
+
return (this._modelVersions ??= new Client_4.ModelVersions(this.options));
|
|
269
|
+
}
|
|
270
|
+
_registeredPrompts;
|
|
271
|
+
get registeredPrompts() {
|
|
272
|
+
return (this._registeredPrompts ??= new Client_5.RegisteredPrompts(this.options));
|
|
263
273
|
}
|
|
264
274
|
_sandboxes;
|
|
265
275
|
get sandboxes() {
|
|
266
|
-
return (this._sandboxes ??= new
|
|
276
|
+
return (this._sandboxes ??= new Client_6.Sandboxes(this.options));
|
|
267
277
|
}
|
|
268
278
|
_testSuites;
|
|
269
279
|
get testSuites() {
|
|
270
|
-
return (this._testSuites ??= new
|
|
280
|
+
return (this._testSuites ??= new Client_7.TestSuites(this.options));
|
|
271
281
|
}
|
|
272
282
|
}
|
|
273
283
|
exports.VellumClient = VellumClient;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as errors from "../../errors";
|
|
5
|
+
import * as Vellum from "..";
|
|
6
|
+
export declare class ConflictError extends errors.VellumError {
|
|
7
|
+
constructor(body: Vellum.RegisterPromptErrorResponse);
|
|
8
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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.ConflictError = void 0;
|
|
30
|
+
const errors = __importStar(require("../../errors"));
|
|
31
|
+
class ConflictError extends errors.VellumError {
|
|
32
|
+
constructor(body) {
|
|
33
|
+
super({
|
|
34
|
+
message: "ConflictError",
|
|
35
|
+
statusCode: 409,
|
|
36
|
+
body: body,
|
|
37
|
+
});
|
|
38
|
+
Object.setPrototypeOf(this, ConflictError.prototype);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.ConflictError = ConflictError;
|
package/api/errors/index.d.ts
CHANGED
package/api/errors/index.js
CHANGED
|
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./BadRequestError"), exports);
|
|
18
18
|
__exportStar(require("./NotFoundError"), exports);
|
|
19
|
+
__exportStar(require("./ConflictError"), exports);
|
|
19
20
|
__exportStar(require("./InternalServerError"), exports);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../environments";
|
|
5
|
+
import * as core from "../../../../core";
|
|
6
|
+
import * as Vellum from "../../..";
|
|
7
|
+
export declare namespace DocumentIndexes {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: environments.VellumEnvironment | environments.VellumEnvironmentUrls;
|
|
10
|
+
apiKey: core.Supplier<string>;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export declare class DocumentIndexes {
|
|
14
|
+
protected readonly options: DocumentIndexes.Options;
|
|
15
|
+
constructor(options: DocumentIndexes.Options);
|
|
16
|
+
/**
|
|
17
|
+
* <strong style="background-color:#ffc107; color:white; padding:4px; border-radius:4px">Unstable</strong>
|
|
18
|
+
*
|
|
19
|
+
* Creates a new document index.
|
|
20
|
+
*/
|
|
21
|
+
create(request: Vellum.DocumentIndexCreateRequest): Promise<Vellum.DocumentIndexRead>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
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 __importDefault = (this && this.__importDefault) || function (mod) {
|
|
29
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30
|
+
};
|
|
31
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
+
exports.DocumentIndexes = void 0;
|
|
33
|
+
const environments = __importStar(require("../../../../environments"));
|
|
34
|
+
const core = __importStar(require("../../../../core"));
|
|
35
|
+
const url_join_1 = __importDefault(require("url-join"));
|
|
36
|
+
const serializers = __importStar(require("../../../../serialization"));
|
|
37
|
+
const errors = __importStar(require("../../../../errors"));
|
|
38
|
+
class DocumentIndexes {
|
|
39
|
+
options;
|
|
40
|
+
constructor(options) {
|
|
41
|
+
this.options = options;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* <strong style="background-color:#ffc107; color:white; padding:4px; border-radius:4px">Unstable</strong>
|
|
45
|
+
*
|
|
46
|
+
* Creates a new document index.
|
|
47
|
+
*/
|
|
48
|
+
async create(request) {
|
|
49
|
+
const _response = await core.fetcher({
|
|
50
|
+
url: (0, url_join_1.default)((this.options.environment ?? environments.VellumEnvironment.Production).default, "v1/document-indexes"),
|
|
51
|
+
method: "POST",
|
|
52
|
+
headers: {
|
|
53
|
+
X_API_KEY: await core.Supplier.get(this.options.apiKey),
|
|
54
|
+
},
|
|
55
|
+
contentType: "application/json",
|
|
56
|
+
body: await serializers.DocumentIndexCreateRequest.jsonOrThrow(request, {
|
|
57
|
+
unrecognizedObjectKeys: "strip",
|
|
58
|
+
}),
|
|
59
|
+
});
|
|
60
|
+
if (_response.ok) {
|
|
61
|
+
return await serializers.DocumentIndexRead.parseOrThrow(_response.body, {
|
|
62
|
+
unrecognizedObjectKeys: "passthrough",
|
|
63
|
+
allowUnrecognizedUnionMembers: true,
|
|
64
|
+
allowUnrecognizedEnumValues: true,
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
if (_response.error.reason === "status-code") {
|
|
68
|
+
throw new errors.VellumError({
|
|
69
|
+
statusCode: _response.error.statusCode,
|
|
70
|
+
body: _response.error.body,
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
switch (_response.error.reason) {
|
|
74
|
+
case "non-json":
|
|
75
|
+
throw new errors.VellumError({
|
|
76
|
+
statusCode: _response.error.statusCode,
|
|
77
|
+
body: _response.error.rawBody,
|
|
78
|
+
});
|
|
79
|
+
case "timeout":
|
|
80
|
+
throw new errors.VellumTimeoutError();
|
|
81
|
+
case "unknown":
|
|
82
|
+
throw new errors.VellumError({
|
|
83
|
+
message: _response.error.errorMessage,
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
exports.DocumentIndexes = DocumentIndexes;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests";
|
|
@@ -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("./requests"), exports);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "../../../..";
|
|
5
|
+
export interface DocumentIndexCreateRequest {
|
|
6
|
+
/** A human-readable label for the document index. */
|
|
7
|
+
label: string;
|
|
8
|
+
/** A name that uniquely identifies this index within its workspace */
|
|
9
|
+
name: string;
|
|
10
|
+
/** The current status of the document index */
|
|
11
|
+
status?: Vellum.DocumentIndexStatus;
|
|
12
|
+
/** Configuration representing how documents should be indexed. */
|
|
13
|
+
indexingConfig: Record<string, unknown>;
|
|
14
|
+
copyDocumentsFromIndexId?: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DocumentIndexCreateRequest } from "./DocumentIndexCreateRequest";
|
|
@@ -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);
|
package/api/resources/index.d.ts
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
export * as deployments from "./deployments";
|
|
2
|
+
export * as documentIndexes from "./documentIndexes";
|
|
2
3
|
export * as documents from "./documents";
|
|
3
4
|
export * as modelVersions from "./modelVersions";
|
|
5
|
+
export * as registeredPrompts from "./registeredPrompts";
|
|
4
6
|
export * as sandboxes from "./sandboxes";
|
|
5
7
|
export * as testSuites from "./testSuites";
|
|
8
|
+
export * from "./documentIndexes/client/requests";
|
|
6
9
|
export * from "./documents/client/requests";
|
|
7
10
|
export * from "./modelVersions/client/requests";
|
|
11
|
+
export * from "./registeredPrompts/client/requests";
|
|
8
12
|
export * from "./sandboxes/client/requests";
|
|
9
13
|
export * from "./testSuites/client/requests";
|
package/api/resources/index.js
CHANGED
|
@@ -26,13 +26,17 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
26
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.testSuites = exports.sandboxes = exports.modelVersions = exports.documents = exports.deployments = void 0;
|
|
29
|
+
exports.testSuites = exports.sandboxes = exports.registeredPrompts = exports.modelVersions = exports.documents = exports.documentIndexes = exports.deployments = void 0;
|
|
30
30
|
exports.deployments = __importStar(require("./deployments"));
|
|
31
|
+
exports.documentIndexes = __importStar(require("./documentIndexes"));
|
|
31
32
|
exports.documents = __importStar(require("./documents"));
|
|
32
33
|
exports.modelVersions = __importStar(require("./modelVersions"));
|
|
34
|
+
exports.registeredPrompts = __importStar(require("./registeredPrompts"));
|
|
33
35
|
exports.sandboxes = __importStar(require("./sandboxes"));
|
|
34
36
|
exports.testSuites = __importStar(require("./testSuites"));
|
|
37
|
+
__exportStar(require("./documentIndexes/client/requests"), exports);
|
|
35
38
|
__exportStar(require("./documents/client/requests"), exports);
|
|
36
39
|
__exportStar(require("./modelVersions/client/requests"), exports);
|
|
40
|
+
__exportStar(require("./registeredPrompts/client/requests"), exports);
|
|
37
41
|
__exportStar(require("./sandboxes/client/requests"), exports);
|
|
38
42
|
__exportStar(require("./testSuites/client/requests"), exports);
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../environments";
|
|
5
|
+
import * as core from "../../../../core";
|
|
6
|
+
import * as Vellum from "../../..";
|
|
7
|
+
export declare namespace RegisteredPrompts {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: environments.VellumEnvironment | environments.VellumEnvironmentUrls;
|
|
10
|
+
apiKey: core.Supplier<string>;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export declare class RegisteredPrompts {
|
|
14
|
+
protected readonly options: RegisteredPrompts.Options;
|
|
15
|
+
constructor(options: RegisteredPrompts.Options);
|
|
16
|
+
/**
|
|
17
|
+
* <strong style="background-color:#ffc107; color:white; padding:4px; border-radius:4px">Unstable</strong>
|
|
18
|
+
*
|
|
19
|
+
* Registers a prompt within Vellum and creates associated Vellum entities. Intended to be used by integration
|
|
20
|
+
* partners, not directly by Vellum users.
|
|
21
|
+
*
|
|
22
|
+
* Under the hood, this endpoint creates a new sandbox, a new model version, and a new deployment.
|
|
23
|
+
* @throws {Vellum.ConflictError}
|
|
24
|
+
*/
|
|
25
|
+
registerPrompt(request: Vellum.RegisterPromptRequestRequest): Promise<Vellum.RegisterPromptResponse>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
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 __importDefault = (this && this.__importDefault) || function (mod) {
|
|
29
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30
|
+
};
|
|
31
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
+
exports.RegisteredPrompts = void 0;
|
|
33
|
+
const environments = __importStar(require("../../../../environments"));
|
|
34
|
+
const core = __importStar(require("../../../../core"));
|
|
35
|
+
const Vellum = __importStar(require("../../.."));
|
|
36
|
+
const url_join_1 = __importDefault(require("url-join"));
|
|
37
|
+
const serializers = __importStar(require("../../../../serialization"));
|
|
38
|
+
const errors = __importStar(require("../../../../errors"));
|
|
39
|
+
class RegisteredPrompts {
|
|
40
|
+
options;
|
|
41
|
+
constructor(options) {
|
|
42
|
+
this.options = options;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* <strong style="background-color:#ffc107; color:white; padding:4px; border-radius:4px">Unstable</strong>
|
|
46
|
+
*
|
|
47
|
+
* Registers a prompt within Vellum and creates associated Vellum entities. Intended to be used by integration
|
|
48
|
+
* partners, not directly by Vellum users.
|
|
49
|
+
*
|
|
50
|
+
* Under the hood, this endpoint creates a new sandbox, a new model version, and a new deployment.
|
|
51
|
+
* @throws {Vellum.ConflictError}
|
|
52
|
+
*/
|
|
53
|
+
async registerPrompt(request) {
|
|
54
|
+
const _response = await core.fetcher({
|
|
55
|
+
url: (0, url_join_1.default)((this.options.environment ?? environments.VellumEnvironment.Production).default, "v1/registered-prompts/register"),
|
|
56
|
+
method: "POST",
|
|
57
|
+
headers: {
|
|
58
|
+
X_API_KEY: await core.Supplier.get(this.options.apiKey),
|
|
59
|
+
},
|
|
60
|
+
contentType: "application/json",
|
|
61
|
+
body: await serializers.RegisterPromptRequestRequest.jsonOrThrow(request, {
|
|
62
|
+
unrecognizedObjectKeys: "strip",
|
|
63
|
+
}),
|
|
64
|
+
});
|
|
65
|
+
if (_response.ok) {
|
|
66
|
+
return await serializers.RegisterPromptResponse.parseOrThrow(_response.body, {
|
|
67
|
+
unrecognizedObjectKeys: "passthrough",
|
|
68
|
+
allowUnrecognizedUnionMembers: true,
|
|
69
|
+
allowUnrecognizedEnumValues: true,
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
if (_response.error.reason === "status-code") {
|
|
73
|
+
switch (_response.error.statusCode) {
|
|
74
|
+
case 409:
|
|
75
|
+
throw new Vellum.ConflictError(await serializers.RegisterPromptErrorResponse.parseOrThrow(_response.error.body, {
|
|
76
|
+
unrecognizedObjectKeys: "passthrough",
|
|
77
|
+
allowUnrecognizedUnionMembers: true,
|
|
78
|
+
allowUnrecognizedEnumValues: true,
|
|
79
|
+
}));
|
|
80
|
+
default:
|
|
81
|
+
throw new errors.VellumError({
|
|
82
|
+
statusCode: _response.error.statusCode,
|
|
83
|
+
body: _response.error.body,
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
switch (_response.error.reason) {
|
|
88
|
+
case "non-json":
|
|
89
|
+
throw new errors.VellumError({
|
|
90
|
+
statusCode: _response.error.statusCode,
|
|
91
|
+
body: _response.error.rawBody,
|
|
92
|
+
});
|
|
93
|
+
case "timeout":
|
|
94
|
+
throw new errors.VellumTimeoutError();
|
|
95
|
+
case "unknown":
|
|
96
|
+
throw new errors.VellumError({
|
|
97
|
+
message: _response.error.errorMessage,
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
exports.RegisteredPrompts = RegisteredPrompts;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests";
|
|
@@ -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("./requests"), exports);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "../../../..";
|
|
5
|
+
export interface RegisterPromptRequestRequest {
|
|
6
|
+
/** A human-friendly label for corresponding entities created in Vellum. */
|
|
7
|
+
label: string;
|
|
8
|
+
/** A uniquely-identifying name for corresponding entities created in Vellum. */
|
|
9
|
+
name: string;
|
|
10
|
+
/** Information about how to execute the prompt template. */
|
|
11
|
+
prompt: Vellum.RegisterPromptPromptInfoRequest;
|
|
12
|
+
/** The initial LLM provider to use for this prompt */
|
|
13
|
+
provider: Vellum.ProviderEnum;
|
|
14
|
+
/** The initial model to use for this prompt */
|
|
15
|
+
model: string;
|
|
16
|
+
/** The initial model parameters to use for this prompt */
|
|
17
|
+
parameters: Vellum.RegisterPromptModelParametersRequest;
|
|
18
|
+
/** Optionally include additional metadata to store along with the prompt. */
|
|
19
|
+
meta?: Record<string, unknown>;
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { RegisterPromptRequestRequest } from "./RegisterPromptRequestRequest";
|
|
@@ -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);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
export interface DocumentIndexRead {
|
|
6
|
+
id: string;
|
|
7
|
+
created: string;
|
|
8
|
+
/** A human-readable label for the document index. */
|
|
9
|
+
label: string;
|
|
10
|
+
/** A name that uniquely identifies this index within its workspace */
|
|
11
|
+
name: string;
|
|
12
|
+
/** The current status of the document index */
|
|
13
|
+
status?: Vellum.DocumentIndexStatus;
|
|
14
|
+
/** Configuration representing how documents should be indexed. */
|
|
15
|
+
indexingConfig: Record<string, unknown>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
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.DocumentIndexStatus = void 0;
|
|
7
|
+
exports.DocumentIndexStatus = {
|
|
8
|
+
Active: "ACTIVE",
|
|
9
|
+
Archived: "ARCHIVED",
|
|
10
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
export interface PromptTemplateBlockPropertiesRequest {
|
|
6
|
+
chatRole?: Vellum.ChatMessageRole;
|
|
7
|
+
chatMessageUnterminated?: boolean;
|
|
8
|
+
template?: string;
|
|
9
|
+
blocks?: Record<string, unknown>[];
|
|
10
|
+
}
|