vellum-ai 0.0.15 → 0.0.17
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 +3 -0
- package/Client.js +15 -10
- package/api/client/requests/SearchRequestBodyRequest.d.ts +1 -1
- 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 +16 -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/documents/client/requests/UploadDocumentBodyRequest.d.ts +1 -1
- package/api/resources/index.d.ts +2 -0
- package/api/resources/index.js +3 -1
- package/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +3 -3
- package/api/resources/sandboxes/client/Client.d.ts +6 -0
- package/api/resources/sandboxes/client/Client.js +37 -0
- package/api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts +1 -1
- package/api/resources/testSuites/client/Client.d.ts +6 -0
- package/api/resources/testSuites/client/Client.js +37 -0
- package/api/resources/testSuites/client/requests/TestSuiteTestCaseRequest.d.ts +1 -1
- package/api/types/DeploymentRead.d.ts +2 -2
- package/api/types/Document.d.ts +1 -1
- 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/ModelVersionRead.d.ts +2 -2
- package/api/types/ModelVersionSandboxSnapshot.d.ts +1 -1
- package/api/types/ProcessingFailureReasonEnum.d.ts +0 -3
- package/api/types/ProcessingFailureReasonEnum.js +0 -4
- package/api/types/PromptTemplateBlockRequest.d.ts +1 -0
- package/api/types/PromptTemplateInputVariableRequest.d.ts +1 -1
- package/api/types/RegisterPromptPromptInfoRequest.d.ts +2 -2
- package/api/types/ScenarioInputRequest.d.ts +1 -0
- package/api/types/SlimDocument.d.ts +1 -1
- package/api/types/SlimDocumentStatusEnum.d.ts +0 -3
- package/api/types/SlimDocumentStatusEnum.js +0 -4
- package/api/types/index.d.ts +2 -0
- package/api/types/index.js +2 -0
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +15 -10
- package/dist/api/client/requests/SearchRequestBodyRequest.d.ts +1 -1
- 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 +16 -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/documents/client/requests/UploadDocumentBodyRequest.d.ts +1 -1
- package/dist/api/resources/index.d.ts +2 -0
- package/dist/api/resources/index.js +3 -1
- package/dist/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +3 -3
- package/dist/api/resources/sandboxes/client/Client.d.ts +6 -0
- package/dist/api/resources/sandboxes/client/Client.js +37 -0
- package/dist/api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts +1 -1
- package/dist/api/resources/testSuites/client/Client.d.ts +6 -0
- package/dist/api/resources/testSuites/client/Client.js +37 -0
- package/dist/api/resources/testSuites/client/requests/TestSuiteTestCaseRequest.d.ts +1 -1
- package/dist/api/types/DeploymentRead.d.ts +2 -2
- package/dist/api/types/Document.d.ts +1 -1
- 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/ModelVersionRead.d.ts +2 -2
- package/dist/api/types/ModelVersionSandboxSnapshot.d.ts +1 -1
- package/dist/api/types/ProcessingFailureReasonEnum.d.ts +0 -3
- package/dist/api/types/ProcessingFailureReasonEnum.js +0 -4
- package/dist/api/types/PromptTemplateBlockRequest.d.ts +1 -0
- package/dist/api/types/PromptTemplateInputVariableRequest.d.ts +1 -1
- package/dist/api/types/RegisterPromptPromptInfoRequest.d.ts +2 -2
- package/dist/api/types/ScenarioInputRequest.d.ts +1 -0
- package/dist/api/types/SlimDocument.d.ts +1 -1
- package/dist/api/types/SlimDocumentStatusEnum.d.ts +0 -3
- package/dist/api/types/SlimDocumentStatusEnum.js +0 -4
- package/dist/api/types/index.d.ts +2 -0
- package/dist/api/types/index.js +2 -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 +2 -0
- package/dist/serialization/resources/index.js +3 -1
- 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/ModelVersionSandboxSnapshot.d.ts +1 -1
- package/dist/serialization/types/ModelVersionSandboxSnapshot.js +1 -1
- package/dist/serialization/types/ProcessingFailureReasonEnum.js +1 -1
- package/dist/serialization/types/RegisterPromptPromptInfoRequest.d.ts +2 -2
- package/dist/serialization/types/RegisterPromptPromptInfoRequest.js +2 -4
- package/dist/serialization/types/SlimDocumentStatusEnum.js +1 -1
- package/dist/serialization/types/index.d.ts +2 -0
- package/dist/serialization/types/index.js +2 -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 +2 -0
- package/serialization/resources/index.js +3 -1
- 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/ModelVersionSandboxSnapshot.d.ts +1 -1
- package/serialization/types/ModelVersionSandboxSnapshot.js +1 -1
- package/serialization/types/ProcessingFailureReasonEnum.js +1 -1
- package/serialization/types/RegisterPromptPromptInfoRequest.d.ts +2 -2
- package/serialization/types/RegisterPromptPromptInfoRequest.js +2 -4
- package/serialization/types/SlimDocumentStatusEnum.js +1 -1
- package/serialization/types/index.d.ts +2 -0
- package/serialization/types/index.js +2 -0
|
@@ -9,7 +9,7 @@ export interface SlimDocument {
|
|
|
9
9
|
externalId?: string;
|
|
10
10
|
/** A timestamp representing when this document was most recently uploaded. */
|
|
11
11
|
lastUploadedAt: string;
|
|
12
|
-
/** Human-friendly name for this document. */
|
|
12
|
+
/** Human-friendly name for this document. <span style="white-space: nowrap">`<= 1000 characters`</span> */
|
|
13
13
|
label: string;
|
|
14
14
|
/** An enum value representing where this document is along its processing lifecycle. Note that this is different than its indexing lifecycle. */
|
|
15
15
|
processingState?: Vellum.ProcessingStateEnum;
|
|
@@ -6,6 +6,8 @@ export * from "./DeploymentRead";
|
|
|
6
6
|
export * from "./DeploymentReadStatusEnum";
|
|
7
7
|
export * from "./Document";
|
|
8
8
|
export * from "./DocumentDocumentToDocumentIndex";
|
|
9
|
+
export * from "./DocumentIndexRead";
|
|
10
|
+
export * from "./DocumentIndexStatus";
|
|
9
11
|
export * from "./EnrichedNormalizedCompletion";
|
|
10
12
|
export * from "./EnvironmentEnum";
|
|
11
13
|
export * from "./EvaluationParams";
|
package/dist/api/types/index.js
CHANGED
|
@@ -22,6 +22,8 @@ __exportStar(require("./DeploymentRead"), exports);
|
|
|
22
22
|
__exportStar(require("./DeploymentReadStatusEnum"), exports);
|
|
23
23
|
__exportStar(require("./Document"), exports);
|
|
24
24
|
__exportStar(require("./DocumentDocumentToDocumentIndex"), exports);
|
|
25
|
+
__exportStar(require("./DocumentIndexRead"), exports);
|
|
26
|
+
__exportStar(require("./DocumentIndexStatus"), exports);
|
|
25
27
|
__exportStar(require("./EnrichedNormalizedCompletion"), exports);
|
|
26
28
|
__exportStar(require("./EnvironmentEnum"), exports);
|
|
27
29
|
__exportStar(require("./EvaluationParams"), exports);
|
|
@@ -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);
|
package/dist/serialization/resources/documentIndexes/client/requests/DocumentIndexCreateRequest.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../..";
|
|
5
|
+
import * as Vellum from "../../../../../api";
|
|
6
|
+
import * as core from "../../../../../core";
|
|
7
|
+
export declare const DocumentIndexCreateRequest: core.serialization.Schema<serializers.DocumentIndexCreateRequest.Raw, Vellum.DocumentIndexCreateRequest>;
|
|
8
|
+
export declare namespace DocumentIndexCreateRequest {
|
|
9
|
+
interface Raw {
|
|
10
|
+
label: string;
|
|
11
|
+
name: string;
|
|
12
|
+
status?: serializers.DocumentIndexStatus.Raw | null;
|
|
13
|
+
indexing_config: Record<string, unknown>;
|
|
14
|
+
copy_documents_from_index_id?: string | null;
|
|
15
|
+
}
|
|
16
|
+
}
|
package/dist/serialization/resources/documentIndexes/client/requests/DocumentIndexCreateRequest.js
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
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.DocumentIndexCreateRequest = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../../core"));
|
|
31
|
+
exports.DocumentIndexCreateRequest = core.serialization.object({
|
|
32
|
+
label: core.serialization.string(),
|
|
33
|
+
name: core.serialization.string(),
|
|
34
|
+
status: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../..")))).DocumentIndexStatus).optional(),
|
|
35
|
+
indexingConfig: core.serialization.property("indexing_config", core.serialization.record(core.serialization.string(), core.serialization.unknown())),
|
|
36
|
+
copyDocumentsFromIndexId: core.serialization.property("copy_documents_from_index_id", core.serialization.string().optional()),
|
|
37
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DocumentIndexCreateRequest } from "./DocumentIndexCreateRequest";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DocumentIndexCreateRequest = void 0;
|
|
4
|
+
var DocumentIndexCreateRequest_1 = require("./DocumentIndexCreateRequest");
|
|
5
|
+
Object.defineProperty(exports, "DocumentIndexCreateRequest", { enumerable: true, get: function () { return DocumentIndexCreateRequest_1.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);
|
|
@@ -26,7 +26,9 @@ 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.registeredPrompts = exports.modelVersions = void 0;
|
|
29
|
+
exports.testSuites = exports.sandboxes = exports.registeredPrompts = exports.modelVersions = exports.documentIndexes = void 0;
|
|
30
|
+
exports.documentIndexes = __importStar(require("./documentIndexes"));
|
|
31
|
+
__exportStar(require("./documentIndexes/client/requests"), exports);
|
|
30
32
|
exports.modelVersions = __importStar(require("./modelVersions"));
|
|
31
33
|
__exportStar(require("./modelVersions/client/requests"), exports);
|
|
32
34
|
exports.registeredPrompts = __importStar(require("./registeredPrompts"));
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "..";
|
|
5
|
+
import * as Vellum from "../../api";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const DocumentIndexRead: core.serialization.ObjectSchema<serializers.DocumentIndexRead.Raw, Vellum.DocumentIndexRead>;
|
|
8
|
+
export declare namespace DocumentIndexRead {
|
|
9
|
+
interface Raw {
|
|
10
|
+
id: string;
|
|
11
|
+
created: string;
|
|
12
|
+
label: string;
|
|
13
|
+
name: string;
|
|
14
|
+
status?: serializers.DocumentIndexStatus.Raw | null;
|
|
15
|
+
indexing_config: Record<string, unknown>;
|
|
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.DocumentIndexRead = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.DocumentIndexRead = core.serialization.object({
|
|
32
|
+
id: core.serialization.string(),
|
|
33
|
+
created: core.serialization.string(),
|
|
34
|
+
label: core.serialization.string(),
|
|
35
|
+
name: core.serialization.string(),
|
|
36
|
+
status: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).DocumentIndexStatus).optional(),
|
|
37
|
+
indexingConfig: core.serialization.property("indexing_config", core.serialization.record(core.serialization.string(), core.serialization.unknown())),
|
|
38
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "..";
|
|
5
|
+
import * as Vellum from "../../api";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const DocumentIndexStatus: core.serialization.Schema<serializers.DocumentIndexStatus.Raw, Vellum.DocumentIndexStatus>;
|
|
8
|
+
export declare namespace DocumentIndexStatus {
|
|
9
|
+
type Raw = "ACTIVE" | "ARCHIVED";
|
|
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.DocumentIndexStatus = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.DocumentIndexStatus = core.serialization.enum_(["ACTIVE", "ARCHIVED"]);
|
|
@@ -32,5 +32,5 @@ exports.ModelVersionSandboxSnapshot = core.serialization.object({
|
|
|
32
32
|
id: core.serialization.string(),
|
|
33
33
|
promptIndex: core.serialization.property("prompt_index", core.serialization.number().optional()),
|
|
34
34
|
promptId: core.serialization.property("prompt_id", core.serialization.string().optional()),
|
|
35
|
-
sandboxId: core.serialization.property("sandbox_id", core.serialization.string()),
|
|
35
|
+
sandboxId: core.serialization.property("sandbox_id", core.serialization.string().optional()),
|
|
36
36
|
});
|
|
@@ -28,4 +28,4 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.ProcessingFailureReasonEnum = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
exports.ProcessingFailureReasonEnum = core.serialization.
|
|
31
|
+
exports.ProcessingFailureReasonEnum = core.serialization.stringLiteral("EXCEEDED_CHARACTER_LIMIT");
|
|
@@ -8,7 +8,7 @@ export declare const RegisterPromptPromptInfoRequest: core.serialization.ObjectS
|
|
|
8
8
|
export declare namespace RegisterPromptPromptInfoRequest {
|
|
9
9
|
interface Raw {
|
|
10
10
|
prompt_syntax_version?: number | null;
|
|
11
|
-
prompt_block_data
|
|
12
|
-
input_variables
|
|
11
|
+
prompt_block_data: serializers.PromptTemplateBlockDataRequest.Raw;
|
|
12
|
+
input_variables: serializers.PromptTemplateInputVariableRequest.Raw[];
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -30,8 +30,6 @@ exports.RegisterPromptPromptInfoRequest = void 0;
|
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
exports.RegisterPromptPromptInfoRequest = core.serialization.object({
|
|
32
32
|
promptSyntaxVersion: core.serialization.property("prompt_syntax_version", core.serialization.number().optional()),
|
|
33
|
-
promptBlockData: core.serialization.property("prompt_block_data", core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).PromptTemplateBlockDataRequest)
|
|
34
|
-
inputVariables: core.serialization.property("input_variables", core.serialization
|
|
35
|
-
.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).PromptTemplateInputVariableRequest))
|
|
36
|
-
.optional()),
|
|
33
|
+
promptBlockData: core.serialization.property("prompt_block_data", core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).PromptTemplateBlockDataRequest)),
|
|
34
|
+
inputVariables: core.serialization.property("input_variables", core.serialization.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).PromptTemplateInputVariableRequest))),
|
|
37
35
|
});
|
|
@@ -28,4 +28,4 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.SlimDocumentStatusEnum = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
exports.SlimDocumentStatusEnum = core.serialization.
|
|
31
|
+
exports.SlimDocumentStatusEnum = core.serialization.stringLiteral("ACTIVE");
|
|
@@ -6,6 +6,8 @@ export * from "./DeploymentRead";
|
|
|
6
6
|
export * from "./DeploymentReadStatusEnum";
|
|
7
7
|
export * from "./Document";
|
|
8
8
|
export * from "./DocumentDocumentToDocumentIndex";
|
|
9
|
+
export * from "./DocumentIndexRead";
|
|
10
|
+
export * from "./DocumentIndexStatus";
|
|
9
11
|
export * from "./EnrichedNormalizedCompletion";
|
|
10
12
|
export * from "./EnvironmentEnum";
|
|
11
13
|
export * from "./EvaluationParams";
|
|
@@ -22,6 +22,8 @@ __exportStar(require("./DeploymentRead"), exports);
|
|
|
22
22
|
__exportStar(require("./DeploymentReadStatusEnum"), exports);
|
|
23
23
|
__exportStar(require("./Document"), exports);
|
|
24
24
|
__exportStar(require("./DocumentDocumentToDocumentIndex"), exports);
|
|
25
|
+
__exportStar(require("./DocumentIndexRead"), exports);
|
|
26
|
+
__exportStar(require("./DocumentIndexStatus"), exports);
|
|
25
27
|
__exportStar(require("./EnrichedNormalizedCompletion"), exports);
|
|
26
28
|
__exportStar(require("./EnvironmentEnum"), exports);
|
|
27
29
|
__exportStar(require("./EvaluationParams"), exports);
|
package/package.json
CHANGED
|
@@ -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);
|
package/serialization/resources/documentIndexes/client/requests/DocumentIndexCreateRequest.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../..";
|
|
5
|
+
import * as Vellum from "../../../../../api";
|
|
6
|
+
import * as core from "../../../../../core";
|
|
7
|
+
export declare const DocumentIndexCreateRequest: core.serialization.Schema<serializers.DocumentIndexCreateRequest.Raw, Vellum.DocumentIndexCreateRequest>;
|
|
8
|
+
export declare namespace DocumentIndexCreateRequest {
|
|
9
|
+
interface Raw {
|
|
10
|
+
label: string;
|
|
11
|
+
name: string;
|
|
12
|
+
status?: serializers.DocumentIndexStatus.Raw | null;
|
|
13
|
+
indexing_config: Record<string, unknown>;
|
|
14
|
+
copy_documents_from_index_id?: string | null;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
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.DocumentIndexCreateRequest = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../../core"));
|
|
31
|
+
exports.DocumentIndexCreateRequest = core.serialization.object({
|
|
32
|
+
label: core.serialization.string(),
|
|
33
|
+
name: core.serialization.string(),
|
|
34
|
+
status: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../..")))).DocumentIndexStatus).optional(),
|
|
35
|
+
indexingConfig: core.serialization.property("indexing_config", core.serialization.record(core.serialization.string(), core.serialization.unknown())),
|
|
36
|
+
copyDocumentsFromIndexId: core.serialization.property("copy_documents_from_index_id", core.serialization.string().optional()),
|
|
37
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DocumentIndexCreateRequest } from "./DocumentIndexCreateRequest";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DocumentIndexCreateRequest = void 0;
|
|
4
|
+
var DocumentIndexCreateRequest_1 = require("./DocumentIndexCreateRequest");
|
|
5
|
+
Object.defineProperty(exports, "DocumentIndexCreateRequest", { enumerable: true, get: function () { return DocumentIndexCreateRequest_1.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);
|
|
@@ -26,7 +26,9 @@ 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.registeredPrompts = exports.modelVersions = void 0;
|
|
29
|
+
exports.testSuites = exports.sandboxes = exports.registeredPrompts = exports.modelVersions = exports.documentIndexes = void 0;
|
|
30
|
+
exports.documentIndexes = __importStar(require("./documentIndexes"));
|
|
31
|
+
__exportStar(require("./documentIndexes/client/requests"), exports);
|
|
30
32
|
exports.modelVersions = __importStar(require("./modelVersions"));
|
|
31
33
|
__exportStar(require("./modelVersions/client/requests"), exports);
|
|
32
34
|
exports.registeredPrompts = __importStar(require("./registeredPrompts"));
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "..";
|
|
5
|
+
import * as Vellum from "../../api";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const DocumentIndexRead: core.serialization.ObjectSchema<serializers.DocumentIndexRead.Raw, Vellum.DocumentIndexRead>;
|
|
8
|
+
export declare namespace DocumentIndexRead {
|
|
9
|
+
interface Raw {
|
|
10
|
+
id: string;
|
|
11
|
+
created: string;
|
|
12
|
+
label: string;
|
|
13
|
+
name: string;
|
|
14
|
+
status?: serializers.DocumentIndexStatus.Raw | null;
|
|
15
|
+
indexing_config: Record<string, unknown>;
|
|
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.DocumentIndexRead = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.DocumentIndexRead = core.serialization.object({
|
|
32
|
+
id: core.serialization.string(),
|
|
33
|
+
created: core.serialization.string(),
|
|
34
|
+
label: core.serialization.string(),
|
|
35
|
+
name: core.serialization.string(),
|
|
36
|
+
status: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).DocumentIndexStatus).optional(),
|
|
37
|
+
indexingConfig: core.serialization.property("indexing_config", core.serialization.record(core.serialization.string(), core.serialization.unknown())),
|
|
38
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "..";
|
|
5
|
+
import * as Vellum from "../../api";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const DocumentIndexStatus: core.serialization.Schema<serializers.DocumentIndexStatus.Raw, Vellum.DocumentIndexStatus>;
|
|
8
|
+
export declare namespace DocumentIndexStatus {
|
|
9
|
+
type Raw = "ACTIVE" | "ARCHIVED";
|
|
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.DocumentIndexStatus = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.DocumentIndexStatus = core.serialization.enum_(["ACTIVE", "ARCHIVED"]);
|
|
@@ -32,5 +32,5 @@ exports.ModelVersionSandboxSnapshot = core.serialization.object({
|
|
|
32
32
|
id: core.serialization.string(),
|
|
33
33
|
promptIndex: core.serialization.property("prompt_index", core.serialization.number().optional()),
|
|
34
34
|
promptId: core.serialization.property("prompt_id", core.serialization.string().optional()),
|
|
35
|
-
sandboxId: core.serialization.property("sandbox_id", core.serialization.string()),
|
|
35
|
+
sandboxId: core.serialization.property("sandbox_id", core.serialization.string().optional()),
|
|
36
36
|
});
|