vellum-ai 0.8.30 → 0.9.1
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 +67 -42
- package/.mock/definition/containerImages.yml +122 -0
- package/.mock/openapi/openapi.yml +3627 -3761
- package/Client.d.ts +3 -0
- package/Client.js +39 -34
- package/api/resources/adHoc/client/Client.js +1 -1
- package/api/resources/containerImages/client/Client.d.ts +61 -0
- package/api/resources/containerImages/client/Client.js +231 -0
- package/api/resources/containerImages/client/index.d.ts +1 -0
- package/api/resources/containerImages/client/index.js +17 -0
- package/api/resources/containerImages/client/requests/ContainerImagesListRequest.d.ts +21 -0
- package/api/resources/containerImages/client/requests/PushContainerImageRequest.d.ts +16 -0
- package/api/resources/containerImages/client/requests/index.d.ts +2 -0
- package/api/resources/containerImages/client/requests/index.js +2 -0
- package/api/resources/containerImages/index.d.ts +1 -0
- package/api/resources/containerImages/index.js +17 -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 +2 -0
- package/api/resources/index.js +3 -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/workflows/client/Client.js +1 -1
- package/api/resources/workspaceSecrets/client/Client.js +2 -2
- package/api/types/ArrayInputRequest.d.ts +1 -1
- package/api/types/ArrayVellumValue.d.ts +1 -1
- package/api/types/ArrayVellumValueRequest.d.ts +1 -1
- package/api/types/CodeExecutionNodeArrayResult.d.ts +1 -1
- package/api/types/ContainerImageRead.d.ts +14 -0
- package/api/types/EntityVisibility.d.ts +16 -0
- package/api/types/EntityVisibility.js +12 -0
- package/api/types/ExecutionArrayVellumValue.d.ts +1 -1
- package/api/types/NamedTestCaseArrayVariableValue.d.ts +1 -1
- package/api/types/NamedTestCaseArrayVariableValueRequest.d.ts +1 -1
- package/api/types/NodeInputCompiledArrayValue.d.ts +1 -1
- package/api/types/NodeOutputCompiledArrayValue.d.ts +1 -1
- package/api/types/PaginatedContainerImageReadList.d.ts +10 -0
- package/api/types/TemplatingNodeArrayResult.d.ts +1 -1
- package/api/types/TerminalNodeArrayResult.d.ts +1 -1
- package/api/types/TestCaseArrayVariableValue.d.ts +1 -1
- package/api/types/TestSuiteRunExecutionArrayOutput.d.ts +1 -1
- package/api/types/VellumVariableType.d.ts +3 -1
- package/api/types/VellumVariableType.js +1 -0
- package/api/types/WorkflowOutputArray.d.ts +1 -1
- package/api/types/index.d.ts +3 -2
- package/api/types/index.js +3 -2
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +39 -34
- package/dist/api/resources/adHoc/client/Client.js +1 -1
- package/dist/api/resources/containerImages/client/Client.d.ts +61 -0
- package/dist/api/resources/containerImages/client/Client.js +231 -0
- package/dist/api/resources/containerImages/client/index.d.ts +1 -0
- package/dist/api/resources/containerImages/client/index.js +17 -0
- package/dist/api/resources/containerImages/client/requests/ContainerImagesListRequest.d.ts +21 -0
- package/dist/api/resources/containerImages/client/requests/ContainerImagesListRequest.js +5 -0
- package/dist/api/resources/containerImages/client/requests/PushContainerImageRequest.d.ts +16 -0
- package/dist/api/resources/containerImages/client/requests/PushContainerImageRequest.js +5 -0
- package/dist/api/resources/containerImages/client/requests/index.d.ts +2 -0
- package/dist/api/resources/containerImages/client/requests/index.js +2 -0
- package/dist/api/resources/containerImages/index.d.ts +1 -0
- package/dist/api/resources/containerImages/index.js +17 -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 +2 -0
- package/dist/api/resources/index.js +3 -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/workflows/client/Client.js +1 -1
- package/dist/api/resources/workspaceSecrets/client/Client.js +2 -2
- package/dist/api/types/ArrayInputRequest.d.ts +1 -1
- package/dist/api/types/ArrayVellumValue.d.ts +1 -1
- package/dist/api/types/ArrayVellumValueRequest.d.ts +1 -1
- package/dist/api/types/CodeExecutionNodeArrayResult.d.ts +1 -1
- package/dist/api/types/ContainerImageRead.d.ts +14 -0
- package/dist/api/types/ContainerImageRead.js +5 -0
- package/dist/api/types/EntityVisibility.d.ts +16 -0
- package/dist/api/types/EntityVisibility.js +12 -0
- package/dist/api/types/ExecutionArrayVellumValue.d.ts +1 -1
- package/dist/api/types/NamedTestCaseArrayVariableValue.d.ts +1 -1
- package/dist/api/types/NamedTestCaseArrayVariableValueRequest.d.ts +1 -1
- package/dist/api/types/NodeInputCompiledArrayValue.d.ts +1 -1
- package/dist/api/types/NodeOutputCompiledArrayValue.d.ts +1 -1
- package/dist/api/types/PaginatedContainerImageReadList.d.ts +10 -0
- package/dist/api/types/PaginatedContainerImageReadList.js +5 -0
- package/dist/api/types/TemplatingNodeArrayResult.d.ts +1 -1
- package/dist/api/types/TerminalNodeArrayResult.d.ts +1 -1
- package/dist/api/types/TestCaseArrayVariableValue.d.ts +1 -1
- package/dist/api/types/TestSuiteRunExecutionArrayOutput.d.ts +1 -1
- package/dist/api/types/VellumVariableType.d.ts +3 -1
- package/dist/api/types/VellumVariableType.js +1 -0
- package/dist/api/types/WorkflowOutputArray.d.ts +1 -1
- package/dist/api/types/index.d.ts +3 -2
- package/dist/api/types/index.js +3 -2
- package/dist/serialization/resources/containerImages/client/index.d.ts +1 -0
- package/dist/serialization/resources/containerImages/client/index.js +17 -0
- package/dist/serialization/resources/containerImages/client/requests/PushContainerImageRequest.d.ts +14 -0
- package/dist/serialization/resources/containerImages/client/requests/PushContainerImageRequest.js +35 -0
- package/dist/serialization/resources/containerImages/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/containerImages/client/requests/index.js +5 -0
- package/dist/serialization/resources/containerImages/index.d.ts +1 -0
- package/dist/serialization/resources/containerImages/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/ArrayInputRequest.d.ts +1 -1
- package/dist/serialization/types/ArrayInputRequest.js +1 -1
- package/dist/serialization/types/ArrayVellumValue.d.ts +1 -1
- package/dist/serialization/types/ArrayVellumValue.js +1 -1
- package/dist/serialization/types/ArrayVellumValueRequest.d.ts +1 -1
- package/dist/serialization/types/ArrayVellumValueRequest.js +1 -1
- package/dist/serialization/types/CodeExecutionNodeArrayResult.d.ts +1 -1
- package/dist/serialization/types/CodeExecutionNodeArrayResult.js +1 -1
- package/dist/serialization/types/CodeExecutorResponse.d.ts +1 -2
- package/dist/serialization/types/CodeExecutorResponse.js +2 -2
- package/dist/serialization/types/ContainerImageRead.d.ts +20 -0
- package/{serialization/types/ArrayVellumValueItem.js → dist/serialization/types/ContainerImageRead.js} +12 -21
- package/dist/serialization/types/EntityVisibility.d.ts +10 -0
- package/dist/serialization/types/{ArrayVellumValueItem.js → EntityVisibility.js} +2 -21
- package/dist/serialization/types/ExecutionArrayVellumValue.d.ts +1 -1
- package/dist/serialization/types/ExecutionArrayVellumValue.js +1 -1
- package/dist/serialization/types/NamedTestCaseArrayVariableValue.d.ts +1 -1
- package/dist/serialization/types/NamedTestCaseArrayVariableValue.js +1 -1
- package/dist/serialization/types/NamedTestCaseArrayVariableValueRequest.d.ts +1 -1
- package/dist/serialization/types/NamedTestCaseArrayVariableValueRequest.js +1 -1
- package/dist/serialization/types/NodeInputCompiledArrayValue.d.ts +1 -1
- package/dist/serialization/types/NodeInputCompiledArrayValue.js +1 -1
- package/dist/serialization/types/NodeOutputCompiledArrayValue.d.ts +1 -1
- package/dist/serialization/types/NodeOutputCompiledArrayValue.js +1 -1
- package/dist/serialization/types/PaginatedContainerImageReadList.d.ts +16 -0
- package/dist/serialization/types/PaginatedContainerImageReadList.js +37 -0
- package/dist/serialization/types/TemplatingNodeArrayResult.d.ts +1 -1
- package/dist/serialization/types/TemplatingNodeArrayResult.js +1 -1
- package/dist/serialization/types/TerminalNodeArrayResult.d.ts +1 -1
- package/dist/serialization/types/TerminalNodeArrayResult.js +1 -1
- package/dist/serialization/types/TestCaseArrayVariableValue.d.ts +1 -1
- package/dist/serialization/types/TestCaseArrayVariableValue.js +1 -1
- package/dist/serialization/types/TestSuiteRunExecutionArrayOutput.d.ts +1 -1
- package/dist/serialization/types/TestSuiteRunExecutionArrayOutput.js +1 -1
- package/dist/serialization/types/VellumValueLogicalConditionRequest.d.ts +2 -3
- package/dist/serialization/types/VellumValueLogicalConditionRequest.js +3 -3
- package/dist/serialization/types/VellumVariable.d.ts +1 -2
- package/dist/serialization/types/VellumVariable.js +2 -2
- package/dist/serialization/types/VellumVariableRequest.d.ts +1 -2
- package/dist/serialization/types/VellumVariableRequest.js +2 -2
- package/dist/serialization/types/VellumVariableType.d.ts +1 -1
- package/dist/serialization/types/VellumVariableType.js +1 -0
- package/dist/serialization/types/WorkflowOutputArray.d.ts +1 -1
- package/dist/serialization/types/WorkflowOutputArray.js +1 -1
- package/dist/serialization/types/index.d.ts +3 -2
- package/dist/serialization/types/index.js +3 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +195 -0
- package/serialization/resources/containerImages/client/index.d.ts +1 -0
- package/serialization/resources/containerImages/client/index.js +17 -0
- package/serialization/resources/containerImages/client/requests/PushContainerImageRequest.d.ts +14 -0
- package/serialization/resources/containerImages/client/requests/PushContainerImageRequest.js +35 -0
- package/serialization/resources/containerImages/client/requests/index.d.ts +1 -0
- package/serialization/resources/containerImages/client/requests/index.js +5 -0
- package/serialization/resources/containerImages/index.d.ts +1 -0
- package/serialization/resources/containerImages/index.js +17 -0
- package/serialization/resources/index.d.ts +2 -0
- package/serialization/resources/index.js +3 -1
- package/serialization/types/ArrayInputRequest.d.ts +1 -1
- package/serialization/types/ArrayInputRequest.js +1 -1
- package/serialization/types/ArrayVellumValue.d.ts +1 -1
- package/serialization/types/ArrayVellumValue.js +1 -1
- package/serialization/types/ArrayVellumValueRequest.d.ts +1 -1
- package/serialization/types/ArrayVellumValueRequest.js +1 -1
- package/serialization/types/CodeExecutionNodeArrayResult.d.ts +1 -1
- package/serialization/types/CodeExecutionNodeArrayResult.js +1 -1
- package/serialization/types/CodeExecutorResponse.d.ts +1 -2
- package/serialization/types/CodeExecutorResponse.js +2 -2
- package/serialization/types/ContainerImageRead.d.ts +20 -0
- package/serialization/types/ContainerImageRead.js +41 -0
- package/serialization/types/EntityVisibility.d.ts +10 -0
- package/serialization/types/EntityVisibility.js +31 -0
- package/serialization/types/ExecutionArrayVellumValue.d.ts +1 -1
- package/serialization/types/ExecutionArrayVellumValue.js +1 -1
- package/serialization/types/NamedTestCaseArrayVariableValue.d.ts +1 -1
- package/serialization/types/NamedTestCaseArrayVariableValue.js +1 -1
- package/serialization/types/NamedTestCaseArrayVariableValueRequest.d.ts +1 -1
- package/serialization/types/NamedTestCaseArrayVariableValueRequest.js +1 -1
- package/serialization/types/NodeInputCompiledArrayValue.d.ts +1 -1
- package/serialization/types/NodeInputCompiledArrayValue.js +1 -1
- package/serialization/types/NodeOutputCompiledArrayValue.d.ts +1 -1
- package/serialization/types/NodeOutputCompiledArrayValue.js +1 -1
- package/serialization/types/PaginatedContainerImageReadList.d.ts +16 -0
- package/serialization/types/PaginatedContainerImageReadList.js +37 -0
- package/serialization/types/TemplatingNodeArrayResult.d.ts +1 -1
- package/serialization/types/TemplatingNodeArrayResult.js +1 -1
- package/serialization/types/TerminalNodeArrayResult.d.ts +1 -1
- package/serialization/types/TerminalNodeArrayResult.js +1 -1
- package/serialization/types/TestCaseArrayVariableValue.d.ts +1 -1
- package/serialization/types/TestCaseArrayVariableValue.js +1 -1
- package/serialization/types/TestSuiteRunExecutionArrayOutput.d.ts +1 -1
- package/serialization/types/TestSuiteRunExecutionArrayOutput.js +1 -1
- package/serialization/types/VellumValueLogicalConditionRequest.d.ts +2 -3
- package/serialization/types/VellumValueLogicalConditionRequest.js +3 -3
- package/serialization/types/VellumVariable.d.ts +1 -2
- package/serialization/types/VellumVariable.js +2 -2
- package/serialization/types/VellumVariableRequest.d.ts +1 -2
- package/serialization/types/VellumVariableRequest.js +2 -2
- package/serialization/types/VellumVariableType.d.ts +1 -1
- package/serialization/types/VellumVariableType.js +1 -0
- package/serialization/types/WorkflowOutputArray.d.ts +1 -1
- package/serialization/types/WorkflowOutputArray.js +1 -1
- package/serialization/types/index.d.ts +3 -2
- package/serialization/types/index.js +3 -2
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/types/ArrayVellumValueItem.d.ts +0 -5
- package/api/types/ArrayVellumValueItemRequest.d.ts +0 -5
- package/dist/api/types/ArrayVellumValueItem.d.ts +0 -5
- package/dist/api/types/ArrayVellumValueItemRequest.d.ts +0 -5
- package/dist/serialization/types/ArrayVellumValueItem.d.ts +0 -18
- package/dist/serialization/types/ArrayVellumValueItemRequest.d.ts +0 -18
- package/dist/serialization/types/ArrayVellumValueItemRequest.js +0 -50
- package/serialization/types/ArrayVellumValueItem.d.ts +0 -18
- package/serialization/types/ArrayVellumValueItemRequest.d.ts +0 -18
- package/serialization/types/ArrayVellumValueItemRequest.js +0 -50
- /package/api/{types/ArrayVellumValueItem.js → resources/containerImages/client/requests/ContainerImagesListRequest.js} +0 -0
- /package/api/{types/ArrayVellumValueItemRequest.js → resources/containerImages/client/requests/PushContainerImageRequest.js} +0 -0
- /package/{dist/api/types/ArrayVellumValueItem.js → api/types/ContainerImageRead.js} +0 -0
- /package/{dist/api/types/ArrayVellumValueItemRequest.js → api/types/PaginatedContainerImageReadList.js} +0 -0
|
@@ -0,0 +1,231 @@
|
|
|
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.ContainerImages = 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 ContainerImages {
|
|
48
|
+
constructor(_options = {}) {
|
|
49
|
+
this._options = _options;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Retrieve a list of container images for the organization.
|
|
53
|
+
*
|
|
54
|
+
* @param {Vellum.ContainerImagesListRequest} request
|
|
55
|
+
* @param {ContainerImages.RequestOptions} requestOptions - Request-specific configuration.
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* await client.containerImages.list()
|
|
59
|
+
*/
|
|
60
|
+
list(request = {}, requestOptions) {
|
|
61
|
+
var _a;
|
|
62
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
63
|
+
const { limit, offset, ordering } = request;
|
|
64
|
+
const _queryParams = {};
|
|
65
|
+
if (limit != null) {
|
|
66
|
+
_queryParams["limit"] = limit.toString();
|
|
67
|
+
}
|
|
68
|
+
if (offset != null) {
|
|
69
|
+
_queryParams["offset"] = offset.toString();
|
|
70
|
+
}
|
|
71
|
+
if (ordering != null) {
|
|
72
|
+
_queryParams["ordering"] = ordering;
|
|
73
|
+
}
|
|
74
|
+
const _response = yield core.fetcher({
|
|
75
|
+
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
76
|
+
.default, "v1/container-images"),
|
|
77
|
+
method: "GET",
|
|
78
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.1", "User-Agent": "vellum-ai/v0.9.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
79
|
+
contentType: "application/json",
|
|
80
|
+
queryParameters: _queryParams,
|
|
81
|
+
requestType: "json",
|
|
82
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
83
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
84
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
85
|
+
});
|
|
86
|
+
if (_response.ok) {
|
|
87
|
+
return serializers.PaginatedContainerImageReadList.parseOrThrow(_response.body, {
|
|
88
|
+
unrecognizedObjectKeys: "passthrough",
|
|
89
|
+
allowUnrecognizedUnionMembers: true,
|
|
90
|
+
allowUnrecognizedEnumValues: true,
|
|
91
|
+
breadcrumbsPrefix: ["response"],
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
if (_response.error.reason === "status-code") {
|
|
95
|
+
throw new errors.VellumError({
|
|
96
|
+
statusCode: _response.error.statusCode,
|
|
97
|
+
body: _response.error.body,
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
switch (_response.error.reason) {
|
|
101
|
+
case "non-json":
|
|
102
|
+
throw new errors.VellumError({
|
|
103
|
+
statusCode: _response.error.statusCode,
|
|
104
|
+
body: _response.error.rawBody,
|
|
105
|
+
});
|
|
106
|
+
case "timeout":
|
|
107
|
+
throw new errors.VellumTimeoutError();
|
|
108
|
+
case "unknown":
|
|
109
|
+
throw new errors.VellumError({
|
|
110
|
+
message: _response.error.errorMessage,
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Retrieve a Container Image by its ID or name.
|
|
117
|
+
*
|
|
118
|
+
* @param {string} id - Either the Container Image's ID or its unique name
|
|
119
|
+
* @param {ContainerImages.RequestOptions} requestOptions - Request-specific configuration.
|
|
120
|
+
*
|
|
121
|
+
* @example
|
|
122
|
+
* await client.containerImages.retrieve("id")
|
|
123
|
+
*/
|
|
124
|
+
retrieve(id, requestOptions) {
|
|
125
|
+
var _a;
|
|
126
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
127
|
+
const _response = yield core.fetcher({
|
|
128
|
+
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
129
|
+
.default, `v1/container-images/${encodeURIComponent(id)}`),
|
|
130
|
+
method: "GET",
|
|
131
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.1", "User-Agent": "vellum-ai/v0.9.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
132
|
+
contentType: "application/json",
|
|
133
|
+
requestType: "json",
|
|
134
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
135
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
136
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
137
|
+
});
|
|
138
|
+
if (_response.ok) {
|
|
139
|
+
return serializers.ContainerImageRead.parseOrThrow(_response.body, {
|
|
140
|
+
unrecognizedObjectKeys: "passthrough",
|
|
141
|
+
allowUnrecognizedUnionMembers: true,
|
|
142
|
+
allowUnrecognizedEnumValues: true,
|
|
143
|
+
breadcrumbsPrefix: ["response"],
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
if (_response.error.reason === "status-code") {
|
|
147
|
+
throw new errors.VellumError({
|
|
148
|
+
statusCode: _response.error.statusCode,
|
|
149
|
+
body: _response.error.body,
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
switch (_response.error.reason) {
|
|
153
|
+
case "non-json":
|
|
154
|
+
throw new errors.VellumError({
|
|
155
|
+
statusCode: _response.error.statusCode,
|
|
156
|
+
body: _response.error.rawBody,
|
|
157
|
+
});
|
|
158
|
+
case "timeout":
|
|
159
|
+
throw new errors.VellumTimeoutError();
|
|
160
|
+
case "unknown":
|
|
161
|
+
throw new errors.VellumError({
|
|
162
|
+
message: _response.error.errorMessage,
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* An internal-only endpoint that's subject to breaking changes without notice. Not intended for public use.
|
|
169
|
+
*
|
|
170
|
+
* @param {Vellum.PushContainerImageRequest} request
|
|
171
|
+
* @param {ContainerImages.RequestOptions} requestOptions - Request-specific configuration.
|
|
172
|
+
*
|
|
173
|
+
* @example
|
|
174
|
+
* await client.containerImages.pushContainerImage({
|
|
175
|
+
* name: "name",
|
|
176
|
+
* sha: "sha",
|
|
177
|
+
* tags: ["tags"]
|
|
178
|
+
* })
|
|
179
|
+
*/
|
|
180
|
+
pushContainerImage(request, requestOptions) {
|
|
181
|
+
var _a;
|
|
182
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
183
|
+
const _response = yield core.fetcher({
|
|
184
|
+
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
185
|
+
.default, "v1/container-images/push"),
|
|
186
|
+
method: "POST",
|
|
187
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.1", "User-Agent": "vellum-ai/v0.9.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
188
|
+
contentType: "application/json",
|
|
189
|
+
requestType: "json",
|
|
190
|
+
body: serializers.PushContainerImageRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
191
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
192
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
193
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
194
|
+
});
|
|
195
|
+
if (_response.ok) {
|
|
196
|
+
return serializers.ContainerImageRead.parseOrThrow(_response.body, {
|
|
197
|
+
unrecognizedObjectKeys: "passthrough",
|
|
198
|
+
allowUnrecognizedUnionMembers: true,
|
|
199
|
+
allowUnrecognizedEnumValues: true,
|
|
200
|
+
breadcrumbsPrefix: ["response"],
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
if (_response.error.reason === "status-code") {
|
|
204
|
+
throw new errors.VellumError({
|
|
205
|
+
statusCode: _response.error.statusCode,
|
|
206
|
+
body: _response.error.body,
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
switch (_response.error.reason) {
|
|
210
|
+
case "non-json":
|
|
211
|
+
throw new errors.VellumError({
|
|
212
|
+
statusCode: _response.error.statusCode,
|
|
213
|
+
body: _response.error.rawBody,
|
|
214
|
+
});
|
|
215
|
+
case "timeout":
|
|
216
|
+
throw new errors.VellumTimeoutError();
|
|
217
|
+
case "unknown":
|
|
218
|
+
throw new errors.VellumError({
|
|
219
|
+
message: _response.error.errorMessage,
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
_getCustomAuthorizationHeaders() {
|
|
225
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
226
|
+
const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
|
|
227
|
+
return { X_API_KEY: apiKeyValue };
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
exports.ContainerImages = ContainerImages;
|
|
@@ -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,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {}
|
|
7
|
+
*/
|
|
8
|
+
export interface ContainerImagesListRequest {
|
|
9
|
+
/**
|
|
10
|
+
* Number of results to return per page.
|
|
11
|
+
*/
|
|
12
|
+
limit?: number;
|
|
13
|
+
/**
|
|
14
|
+
* The initial index from which to return the results.
|
|
15
|
+
*/
|
|
16
|
+
offset?: number;
|
|
17
|
+
/**
|
|
18
|
+
* Which field to use when ordering the results.
|
|
19
|
+
*/
|
|
20
|
+
ordering?: string;
|
|
21
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* name: "name",
|
|
8
|
+
* sha: "sha",
|
|
9
|
+
* tags: ["tags"]
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
export interface PushContainerImageRequest {
|
|
13
|
+
name: string;
|
|
14
|
+
sha: string;
|
|
15
|
+
tags: string[];
|
|
16
|
+
}
|
|
@@ -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);
|
|
@@ -79,7 +79,7 @@ class Deployments {
|
|
|
79
79
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
80
80
|
.default, "v1/deployments"),
|
|
81
81
|
method: "GET",
|
|
82
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "
|
|
82
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.1", "User-Agent": "vellum-ai/v0.9.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
83
83
|
contentType: "application/json",
|
|
84
84
|
queryParameters: _queryParams,
|
|
85
85
|
requestType: "json",
|
|
@@ -132,7 +132,7 @@ class Deployments {
|
|
|
132
132
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
133
133
|
.default, `v1/deployments/${encodeURIComponent(id)}`),
|
|
134
134
|
method: "GET",
|
|
135
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "
|
|
135
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.1", "User-Agent": "vellum-ai/v0.9.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
136
136
|
contentType: "application/json",
|
|
137
137
|
requestType: "json",
|
|
138
138
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -185,7 +185,7 @@ class Deployments {
|
|
|
185
185
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
186
186
|
.default, `v1/deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
|
|
187
187
|
method: "GET",
|
|
188
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "
|
|
188
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.1", "User-Agent": "vellum-ai/v0.9.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
189
189
|
contentType: "application/json",
|
|
190
190
|
requestType: "json",
|
|
191
191
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -239,7 +239,7 @@ class Deployments {
|
|
|
239
239
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
240
240
|
.default, `v1/deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
|
|
241
241
|
method: "PATCH",
|
|
242
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "
|
|
242
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.1", "User-Agent": "vellum-ai/v0.9.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
243
243
|
contentType: "application/json",
|
|
244
244
|
requestType: "json",
|
|
245
245
|
body: serializers.PatchedDeploymentReleaseTagUpdateRequest.jsonOrThrow(request, {
|
|
@@ -314,7 +314,7 @@ class Deployments {
|
|
|
314
314
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
315
315
|
.default, "v1/deployments/provider-payload"),
|
|
316
316
|
method: "POST",
|
|
317
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "
|
|
317
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.1", "User-Agent": "vellum-ai/v0.9.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
318
318
|
contentType: "application/json",
|
|
319
319
|
requestType: "json",
|
|
320
320
|
body: serializers.DeploymentProviderPayloadRequest.jsonOrThrow(request, {
|
|
@@ -81,7 +81,7 @@ class DocumentIndexes {
|
|
|
81
81
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
82
82
|
.default, "v1/document-indexes"),
|
|
83
83
|
method: "GET",
|
|
84
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "
|
|
84
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.1", "User-Agent": "vellum-ai/v0.9.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
85
85
|
contentType: "application/json",
|
|
86
86
|
queryParameters: _queryParams,
|
|
87
87
|
requestType: "json",
|
|
@@ -196,7 +196,7 @@ class DocumentIndexes {
|
|
|
196
196
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
197
197
|
.default, "v1/document-indexes"),
|
|
198
198
|
method: "POST",
|
|
199
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "
|
|
199
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.1", "User-Agent": "vellum-ai/v0.9.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
200
200
|
contentType: "application/json",
|
|
201
201
|
requestType: "json",
|
|
202
202
|
body: serializers.DocumentIndexCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -249,7 +249,7 @@ class DocumentIndexes {
|
|
|
249
249
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
250
250
|
.default, `v1/document-indexes/${encodeURIComponent(id)}`),
|
|
251
251
|
method: "GET",
|
|
252
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "
|
|
252
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.1", "User-Agent": "vellum-ai/v0.9.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
253
253
|
contentType: "application/json",
|
|
254
254
|
requestType: "json",
|
|
255
255
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -304,7 +304,7 @@ class DocumentIndexes {
|
|
|
304
304
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
305
305
|
.default, `v1/document-indexes/${encodeURIComponent(id)}`),
|
|
306
306
|
method: "PUT",
|
|
307
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "
|
|
307
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.1", "User-Agent": "vellum-ai/v0.9.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
308
308
|
contentType: "application/json",
|
|
309
309
|
requestType: "json",
|
|
310
310
|
body: serializers.DocumentIndexUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -357,7 +357,7 @@ class DocumentIndexes {
|
|
|
357
357
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
358
358
|
.documents, `v1/document-indexes/${encodeURIComponent(id)}`),
|
|
359
359
|
method: "DELETE",
|
|
360
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "
|
|
360
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.1", "User-Agent": "vellum-ai/v0.9.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
361
361
|
contentType: "application/json",
|
|
362
362
|
requestType: "json",
|
|
363
363
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -405,7 +405,7 @@ class DocumentIndexes {
|
|
|
405
405
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
406
406
|
.default, `v1/document-indexes/${encodeURIComponent(id)}`),
|
|
407
407
|
method: "PATCH",
|
|
408
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "
|
|
408
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.1", "User-Agent": "vellum-ai/v0.9.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
409
409
|
contentType: "application/json",
|
|
410
410
|
requestType: "json",
|
|
411
411
|
body: serializers.PatchedDocumentIndexUpdateRequest.jsonOrThrow(request, {
|
|
@@ -461,7 +461,7 @@ class DocumentIndexes {
|
|
|
461
461
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
462
462
|
.default, `v1/document-indexes/${encodeURIComponent(id)}/documents/${encodeURIComponent(documentId)}`),
|
|
463
463
|
method: "POST",
|
|
464
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "
|
|
464
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.1", "User-Agent": "vellum-ai/v0.9.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
465
465
|
contentType: "application/json",
|
|
466
466
|
requestType: "json",
|
|
467
467
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -509,7 +509,7 @@ class DocumentIndexes {
|
|
|
509
509
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
510
510
|
.documents, `v1/document-indexes/${encodeURIComponent(id)}/documents/${encodeURIComponent(documentId)}`),
|
|
511
511
|
method: "DELETE",
|
|
512
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "
|
|
512
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.1", "User-Agent": "vellum-ai/v0.9.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
513
513
|
contentType: "application/json",
|
|
514
514
|
requestType: "json",
|
|
515
515
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -79,7 +79,7 @@ class Documents {
|
|
|
79
79
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
80
80
|
.default, "v1/documents"),
|
|
81
81
|
method: "GET",
|
|
82
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "
|
|
82
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.1", "User-Agent": "vellum-ai/v0.9.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
83
83
|
contentType: "application/json",
|
|
84
84
|
queryParameters: _queryParams,
|
|
85
85
|
requestType: "json",
|
|
@@ -132,7 +132,7 @@ class Documents {
|
|
|
132
132
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
133
133
|
.default, `v1/documents/${encodeURIComponent(id)}`),
|
|
134
134
|
method: "GET",
|
|
135
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "
|
|
135
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.1", "User-Agent": "vellum-ai/v0.9.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
136
136
|
contentType: "application/json",
|
|
137
137
|
requestType: "json",
|
|
138
138
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -184,7 +184,7 @@ class Documents {
|
|
|
184
184
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
185
185
|
.documents, `v1/documents/${encodeURIComponent(id)}`),
|
|
186
186
|
method: "DELETE",
|
|
187
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "
|
|
187
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.1", "User-Agent": "vellum-ai/v0.9.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
188
188
|
contentType: "application/json",
|
|
189
189
|
requestType: "json",
|
|
190
190
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -232,7 +232,7 @@ class Documents {
|
|
|
232
232
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
233
233
|
.default, `v1/documents/${encodeURIComponent(id)}`),
|
|
234
234
|
method: "PATCH",
|
|
235
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "
|
|
235
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.1", "User-Agent": "vellum-ai/v0.9.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
236
236
|
contentType: "application/json",
|
|
237
237
|
requestType: "json",
|
|
238
238
|
body: serializers.PatchedDocumentUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -322,7 +322,7 @@ class Documents {
|
|
|
322
322
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
323
323
|
.documents, "v1/upload-document"),
|
|
324
324
|
method: "POST",
|
|
325
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "
|
|
325
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.1", "User-Agent": "vellum-ai/v0.9.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers),
|
|
326
326
|
requestType: "file",
|
|
327
327
|
duplex: _maybeEncodedRequest.duplex,
|
|
328
328
|
body: _maybeEncodedRequest.body,
|
|
@@ -81,7 +81,7 @@ class FolderEntities {
|
|
|
81
81
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
82
82
|
.default, "v1/folder-entities"),
|
|
83
83
|
method: "GET",
|
|
84
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "
|
|
84
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.1", "User-Agent": "vellum-ai/v0.9.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
85
85
|
contentType: "application/json",
|
|
86
86
|
queryParameters: _queryParams,
|
|
87
87
|
requestType: "json",
|
|
@@ -145,7 +145,7 @@ class FolderEntities {
|
|
|
145
145
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
146
146
|
.default, `v1/folders/${encodeURIComponent(folderId)}/add-entity`),
|
|
147
147
|
method: "POST",
|
|
148
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "
|
|
148
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.1", "User-Agent": "vellum-ai/v0.9.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
149
149
|
contentType: "application/json",
|
|
150
150
|
requestType: "json",
|
|
151
151
|
body: serializers.AddEntityToFolderRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -7,6 +7,7 @@ export * from "./folderEntities/types";
|
|
|
7
7
|
export * as workflowDeployments from "./workflowDeployments";
|
|
8
8
|
export * from "./workflowDeployments/types";
|
|
9
9
|
export * as adHoc from "./adHoc";
|
|
10
|
+
export * as containerImages from "./containerImages";
|
|
10
11
|
export * as documents from "./documents";
|
|
11
12
|
export * as metricDefinitions from "./metricDefinitions";
|
|
12
13
|
export * as sandboxes from "./sandboxes";
|
|
@@ -16,6 +17,7 @@ export * as workflowSandboxes from "./workflowSandboxes";
|
|
|
16
17
|
export * as workflows from "./workflows";
|
|
17
18
|
export * as workspaceSecrets from "./workspaceSecrets";
|
|
18
19
|
export * from "./adHoc/client/requests";
|
|
20
|
+
export * from "./containerImages/client/requests";
|
|
19
21
|
export * from "./deployments/client/requests";
|
|
20
22
|
export * from "./documentIndexes/client/requests";
|
|
21
23
|
export * from "./documents/client/requests";
|
|
@@ -26,7 +26,7 @@ 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.workspaceSecrets = exports.workflows = exports.workflowSandboxes = exports.testSuites = exports.testSuiteRuns = exports.sandboxes = exports.metricDefinitions = exports.documents = exports.adHoc = exports.workflowDeployments = exports.folderEntities = exports.documentIndexes = exports.deployments = void 0;
|
|
29
|
+
exports.workspaceSecrets = exports.workflows = exports.workflowSandboxes = exports.testSuites = exports.testSuiteRuns = exports.sandboxes = exports.metricDefinitions = exports.documents = exports.containerImages = exports.adHoc = exports.workflowDeployments = exports.folderEntities = exports.documentIndexes = exports.deployments = void 0;
|
|
30
30
|
exports.deployments = __importStar(require("./deployments"));
|
|
31
31
|
__exportStar(require("./deployments/types"), exports);
|
|
32
32
|
exports.documentIndexes = __importStar(require("./documentIndexes"));
|
|
@@ -36,6 +36,7 @@ __exportStar(require("./folderEntities/types"), exports);
|
|
|
36
36
|
exports.workflowDeployments = __importStar(require("./workflowDeployments"));
|
|
37
37
|
__exportStar(require("./workflowDeployments/types"), exports);
|
|
38
38
|
exports.adHoc = __importStar(require("./adHoc"));
|
|
39
|
+
exports.containerImages = __importStar(require("./containerImages"));
|
|
39
40
|
exports.documents = __importStar(require("./documents"));
|
|
40
41
|
exports.metricDefinitions = __importStar(require("./metricDefinitions"));
|
|
41
42
|
exports.sandboxes = __importStar(require("./sandboxes"));
|
|
@@ -45,6 +46,7 @@ exports.workflowSandboxes = __importStar(require("./workflowSandboxes"));
|
|
|
45
46
|
exports.workflows = __importStar(require("./workflows"));
|
|
46
47
|
exports.workspaceSecrets = __importStar(require("./workspaceSecrets"));
|
|
47
48
|
__exportStar(require("./adHoc/client/requests"), exports);
|
|
49
|
+
__exportStar(require("./containerImages/client/requests"), exports);
|
|
48
50
|
__exportStar(require("./deployments/client/requests"), exports);
|
|
49
51
|
__exportStar(require("./documentIndexes/client/requests"), exports);
|
|
50
52
|
__exportStar(require("./documents/client/requests"), exports);
|
|
@@ -71,7 +71,7 @@ class MetricDefinitions {
|
|
|
71
71
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
72
72
|
.default, `v1/metric-definitions/${encodeURIComponent(id)}/execute`),
|
|
73
73
|
method: "POST",
|
|
74
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "
|
|
74
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.1", "User-Agent": "vellum-ai/v0.9.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
75
75
|
contentType: "application/json",
|
|
76
76
|
requestType: "json",
|
|
77
77
|
body: serializers.ExecuteMetricDefinitionRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|