vellum-ai 0.14.5 → 0.14.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.js +11 -11
- package/api/client/requests/ExecutePromptRequest.d.ts +1 -1
- package/api/client/requests/ExecutePromptStreamRequest.d.ts +1 -1
- package/api/client/requests/ExecuteWorkflowRequest.d.ts +1 -1
- package/api/client/requests/ExecuteWorkflowStreamRequest.d.ts +1 -1
- package/api/resources/adHoc/client/Client.js +1 -1
- package/api/resources/containerImages/client/Client.js +4 -4
- package/api/resources/deployments/client/Client.js +7 -7
- 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 -1
- package/api/resources/index.js +3 -2
- package/api/resources/metricDefinitions/client/Client.js +2 -2
- package/api/resources/mlModels/client/Client.js +1 -1
- package/api/resources/organizations/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 +6 -6
- package/api/resources/workflowSandboxes/client/Client.d.ts +10 -0
- package/api/resources/workflowSandboxes/client/Client.js +70 -1
- package/api/resources/workflowSandboxes/client/requests/ListWorkflowSandboxExamplesRequest.d.ts +23 -0
- package/api/resources/workflowSandboxes/client/requests/ListWorkflowSandboxExamplesRequest.js +5 -0
- package/api/resources/workflowSandboxes/client/requests/index.d.ts +1 -0
- package/api/resources/workflowSandboxes/index.d.ts +1 -0
- package/api/resources/workflowSandboxes/index.js +1 -0
- package/api/resources/workflowSandboxes/types/ListWorkflowSandboxExamplesRequestTag.d.ts +8 -0
- package/api/resources/workflowSandboxes/types/ListWorkflowSandboxExamplesRequestTag.js +10 -0
- package/api/resources/workflowSandboxes/types/index.d.ts +1 -0
- package/api/resources/workflowSandboxes/types/index.js +17 -0
- package/api/resources/workflows/client/Client.js +2 -2
- package/api/resources/workspaceSecrets/client/Client.js +2 -2
- package/api/resources/workspaces/client/Client.js +1 -1
- package/api/types/ArrayChatMessageContentItem.d.ts +1 -1
- package/api/types/ArrayChatMessageContentItemRequest.d.ts +1 -1
- package/api/types/ChatMessageContent.d.ts +1 -1
- package/api/types/ChatMessageContentRequest.d.ts +1 -1
- package/api/types/DocumentChatMessageContent.d.ts +11 -0
- package/api/types/DocumentChatMessageContent.js +5 -0
- package/api/types/DocumentChatMessageContentRequest.d.ts +11 -0
- package/api/types/DocumentChatMessageContentRequest.js +5 -0
- package/api/types/DocumentVellumValue.d.ts +11 -0
- package/api/types/DocumentVellumValue.js +5 -0
- package/api/types/DocumentVellumValueRequest.d.ts +11 -0
- package/api/types/DocumentVellumValueRequest.js +5 -0
- package/api/types/PaginatedWorkflowSandboxExampleList.d.ts +10 -0
- package/api/types/PaginatedWorkflowSandboxExampleList.js +5 -0
- package/api/types/VellumDocument.d.ts +7 -0
- package/api/types/VellumDocument.js +5 -0
- package/api/types/VellumDocumentRequest.d.ts +7 -0
- package/api/types/VellumDocumentRequest.js +5 -0
- package/api/types/VellumValue.d.ts +1 -1
- package/api/types/VellumValueRequest.d.ts +1 -1
- package/api/types/VellumVariableType.d.ts +3 -1
- package/api/types/VellumVariableType.js +1 -0
- package/api/types/WorkflowSandboxExample.d.ts +9 -0
- package/api/types/WorkflowSandboxExample.js +5 -0
- package/api/types/index.d.ts +8 -0
- package/api/types/index.js +8 -0
- package/dist/Client.js +11 -11
- package/dist/api/client/requests/ExecutePromptRequest.d.ts +1 -1
- package/dist/api/client/requests/ExecutePromptStreamRequest.d.ts +1 -1
- package/dist/api/client/requests/ExecuteWorkflowRequest.d.ts +1 -1
- package/dist/api/client/requests/ExecuteWorkflowStreamRequest.d.ts +1 -1
- package/dist/api/resources/adHoc/client/Client.js +1 -1
- package/dist/api/resources/containerImages/client/Client.js +4 -4
- package/dist/api/resources/deployments/client/Client.js +7 -7
- 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 -1
- package/dist/api/resources/index.js +3 -2
- package/dist/api/resources/metricDefinitions/client/Client.js +2 -2
- package/dist/api/resources/mlModels/client/Client.js +1 -1
- package/dist/api/resources/organizations/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 +6 -6
- package/dist/api/resources/workflowSandboxes/client/Client.d.ts +10 -0
- package/dist/api/resources/workflowSandboxes/client/Client.js +70 -1
- package/dist/api/resources/workflowSandboxes/client/requests/ListWorkflowSandboxExamplesRequest.d.ts +23 -0
- package/dist/api/resources/workflowSandboxes/client/requests/ListWorkflowSandboxExamplesRequest.js +5 -0
- package/dist/api/resources/workflowSandboxes/client/requests/index.d.ts +1 -0
- package/dist/api/resources/workflowSandboxes/index.d.ts +1 -0
- package/dist/api/resources/workflowSandboxes/index.js +1 -0
- package/dist/api/resources/workflowSandboxes/types/ListWorkflowSandboxExamplesRequestTag.d.ts +8 -0
- package/dist/api/resources/workflowSandboxes/types/ListWorkflowSandboxExamplesRequestTag.js +10 -0
- package/dist/api/resources/workflowSandboxes/types/index.d.ts +1 -0
- package/dist/api/resources/workflowSandboxes/types/index.js +17 -0
- package/dist/api/resources/workflows/client/Client.js +2 -2
- package/dist/api/resources/workspaceSecrets/client/Client.js +2 -2
- package/dist/api/resources/workspaces/client/Client.js +1 -1
- package/dist/api/types/ArrayChatMessageContentItem.d.ts +1 -1
- package/dist/api/types/ArrayChatMessageContentItemRequest.d.ts +1 -1
- package/dist/api/types/ChatMessageContent.d.ts +1 -1
- package/dist/api/types/ChatMessageContentRequest.d.ts +1 -1
- package/dist/api/types/DocumentChatMessageContent.d.ts +11 -0
- package/dist/api/types/DocumentChatMessageContent.js +5 -0
- package/dist/api/types/DocumentChatMessageContentRequest.d.ts +11 -0
- package/dist/api/types/DocumentChatMessageContentRequest.js +5 -0
- package/dist/api/types/DocumentVellumValue.d.ts +11 -0
- package/dist/api/types/DocumentVellumValue.js +5 -0
- package/dist/api/types/DocumentVellumValueRequest.d.ts +11 -0
- package/dist/api/types/DocumentVellumValueRequest.js +5 -0
- package/dist/api/types/PaginatedWorkflowSandboxExampleList.d.ts +10 -0
- package/dist/api/types/PaginatedWorkflowSandboxExampleList.js +5 -0
- package/dist/api/types/VellumDocument.d.ts +7 -0
- package/dist/api/types/VellumDocument.js +5 -0
- package/dist/api/types/VellumDocumentRequest.d.ts +7 -0
- package/dist/api/types/VellumDocumentRequest.js +5 -0
- package/dist/api/types/VellumValue.d.ts +1 -1
- package/dist/api/types/VellumValueRequest.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/WorkflowSandboxExample.d.ts +9 -0
- package/dist/api/types/WorkflowSandboxExample.js +5 -0
- package/dist/api/types/index.d.ts +8 -0
- package/dist/api/types/index.js +8 -0
- package/dist/serialization/resources/index.d.ts +2 -1
- package/dist/serialization/resources/index.js +3 -2
- package/dist/serialization/resources/workflowSandboxes/index.d.ts +1 -0
- package/dist/serialization/resources/workflowSandboxes/index.js +1 -0
- package/dist/serialization/resources/workflowSandboxes/types/ListWorkflowSandboxExamplesRequestTag.d.ts +10 -0
- package/dist/serialization/resources/workflowSandboxes/types/ListWorkflowSandboxExamplesRequestTag.js +41 -0
- package/dist/serialization/resources/workflowSandboxes/types/index.d.ts +1 -0
- package/dist/serialization/resources/workflowSandboxes/types/index.js +17 -0
- package/dist/serialization/types/ArrayChatMessageContentItem.d.ts +2 -1
- package/dist/serialization/types/ArrayChatMessageContentItem.js +2 -0
- package/dist/serialization/types/ArrayChatMessageContentItemRequest.d.ts +2 -1
- package/dist/serialization/types/ArrayChatMessageContentItemRequest.js +2 -0
- package/dist/serialization/types/ChatMessageContent.d.ts +2 -1
- package/dist/serialization/types/ChatMessageContent.js +2 -0
- package/dist/serialization/types/ChatMessageContentRequest.d.ts +2 -1
- package/dist/serialization/types/ChatMessageContentRequest.js +2 -0
- package/dist/serialization/types/DocumentChatMessageContent.d.ts +14 -0
- package/dist/serialization/types/DocumentChatMessageContent.js +45 -0
- package/dist/serialization/types/DocumentChatMessageContentRequest.d.ts +14 -0
- package/dist/serialization/types/DocumentChatMessageContentRequest.js +45 -0
- package/dist/serialization/types/DocumentVellumValue.d.ts +14 -0
- package/dist/serialization/types/DocumentVellumValue.js +45 -0
- package/dist/serialization/types/DocumentVellumValueRequest.d.ts +14 -0
- package/dist/serialization/types/DocumentVellumValueRequest.js +45 -0
- package/dist/serialization/types/PaginatedWorkflowSandboxExampleList.d.ts +16 -0
- package/dist/serialization/types/PaginatedWorkflowSandboxExampleList.js +47 -0
- package/dist/serialization/types/VellumDocument.d.ts +13 -0
- package/dist/serialization/types/VellumDocument.js +44 -0
- package/dist/serialization/types/VellumDocumentRequest.d.ts +13 -0
- package/dist/serialization/types/VellumDocumentRequest.js +44 -0
- package/dist/serialization/types/VellumValue.d.ts +2 -1
- package/dist/serialization/types/VellumValue.js +2 -0
- package/dist/serialization/types/VellumValueRequest.d.ts +2 -1
- package/dist/serialization/types/VellumValueRequest.js +2 -0
- package/dist/serialization/types/VellumVariableType.d.ts +1 -1
- package/dist/serialization/types/VellumVariableType.js +1 -0
- package/dist/serialization/types/WorkflowSandboxExample.d.ts +15 -0
- package/dist/serialization/types/WorkflowSandboxExample.js +46 -0
- package/dist/serialization/types/index.d.ts +8 -0
- package/dist/serialization/types/index.js +8 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +63 -0
- package/serialization/resources/index.d.ts +2 -1
- package/serialization/resources/index.js +3 -2
- package/serialization/resources/workflowSandboxes/index.d.ts +1 -0
- package/serialization/resources/workflowSandboxes/index.js +1 -0
- package/serialization/resources/workflowSandboxes/types/ListWorkflowSandboxExamplesRequestTag.d.ts +10 -0
- package/serialization/resources/workflowSandboxes/types/ListWorkflowSandboxExamplesRequestTag.js +41 -0
- package/serialization/resources/workflowSandboxes/types/index.d.ts +1 -0
- package/serialization/resources/workflowSandboxes/types/index.js +17 -0
- package/serialization/types/ArrayChatMessageContentItem.d.ts +2 -1
- package/serialization/types/ArrayChatMessageContentItem.js +2 -0
- package/serialization/types/ArrayChatMessageContentItemRequest.d.ts +2 -1
- package/serialization/types/ArrayChatMessageContentItemRequest.js +2 -0
- package/serialization/types/ChatMessageContent.d.ts +2 -1
- package/serialization/types/ChatMessageContent.js +2 -0
- package/serialization/types/ChatMessageContentRequest.d.ts +2 -1
- package/serialization/types/ChatMessageContentRequest.js +2 -0
- package/serialization/types/DocumentChatMessageContent.d.ts +14 -0
- package/serialization/types/DocumentChatMessageContent.js +45 -0
- package/serialization/types/DocumentChatMessageContentRequest.d.ts +14 -0
- package/serialization/types/DocumentChatMessageContentRequest.js +45 -0
- package/serialization/types/DocumentVellumValue.d.ts +14 -0
- package/serialization/types/DocumentVellumValue.js +45 -0
- package/serialization/types/DocumentVellumValueRequest.d.ts +14 -0
- package/serialization/types/DocumentVellumValueRequest.js +45 -0
- package/serialization/types/PaginatedWorkflowSandboxExampleList.d.ts +16 -0
- package/serialization/types/PaginatedWorkflowSandboxExampleList.js +47 -0
- package/serialization/types/VellumDocument.d.ts +13 -0
- package/serialization/types/VellumDocument.js +44 -0
- package/serialization/types/VellumDocumentRequest.d.ts +13 -0
- package/serialization/types/VellumDocumentRequest.js +44 -0
- package/serialization/types/VellumValue.d.ts +2 -1
- package/serialization/types/VellumValue.js +2 -0
- package/serialization/types/VellumValueRequest.d.ts +2 -1
- package/serialization/types/VellumValueRequest.js +2 -0
- package/serialization/types/VellumVariableType.d.ts +1 -1
- package/serialization/types/VellumVariableType.js +1 -0
- package/serialization/types/WorkflowSandboxExample.d.ts +15 -0
- package/serialization/types/WorkflowSandboxExample.js +46 -0
- package/serialization/types/index.d.ts +8 -0
- package/serialization/types/index.js +8 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -79,7 +79,7 @@ class MetricDefinitions {
|
|
|
79
79
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
|
|
80
80
|
.predict, `v1/metric-definitions/${encodeURIComponent(id)}/execute`),
|
|
81
81
|
method: "POST",
|
|
82
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
82
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.7", "User-Agent": "vellum-ai/0.14.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
83
83
|
contentType: "application/json",
|
|
84
84
|
requestType: "json",
|
|
85
85
|
body: serializers.ExecuteMetricDefinition.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -131,7 +131,7 @@ class MetricDefinitions {
|
|
|
131
131
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
|
|
132
132
|
.default, `v1/metric-definitions/${encodeURIComponent(id)}/history/${encodeURIComponent(historyIdOrReleaseTag)}`),
|
|
133
133
|
method: "GET",
|
|
134
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
134
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.7", "User-Agent": "vellum-ai/0.14.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
135
135
|
contentType: "application/json",
|
|
136
136
|
requestType: "json",
|
|
137
137
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -74,7 +74,7 @@ class MlModels {
|
|
|
74
74
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
|
|
75
75
|
.default, `v1/ml-models/${encodeURIComponent(id)}`),
|
|
76
76
|
method: "GET",
|
|
77
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
77
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.7", "User-Agent": "vellum-ai/0.14.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
78
78
|
contentType: "application/json",
|
|
79
79
|
requestType: "json",
|
|
80
80
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -73,7 +73,7 @@ class Organizations {
|
|
|
73
73
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
|
|
74
74
|
.default, "v1/organizations/identity"),
|
|
75
75
|
method: "GET",
|
|
76
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
76
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.7", "User-Agent": "vellum-ai/0.14.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
77
77
|
contentType: "application/json",
|
|
78
78
|
requestType: "json",
|
|
79
79
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -74,7 +74,7 @@ class Sandboxes {
|
|
|
74
74
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
|
|
75
75
|
.default, `v1/sandboxes/${encodeURIComponent(id)}/prompts/${encodeURIComponent(promptVariantId)}/deploy`),
|
|
76
76
|
method: "POST",
|
|
77
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
77
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.7", "User-Agent": "vellum-ai/0.14.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
78
78
|
contentType: "application/json",
|
|
79
79
|
requestType: "json",
|
|
80
80
|
body: serializers.DeploySandboxPromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -161,7 +161,7 @@ class Sandboxes {
|
|
|
161
161
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
|
|
162
162
|
.default, `v1/sandboxes/${encodeURIComponent(id)}/scenarios`),
|
|
163
163
|
method: "POST",
|
|
164
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
164
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.7", "User-Agent": "vellum-ai/0.14.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
165
165
|
contentType: "application/json",
|
|
166
166
|
requestType: "json",
|
|
167
167
|
body: serializers.UpsertSandboxScenarioRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -215,7 +215,7 @@ class Sandboxes {
|
|
|
215
215
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
|
|
216
216
|
.default, `v1/sandboxes/${encodeURIComponent(id)}/scenarios/${encodeURIComponent(scenarioId)}`),
|
|
217
217
|
method: "DELETE",
|
|
218
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
218
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.7", "User-Agent": "vellum-ai/0.14.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
219
219
|
contentType: "application/json",
|
|
220
220
|
requestType: "json",
|
|
221
221
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -81,7 +81,7 @@ class TestSuiteRuns {
|
|
|
81
81
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
|
|
82
82
|
.default, "v1/test-suite-runs"),
|
|
83
83
|
method: "POST",
|
|
84
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
84
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.7", "User-Agent": "vellum-ai/0.14.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
85
85
|
contentType: "application/json",
|
|
86
86
|
requestType: "json",
|
|
87
87
|
body: serializers.TestSuiteRunCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -134,7 +134,7 @@ class TestSuiteRuns {
|
|
|
134
134
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
|
|
135
135
|
.default, `v1/test-suite-runs/${encodeURIComponent(id)}`),
|
|
136
136
|
method: "GET",
|
|
137
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
137
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.7", "User-Agent": "vellum-ai/0.14.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
138
138
|
contentType: "application/json",
|
|
139
139
|
requestType: "json",
|
|
140
140
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -201,7 +201,7 @@ class TestSuiteRuns {
|
|
|
201
201
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
|
|
202
202
|
.default, `v1/test-suite-runs/${encodeURIComponent(id)}/executions`),
|
|
203
203
|
method: "GET",
|
|
204
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
204
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.7", "User-Agent": "vellum-ai/0.14.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
205
205
|
contentType: "application/json",
|
|
206
206
|
queryParameters: _queryParams,
|
|
207
207
|
requestType: "json",
|
|
@@ -83,7 +83,7 @@ class TestSuites {
|
|
|
83
83
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
|
|
84
84
|
.default, `v1/test-suites/${encodeURIComponent(id)}/test-cases`),
|
|
85
85
|
method: "GET",
|
|
86
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
86
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.7", "User-Agent": "vellum-ai/0.14.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
87
87
|
contentType: "application/json",
|
|
88
88
|
queryParameters: _queryParams,
|
|
89
89
|
requestType: "json",
|
|
@@ -164,7 +164,7 @@ class TestSuites {
|
|
|
164
164
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
|
|
165
165
|
.default, `v1/test-suites/${encodeURIComponent(id)}/test-cases`),
|
|
166
166
|
method: "POST",
|
|
167
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
167
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.7", "User-Agent": "vellum-ai/0.14.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
168
168
|
contentType: "application/json",
|
|
169
169
|
requestType: "json",
|
|
170
170
|
body: serializers.UpsertTestSuiteTestCaseRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -211,7 +211,7 @@ class TestSuites {
|
|
|
211
211
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
|
|
212
212
|
.default, `v1/test-suites/${encodeURIComponent(id)}/test-cases-bulk`),
|
|
213
213
|
method: "POST",
|
|
214
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
214
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.7", "User-Agent": "vellum-ai/0.14.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
215
215
|
contentType: "application/x-ndjson",
|
|
216
216
|
requestType: "json",
|
|
217
217
|
body: serializers.testSuites.testSuiteTestCasesBulk.Request.jsonOrThrow(request, {
|
|
@@ -278,7 +278,7 @@ class TestSuites {
|
|
|
278
278
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
|
|
279
279
|
.default, `v1/test-suites/${encodeURIComponent(id)}/test-cases/${encodeURIComponent(testCaseId)}`),
|
|
280
280
|
method: "DELETE",
|
|
281
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
281
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.7", "User-Agent": "vellum-ai/0.14.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
282
282
|
contentType: "application/json",
|
|
283
283
|
requestType: "json",
|
|
284
284
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -90,7 +90,7 @@ class WorkflowDeployments {
|
|
|
90
90
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
|
|
91
91
|
.default, "v1/workflow-deployments"),
|
|
92
92
|
method: "GET",
|
|
93
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
93
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.7", "User-Agent": "vellum-ai/0.14.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
94
94
|
contentType: "application/json",
|
|
95
95
|
queryParameters: _queryParams,
|
|
96
96
|
requestType: "json",
|
|
@@ -143,7 +143,7 @@ class WorkflowDeployments {
|
|
|
143
143
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
|
|
144
144
|
.default, `v1/workflow-deployments/${encodeURIComponent(id)}`),
|
|
145
145
|
method: "GET",
|
|
146
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
146
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.7", "User-Agent": "vellum-ai/0.14.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
147
147
|
contentType: "application/json",
|
|
148
148
|
requestType: "json",
|
|
149
149
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -196,7 +196,7 @@ class WorkflowDeployments {
|
|
|
196
196
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
|
|
197
197
|
.default, `v1/workflow-deployments/${encodeURIComponent(id)}/history/${encodeURIComponent(historyIdOrReleaseTag)}`),
|
|
198
198
|
method: "GET",
|
|
199
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
199
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.7", "User-Agent": "vellum-ai/0.14.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
200
200
|
contentType: "application/json",
|
|
201
201
|
requestType: "json",
|
|
202
202
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -265,7 +265,7 @@ class WorkflowDeployments {
|
|
|
265
265
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
|
|
266
266
|
.default, `v1/workflow-deployments/${encodeURIComponent(id)}/release-tags`),
|
|
267
267
|
method: "GET",
|
|
268
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
268
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.7", "User-Agent": "vellum-ai/0.14.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
269
269
|
contentType: "application/json",
|
|
270
270
|
queryParameters: _queryParams,
|
|
271
271
|
requestType: "json",
|
|
@@ -319,7 +319,7 @@ class WorkflowDeployments {
|
|
|
319
319
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
|
|
320
320
|
.default, `v1/workflow-deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
|
|
321
321
|
method: "GET",
|
|
322
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
322
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.7", "User-Agent": "vellum-ai/0.14.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
323
323
|
contentType: "application/json",
|
|
324
324
|
requestType: "json",
|
|
325
325
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -373,7 +373,7 @@ class WorkflowDeployments {
|
|
|
373
373
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
|
|
374
374
|
.default, `v1/workflow-deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
|
|
375
375
|
method: "PATCH",
|
|
376
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
376
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.7", "User-Agent": "vellum-ai/0.14.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
377
377
|
contentType: "application/json",
|
|
378
378
|
requestType: "json",
|
|
379
379
|
body: serializers.PatchedWorkflowReleaseTagUpdateRequest.jsonOrThrow(request, {
|
|
@@ -35,6 +35,16 @@ export declare class WorkflowSandboxes {
|
|
|
35
35
|
* await client.workflowSandboxes.deployWorkflow("id", "workflow_id")
|
|
36
36
|
*/
|
|
37
37
|
deployWorkflow(id: string, workflowId: string, request?: Vellum.DeploySandboxWorkflowRequest, requestOptions?: WorkflowSandboxes.RequestOptions): Promise<Vellum.WorkflowDeploymentRead>;
|
|
38
|
+
/**
|
|
39
|
+
* List Workflow Sandbox examples that were previously cloned into the User's Workspace
|
|
40
|
+
*
|
|
41
|
+
* @param {Vellum.ListWorkflowSandboxExamplesRequest} request
|
|
42
|
+
* @param {WorkflowSandboxes.RequestOptions} requestOptions - Request-specific configuration.
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* await client.workflowSandboxes.listWorkflowSandboxExamples()
|
|
46
|
+
*/
|
|
47
|
+
listWorkflowSandboxExamples(request?: Vellum.ListWorkflowSandboxExamplesRequest, requestOptions?: WorkflowSandboxes.RequestOptions): Promise<Vellum.PaginatedWorkflowSandboxExampleList>;
|
|
38
48
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
39
49
|
X_API_KEY: string;
|
|
40
50
|
}>;
|
|
@@ -74,7 +74,7 @@ class WorkflowSandboxes {
|
|
|
74
74
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
|
|
75
75
|
.default, `v1/workflow-sandboxes/${encodeURIComponent(id)}/workflows/${encodeURIComponent(workflowId)}/deploy`),
|
|
76
76
|
method: "POST",
|
|
77
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
77
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.7", "User-Agent": "vellum-ai/0.14.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
78
78
|
contentType: "application/json",
|
|
79
79
|
requestType: "json",
|
|
80
80
|
body: serializers.DeploySandboxWorkflowRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -111,6 +111,75 @@ class WorkflowSandboxes {
|
|
|
111
111
|
}
|
|
112
112
|
});
|
|
113
113
|
}
|
|
114
|
+
/**
|
|
115
|
+
* List Workflow Sandbox examples that were previously cloned into the User's Workspace
|
|
116
|
+
*
|
|
117
|
+
* @param {Vellum.ListWorkflowSandboxExamplesRequest} request
|
|
118
|
+
* @param {WorkflowSandboxes.RequestOptions} requestOptions - Request-specific configuration.
|
|
119
|
+
*
|
|
120
|
+
* @example
|
|
121
|
+
* await client.workflowSandboxes.listWorkflowSandboxExamples()
|
|
122
|
+
*/
|
|
123
|
+
listWorkflowSandboxExamples() {
|
|
124
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
125
|
+
var _a, _b;
|
|
126
|
+
const { limit, offset, ordering, tag } = request;
|
|
127
|
+
const _queryParams = {};
|
|
128
|
+
if (limit != null) {
|
|
129
|
+
_queryParams["limit"] = limit.toString();
|
|
130
|
+
}
|
|
131
|
+
if (offset != null) {
|
|
132
|
+
_queryParams["offset"] = offset.toString();
|
|
133
|
+
}
|
|
134
|
+
if (ordering != null) {
|
|
135
|
+
_queryParams["ordering"] = ordering;
|
|
136
|
+
}
|
|
137
|
+
if (tag != null) {
|
|
138
|
+
_queryParams["tag"] = serializers.ListWorkflowSandboxExamplesRequestTag.jsonOrThrow(tag, {
|
|
139
|
+
unrecognizedObjectKeys: "strip",
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
const _response = yield core.fetcher({
|
|
143
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
|
|
144
|
+
.default, "v1/workflow-sandboxes/examples"),
|
|
145
|
+
method: "GET",
|
|
146
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.7", "User-Agent": "vellum-ai/0.14.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
147
|
+
contentType: "application/json",
|
|
148
|
+
queryParameters: _queryParams,
|
|
149
|
+
requestType: "json",
|
|
150
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
151
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
152
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
153
|
+
});
|
|
154
|
+
if (_response.ok) {
|
|
155
|
+
return serializers.PaginatedWorkflowSandboxExampleList.parseOrThrow(_response.body, {
|
|
156
|
+
unrecognizedObjectKeys: "passthrough",
|
|
157
|
+
allowUnrecognizedUnionMembers: true,
|
|
158
|
+
allowUnrecognizedEnumValues: true,
|
|
159
|
+
breadcrumbsPrefix: ["response"],
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
if (_response.error.reason === "status-code") {
|
|
163
|
+
throw new errors.VellumError({
|
|
164
|
+
statusCode: _response.error.statusCode,
|
|
165
|
+
body: _response.error.body,
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
switch (_response.error.reason) {
|
|
169
|
+
case "non-json":
|
|
170
|
+
throw new errors.VellumError({
|
|
171
|
+
statusCode: _response.error.statusCode,
|
|
172
|
+
body: _response.error.rawBody,
|
|
173
|
+
});
|
|
174
|
+
case "timeout":
|
|
175
|
+
throw new errors.VellumTimeoutError("Timeout exceeded when calling GET /v1/workflow-sandboxes/examples.");
|
|
176
|
+
case "unknown":
|
|
177
|
+
throw new errors.VellumError({
|
|
178
|
+
message: _response.error.errorMessage,
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
});
|
|
182
|
+
}
|
|
114
183
|
_getCustomAuthorizationHeaders() {
|
|
115
184
|
return __awaiter(this, void 0, void 0, function* () {
|
|
116
185
|
const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
|
package/dist/api/resources/workflowSandboxes/client/requests/ListWorkflowSandboxExamplesRequest.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "../../../../index";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {}
|
|
8
|
+
*/
|
|
9
|
+
export interface ListWorkflowSandboxExamplesRequest {
|
|
10
|
+
/**
|
|
11
|
+
* Number of results to return per page.
|
|
12
|
+
*/
|
|
13
|
+
limit?: number;
|
|
14
|
+
/**
|
|
15
|
+
* The initial index from which to return the results.
|
|
16
|
+
*/
|
|
17
|
+
offset?: number;
|
|
18
|
+
/**
|
|
19
|
+
* Which field to use when ordering the results.
|
|
20
|
+
*/
|
|
21
|
+
ordering?: string;
|
|
22
|
+
tag?: Vellum.ListWorkflowSandboxExamplesRequestTag;
|
|
23
|
+
}
|
|
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./types"), exports);
|
|
17
18
|
__exportStar(require("./client"), exports);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export type ListWorkflowSandboxExamplesRequestTag = "ONBOARDING" | "TEMPLATES";
|
|
5
|
+
export declare const ListWorkflowSandboxExamplesRequestTag: {
|
|
6
|
+
readonly Onboarding: "ONBOARDING";
|
|
7
|
+
readonly Templates: "TEMPLATES";
|
|
8
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ListWorkflowSandboxExamplesRequestTag = void 0;
|
|
7
|
+
exports.ListWorkflowSandboxExamplesRequestTag = {
|
|
8
|
+
Onboarding: "ONBOARDING",
|
|
9
|
+
Templates: "TEMPLATES",
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ListWorkflowSandboxExamplesRequestTag";
|
|
@@ -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("./ListWorkflowSandboxExamplesRequestTag"), exports);
|
|
@@ -89,7 +89,7 @@ class Workflows {
|
|
|
89
89
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
|
|
90
90
|
.default, `v1/workflows/${encodeURIComponent(id)}/pull`),
|
|
91
91
|
method: "GET",
|
|
92
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
92
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.7", "User-Agent": "vellum-ai/0.14.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
93
93
|
contentType: "application/json",
|
|
94
94
|
queryParameters: _queryParams,
|
|
95
95
|
requestType: "json",
|
|
@@ -164,7 +164,7 @@ class Workflows {
|
|
|
164
164
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
|
|
165
165
|
.default, "v1/workflows/push"),
|
|
166
166
|
method: "POST",
|
|
167
|
-
headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
167
|
+
headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.7", "User-Agent": "vellum-ai/0.14.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
168
168
|
requestType: "file",
|
|
169
169
|
duplex: _maybeEncodedRequest.duplex,
|
|
170
170
|
body: _maybeEncodedRequest.body,
|
|
@@ -74,7 +74,7 @@ class WorkspaceSecrets {
|
|
|
74
74
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
|
|
75
75
|
.default, `v1/workspace-secrets/${encodeURIComponent(id)}`),
|
|
76
76
|
method: "GET",
|
|
77
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
77
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.7", "User-Agent": "vellum-ai/0.14.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
78
78
|
contentType: "application/json",
|
|
79
79
|
requestType: "json",
|
|
80
80
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -127,7 +127,7 @@ class WorkspaceSecrets {
|
|
|
127
127
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
|
|
128
128
|
.default, `v1/workspace-secrets/${encodeURIComponent(id)}`),
|
|
129
129
|
method: "PATCH",
|
|
130
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
130
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.7", "User-Agent": "vellum-ai/0.14.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
131
131
|
contentType: "application/json",
|
|
132
132
|
requestType: "json",
|
|
133
133
|
body: serializers.PatchedWorkspaceSecretUpdateRequest.jsonOrThrow(request, {
|
|
@@ -73,7 +73,7 @@ class Workspaces {
|
|
|
73
73
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
|
|
74
74
|
.default, "v1/workspaces/identity"),
|
|
75
75
|
method: "GET",
|
|
76
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
76
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.7", "User-Agent": "vellum-ai/0.14.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
77
77
|
contentType: "application/json",
|
|
78
78
|
requestType: "json",
|
|
79
79
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Vellum from "../index";
|
|
5
|
-
export type ArrayChatMessageContentItem = Vellum.StringChatMessageContent | Vellum.FunctionCallChatMessageContent | Vellum.ImageChatMessageContent | Vellum.AudioChatMessageContent;
|
|
5
|
+
export type ArrayChatMessageContentItem = Vellum.StringChatMessageContent | Vellum.FunctionCallChatMessageContent | Vellum.ImageChatMessageContent | Vellum.AudioChatMessageContent | Vellum.DocumentChatMessageContent;
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Vellum from "../index";
|
|
5
|
-
export type ArrayChatMessageContentItemRequest = Vellum.StringChatMessageContentRequest | Vellum.FunctionCallChatMessageContentRequest | Vellum.ImageChatMessageContentRequest | Vellum.AudioChatMessageContentRequest;
|
|
5
|
+
export type ArrayChatMessageContentItemRequest = Vellum.StringChatMessageContentRequest | Vellum.FunctionCallChatMessageContentRequest | Vellum.ImageChatMessageContentRequest | Vellum.AudioChatMessageContentRequest | Vellum.DocumentChatMessageContentRequest;
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Vellum from "../index";
|
|
5
|
-
export type ChatMessageContent = Vellum.StringChatMessageContent | Vellum.FunctionCallChatMessageContent | Vellum.ArrayChatMessageContent | Vellum.ImageChatMessageContent | Vellum.AudioChatMessageContent;
|
|
5
|
+
export type ChatMessageContent = Vellum.StringChatMessageContent | Vellum.FunctionCallChatMessageContent | Vellum.ArrayChatMessageContent | Vellum.ImageChatMessageContent | Vellum.AudioChatMessageContent | Vellum.DocumentChatMessageContent;
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Vellum from "../index";
|
|
5
|
-
export type ChatMessageContentRequest = Vellum.StringChatMessageContentRequest | Vellum.FunctionCallChatMessageContentRequest | Vellum.ArrayChatMessageContentRequest | Vellum.ImageChatMessageContentRequest | Vellum.AudioChatMessageContentRequest;
|
|
5
|
+
export type ChatMessageContentRequest = Vellum.StringChatMessageContentRequest | Vellum.FunctionCallChatMessageContentRequest | Vellum.ArrayChatMessageContentRequest | Vellum.ImageChatMessageContentRequest | Vellum.AudioChatMessageContentRequest | Vellum.DocumentChatMessageContentRequest;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "../index";
|
|
5
|
+
/**
|
|
6
|
+
* A document value that is used in a chat message.
|
|
7
|
+
*/
|
|
8
|
+
export interface DocumentChatMessageContent {
|
|
9
|
+
type: "DOCUMENT";
|
|
10
|
+
value: Vellum.VellumDocument;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "../index";
|
|
5
|
+
/**
|
|
6
|
+
* A document value that is used in a chat message.
|
|
7
|
+
*/
|
|
8
|
+
export interface DocumentChatMessageContentRequest {
|
|
9
|
+
type: "DOCUMENT";
|
|
10
|
+
value: Vellum.VellumDocumentRequest;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "../index";
|
|
5
|
+
/**
|
|
6
|
+
* A base Vellum primitive value representing a document.
|
|
7
|
+
*/
|
|
8
|
+
export interface DocumentVellumValue {
|
|
9
|
+
type: "DOCUMENT";
|
|
10
|
+
value?: Vellum.VellumDocument;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "../index";
|
|
5
|
+
/**
|
|
6
|
+
* A base Vellum primitive value representing a document.
|
|
7
|
+
*/
|
|
8
|
+
export interface DocumentVellumValueRequest {
|
|
9
|
+
type: "DOCUMENT";
|
|
10
|
+
value?: Vellum.VellumDocumentRequest;
|
|
11
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "../index";
|
|
5
|
+
export interface PaginatedWorkflowSandboxExampleList {
|
|
6
|
+
count?: number;
|
|
7
|
+
next?: string;
|
|
8
|
+
previous?: string;
|
|
9
|
+
results?: Vellum.WorkflowSandboxExample[];
|
|
10
|
+
}
|